/* ===== Instructors Page — Custom Styles ===== */

:root {
    --green-dark: #1a3a2a;
    --green-mid: #2a5a3e;
    --green-light: #3d7a57;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --gold-pale: #f7f0dc;
    --cream: #f8f4ed;
    --text-main: #1a2e22;
    --text-muted: #5a7262;
    --white: #ffffff;
}

/* ── En-tête de page (Hero) ── */
.page-header {
    position: relative;
    background-image: url('../images/silhouette-dome-mosques-on-twilight-with-crescent-moon-colorful-night-sky-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 20px;
    text-align: center;
    color: #fff;
    margin-top: 0;
    margin-bottom: 50px;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: transparent;
    background-image: linear-gradient(180deg, #0ba39e 0%, #aa8730 100%);
    opacity: 0.5;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header .breadcrumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    background: transparent;
    padding: 0;
    font-weight: 600;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-header .separator {
    color: #aa8730;
    font-weight: 800;
    margin: 0 4px;
}

.page-header h1 {
    font-family: 'Almarai', sans-serif !important;
    font-size: clamp(48px, 6vw, 70px);
    font-weight: 800;
    color: #fff !important;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

.instructors-main {
    position: relative;
    /* padding: 80px 20px; */
    background-color: #ffffff;
    direction: rtl;
    z-index: 1;
}

.instructors-main__inner {
    /* max-width: 1200px;
    margin: 0 auto; */
}

.instructors-intro {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-inline: auto;
}

.instructors-intro .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.instructors-intro .eyebrow::after {
    content: '';
    display: block;
    width: 35px;
    height: 2px;
    background-color: var(--gold);
}

.instructors-intro .section-title {
    color: var(--green-dark);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.1;
}

.instructors-intro .gold-line {
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    border-radius: 2px;
    margin: 0 auto 30px;
}

.instructors-intro p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Instructor Card Layout */
.instructor-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 0;
    background-color: #f2f2f2;
    padding: 80px 40px;
    border: none;
    box-shadow: none;
    z-index: 1;
}

.instructor-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/5540822.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.07;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    z-index: 0;
    pointer-events: none;
}

.instructor-card:nth-child(odd) {
    flex-direction: row-reverse;
    background-color: #ffffff;
}

.instructor-card__image {
    flex: 1;
    min-width: 320px;
    max-width: 55%;
    border-radius: 0;
    background: f2f2f2;
    padding: 12px;
    border: 2px solid #7A7A7A45;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.image-cropper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.instructor-card__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    transform: scale(1.1);
    transform-origin: top left;
}

.instructor-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.instructor-role {
    display: inline-block;
    color: #b38b36;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    background: transparent;
    padding: 0;
    border: none;
}

.instructor-name {
    color: #0ba39e;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
}

.instructor-bio {
    text-align: right;
    width: 100%;
}

.instructor-bio p {
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 16px;
}

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

/* Responsive */
@media (max-width: 991px) {

    .instructor-card,
    .instructor-card:nth-child(even) {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }

    .instructor-card__image {
        width: 100%;
    }

    .instructors-intro h2 {
        font-size: 28px;
    }
}