/* Home page (index.php): styles only this page uses. Shared look: Styles/site.css */

/* ─── ISLAMIC PATTERN OVERLAY ─── */

body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image:
                radial-gradient(circle at 20% 20%, rgba(201, 168, 76, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 14, 44, 0.04) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }

/* ─── TICKER / NOTICE BAR ─── */

.ticker-bar {
            background: linear-gradient(90deg, var(--primary-lighter), var(--primary-light));
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            overflow: hidden;
        }

.ticker-label {
            background: var(--gold);
            color: var(--primary);
            padding: 10px 18px;
            font-weight: 700;
            font-size: 12px;
            letter-spacing: 1px;
            text-transform: uppercase;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

.ticker-content {
            overflow: hidden;
            flex: 1;
            padding: 10px 0;
        }

.ticker-scroll {
            display: flex;
            animation: ticker 30s linear infinite;
            white-space: nowrap;
        }

.ticker-scroll span {
            color: rgba(255, 255, 255, 0.85);
            font-size: 13px;
            padding: 0 40px;
        }

.ticker-scroll span::before {
            content: '✦';
            color: var(--gold);
            margin-right: 12px;
        }

@keyframes ticker {
            from {
                transform: translateX(0);
            }

            to {
                transform: translateX(-50%);
            }
        }

.ticker-bar:hover .ticker-scroll {
            animation-play-state: paused;
        }

/* ─── HERO ─── */

.hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: var(--primary);
        }

.hero-bg {
            position: absolute;
            inset: 0;
            background-image: url('../../1/bsm-gate.webp');
            background-size: cover;
            background-position: center;
            opacity: 0.18;
            transform: scale(1.05);
            animation: heroBgZoom 20s ease-in-out infinite alternate;
        }

@keyframes heroBgZoom {
            from {
                transform: scale(1.05);
            }

            to {
                transform: scale(1.12);
            }
        }

.hero-pattern {
            position: absolute;
            inset: 0;
            background-image:
                repeating-linear-gradient(45deg, rgba(201, 168, 76, 0.03) 0, rgba(201, 168, 76, 0.03) 1px, transparent 1px, transparent 60px),
                repeating-linear-gradient(-45deg, rgba(201, 168, 76, 0.03) 0, rgba(201, 168, 76, 0.03) 1px, transparent 1px, transparent 60px);
        }

.hero-ornament {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 600px;
            height: 600px;
            border: 1px solid rgba(201, 168, 76, 0.08);
            border-radius: 50%;
        }

.hero-ornament::before {
            content: '';
            position: absolute;
            inset: 30px;
            border: 1px solid rgba(201, 168, 76, 0.06);
            border-radius: 50%;
        }

.hero-ornament::after {
            content: '';
            position: absolute;
            inset: 60px;
            border: 1px solid rgba(201, 168, 76, 0.04);
            border-radius: 50%;
        }

.hero-content {
    text-align: center;
    padding: 60px 24px;
    max-width: 900px;
}

.hero-bismillah {
            font-family: var(--font-ar);
            font-size: clamp(22px, 4vw, 36px);
            color: var(--gold);
            margin-bottom: 16px;
            opacity: 0;
            animation: fadeUp 0.9s ease forwards 0.2s;
        }

.hero-divider-line {
    max-width: 120px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-title-ar {
            font-family: var(--font-ar);
            font-size: clamp(28px, 5.5vw, 58px);
            color: var(--white);
            line-height: 1.4;
            margin-bottom: 12px;
            animation: riseIn .6s ease-out both;
            text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
        }

.hero-title-bn {
            font-size: clamp(20px, 3.5vw, 38px);
            color: var(--gold-light);
            font-weight: 600;
            margin-bottom: 12px;
            animation: riseIn .6s ease-out both;
        }

.hero-established {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.6);
            letter-spacing: 2px;
            margin-bottom: 20px;
            animation: riseIn .6s ease-out both;
        }

.hero-tagline {
            font-size: clamp(13px, 2vw, 16px);
            color: rgba(255, 255, 255, 0.8);
            max-width: 600px;
            margin: 0 auto 36px;
            line-height: 1.8;
            animation: riseIn .6s ease-out both;
        }

.hero-cta-group {
            display: flex;
            gap: 14px;
            justify-content: center;
            flex-wrap: wrap;
            animation: riseIn .6s ease-out both;
        }

