html,
body {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
    position: relative;
    padding: 110px 0 90px;
    overflow: hidden;
    isolation: isolate;
    background: var(--navy);
}

@media (max-width: 767px) {
    .page-hero {
        padding: 80px 0 60px;
    }
}

@media (max-width: 575px) {
    .page-hero {
        padding: 60px 0 50px;
    }
}

/* ── BG IMAGE LAYER ──────────────────────────────────────── */
.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Dark gradient overlay on top of bg image */
.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(13, 27, 42, 0.96) 0%,
            rgba(13, 27, 42, 0.80) 55%,
            rgba(10, 21, 32, 0.88) 100%);
}

/* All decorative layers above bg image */
.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: .05;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2280%22 height=%2280%22%3E%3Cpath d=%22M40 0L80 40L40 80L0 40Z%22 fill=%22none%22 stroke=%22%23AE8225%22 stroke-width=%221%22/%3E%3Cpath d=%22M40 10L70 40L40 70L10 40Z%22 fill=%22none%22 stroke=%22%23AE8225%22 stroke-width=%221%22/%3E%3C/svg%3E');
}

.hero-glow {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at center, rgba(174, 130, 37, .12) 0%, transparent 65%);
}

.hero-line-left,
.hero-line-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    z-index: 3;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.hero-line-left {
    left: 0;
}

.hero-line-right {
    right: 0;
}

.hero-line-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    z-index: 3;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-arabic {
    font-family: 'Amiri', serif;
    font-size: 28px;
    color: rgba(174, 130, 37, .7);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-tag {
    display: inline-block;
    font-family: 'Amiri', serif;
    font-size: 12px;
    color: var(--gold-light);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 7px 28px;
    border: 1px solid rgba(174, 130, 37, .45);
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-sub {
    color: rgba(255, 255, 255, .55);
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.8;
}

/* ── PARTICLES ───────────────────────────────────────────── */
.particles-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 4;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    bottom: -10px;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }

    10% {
        opacity: .6;
    }

    90% {
        opacity: .15;
    }

    100% {
        opacity: 0;
        transform: translateY(-130px) scale(.3);
    }
}

/* ── HERO REVEAL ─────────────────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    animation: revUp .7s cubic-bezier(.25, .46, .45, .94) forwards;
}

@keyframes revUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.scroll-reveal {
    opacity: 0;
    transition: opacity .75s ease, transform .75s cubic-bezier(.25, .46, .45, .94);
}

.scroll-reveal[data-dir="left"] {
    transform: translateX(-45px);
}

.scroll-reveal[data-dir="right"] {
    transform: translateX(45px);
}

.scroll-reveal[data-dir="up"] {
    transform: translateY(40px);
}

.scroll-reveal.visible {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* ── COMMON ──────────────────────────────────────────────── */
.label-tag {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
}

.section-h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(24px, 3vw, 38px);
    color: var(--navy);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.gold-bar {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    margin-bottom: 24px;
}

.body-text {
    color: var(--text-mid);
    font-size: 15px;
    line-height: 1.95;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-gold-solid {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 32px;
    text-decoration: none;
    border: 2px solid var(--gold);
    transition: all .3s;
}

.btn-gold-solid:hover {
    background: transparent;
    color: var(--gold);
}

.btn-navy-outline {
    display: inline-block;
    background: transparent;
    color: var(--navy);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 32px;
    text-decoration: none;
    border: 2px solid rgba(13, 27, 42, .25);
    transition: all .3s;
}

.btn-navy-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-white-outline {
    display: inline-block;
    background: transparent;
    color: rgba(255, 255, 255, .8);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 32px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, .25);
    transition: all .3s;
}

.btn-white-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── SECTIONS ────────────────────────────────────────────── */
.intro-section {
    background: var(--off-white);
    padding: 85px 0 60px;
    border-bottom: 1px solid rgba(174, 130, 37, .1);
}

.courses-section {
    background: var(--white);
    padding: 80px 0 100px;
}

/* ── STAT BOXES ──────────────────────────────────────────── */
.stat-box {
    background: var(--white);
    border: 1px solid rgba(174, 130, 37, .15);
    padding: 26px 20px;
    text-align: center;
    transition: all .35s;
    position: relative;
    overflow: hidden;
}

