/* ==========================================
   AL ZAINAB QURAN ACADEMY
   OUR TEACHERS PAGE STYLES
   Shared header/footer remain in css/style.css
========================================== */

.teachers-hero {
    background: linear-gradient(115deg, rgba(6, 55, 42, 0.97), rgba(11, 76, 57, 0.94));
    color: #ffffff;
    padding: 95px 7%;
}

.teachers-hero-inner,
.teachers-content-width {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.teachers-hero-inner {
    max-width: 980px;
    text-align: center;
}

.teachers-eyebrow,
.teachers-section-label {
    display: inline-block;
    color: #b88a35;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.teachers-hero .teachers-eyebrow {
    color: #f0d28b;
}

.teachers-hero h1,
.teachers-content-width h2,
.teachers-cta h2 {
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.2;
}

.teachers-hero h1 {
    max-width: 900px;
    margin: 0 auto 22px;
    font-size: clamp(34px, 5vw, 54px);
    color: #ffffff;
}

.teachers-hero p {
    max-width: 850px;
    margin: 0 auto 16px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    line-height: 1.85;
}

.teachers-primary-btn,
.teachers-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.teachers-primary-btn {
    margin-top: 18px;
    background: #d5ad59;
    color: #173c30;
}

.teachers-primary-btn:hover,
.teachers-secondary-btn:hover {
    transform: translateY(-2px);
}

.teachers-intro {
    background: #ffffff;
}

.teachers-content-width h2 {
    color: #123c30;
    font-size: clamp(28px, 3.4vw, 40px);
    margin: 0 0 18px;
}

.teachers-intro p,
.teachers-heading p,
.teachers-approach-grid p,
.teachers-cta p {
    color: #454b48;
    font-size: 16px;
    line-height: 1.85;
}

.teachers-intro p {
    max-width: 1050px;
    margin: 0 0 14px;
}

.teachers-team-section {
    background: #f6f8f5;
    padding: 80px 7%;
}

.teachers-heading {
    max-width: 800px;
    margin: 0 auto 42px;
    text-align: center;
}

.teachers-heading p {
    margin: 0;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.teacher-profile-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e9e4;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(20, 54, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.teacher-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(20, 54, 42, 0.12);
}

.teacher-photo-wrap {
    width: 100%;
    height: 290px;
    overflow: hidden;
    background: #e8eee9;
}

.teacher-photo-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.teacher-profile-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 24px 26px;
}

.teacher-role {
    color: #9a7028;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}

.teacher-profile-content h3 {
    color: #123c30;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    line-height: 1.3;
    margin: 0 0 12px;
}

.teacher-short-bio,
.teacher-more p {
    color: #4b514e;
    font-size: 15px;
    line-height: 1.75;
}

.teacher-short-bio {
    margin: 0 0 14px;
}

.teacher-more {
    width: 100%;
    padding-top: 2px;
}

.teacher-more p {
    margin: 0 0 12px;
}

.teacher-read-more {
    margin-top: auto;
    padding: 10px 18px;
    border: 1px solid #0b6048;
    border-radius: 4px;
    background: #0b6048;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.teacher-read-more:hover {
    background: #ffffff;
    color: #0b6048;
}

.teacher-placeholder {
    border-style: dashed;
}

.teachers-approach-section {
    padding: 80px 7%;
    background: #ffffff;
}

.teachers-approach-section > .teachers-content-width > h2 {
    max-width: 800px;
    margin-bottom: 35px;
}

.teachers-approach-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.teachers-approach-grid article {
    padding: 26px;
    border-left: 4px solid #c49a48;
    border-radius: 5px;
    background: #f6f8f5;
}

.teachers-approach-grid h3 {
    color: #123c30;
    font-size: 19px;
    margin: 0 0 10px;
}

.teachers-approach-grid p {
    margin: 0;
}

.teachers-cta {
    padding: 78px 7%;
    background: #edf3ee;
    text-align: center;
}

.teachers-cta-inner {
    max-width: 850px;
    margin: 0 auto;
}

.teachers-cta-inner > span {
    display: inline-block;
    color: #9a7028;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 14px;
}

.teachers-cta h2 {
    color: #123c30;
    font-size: clamp(28px, 3.5vw, 40px);
    margin: 0 0 16px;
}

.teachers-cta p {
    margin: 0 auto;
    max-width: 760px;
}

.teachers-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 25px;
}

.teachers-cta .teachers-primary-btn {
    margin: 0;
    background: #0b6048;
    color: #ffffff;
}

.teachers-secondary-btn {
    margin-top: 0;
    border: 1px solid #0b6048;
    color: #0b6048;
    background: transparent;
}

@media (max-width: 950px) {
    .teachers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teachers-approach-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .teachers-hero {
        padding: 65px 6%;
    }

    .teachers-hero p {
        font-size: 15px;
        line-height: 1.75;
    }

    .teachers-team-section,
    .teachers-approach-section,
    .teachers-cta {
        padding: 58px 6%;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .teacher-photo-wrap {
        height: 280px;
    }

    .teacher-profile-content {
        padding: 22px 20px 24px;
    }

    .teachers-cta-buttons {
        flex-direction: column;
    }

    .teachers-cta-buttons a {
        width: 100%;
    }
}

/* Keyboard accessibility */

.teachers-primary-btn:focus-visible,
.teachers-secondary-btn:focus-visible,
.teacher-read-more:focus-visible {
    outline: 3px solid #c49a48;
    outline-offset: 4px;
}