.btn-primary {
            background: var(--gold);
            color: var(--primary);
            padding: 13px 32px;
            border-radius: 3px;
            font-weight: 700;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.3s;
            border: 2px solid var(--gold);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

.btn-primary:hover {
            background: var(--gold-light);
            border-color: var(--gold-light);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
        }

.btn-outline {
            background: transparent;
            color: var(--white);
            padding: 13px 32px;
            border-radius: 3px;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.3s;
            border: 2px solid rgba(255, 255, 255, 0.4);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

.btn-outline:hover {
            border-color: var(--gold);
            color: var(--gold-light);
            transform: translateY(-2px);
        }

.hero-scroll-indicator {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            color: rgba(255, 255, 255, 0.4);
            font-size: 11px;
            letter-spacing: 2px;
            opacity: 0;
            animation: fadeUp 0.9s ease forwards 1.8s;
        }

.scroll-mouse {
            width: 22px;
            height: 36px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 11px;
            display: flex;
            justify-content: center;
            padding-top: 6px;
        }

.scroll-mouse::before {
            content: '';
            width: 3px;
            height: 6px;
            background: var(--gold);
            border-radius: 2px;
            animation: scrollDot 2s infinite;
        }

@keyframes scrollDot {

            0%,
            100% {
                opacity: 1;
                transform: translateY(0);
            }

            50% {
                opacity: 0;
                transform: translateY(8px);
            }
        }

@keyframes riseIn {
            from { transform: translateY(8px); }
            to { transform: none; }
        }

@media (prefers-reduced-motion: reduce) {
    .hero *, .hero *::before, .hero *::after { animation: none !important; opacity: 1 !important; }
}

/* ─── SECTION WRAPPER ─── */

.section {
            max-width: 1400px;
            margin: 0 auto;
            padding: 80px 24px;
        }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
            display: inline-block;
            background: rgba(201, 168, 76, 0.12);
            border: 1px solid var(--border);
            color: var(--gold-ink);
            font-size: 11px;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding: 5px 16px;
            border-radius: 20px;
            margin-bottom: 14px;
        }

.section-title {
            font-family: var(--font-display);
            font-size: clamp(24px, 4vw, 40px);
            color: var(--primary);
            margin-bottom: 16px;
        }

.section-title-ar {
            font-family: var(--font-ar);
            font-size: clamp(20px, 3vw, 32px);
            color: var(--gold);
            margin-bottom: 12px;
            direction: rtl;
        }

.ornament-divider {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin: 16px 0 0;
        }

.ornament-line {
            width: 60px;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--gold));
        }

/* ─── NOTICE BOARD ─── */

.notice-section-outer {
            background: var(--primary);
            padding: 70px 0;
            position: relative;
            overflow: hidden;
        }

.notice-section-outer::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 500px;
            height: 500px;
            border: 1px solid rgba(201, 168, 76, 0.06);
            border-radius: 50%;
        }

.notice-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
        }

.notice-grid {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 40px;
            align-items: start;
        }

.notice-sidebar {
            background: rgba(201, 168, 76, 0.08);
            border: 1px solid var(--border);
            border-radius: 4px;
            padding: 32px;
        }

.notice-sidebar h3 {
            font-family: var(--font-ar);
            font-size: 26px;
            color: var(--gold);
            margin-bottom: 6px;
            direction: rtl;
        }

.notice-sidebar h4 {
            font-size: 15px;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 20px;
        }

.notice-sidebar p {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.55);
            line-height: 1.8;
        }

.notice-sidebar .all-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 24px;
            color: var(--gold);
            text-decoration: none;
            font-size: 13px;
            border: 1px solid var(--border);
            padding: 10px 20px;
            border-radius: 3px;
            transition: all 0.3s;
        }

.notice-sidebar .all-btn:hover {
            background: var(--gold);
            color: var(--primary);
        }

.notice-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

.notice-item {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(201, 168, 76, 0.12);
            border-left: 3px solid var(--gold);
            border-radius: 3px;
            padding: 18px 22px;
            text-decoration: none;
            display: flex;
            align-items: flex-start;
            gap: 16px;
            transition: all 0.3s;
            cursor: pointer;
            position: relative;
        }

