:root {
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --bg: #0d3d2b;
    --bg-card: #0f4a33;
    --bg-card-alt: #0b3424;
    --bg-banner-sec: #0a2e20;
    --accent: #c9a84c;
    --accent-soft: rgba(201, 168, 76, 0.12);
    --accent-mid: rgba(201, 168, 76, 0.25);
    --text-primary: #f0ece0;
    --text-secondary: #b8c9b8;
    --text-muted: #7a9e8a;
    --border: rgba(201, 168, 76, 0.18);
    --border-soft: rgba(255, 255, 255, 0.06);
    --divider: rgba(201, 168, 76, 0.2);
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
    --tag-bg: rgba(201, 168, 76, 0.15);
    --tag-text: #c9a84c;
    --toggle-bg: rgba(201, 168, 76, 0.2);
    --img-overlay: rgba(13, 61, 43, 0.45);
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.75;
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.75rem;
    z-index: 100;
    background: var(--toggle-bg);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.45rem 1rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle .sun {
    display: none;
}

.theme-toggle .moon {
    display: inline;
}

[data-theme="light"] .theme-toggle .sun {
    display: inline;
}

[data-theme="light"] .theme-toggle .moon {
    display: none;
}

/* ── HEADER ── */
banner-sec {
    background: var(--bg-banner-sec);
    position: relative;
    overflow: hidden;
    padding: 5.5rem 2rem 4rem;
    text-align: center;
}

[data-theme="light"] banner-sec {
    color: #f0ece0;
}

banner-sec::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(201, 168, 76, 0.12) 0%, transparent 70%), repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255, 255, 255, 0.02) 60px), repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255, 255, 255, 0.02) 60px);
    pointer-events: none;
}

banner-sec::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.5), transparent);
}

.banner-sec-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 0px;
    opacity: 0.9;
}

banner-sec h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 300;
    color: #f0ece0;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 0px;
}

banner-sec h1 em {
    font-style: italic;
    color: #c9a84c;
}

.banner-sec-tagline {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-style: italic;
    color: rgba(240, 236, 224, 0.65);
    max-width: 600px;
    margin: 0 auto 0.1rem;
    line-height: 1.6;
}

.journey-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0rem;
}

.journey-step {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: rgba(240, 236, 224, 0.7);
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 2rem;
    letter-spacing: 0.02em;
}

.journey-arrow {
    color: #c9a84c;
    font-size: 1.1rem;
    opacity: 0.6;
}

/* ── HERO IMAGE STRIP ── */
.hero-images {
    display: grid;
    grid-template-columns: 1fr;
    /* height: 320px; */
    overflow: hidden;
}

.hero-img {
    position: relative;
    overflow: hidden;
}

.hero-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
    filter: saturate(0.75);
}

.hero-img:hover img {
    transform: scale(1.05);
    filter: saturate(0.9);
}

.hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: var(--img-overlay); */
    pointer-events: none;
}

.hero-img-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(240, 236, 224, 0.8);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ── INTRO SECTION ── */
.intro-section {
    max-width: 1020px;
    margin: 0 auto;
    padding: 20px 15px 0;
    text-align: center;
}

.intro-section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.intro-section p strong {
    color: var(--accent);
    font-weight: 500;
}

.certification-tracks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin: 0.9rem 0;
}

.track-badge {
    background: var(--accent-soft);
    border: 1px solid var(--border);
    padding: 0.55rem 1.3rem;
    border-radius: 2rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--accent);
    letter-spacing: 0.01em;
    transition: all var(--transition);
}

.track-badge:hover {
    background: var(--accent-mid);
    transform: translateY(-2px);
}

/* ── SECTION WRAPPER ── */
.programs-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── PROGRAM CARD ── */
.program-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), border-color var(--transition);
    animation: fadeUp 0.6s ease both;
}

.program-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-card:nth-child(2) {
    animation-delay: 0.1s;
}

.program-card:nth-child(3) {
    animation-delay: 0.2s;
}

.program-card:nth-child(4) {
    animation-delay: 0.3s;
}

.program-card:nth-child(5) {
    animation-delay: 0.4s;
}

.program-card:nth-child(6) {
    animation-delay: 0.5s;
}

.card-banner-sec {
    background: var(--bg-card-alt);
    border-bottom: 1px solid var(--border-soft);
    padding: 10px 30px;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.card-banner-sec::before {
    content: '';
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none;
}

.program-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    color: var(--accent);
    opacity: 0.35;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.banner-sec-text {
    flex: 1;
}

.grade-tag {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--tag-text);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    /* margin-bottom: 0.7rem; */
    border: 1px solid var(--border);
}

