/* =========================================================
   TEACHERS / FACULTY PAGE
========================================================= */

:root {
    --teacher-blue: #1688d9;
    --teacher-blue-dark: #0870bd;
    --teacher-cyan: #19b8e8;
    --teacher-orange: #f26522;
    --teacher-navy: #071528;
    --teacher-text: #172235;
    --teacher-muted: #6c7a8d;
    --teacher-border: #e8edf3;
    --teacher-bg: #f7faff;
}

/* =========================================================
   TEACHERS SECTION
========================================================= */

.cs-teachers-section {
    padding: 90px 0;
    background: #ffffff;
}

/* =========================================================
   SECTION HEADER
========================================================= */

.cs-teachers-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 42px;
}

.cs-teachers-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;

    color: var(--teacher-blue);
}

.cs-teachers-kicker::before {
    content: "";

    width: 28px;
    height: 2px;

    background: var(--teacher-orange);
}

.cs-teachers-head h2 {
    margin: 0 0 12px;

    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;

    color: var(--teacher-navy);
}

.cs-teachers-head h2 span {
    color: var(--teacher-blue);
}

.cs-teachers-head p {
    max-width: 650px;

    margin: 0;

    color: var(--teacher-muted);

    font-size: 16px;
    line-height: 1.7;
}

/* =========================================================
   TEACHER GRID
========================================================= */

.cs-teacher-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;
}

/* =========================================================
   TEACHER CARD
========================================================= */

.cs-teacher-card {
    position: relative;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--teacher-border);

    border-radius: 18px;

    box-shadow: 0 10px 35px rgba(7, 21, 40, 0.07);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.cs-teacher-card:hover {
    transform: translateY(-8px);

    border-color: rgba(22, 136, 217, 0.25);

    box-shadow: 0 20px 45px rgba(7, 21, 40, 0.12);
}

/* =========================================================
   TEACHER IMAGE
========================================================= */

.cs-teacher-image {
    position: relative;

    display: block;

    width: 100%;
    height: 280px;

    overflow: hidden;

    background: linear-gradient(135deg, #e8f6ff, #f5fbff);

    text-decoration: none;
}

.cs-teacher-image img {
    display: block;

    width: 100%;
    height: 145%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.cs-teacher-card:hover .cs-teacher-image img {
    transform: scale(1.06);
}

/* =========================================================
   PLACEHOLDER
========================================================= */

.cs-teacher-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: linear-gradient(135deg, #e8f6ff, #f5fbff);
}

.cs-teacher-placeholder i {
    font-size: 65px;

    color: var(--teacher-blue);
}

/* =========================================================
   TEACHER BADGE
========================================================= */

.cs-teacher-badge {
    position: absolute;

    top: 15px;
    left: 15px;

    display: inline-flex;

    align-items: center;
    gap: 6px;

    padding: 7px 12px;

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.95);

    color: var(--teacher-blue-dark);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.5px;

    text-transform: uppercase;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.cs-teacher-badge i {
    font-size: 13px;
}

/* =========================================================
   TEACHER CONTENT
========================================================= */

.cs-teacher-content {
    padding: 23px 22px 24px;
}

/* =========================================================
   TEACHER LABEL
========================================================= */

.cs-teacher-label {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 10px;

    color: var(--teacher-blue);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}

.cs-teacher-label i {
    font-size: 13px;
}

/* =========================================================
   TEACHER NAME
========================================================= */

.cs-teacher-content h3 {
    margin: 0 0 7px;

    font-size: 21px;

    line-height: 1.3;

    font-weight: 800;
}

.cs-teacher-content h3 a {
    color: var(--teacher-navy);

    text-decoration: none;

    transition: color 0.3s ease;
}

.cs-teacher-content h3 a:hover {
    color: var(--teacher-blue);
}

/* =========================================================
   DESIGNATION
========================================================= */

.cs-teacher-designation {
    margin: 0 0 15px;

    color: var(--teacher-muted);

    font-size: 14px;

    line-height: 1.6;

    font-weight: 600;
}

/* =========================================================
   SUBJECT
========================================================= */

.cs-teacher-subject {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 0;

    border-top: 1px solid var(--teacher-border);
}

.cs-teacher-subject i {
    color: var(--teacher-blue);

    font-size: 15px;
}

.cs-teacher-subject span {
    color: #566577;

    font-size: 12px;

    font-weight: 700;
}

/* =========================================================
   EXPERIENCE
========================================================= */

.cs-teacher-experience {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 0;

    border-top: 1px solid var(--teacher-border);
}

.cs-teacher-experience i {
    color: var(--teacher-orange);

    font-size: 15px;
}

.cs-teacher-experience span {
    color: #566577;

    font-size: 12px;

    font-weight: 700;
}

/* =========================================================
   PROFILE LINK
========================================================= */

.cs-teacher-link {
    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    width: 100%;

    padding-top: 15px;

    margin-top: 5px;

    border-top: 1px solid var(--teacher-border);

    color: var(--teacher-blue-dark);

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;

    transition: color 0.3s ease;
}

.cs-teacher-link i {
    font-size: 16px;

    transition: transform 0.3s ease;
}

.cs-teacher-link:hover {
    color: var(--teacher-orange);
}

.cs-teacher-link:hover i {
    transform: translateX(5px);
}

/* =========================================================
   NO TEACHERS
========================================================= */

.cs-no-teachers {
    max-width: 600px;

    margin: 20px auto 0;

    padding: 55px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid var(--teacher-border);

    border-radius: 20px;

    box-shadow: 0 12px 35px rgba(7, 21, 40, 0.06);
}

.cs-no-teachers-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #eaf7ff;

    color: var(--teacher-blue);

    font-size: 30px;
}

.cs-no-teachers h3 {
    margin: 0 0 10px;

    color: var(--teacher-navy);

    font-size: 28px;

    font-weight: 800;
}

.cs-no-teachers p {
    margin: 0 0 25px;

    color: var(--teacher-muted);

    line-height: 1.7;
}

.cs-no-teachers > a {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 12px 22px;

    border-radius: 8px;

    background: var(--teacher-blue);

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition: background 0.3s ease;
}

.cs-no-teachers > a:hover {
    background: var(--teacher-blue-dark);
}

/* =========================================================
   TABLET - 3 COLUMNS
========================================================= */

@media (max-width: 1200px) {
    .cs-teacher-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   TABLET - 2 COLUMNS
========================================================= */

@media (max-width: 992px) {
    .cs-teachers-section {
        padding: 70px 0;
    }

    .cs-teachers-head h2 {
        font-size: 34px;
    }

    .cs-teacher-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cs-teacher-image {
        height: 270px;
    }
}

/* =========================================================
   MOBILE - 1 COLUMN
========================================================= */

@media (max-width: 576px) {
    .cs-teachers-section {
        padding: 55px 0;
    }

    .cs-teachers-head {
        margin-bottom: 30px;
    }

    .cs-teachers-head h2 {
        font-size: 29px;
    }

    .cs-teachers-head p {
        font-size: 14px;
    }

    .cs-teacher-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .cs-teacher-image {
        height: 300px;
    }

    .cs-teacher-content {
        padding: 20px;
    }

    .cs-teacher-content h3 {
        font-size: 20px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
    .cs-teachers-section {
        padding: 45px 0;
    }

    .cs-teacher-image {
        height: 270px;
    }

    .cs-teacher-content {
        padding: 18px;
    }

    .cs-teacher-content h3 {
        font-size: 19px;
    }
}