a.notice-item { color: inherit; }
a.notice-item:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.notice-item:hover {
            background: rgba(201, 168, 76, 0.08);
            border-left-color: var(--gold-light);
            transform: translateX(4px);
        }

.notice-date-badge {
            background: rgba(201, 168, 76, 0.15);
            border: 1px solid var(--border);
            border-radius: 3px;
            padding: 8px 12px;
            text-align: center;
            flex-shrink: 0;
            min-width: 56px;
        }

.notice-date-badge .day {
            font-size: 20px;
            font-weight: 700;
            color: var(--gold);
            line-height: 1;
        }

.notice-date-badge .month {
            font-size: 10px;
            color: var(--muted-on-navy);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

.notice-info {
            flex: 1;
        }

.notice-title {
            font-size: 14px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 6px;
            line-height: 1.5;
        }

.notice-title-ar {
            font-family: var(--font-ar);
            font-size: 15px;
            color: rgba(255, 255, 255, 0.9);
            direction: rtl;
            display: block;
        }

.notice-desc {
            font-size: 12px;
            color: var(--muted-on-navy);
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

/* "expired" tag on a notice: its own item in the row, so a long title never runs under it */
.notice-cat {
            flex-shrink: 0;
            white-space: nowrap;
            font-size: 12px;
            color: var(--gold-light);
            background: rgba(201, 168, 76, 0.1);
            border: 1px solid var(--border);
            padding: 2px 8px;
            border-radius: 10px;
        }

.notice-arrow {
            color: var(--gold);
            font-size: 12px;
            align-self: center;
            transition: transform 0.3s;
        }

.notice-item:hover .notice-arrow {
            transform: translateX(4px);
        }

.notice-empty {
            color: var(--muted-on-navy);
            font-size: 14px;
            text-align: center;
            padding: 40px;
        }

/* ─── NOTICE MODAL ─── */

/* ─── ABOUT / INTRO CARDS ─── */

.about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
            align-items: start;
        }

.about-image-wrap {
            position: relative;
            border-radius: 4px;
            overflow: hidden;
        }

.about-image-wrap::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, transparent 60%, rgba(0, 14, 44, 0.7));
            z-index: 1;
        }

.about-image-wrap img {
            width: 100%;
            height: 440px;
            object-fit: cover;
            display: block;
            transition: transform 0.6s;
        }

.about-image-wrap:hover img {
            transform: scale(1.04);
        }

.about-image-badge {
            position: absolute;
            bottom: 24px;
            left: 24px;
            z-index: 2;
            background: var(--gold);
            color: var(--primary);
            padding: 10px 20px;
            font-weight: 700;
            font-size: 13px;
            border-radius: 3px;
        }

.about-content {
            padding: 10px 0;
        }

.arabic-block {
            background: rgba(0, 14, 44, 0.06);
            border: 1px solid var(--border);
            border-right: 3px solid var(--gold);
            border-radius: 3px;
            padding: 22px 24px;
            margin-bottom: 24px;
            direction: rtl;
        }

.arabic-block p {
            font-family: var(--font-ar);
            font-size: 18px;
            color: var(--text-mid);
            line-height: 2;
        }

.about-text {
            font-size: 15px;
            color: var(--text-mid);
            line-height: 2;
            margin-bottom: 20px;
        }

.goals-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin: 24px 0;
        }

.goal-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 13px;
            color: var(--text-mid);
        }

.goal-item i {
            color: var(--gold);
            margin-top: 3px;
            flex-shrink: 0;
        }

/* ─── STATS ─── */

.stats-section {
            background: var(--primary);
            padding: 70px 0;
            position: relative;
            overflow: hidden;
        }

.stats-section::before {
            content: '';
            position: absolute;
            bottom: -100px;
            left: -100px;
            width: 400px;
            height: 400px;
            border: 1px solid rgba(201, 168, 76, 0.05);
            border-radius: 50%;
        }

.stats-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
        }

.stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
        }

.stat-card {
            text-align: center;
            padding: 40px 24px;
            border: 1px solid var(--border);
            border-top: 2px solid var(--gold);
            border-radius: 3px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s;
        }

.stat-card:hover {
            background: rgba(201, 168, 76, 0.06);
            transform: translateY(-4px);
        }