.stat-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    transform: scaleX(0);
    transition: transform .35s;
}

.stat-box:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(13, 27, 42, .1);
}

.stat-box:hover::after {
    transform: scaleX(1);
}

.stat-icon {
    color: var(--gold);
    font-size: 1.9rem;
    display: block;
    margin-bottom: 12px;
}

.stat-num {
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 7px;
    font-family: 'Lato', sans-serif;
}

/* ── COURSE CARDS ────────────────────────────────────────── */
.course-card {
    background: var(--white);
    border: 1px solid rgba(174, 130, 37, .12);
    transition: all .4s cubic-bezier(.25, .46, .45, .94);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 20px rgba(13, 27, 42, .06);
    overflow: hidden;
    position: relative;
}

.course-card:hover {
    border-color: var(--gold);
    transform: translateY(-9px);
    box-shadow: 0 28px 55px rgba(13, 27, 42, .14);
}

.card-shimmer-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s ease;
    z-index: 3;
}

.course-card:hover .card-shimmer-line {
    transform: scaleX(1);
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: clamp(160px, 22vw, 220px);
    /* ✅ responsive: chhota screen pe 160px, desktop pe 220px */
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

/* ✅ Mobile: aur chhota */
@media (max-width: 575px) {
    .card-img-wrap img {
        height: 200px;
    }
}

.course-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.card-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0);
    transition: background .4s;
}

.course-card:hover .card-img-overlay {
    background: rgba(13, 27, 42, .22);
}

.course-badge {
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    z-index: 2;
}

.course-number {
    position: absolute;
    bottom: 12px;
    left: 16px;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    color: rgba(255, 255, 255, .4);
    letter-spacing: 2px;
    z-index: 2;
}

.course-icon-circle {
    position: absolute;
    bottom: -22px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: var(--navy);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(13, 27, 42, .35);
    z-index: 2;
    transition: all .35s;
}

.course-card:hover .course-icon-circle {
    background: var(--gold);
    color: var(--white);
    transform: rotate(15deg) scale(1.1);
}

.card-body-inner {
    padding: 34px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(174, 130, 37, .1);
}

.card-meta span {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta i {
    color: var(--gold);
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
    transition: color .3s;
}

.course-card:hover .card-title {
    color: var(--gold-dark);
}

.card-desc {
    color: var(--text-mid);
    font-size: 13px;
    line-height: 1.85;
    margin-bottom: 20px;
    flex: 1;
}

.card-features {
    background: var(--off-white);
    padding: 14px 16px;
    margin-bottom: 20px;
    border-left: 3px solid var(--gold);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    /* FIX: was 1fr 1fr */
    gap: 7px;
    transition: border-color .3s;
    overflow: hidden;
    /* extra safety */
}

.course-card:hover .card-features {
    border-left-color: var(--gold-dark);
}

.feature-item {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature-item i {
    color: var(--gold);
    font-size: 10px;
    flex-shrink: 0;
}

.card-enroll-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 13px 18px;
    border: 1px solid rgba(174, 130, 37, .2);
    transition: all .3s;
}

.card-enroll-btn i {
    transition: transform .3s;
}

.course-card:hover .card-enroll-btn {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.course-card:hover .card-enroll-btn i {
    transform: translateX(5px);
}

/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
    background: var(--navy);
    padding: 85px 0;
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--gold);
}

.cta-pattern {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2280%22 height=%2280%22%3E%3Cpath d=%22M40 0L80 40L40 80L0 40Z%22 fill=%22none%22 stroke=%22%23AE8225%22 stroke-width=%221%22/%3E%3C/svg%3E');
}

.cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(174, 130, 37, .08) 0%, transparent 65%);
}

.cta-arabic {
    font-family: 'Amiri', serif;
    font-size: 20px;
    color: var(--gold-light);
    margin-bottom: 12px;
    opacity: .8;
}

.cta-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-desc {
    color: rgba(255, 255, 255, .55);
    font-size: 15px;
    max-width: 500px;
    line-height: 1.85;
    margin-bottom: 0;
}
