/**
 * De ce există: ajustează pagina Profesori la compoziția vizuală aprobată.
 * Responsabilitate: proporții hero și prezentarea unitară 2x2 a profesorilor.
 * Ce NU face: nu schimbă stilul celorlalte pagini și nu modifică fotografiile sau textele originale.
 * Depinde de: page-profesori.php, stilurile globale ale temei și impera-brush-ring.png.
 */

.teacher-team {
    overflow: hidden;
    padding: 72px 0;
    background: #fff;
}

.teacher-directory {
    max-width: 1160px;
}

.teacher-team .section-head {
    max-width: 900px;
    margin-bottom: 42px;
}

.teacher-team .section-head .eyebrow {
    justify-content: center;
}

.teacher-team .section-head p {
    max-width: 820px;
    margin: 0 auto;
}

.teacher-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(54px, 8vw, 116px);
    row-gap: 44px;
}

.teacher-profile {
    min-width: 0;
    text-align: center;
}

.teacher-portrait-shell {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 22px;
}

.teacher-portrait {
    position: absolute;
    inset: 21px;
    width: calc(100% - 42px);
    height: calc(100% - 42px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center var(--teacher-focus, center);
    background: #f2f5ef;
    box-shadow: 0 12px 30px rgba(25, 65, 12, .12);
}

.teacher-portrait-ring {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.teacher-profile-copy {
    max-width: 520px;
    margin: 0 auto;
}

.teacher-profile h3 {
    margin: 0 0 7px;
    font-size: clamp(30px, 3vw, 39px);
    letter-spacing: -.025em;
}

.teacher-profile .teacher-role {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 16px;
    font-weight: 800;
}

.teacher-profile .teacher-profile-text {
    margin: 0;
    color: #343a30;
    font-size: 16px;
    line-height: 1.62;
}

.page-id-5 .page-hero-media,
.page-template-page-profesori .page-hero-media {
    position: relative;
    margin: 0;
    border: 1px solid rgba(61, 118, 35, .16);
    background: var(--green-soft);
    box-shadow: 18px 18px 0 #e7f3df, 0 24px 60px rgba(31, 55, 20, .16);
}

.page-id-5 .page-hero-media img,
.page-template-page-profesori .page-hero-media img {
    object-position: center 45%;
}

.page-id-5 .page-hero-media figcaption,
.page-template-page-profesori .page-hero-media figcaption {
    position: absolute;
    left: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 44px);
    padding: 13px 17px;
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 30px rgba(20, 35, 13, .16);
    backdrop-filter: blur(10px);
}

.page-id-5 .page-hero-media figcaption .dashicons,
.page-template-page-profesori .page-hero-media figcaption .dashicons {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 22px;
}

.page-id-5 .page-hero-media figcaption strong,
.page-id-5 .page-hero-media figcaption small,
.page-template-page-profesori .page-hero-media figcaption strong,
.page-template-page-profesori .page-hero-media figcaption small {
    display: block;
}

.page-id-5 .page-hero-media figcaption strong,
.page-template-page-profesori .page-hero-media figcaption strong {
    font-size: 15px;
}

.page-id-5 .page-hero-media figcaption small,
.page-template-page-profesori .page-hero-media figcaption small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

@media (min-width: 981px) {
    .page-id-5 .page-hero,
    .page-template-page-profesori .page-hero {
        padding: 14px 0 70px;
    }

    .page-id-5 .page-hero .container,
    .page-template-page-profesori .page-hero .container {
        width: min(calc(100% - 64px), 1410px);
    }

    .page-id-5 .page-hero-grid,
    .page-template-page-profesori .page-hero-grid {
        grid-template-columns: 520px 1fr;
    }

    .page-id-5 .page-hero-copy,
    .page-template-page-profesori .page-hero-copy {
        padding-right: 18px;
    }

    .page-id-5 .page-hero-copy h1,
    .page-template-page-profesori .page-hero-copy h1 {
        font-size: 62px;
    }

    .page-id-5 .page-hero-copy .button,
    .page-template-page-profesori .page-hero-copy .button {
        display: none;
    }

    .page-id-5 .page-hero-media,
    .page-template-page-profesori .page-hero-media {
        min-height: 500px;
        border-radius: 30px;
    }

    .page-id-5 .page-hero-media img,
    .page-template-page-profesori .page-hero-media img {
        height: 500px;
    }

    .teacher-team {
        padding-top: 64px;
    }
}

@media (max-width: 980px) {
    .teacher-directory-grid {
        column-gap: 38px;
    }

    .teacher-portrait-shell {
        width: 204px;
        height: 204px;
    }
}

@media (max-width: 720px) {
    .page-id-5 .page-hero-media,
    .page-template-page-profesori .page-hero-media {
        border-radius: 22px;
        box-shadow: 10px 10px 0 #e7f3df, 0 18px 44px rgba(31, 55, 20, .14);
    }
    .page-id-5 .page-hero-media img,
    .page-template-page-profesori .page-hero-media img { height: 360px; object-fit: cover; }
    .page-id-5 .page-hero-media figcaption,
    .page-template-page-profesori .page-hero-media figcaption { left: 14px; bottom: 14px; max-width: calc(100% - 28px); }
    .teacher-team {
        padding-top: 70px;
    }

    .teacher-team .section-head {
        margin-bottom: 44px;
    }

    .teacher-directory-grid {
        grid-template-columns: 1fr;
        row-gap: 52px;
    }

    .teacher-portrait-shell {
        width: 198px;
        height: 198px;
        margin-bottom: 18px;
    }

    .teacher-profile h3 {
        font-size: 32px;
    }

    .teacher-profile .teacher-profile-text {
        font-size: 15px;
    }
}