.stat-card-icon {
            font-size: 28px;
            color: var(--gold);
            margin-bottom: 16px;
            display: block;
        }

.stat-num {
            font-family: var(--font-display);
            font-size: 54px;
            font-weight: 700;
            color: var(--white);
            line-height: 1;
            margin-bottom: 10px;
            display: block;
        }

.stat-label {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.5);
            letter-spacing: 1px;
        }

.stat-label-ar {
            font-family: var(--font-ar);
            font-size: 15px;
            direction: rtl;
        }

/* ─── ADMISSION / ACHIEVEMENT CARDS ─── */

.cards-section {
            background: #f5f0e6;
            padding: 80px 0;
        }

.two-col-grid {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
        }

.feature-card {
            background: var(--white);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid rgba(0, 14, 44, 0.08);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        }

/* the cards are not links, so they do not lift on hover */
.feature-card-img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            display: block;
        }

.feature-card-body {
            padding: 28px;
        }

/* one font rule for every Arabic line in a card (the card's own fonts would otherwise win); icons keep theirs */
.feature-card .lang-ar:not(i) { font-family: var(--font-ar); }

.badge-pill {
            display: inline-block;
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 14px;
        }

.badge-new {
            background: rgba(0, 14, 44, 0.08);
            color: var(--primary);
        }

.badge-success {
            background: rgba(201, 168, 76, 0.15);
            color: var(--gold-ink);
        }

.feature-card-title {
            font-family: var(--font-display);
            font-size: 20px;
            color: var(--primary);
            margin-bottom: 12px;
            line-height: 1.45;
        }

.feature-card-title .lang-ar { font-size: 22px; }

.feature-card-text {
            font-size: 15px;
            color: var(--text-mid);
            line-height: 1.9;
            margin-bottom: 20px;
        }

.feature-card-text.lang-ar { font-size: 17px; line-height: 2; }

.highlight-info {
            background: var(--cream);
            border-left: 3px solid var(--gold);
            padding: 12px 16px;
            font-size: 14px;
            color: var(--text-mid);
            border-radius: 2px;
            margin-bottom: 20px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

.highlight-info i {
            color: var(--gold-ink);
            margin-top: 4px;
        }

/* achievements: quiet facts in one row, so the card title stays the loudest thing */
.achievement-row {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            list-style: none;
        }

.achievement-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            background: var(--cream);
            border: 1px solid var(--line);
            border-radius: 999px;
            color: var(--primary);
            font-size: 14px;
            font-weight: 600;
            line-height: 1.4;
        }

.achievement-badge i {
            color: var(--gold-ink);
            font-size: 15px;
        }

/* ─── INTRODUCTION SECTION ─── */

.intro-section {
            max-width: 1400px;
            margin: 0 auto;
            padding: 80px 24px;
        }

.intro-content {
            max-width: 860px;
            margin: 0 auto;
            text-align: center;
        }

.quran-verse {
            background: var(--primary);
            border: 1px solid var(--border);
            border-radius: 4px;
            padding: 36px 40px;
            margin: 32px 0;
            direction: rtl;
            position: relative;
        }

.quran-verse::before {
            content: '﴾';
            position: absolute;
            top: 12px;
            right: 16px;
            font-family: var(--font-ar);
            font-size: 40px;
            color: rgba(201, 168, 76, 0.2);
            line-height: 1;
        }

.quran-verse p {
            font-family: var(--font-ar);
            font-size: 20px;
            color: var(--gold-light);
            line-height: 2;
        }

.intro-text {
            font-size: 15px;
            color: var(--text-mid);
            line-height: 2.2;
            margin-bottom: 20px;
        }

.timeline-section {
            background: var(--primary);
            padding: 80px 24px;
            position: relative;
            overflow: hidden;
        }

.timeline-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 10% 50%, rgba(201,168,76,0.06) 0%, transparent 60%),
                radial-gradient(circle at 90% 50%, rgba(201,168,76,0.04) 0%, transparent 60%);
            pointer-events: none;
        }

