*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0c10;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --gold: #c9a84c;
    --gold-dim: rgba(201, 168, 76, 0.15);
    --gold-glow: rgba(201, 168, 76, 0.07);
    --teal: #4db6ac;
    --teal-dim: rgba(77, 182, 172, 0.12);
    --violet: #7c6af7;
    --violet-dim: rgba(124, 106, 247, 0.12);
    --rose: #e07070;
    --rose-dim: rgba(224, 112, 112, 0.12);
    --muted: #8a8f9e;
    --text: #e8e6e0;
    --text-soft: #b0a99a;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-size: 17px;
    line-height: 1.85;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%,
            rgba(201, 168, 76, 0.05) 0%,
            transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 90%,
            rgba(77, 182, 172, 0.04) 0%,
            transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%,
            rgba(124, 106, 247, 0.03) 0%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 100px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px 80px;
    }
}

/* ── HEADER ── */
header {
    text-align: center;
    padding: 80px 0 56px;
}

@media (max-width: 600px) {
    header {
        padding: 48px 0 36px;
    }

    .bismillah {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
}

.bismillah {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.65;
    margin-bottom: 36px;
    display: block;
    letter-spacing: 0.05em;
}

.site-label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 5px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

header h1 {
    font-family: 'Amiri', serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 14px;
}

header h1 span {
    color: var(--gold);
}

.subtitle {
    color: var(--text-soft);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.9;
}

.divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--gold),
            transparent);
    margin: 28px auto;
}

/* ── ALERT BANNER ── */
.alert-banner {
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 14px;
    padding: 24px 32px;
    margin-bottom: 48px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

@media (max-width: 600px) {
    .alert-banner {
        padding: 18px 20px;
        gap: 12px;
        border-radius: 12px;
    }
}

.alert-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 700;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 6px;
    display: block;
}

.alert-body {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.75;
}

.alert-body a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid rgba(77, 182, 172, 0.3);
    transition: border-color 0.2s;
}

.alert-body a:hover {
    border-color: var(--teal);
}

/* ── SECTION TITLE ── */
.section-title {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── PLATFORM CARDS ── */
.platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 56px;
}

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

.platform-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 16px;
    pointer-events: none;
}

.platform-card.murtaqa::before {
    background: radial-gradient(ellipse at top right,
            rgba(124, 106, 247, 0.08),
            transparent 70%);
}

.platform-card.muraqi::before {
    background: radial-gradient(ellipse at top right,
            rgba(77, 182, 172, 0.08),
            transparent 70%);
}

.platform-card:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.platform-card:hover::before {
    opacity: 1;
}

.platform-card.murtaqa {
    border-color: rgba(124, 106, 247, 0.2);
}

.platform-card.muraqi {
    border-color: rgba(77, 182, 172, 0.2);
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
}

.badge-violet {
    background: var(--violet-dim);
    color: var(--violet);
    border: 1px solid rgba(124, 106, 247, 0.25);
}

.badge-teal {
    background: var(--teal-dim);
    color: var(--teal);
    border: 1px solid rgba(77, 182, 172, 0.25);
}

