/* teachers.css - Modern styling for teachers section (Swiper Version) */

.teacher-swiper {
    position: relative;
    background: #fff;
    margin-top: 30px;
    margin-bottom: 30px;
    border: 1px solid #01225f;
    /* Blue border */
}

.slide-content-wrap {
    position: relative;
    padding: 30px;
    background: #fff;
    height: 100%;
}

.slide-tab {
    position: absolute;
    top: 0px;
    left: 20px;
    background-color: #f7a800;
    /* Deeper yellow/orange */
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    padding: 8px 30px;
    z-index: 2;
}

.slide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 40px;
    /* space for tab */
}

/* For separating columns with dotted lines */
.t-card {
    position: relative;
    padding: 20px;
    transition: all 0.3s ease;
    border-right: 1px dashed #dcdcdc;
    border-bottom: 1px dashed #dcdcdc;
    display: flex;
    flex-direction: column;
}

.slide-grid .t-card:nth-child(3n) {
    border-right: none;
}

.t-card:hover {
    background-color: #f9f9f9;
}

.t-name {
    font-size: 24px;

    color: #e59500;
    margin-bottom: 5px;
    line-height: 1.2;
}

.t-title {
    font-size: 1.1rem;
    color: #e59500;

    margin-bottom: 15px;
}

.t-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.t-research {
    font-size: 14px;
    color: #555;
    margin-top: auto;
}

.t-research strong {
    /* color: #01225f; */
    font-weight: bold;
}

/* Swiper Nav styles */
.swiper-container .swiper-pagination {
    bottom: 10px;
}

.swiper-container .swiper-pagination-bullet-active {
    background: #01225f;
}

.swiper-container .swiper-button-prev,
.swiper-container .swiper-button-next {
    color: #01225f;
    opacity: 0.5;
}

.swiper-container .swiper-button-prev:hover,
.swiper-container .swiper-button-next:hover {
    opacity: 1;
}

/* Corp Section styling */
.corp-container {

    padding: 0 30px 40px 30px;
    background: #fff;
    position: relative;
    height: 100%;
}

.corp-container.has-tab {
    padding-top: 40px;
}

.corp-container:not(.has-tab) {
    padding-top: 40px;
}

/* Enterprise Tab */
.corp-container.has-tab::before {
    content: "企业导师";
    position: absolute;
    top: 0px;
    left: 20px;
    background-color: #f7a800;
    /* Orange tab */
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    padding: 8px 30px;
}

.corp-cat-title {
    font-size: 20px;
    font-weight: bold;
    color: #e59500;
    margin-bottom: 20px;
    border-bottom: 1px dashed #dcdcdc;
    padding-bottom: 10px;
}

.corp-container.has-tab>.corp-cat-title:first-child {
    margin-top: 40px;
}

/* subsequent titles need less top margin */
.corp-cat-title~.corp-cat-title {
    margin-top: 40px;
}

.corp-sub-title {
    font-size: 18px;
    font-weight: bold;
    color: #e59500;
    margin-top: 20px;
    margin-bottom: 15px;
}

.corp-grid {
    column-count: 2;
    column-gap: 30px;
    margin-bottom: 20px;
}

.corp-item {
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    padding-bottom: 10px;
    break-inside: avoid-column;
    page-break-inside: avoid;
}

.c-name {
    font-weight: bold;
    color: #555;
    min-width: 60px;
    margin-right: 15px;
}

.c-desc {
    color: #777;
    flex: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .slide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide-grid .t-card {
        border-right: 1px dashed #dcdcdc;
        border-bottom: 1px dashed #dcdcdc;
    }

    .slide-grid .t-card:nth-child(2n) {
        border-right: none;
    }

    .slide-grid .t-card:nth-child(3n) {
        border-right: 1px dashed #dcdcdc;
    }
}

@media (max-width: 768px) {
    .slide-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 30px;
    }

    .slide-grid .t-card {
        padding: 10px;
        border-right: 1px dashed #dcdcdc !important;
        border-bottom: 1px dashed #dcdcdc;
    }

    .slide-grid .t-card:nth-child(2n) {
        border-right: none !important;
    }

    .t-name {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .t-title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .t-desc {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .t-research {
        font-size: 12px;
    }

    .corp-grid {
        column-count: 1;
    }

    .slide-tab,
    .corp-container.has-tab::before {
        font-size: 16px;
        padding: 4px 15px;
        left: 10px;
    }

    .slide-content-wrap {
        padding: 10px;
    }

    .corp-container {
        padding: 0 15px 20px 15px;
    }
}