.timeline-inner {
            max-width: 1100px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

/* Section header reuses existing .section-tag/.section-title classes */

.timeline-header {
            text-align: center;
            margin-bottom: 60px;
        }

.timeline-header .section-tag {
            display: inline-block;
            margin-bottom: 12px;
        }

/* tags on navy keep the bright gold; on cream they use --gold-ink */
.notice-section-outer .section-tag,
.timeline-header .section-tag { color: var(--gold); }

.timeline-header .section-title {
            color: var(--white);
            font-size: clamp(22px, 4vw, 34px);
        }

.timeline-header .section-title-ar {
            color: var(--gold-light);
        }

.timeline-header p {
            color: rgba(255,255,255,0.55);
            font-size: 14px;
            margin-top: 10px;
        }

/* ── Central spine ── */

.timeline-track {
            position: relative;
        }

.timeline-track::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom,
                transparent 0%,
                var(--gold) 8%,
                var(--gold) 92%,
                transparent 100%);
            transform: translateX(-50%);
        }

/* ── Individual entry ── */

.tl-entry {
            display: flex;
            align-items: flex-start;
            gap: 40px;
            margin-bottom: 52px;
            position: relative;
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

.tl-entry.tl-visible {
            opacity: 1;
            transform: translateY(0);
        }

/* Alternate left/right */

.tl-entry.tl-left {
            flex-direction: row;
            justify-content: flex-end;
        }

.tl-entry.tl-right {
            flex-direction: row-reverse;
            justify-content: flex-end;
        }

/* ── Year badge (centre) ── */

.tl-year {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            background: var(--gold);
            color: var(--primary);
            font-family: var(--font-display);
            font-weight: 700;
            font-size: 15px;
            padding: 6px 16px;
            border-radius: 30px;
            white-space: nowrap;
            z-index: 2;
            box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
            top: 8px;
        }

/* ── Content card ── */

.tl-card {
            width: calc(50% - 60px);
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(201,168,76,0.2);
            border-radius: 8px;
            padding: 22px 24px;
            position: relative;
            transition: background 0.3s, border-color 0.3s;
        }

.tl-card:hover {
            background: rgba(201,168,76,0.07);
            border-color: rgba(201,168,76,0.45);
        }

/* Arrow pointing to spine */

.tl-entry.tl-left .tl-card::after {
            content: '';
            position: absolute;
            left: -10px;
            top: 16px;
            border: 10px solid transparent;
            border-left-color: rgba(201,168,76,0.2);
        }

.tl-entry.tl-right .tl-card::after {
            content: '';
            position: absolute;
            right: -10px;
            top: 16px;
            border: 10px solid transparent;
            border-right-color: rgba(201,168,76,0.2);
        }

.tl-card-icon {
            width: 36px;
            height: 36px;
            background: rgba(201,168,76,0.12);
            border: 1px solid rgba(201,168,76,0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gold);
            font-size: 14px;
            margin-bottom: 12px;
        }

.tl-card .lang-bn {
            display: block;
            color: var(--white);
            font-size: 15px;
            font-weight: 600;
            line-height: 1.5;
            margin-bottom: 6px;
        }

.tl-card .lang-ar {
            display: block;
            color: var(--gold-light);
            font-family: var(--font-ar);
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 8px;
        }

.tl-card-desc {
            color: rgba(255,255,255,0.55);
            font-size: 12.5px;
            line-height: 1.7;
            border-top: 1px solid rgba(201,168,76,0.1);
            padding-top: 8px;
            margin-top: 4px;
        }

.tl-card-desc .lang-ar {
            color: rgba(255,255,255,0.4);
            font-family: var(--font-ar);
            font-size: 12px;
        }

/* ── Dot on spine ── */

.tl-dot {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: 14px;
            width: 12px;
            height: 12px;
            background: var(--gold);
            border-radius: 50%;
            border: 3px solid var(--primary);
            box-shadow: 0 0 0 3px rgba(201,168,76,0.35);
            z-index: 2;
        }

/* ── Responsive: single column on mobile ── */

@media (max-width: 900px) {
    .timeline-track::before {
                left: 20px;
            }

    .tl-entry,
            .tl-entry.tl-left,
            .tl-entry.tl-right {
                flex-direction: column;
                padding-left: 52px;
                gap: 12px;
            }

    .tl-card {
                width: 100%;
            }

    .tl-card::after,
            .tl-entry.tl-left .tl-card::after,
            .tl-entry.tl-right .tl-card::after {
                display: none;
            }

    .tl-year {
                left: 0;
                transform: none;
                font-size: 13px;
                padding: 4px 12px;
                top: 6px;
                position: relative;
                display: inline-block;
                margin-bottom: 6px;
            }

    .tl-dot {
                left: 20px;
                top: 50px;
            }

    .timeline-track::before {
                left: 20px;
            }
}

@media (max-width: 600px) {
    .timeline-section {
                padding: 50px 16px;
            }
}

/* ─── APP DOWNLOAD SECTION ─── */

.app-section {
            background: var(--primary);
            padding: 70px 0;
            position: relative;
            overflow: hidden;
        }

.app-section::before {
            content: '';
            position: absolute;
            top: -80px;
            right: -80px;
            width: 380px;
            height: 380px;
            border: 1px solid rgba(201, 168, 76, 0.06);
            border-radius: 50%;
        }

.app-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 40px;
            flex-wrap: wrap;
        }