.card-banner-sec h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.card-banner-sec h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.card-body {
    padding: 10px 30px;
}

/* Intro paragraph in card */
.card-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
    line-height: 1.85;
}

/* Identity questions block */
.identity-questions {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 10px 20px;
    margin-bottom: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.identity-questions li {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--accent);
    letter-spacing: 0.01em;
}

.identity-questions li::before {
    content: '"';
    margin-right: 0.1rem;
    opacity: 0.6;
}

.identity-questions li::after {
    content: '"';
    margin-left: 0.1rem;
    opacity: 0.6;
}

.gap-quote {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 10px 20px;
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.gap-quote span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--accent);
}

/* Section label */
.section-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 15px 0 5px;
}

/* Core areas grid */
.core-areas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 0.3rem;
    margin-bottom: 10px;
}

.core-area-item {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-soft);
    border-radius: 0.85rem;
    padding: 10px 20px;
    transition: border-color var(--transition), transform var(--transition);
}

.core-area-item:hover {
    border-color: var(--border);
    transform: translateY(-2px);
}

.core-area-item h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.core-area-item h4::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
    flex-shrink: 0;
}

.core-area-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Arabic sub-areas */
.arabic-sub-area {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-soft);
    border-radius: 0.85rem;
    padding: 1.0rem 1.5rem;
    margin-bottom: 0.5rem;
}

.arabic-sub-area h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.arabic-sub-area p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.bullet-list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.65;
}

.bullet-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.5;
    font-size: 0.75rem;
}

/* Outcome */
.outcome-section {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 10px 30px;
    margin-bottom: 10px;
}

.outcome-section h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.outcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 0.6rem;
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.outcome-item::before {
    content: '✦';
    color: var(--accent);
    font-size: 0.6rem;
    margin-top: 0.35rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.stage-summary {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 0;
    padding-bottom: 5px;
    margin: 0;
}
/* CTA */
.cta-row {
    display: flex;
    justify-content: center;
    padding-top: 0px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent);
    color: #0a2e20;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

[data-theme="light"] .cta-btn {
    color: #ffffff;
    background: #0d3d2b;
    box-shadow: 0 4px 20px rgba(13, 61, 43, 0.2);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.35);
    opacity: 0.92;
    color: #0a2e20;

}

[data-theme="light"] .cta-btn:hover {
    box-shadow: 0 8px 28px rgba(13, 61, 43, 0.3);
}

.cta-btn svg {
    width: 14px;
    height: 14px;
}

/* ── PROGRAMME FORMAT (Arabic) ── */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.format-item {
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.5;
}

.format-item::before {
    content: '○';
    color: var(--accent);
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* ── DIVIDER ── */
.program-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 15px;
    padding: 0 1rem;
    opacity: 0.4;
}

.program-divider::before,
.program-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--divider);
}

.program-divider span {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.2em;
}

/* ── INSET IMAGE ── */
.inset-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 0.75rem;
    margin: 15px 0;
    position: relative;
}

.inset-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: saturate(0.8);
    transition: filter 0.5s;
}

.inset-image:hover img {
    filter: saturate(1);
}

.inset-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--img-overlay) 0%, transparent 60%);
    pointer-events: none;
}

/* ── EVOLVING CURRICULUM ── */
.evolving-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px 10px;
}

.evolving-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.evolving-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.evolving-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 5px;
}
.evolving-card p {
    color: var(--text-secondary);
}

.contact-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.1rem;
    transition: opacity var(--transition);
    letter-spacing: 0.01em;
}

.contact-line:hover {
    opacity: 0.75;
}

/* ── FINAL QUOTE ── */
.final-quote {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 30px 10px;
    text-align: center;
}

.final-quote blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.55rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.2;
    border: none;
}

.final-quote blockquote strong {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
}

.final-deco {
    width: 50px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
    margin: 1.75rem auto 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero-images {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-img {
        height: 200px;
    }

    .hero-img:nth-child(2),
    .hero-img:nth-child(3) {
        display: none;
    }

    .card-banner-sec {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.75rem;
    }

    .program-number {
        font-size: 2.5rem;
    }

    .card-body {
        padding: 1.75rem;
    }

    .core-areas {
        grid-template-columns: 1fr;
    }

    .evolving-card {
        padding: 1.75rem;
    }

    .inset-image {
        display: none;
    }
}