/* ==========================================================
   TEACHERS PAGE STYLES
   ========================================================== */

.teachers-page {
    background: #FAF8F5;
}

/* 1. Hero Banner Style matching template-yogaschool.php */
.yogaschool-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.yogaschool-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.yogaschool-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yogaschool-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 12, 8, 0.45);
    z-index: 2;
}

.yogaschool-banner-content {
    position: relative;
    z-index: 3;
    color: var(--white, #ffffff);
    padding: 0 20px;
}

.yogaschool-banner-content h1 {
    font-family: 'Josefin Sans', serif;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 600;
    line-height: 1;
    color: var(--white, #ffffff);
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 2. Hero Intro Style */
.yogaschool-hero-intro {
    padding: 100px 0 80px;
    background: #FAF8F5;
}

.yogaschool-hero-intro .hero-subtitle {
    font-family: 'Josefin Sans', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    color: var(--text, #100c08);
    margin-bottom: 25px;
}

.yogaschool-hero-intro .hero-intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.85;
    color: #655d55;
}

/* 3. Alternating Sections Backgrounds */
.teacher-profile-section {
    padding: 120px 0;
    scroll-margin-top: 120px; /* Offset fixed header */
    border-bottom: 1px solid rgba(196, 154, 53, 0.08);
}

.teacher-profile-section.odd-bg {
    background: #FAF8F5;
}

.teacher-profile-section.even-bg {
    background: #FFFFFF;
}

/* 4. Teacher Layout Grid */
.teacher-profile-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.teacher-profile-row.reverse-layout {
    grid-template-columns: 1.2fr 1fr;
}

/* 5. Teacher Media */
.teacher-profile-media {
    position: sticky;
    top: 120px;
    align-self: start;
    z-index: 5;
}

.teacher-image-wrapper {
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(196, 154, 53, 0.08);
    box-shadow: 0 20px 50px rgba(24, 18, 12, 0.05);
    transition: transform 0.3s ease;
}

.teacher-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 6. Teacher Info Typography & Spacing */
.teacher-profile-info {
    padding: 10px 0;
}

.teacher-profile-role {
    font-size: 13.5px;
    letter-spacing: 2.5px;
    color: var(--gold, #c49a35);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.teacher-profile-name {
    font-family: 'Josefin Sans', serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    color: var(--text, #100c08);
    margin-bottom: 25px;
    line-height: 1.2;
}

.teacher-profile-bio p {
    font-size: 16px;
    line-height: 1.8;
    color: #554d45;
    margin-bottom: 20px;
}

.teacher-profile-bio p:last-child {
    margin-bottom: 0;
}

.teacher-profile-bio h4 {
    font-family: 'Josefin Sans', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text, #100c08);
    margin-top: 35px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 6px;
}

.teacher-profile-bio h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 1.5px;
    background: var(--gold, #c49a35);
}

.teacher-profile-bio ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.teacher-profile-bio li {
    font-size: 16px;
    line-height: 1.8;
    color: #655d55;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.teacher-profile-bio li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold, #c49a35);
    font-weight: bold;
}

.teacher-profile-bio blockquote {
    font-family: 'Josefin Sans', serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    color: #655d55;
    border-left: 3px solid var(--gold, #c49a35);
    padding-left: 24px;
    margin: 30px 0;
}

/* ==========================================================
   RESPONSIVE DESIGN Breakpoints
   ========================================================== */

@media (max-width: 1200px) {
    .teacher-profile-row {
        gap: 50px;
    }
}

@media (max-width: 991px) {
    .yogaschool-banner {
        height: 45vh;
        min-height: 320px;
    }

    .yogaschool-hero-intro {
        padding: 80px 0 60px;
    }

    .teacher-profile-section {
        padding: 90px 0;
    }

    .teacher-profile-row,
    .teacher-profile-row.reverse-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .teacher-profile-media {
        position: static;
    }

    .teacher-image-wrapper {
        margin: 0 auto;
    }
}

/* Mobile & Tablet Ordering: 1. Name -> 2. Position -> 3. Image -> 4. Description */
@media (max-width: 1024px) {
    .teacher-profile-row,
    .teacher-profile-row.reverse-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .teacher-profile-info {
        display: contents !important;
    }

    .teacher-profile-name {
        order: 1 !important;
        margin-bottom: 6px !important;
        text-align: left !important;
    }

    .teacher-profile-role {
        order: 2 !important;
        margin-bottom: 18px !important;
        text-align: left !important;
    }

    .teacher-profile-media {
        order: 3 !important;
        width: 100% !important;
        margin-bottom: 22px !important;
        position: static !important;
    }

    .teacher-profile-bio {
        order: 4 !important;
        width: 100% !important;
        text-align: left !important;
    }
}