.app-text {
            flex: 1;
            min-width: 260px;
        }

.app-tag {
            display: inline-block;
            background: rgba(201, 168, 76, 0.12);
            border: 1px solid var(--border);
            color: var(--gold);
            font-size: 11px;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding: 5px 16px;
            border-radius: 20px;
            margin-bottom: 14px;
        }

.app-title-ar {
            font-family: var(--font-ar);
            font-size: 28px;
            color: var(--gold);
            margin-bottom: 8px;
            direction: rtl;
        }

.app-title-bn {
            font-family: var(--font-display);
            font-size: clamp(22px, 3.5vw, 36px);
            color: var(--white);
            margin-bottom: 14px;
            line-height: 1.4;
        }

.app-desc {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.9;
            margin-bottom: 28px;
            max-width: 500px;
        }

.app-desc.ar {
            font-family: var(--font-ar);
            font-size: 16px;
            direction: rtl;
        }

.playstore-btn {
            display: inline-flex;
            align-items: center;
            gap: 14px;
            background: var(--white);
            color: var(--primary);
            text-decoration: none;
            padding: 14px 24px;
            border-radius: 4px;
            transition: all 0.3s;
            border: 2px solid transparent;
        }

.playstore-btn:hover {
            background: var(--gold);
            color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(201, 168, 76, 0.3);
        }

.playstore-btn-icon {
            width: 36px;
            height: 36px;
            background: var(--primary);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gold);
            font-size: 20px;
            flex-shrink: 0;
        }

.playstore-btn-text {
            display: flex;
            flex-direction: column;
        }

.playstore-btn-text small {
            font-size: 10px;
            letter-spacing: 1px;
            text-transform: uppercase;
            opacity: 0.65;
            line-height: 1;
        }

.playstore-btn-text span {
            font-size: 18px;
            font-weight: 700;
            line-height: 1.3;
        }

.app-mockup {
            flex-shrink: 0;
            text-align: center;
            position: relative;
        }

.app-mockup-frame {
            width: 200px;
            height: 340px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--border);
            border-radius: 28px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

.app-mockup-frame::before {
            content: '';
            position: absolute;
            top: 12px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 6px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 3px;
        }

.app-mockup-logo {
            width: 70px;
            height: 70px;
            background: var(--gold);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--font-ar);
            font-size: 24px;
            color: var(--primary);
            font-weight: 700;
        }

.app-mockup-name {
            font-family: var(--font-ar);
            font-size: 18px;
            color: var(--gold);
            font-weight: 700;
            letter-spacing: 1px;
        }

.app-mockup-sub {
            font-size: 11px;
            color: var(--muted-on-navy);
            text-align: center;
            line-height: 1.6;
        }

.app-mockup-bar {
            width: 100%;
            height: 6px;
            background: rgba(201, 168, 76, 0.15);
            border-radius: 3px;
            overflow: hidden;
        }

.app-mockup-bar-fill {
            height: 100%;
            width: 70%;
            background: var(--gold);
            border-radius: 3px;
            animation: barPulse 2s ease-in-out infinite alternate;
        }

@keyframes barPulse {
            from {
                width: 60%;
                opacity: 0.7;
            }

            to {
                width: 85%;
                opacity: 1;
            }
        }

.app-features {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 20px;
        }

.app-feature-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.65);
        }

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

body.ar-mode .app-feature-item {
            flex-direction: row-reverse;
        }