.platform-name {
    font-family: 'Amiri', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.platform-desc {
    font-size: 0.97rem;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 18px;
}

.platform-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.platform-link:hover {
    opacity: 0.8;
}

.link-violet {
    background: var(--violet-dim);
    color: var(--violet);
    border: 1px solid rgba(124, 106, 247, 0.3);
}

.link-teal {
    background: var(--teal-dim);
    color: var(--teal);
    border: 1px solid rgba(77, 182, 172, 0.3);
}

/* ── START NOW ── */
.start-now {
    background: var(--surface);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 56px;
}

.start-now-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.start-now-title {
    font-family: 'Amiri', serif;
    font-size: 1.55rem;
    color: var(--text);
}

.start-now-sub {
    font-size: 0.97rem;
    color: var(--text-soft);
    margin-bottom: 24px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.course-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: background 0.2s;
}

.course-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.course-tag {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
}

.course-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.course-meta {
    font-size: 0.8rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.course-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.pill {
    font-size: 0.68rem;
    padding: 2px 10px;
    border-radius: 10px;
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.pill.teal {
    background: var(--teal-dim);
    color: var(--teal);
    border-color: rgba(77, 182, 172, 0.2);
}

/* ── TIMELINE ── */
.timeline {
    position: relative;
    padding-right: 32px;
    margin-bottom: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg,
            transparent,
            var(--border) 10%,
            var(--border) 90%,
            transparent);
}

/* ── PHASE CARD ── */
.phase {
    position: relative;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.5s ease forwards;
}

.phase::before {
    content: '';
    position: absolute;
    right: -36px;
    top: 24px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    z-index: 2;
}

.phase:nth-child(1) {
    animation-delay: 0.1s;
}

.phase:nth-child(2) {
    animation-delay: 0.2s;
}

.phase:nth-child(3) {
    animation-delay: 0.3s;
}

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

.phase-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.phase-inner:hover {
    border-color: rgba(201, 168, 76, 0.2);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .phase-header {
        gap: 10px;
        padding: 16px 18px;
    }

    .phase-number {
        font-size: 0.75rem;
    }

    .phase-duration {
        display: none;
    }

    .phase-meta {
        width: 100%;
        order: 3;
    }

    .phase-number {
        order: 1;
    }

    .phase-toggle {
        order: 2;
        margin-right: auto;
    }
}

.phase-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.phase-number {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 4px 14px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.phase-meta {
    flex: 1;
}

.phase-title {
    font-family: 'Amiri', serif;
    font-size: 1.35rem;
    color: var(--text);
    line-height: 1.3;
}

.phase-goal {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 2px;
}

.phase-duration {
    font-size: 0.88rem;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.phase-toggle {
    color: var(--muted);
    font-size: 0.85rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.phase.open .phase-toggle {
    transform: rotate(180deg);
}

.phase-body {
    display: none;
    padding: 0 24px 24px;
    border-top: 1px solid var(--border);
}

.phase.open .phase-body {
    display: block;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
}

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

.col-box {
    border-radius: 10px;
    padding: 18px;
    border: 1px solid transparent;
}

.institute-box {
    background: var(--violet-dim);
    border-color: rgba(124, 106, 247, 0.2);
}

.quran-box {
    background: var(--teal-dim);
    border-color: rgba(77, 182, 172, 0.2);
}

.col-label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}

.inst-label {
    color: var(--violet);
}

.quran-label {
    color: var(--teal);
}

.book-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-soft);
}

.book-num {
    font-size: 0.78rem;
    color: var(--violet);
    background: rgba(124, 106, 247, 0.15);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.quran-note {
    font-size: 0.93rem;
    color: var(--text-soft);
    line-height: 1.8;
}

.quran-note strong {
    color: var(--teal);
    display: block;
    margin-bottom: 4px;
}

/* parallel reading */
.parallel-section {
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 10px;
    padding: 16px 20px;
}

.parallel-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.parallel-label .opt-badge {
    font-size: 0.65rem;
    padding: 1px 8px;
    border-radius: 8px;
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.2);
    font-weight: 600;
}

.start-now-why {
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.8;
}

.start-now-why-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.start-now-why strong {
    color: var(--text);
}

.parallel-note {
    display: block;
    margin-top: 10px;
    padding: 12px 16px;
    background: rgba(77, 182, 172, 0.06);
    border: 1px solid rgba(77, 182, 172, 0.2);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.75;
}

.parallel-note strong {
    color: var(--teal);
}

.parallel-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.parallel-tag {
    font-size: 0.88rem;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 8px;
}

/* ── OVERVIEW TABLE ── */
.overview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 24px;
}

.overview h2 {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 20px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

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

.overview-cell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
}

.overview-period {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
    letter-spacing: 0.06em;
}

.overview-name {
    font-size: 0.93rem;
    color: var(--text-soft);
    line-height: 1.55;
}

.overview-name {
    font-size: 0.82rem;
    color: var(--text-soft);
    line-height: 1.5;
}

/* ── FOOTER ── */
footer {
    text-align: center;
    padding-top: 60px;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

footer strong {
    color: var(--gold);
}

footer p {
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--teal);
    text-decoration: none;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(77, 182, 172, 0.3);
    transition: border-color 0.2s;
}

.footer-links a:hover {
    border-color: var(--teal);
}

/* ── HERO SECTION ── */
.hero {
    position: relative;
    text-align: center;
    padding: 72px 24px 80px;
    margin-bottom: 64px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg,
            rgba(201, 168, 76, 0.05) 0%,
            rgba(124, 106, 247, 0.04) 50%,
            rgba(77, 182, 172, 0.04) 100%);
    border: 1px solid rgba(201, 168, 76, 0.12);
}

@media (max-width: 600px) {
    .hero {
        padding: 44px 18px 52px;
        margin-bottom: 40px;
        border-radius: 16px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%,
            rgba(201, 168, 76, 0.08) 0%,
            transparent 70%),
        radial-gradient(ellipse 40% 40% at 10% 80%,
            rgba(124, 106, 247, 0.06) 0%,
            transparent 70%),
        radial-gradient(ellipse 40% 40% at 90% 80%,
            rgba(77, 182, 172, 0.05) 0%,
            transparent 70%);
    pointer-events: none;
}

.hero-ornament {
    font-family: 'Amiri', serif;
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    color: var(--gold);
    opacity: 0.5;
    display: block;
    margin-bottom: 28px;
    letter-spacing: 0.12em;
    line-height: 1.6;
}

.hero-ayah {
    font-family: 'Amiri', serif;
    font-size: clamp(1.3rem, 3.5vw, 1.9rem);
    color: var(--text);
    line-height: 2;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.hero-ayah span {
    color: var(--gold);
}

.hero-ayah-ref {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 40px;
    font-family: 'Cairo', sans-serif;
    display: block;
    position: relative;
    z-index: 1;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--gold),
            transparent);
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.hero-body {
    max-width: 660px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-body p {
    font-size: 1rem;
    color: var(--text-soft);
    line-height: 2;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-hadith {
    display: inline-block;
    background: rgba(201, 168, 76, 0.07);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 14px;
    padding: 22px 28px;
    margin: 8px 0 24px;
    font-family: 'Amiri', serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gold);
    line-height: 1.9;
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.hero-hadith-ref {
    font-size: 0.78rem;
    color: var(--muted);
    font-family: 'Cairo', sans-serif;
    margin-top: 8px;
    display: block;
    position: relative;
    z-index: 1;
}

.hero-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

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

.hero-pillar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    transition:
        background 0.2s,
        border-color 0.2s;
}

.hero-pillar:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(201, 168, 76, 0.2);
}

.hero-pillar-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.hero-pillar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.hero-pillar-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.65;
}