body.ar-mode .app-desc {
            direction: rtl;
        }

body.ar-mode .app-inner {
            flex-direction: row-reverse;
        }

@media (max-width: 768px) {
    .app-mockup {
                display: none;
            }

    .app-inner {
                justify-content: center;
                text-align: center;
            }

    .app-desc {
                margin: 0 auto 28px;
            }

    .app-features {
                align-items: center;
            }
}

/* ─── LANGUAGE STATES ─── */

body.ar-mode .notice-item {
            border-left: none;
            border-right: 3px solid var(--gold);
            transform-origin: right;
        }

body.ar-mode .notice-item:hover {
            transform: translateX(-4px);
        }

body.ar-mode .notice-arrow {
            transform: scaleX(-1);
        }

body.ar-mode .about-image-badge {
            left: auto;
            right: 24px;
        }

body.ar-mode .arabic-block {
            border-right: none;
            border-left: 3px solid var(--gold);
        }

body.ar-mode .highlight-info {
            border-left: none;
            border-right: 3px solid var(--gold);
        }

/* ─── RESPONSIVE ─── */

@media (max-width: 1100px) {
    .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
}

@media (max-width: 900px) {
    .notice-grid {
                grid-template-columns: 1fr;
            }

    .about-grid {
                grid-template-columns: 1fr;
            }

    .about-image-wrap img {
                height: 300px;
            }

    .two-col-grid {
                grid-template-columns: 1fr;
            }
}

@media (max-width: 600px) {
    .stats-grid {
                grid-template-columns: 1fr 1fr;
            }

    .goals-grid {
                grid-template-columns: 1fr;
            }

    .section {
                padding: 50px 16px;
            }

    .hero-content {
                padding: 40px 16px;
            }

    .stat-num {
                font-size: 38px;
            }
}

/* ─── WHY THIS MADRASA ─── */

.why-section {
            background: var(--cream);
            padding: 90px 24px;
        }

.why-inner {
            max-width: 1200px;
            margin: 0 auto;
        }

.why-section .section-header { margin-bottom: 36px; }

/* the board result, the one thing a parent should see first */

.why-highlight {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 20px 32px;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            border: 1px solid var(--border);
            border-inline-start: 5px solid var(--gold);
            border-radius: 18px;
            padding: 28px 32px;
            margin-bottom: 28px;
            color: #fff;
        }

.why-board {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 18px;
            font-weight: 600;
            color: var(--gold-light);
        }

.why-board i { font-size: 28px; color: var(--gold); }

.why-ranks { display: flex; gap: 36px; flex-wrap: wrap; }

.why-rank {
            display: flex;
            align-items: baseline;
            gap: 10px;
        }

.why-rank strong {
            font-size: clamp(40px, 6vw, 60px);
            line-height: 1;
            font-weight: 700;
            color: var(--gold-light);
        }

.why-rank span { font-size: 17px; color: rgba(255, 255, 255, .85); }

/* which board the rank is from: the two results come from different boards */

.why-rank small { display: block; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .7); }

.why-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 18px;
        }

.why-card {
            background: #fff;
            border: 1px solid rgba(201, 168, 76, .3);
            border-radius: 16px;
            padding: 24px;
            transition: transform .25s ease, box-shadow .25s ease;
        }

.why-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 14, 44, .1); }

.why-icon {
            width: 48px;
            height: 48px;
            display: grid;
            place-items: center;
            border-radius: 12px;
            background: var(--primary);
            color: var(--gold-light);
            font-size: 20px;
            margin-bottom: 14px;
        }

.why-card h3 {
            font-size: 18px;
            color: var(--primary);
            margin-bottom: 8px;
        }

.why-card p {
            font-size: 15px;
            line-height: 1.75;
            color: var(--text-mid);
        }

.why-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
            min-height: 40px;
            padding: 0 16px;
            border-radius: 999px;
            border: 1.5px solid var(--gold);
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
        }

.why-link:hover { background: rgba(201, 168, 76, .12); }

@media (prefers-reduced-motion: reduce) {
    .why-card { transition: none; }

    .why-card:hover { transform: none; }
}

@media (max-width: 600px) {
    .why-section { padding: 64px 16px; }

    .why-highlight { padding: 22px 20px; }

    .why-ranks { gap: 24px; }
}
