/* ============================================================
   Ummu Al-ameen Academy — Design System
   Brand: Teal #1a5e63 · Gold #e6b412 (kept from original site)
   Mobile-first, premium & accessible
   ============================================================ */

:root {
    /* Brand */
    --teal-950: #0a3033;
    --teal-900: #0d3a3d;
    --teal-800: #12484c;
    --teal-700: #15565b;
    --teal-600: #1a5e63;   /* primary */
    --teal-500: #2c8c99;   /* accent */
    --teal-400: #3fa8b7;
    --teal-300: #7cc7d2;
    --teal-200: #b7e2e8;
    --teal-100: #e0f3f5;
    --teal-50:  #f1fafb;

    --gold-600: #c79a0b;
    --gold-500: #e6b412;   /* secondary */
    --gold-400: #efc63d;
    --gold-300: #f5d97c;
    --gold-200: #fbeec2;
    --gold-100: #fdf8e9;

    /* Neutrals */
    --ink-900: #1d2527;
    --ink-700: #374042;
    --ink-500: #5f6a6c;
    --ink-300: #99a5a7;
    --paper:   #ffffff;
    --paper-soft: #f6f9f9;
    --paper-cream: #fbfaf6;

    /* Status */
    --success: #1e8e3e;
    --success-bg: #e6f4ea;
    --error: #c5221f;
    --error-bg: #fce8e6;
    --warning: #a76b00;
    --warning-bg: #fef7e0;

    /* Type */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shape & depth */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(13, 58, 61, 0.08);
    --shadow: 0 10px 30px rgba(13, 58, 61, 0.10);
    --shadow-lg: 0 24px 60px rgba(13, 58, 61, 0.16);
    --shadow-gold: 0 10px 30px rgba(230, 180, 18, 0.35);

    /* Layout */
    --container: 1320px;
    --section-y: clamp(3.5rem, 8vw, 6rem);
    --nav-h: 78px;
    --header-h: 78px; /* full header height on mobile (top row only) */
    --transition: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Wider layout on very large desktop screens */
@media (min-width: 1600px) {
    :root { --container: 1480px; }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-700);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-800); }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--teal-900);
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.section { padding: var(--section-y) 0; }
.section-alt { background: var(--paper-soft); }
.section-tint { background: var(--teal-50); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.7rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--teal-950);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(230, 180, 18, 0.45);
    color: var(--teal-950);
}

.btn-teal {
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    color: #fff;
    box-shadow: 0 10px 26px rgba(26, 94, 99, 0.35);
}
.btn-teal:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 34px rgba(26, 94, 99, 0.45); }

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.btn-outline {
    border-color: var(--teal-300);
    color: var(--teal-600);
    background: transparent;
}
.btn-outline:hover { background: var(--teal-50); color: var(--teal-800); border-color: var(--teal-400); }


/* ---------- Top bar ---------- */
.topbar {
    background: var(--teal-950);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    padding: 0.4rem 0;
    position: relative;
    z-index: 60;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, 0.82); display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar a:hover { color: var(--gold-300); }
.topbar-contacts { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.topbar-links { display: flex; gap: 1.2rem; }
.topbar-links .fa-bullhorn { color: var(--gold-400); }
@media (max-width: 640px) {
    .topbar-contacts a:first-child { display: none; }
    .topbar-inner { justify-content: center; }
}

/* ---------- Navbar ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(13, 58, 61, 0.06);
    border-bottom: 1px solid rgba(13, 58, 61, 0.06);
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 8px 30px rgba(13, 58, 61, 0.12); }

.navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-h);
    gap: 1rem;
}

.navbar-bottom {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(13, 58, 61, 0.07);
    background: rgba(13, 58, 61, 0.025);
    min-height: 52px;
    padding: 0.3rem 0;
}

/* Two-tier header height on desktop (top row + nav row) */
@media (min-width: 921px) {
    :root { --header-h: 142px; }
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--teal-800); letter-spacing: 0.01em; }
.brand-text small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-600); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-menu > li > a:not(.btn) {
    display: block;
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink-700);
    border-radius: var(--radius-sm);
    position: relative;
}
.nav-menu > li > a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0.9rem; right: 0.9rem; bottom: 0.22rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.nav-menu > li > a:not(.btn):hover, .nav-menu > li > a.active { color: var(--teal-600); }
.nav-menu > li > a.active::after, .nav-menu > li > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    background: transparent;
    border: 1px solid var(--teal-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0 11px;
}
.nav-toggle span { height: 2px; border-radius: 2px; background: var(--teal-700); transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
    .nav-toggle { display: flex; }
    .navbar-bottom {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        display: block;
        min-height: 0;
        padding: 0;
        background: var(--paper);
        border-top: 1px solid rgba(13, 58, 61, 0.08);
        box-shadow: 0 30px 50px rgba(13, 58, 61, 0.16);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease;
        z-index: 5;
    }
    .navbar-bottom.open { max-height: 560px; opacity: 1; }
    .navbar-bottom .container { padding: 0.75rem 1.25rem 1.25rem; }
    .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-menu > li > a:not(.btn) { padding: 0.85rem 0.5rem; font-size: 1.02rem; border-bottom: 1px solid var(--paper-soft); }
    .nav-menu > li > a:not(.btn)::after { display: none; }
    .nav-menu .btn { margin-top: 0.9rem; justify-content: center; }
}

.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.88rem; }

.btn-block { width: 100%; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.2rem, 5vw, 3.5rem); }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 0.9rem;
}
.kicker::before, .kicker::after {
    content: '';
    width: 26px; height: 2px;
    background: var(--gold-500);
    border-radius: 2px;
}
.kicker-left::before { display: none; }

.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }
.section-head .rule { margin: 1.1rem auto 0; width: 70px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .rule { margin-left: 0; }

/* ---------- Flash messages ---------- */
.flash-wrap { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 90; width: min(92vw, 560px); }
.flash {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-weight: 600; font-size: 0.93rem;
    margin-bottom: 0.6rem;
    animation: flash-in 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    background: var(--paper); color: var(--ink-700);
    border-left: 4px solid var(--teal-500);
}
@keyframes flash-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.flash-success { border-left-color: var(--success); }
.flash-success i { color: var(--success); }
.flash-error { border-left-color: var(--error); }
.flash-error i { color: var(--error); }
.flash-warning { border-left-color: var(--warning); }
.flash-warning i { color: var(--warning); }
.flash-info { border-left-color: var(--teal-500); }
.flash-info i { color: var(--teal-500); }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(44, 140, 153, 0.55), transparent 60%),
        linear-gradient(140deg, var(--teal-900) 0%, var(--teal-700) 55%, var(--teal-600) 100%);
    color: #fff;
    padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    gap: clamp(2.5rem, 6vw, 4.5rem);
    align-items: center;
}
.hero-kicker {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold-300);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.4rem;
    backdrop-filter: blur(4px);
}
.hero-kicker i { color: var(--gold-400); }
.hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 6vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold-300); }
.hero-lede {
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.4rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    max-width: 620px;
}
.hero-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    backdrop-filter: blur(4px);
}
.hero-stat i { color: var(--gold-400); font-size: 1.2rem; margin-bottom: 0.35rem; display: block; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: #fff; line-height: 1.25; }
.hero-stat span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); }

/* Hero media collage */
.hero-media { position: relative; }
.hero-media-main {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--teal-800);
}
.hero-media-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.hero-media-main:hover img { transform: scale(1.04); }
.hero-media-sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
.hero-media-sides .side {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--teal-800);
}
.hero-media-sides .side img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute;
    top: -1.2rem; right: 1rem;
    width: 92px; height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, var(--gold-300), var(--gold-500));
    color: var(--teal-950);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-gold);
    font-weight: 800;
    line-height: 1.15;
    padding: 0.6rem;
    transform: rotate(6deg);
    animation: float-badge 4s ease-in-out infinite;
}
.hero-badge b { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.hero-badge span { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }
@keyframes float-badge { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-7px); } }

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    background:
        radial-gradient(800px 400px at 20% -20%, rgba(44, 140, 153, 0.4), transparent 60%),
        linear-gradient(140deg, var(--teal-900), var(--teal-600));
    color: #fff;
    padding: clamp(3rem, 7vw, 4.5rem) 0;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}
.page-hero .container { position: relative; text-align: center; }
.page-hero .crumb { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 0.7rem; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); text-wrap: balance; }
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 640px; margin: 0.9rem auto 0; font-size: 1.05rem; }

/* ---------- Feature cards (home) ---------- */
.feature-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
/* Stacked variant (Mission above Vision on the About page) */
.feature-grid.two { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }

.feature-card {
    background: var(--paper);
    border: 1px solid rgba(13, 58, 61, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.9rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal-500), var(--gold-500));
    opacity: 0;
    transition: opacity var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal-200); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--teal-600);
    background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
    border: 1px solid var(--teal-100);
    margin-bottom: 1.2rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.93rem; color: var(--ink-500); }

/* ---------- Split / welcome block ---------- */
.split {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }

.split-media { position: relative; }
.split-media .frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    background: var(--teal-100);
}
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split-media .frame.second {
    position: absolute;
    width: 46%;
    aspect-ratio: 4 / 3.4;
    bottom: -2rem; right: -1rem;
    border: 6px solid var(--paper);
    box-shadow: var(--shadow-lg);
}
@media (max-width: 1023px) { .split-media .frame.second { display: none; } }

.split-copy .kicker { margin-bottom: 0.8rem; }
.split-copy h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; text-wrap: balance; }
.split-copy > p { color: var(--ink-500); margin-bottom: 1rem; }
.check-list { margin: 1.4rem 0; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.35rem 0; color: var(--ink-700); font-weight: 500; }
.check-list i { color: var(--gold-600); margin-top: 0.3rem; }


/* ---------- Values grid ---------- */
.values-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

.value-card {
    background: var(--paper);
    border: 1px solid rgba(13, 58, 61, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem 1.7rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card .value-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
    box-shadow: 0 8px 20px rgba(26, 94, 99, 0.3);
}
.value-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.value-card p { font-size: 0.93rem; color: var(--ink-500); }

/* ---------- Programs timeline ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 18px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--gold-500), var(--teal-300));
}
.timeline-item { position: relative; padding: 0 0 2.2rem 58px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px; top: 4px;
    width: 19px; height: 19px;
    border-radius: 50%;
    background: var(--paper);
    border: 5px solid var(--teal-500);
    box-shadow: 0 0 0 4px var(--teal-100);
}
.timeline-tag {
    display: inline-block;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--teal-800);
    background: var(--teal-100);
    border-radius: var(--radius-pill);
    padding: 0.28rem 0.9rem;
    margin-bottom: 0.6rem;
}
.timeline-item h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.timeline-item p { color: var(--ink-500); font-size: 0.97rem; }
@media (min-width: 640px) {
    .timeline::before { left: 50%; margin-left: -1.5px; }
    .timeline-item { width: 50%; padding: 0 40px 2.5rem 0; }
    .timeline-item:nth-child(even) { left: 50%; padding: 0 0 2.5rem 40px; }
    .timeline-item::before { left: auto; right: -10px; }
    .timeline-item:nth-child(even)::before { right: auto; left: -10px; }
}

/* ---------- News cards ---------- */
.news-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
    display: flex; flex-direction: column;
    background: var(--paper);
    border: 1px solid rgba(13, 58, 61, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--teal-100); position: relative; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb .fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--teal-300); font-size: 2.4rem; }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.news-meta { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--ink-300); margin-bottom: 0.7rem; }
.news-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-500); }
.news-body h3 { font-size: 1.18rem; margin-bottom: 0.55rem; }
.news-body h3 a { color: inherit; }
.news-body h3 a:hover { color: var(--teal-600); }
.news-body p { color: var(--ink-500); font-size: 0.93rem; flex: 1; }
.news-body .read-more { margin-top: 1rem; font-weight: 700; font-size: 0.88rem; color: var(--teal-600); display: inline-flex; align-items: center; gap: 0.4rem; }
.news-body .read-more i { transition: transform var(--transition); }
.news-body .read-more:hover i { transform: translateX(4px); }


/* ---------- Announcements ---------- */
.announce-list { max-width: 820px; margin: 0 auto; display: grid; gap: 1.1rem; }
.announce-item {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: var(--paper);
    border: 1px solid rgba(13, 58, 61, 0.08);
    border-left: 5px solid var(--teal-500);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.announce-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.announce-item.pinned { border-left-color: var(--gold-500); background: linear-gradient(135deg, var(--gold-100), var(--paper)); }
.announce-icon { font-size: 1.3rem; color: var(--teal-400); padding-top: 0.15rem; }
.announce-item.pinned .announce-icon { color: var(--gold-600); }
.announce-date { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.5rem; }
.announce-item h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.announce-item p { color: var(--ink-500); font-size: 0.95rem; }
.pin-tag { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; background: var(--gold-500); color: var(--teal-950); padding: 0.18rem 0.6rem; border-radius: var(--radius-pill); }

/* ---------- Hadith quote ---------- */
.hadith {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
    color: #fff;
    padding: clamp(3rem, 7vw, 4.5rem) 0;
    overflow: hidden;
}
.hadith::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hadith .container { position: relative; max-width: 820px; }
.hadith .mark { font-family: var(--font-display); font-size: 3rem; color: var(--gold-400); line-height: 1; margin-bottom: 0.6rem; }
.hadith blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.7rem); font-style: italic; line-height: 1.5; color: #fff; margin-bottom: 0.9rem; text-wrap: balance; }
.hadith cite { font-style: normal; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-300); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--teal-950); text-align: center; padding: clamp(2.8rem, 6vw, 4rem) 0; }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--teal-950); margin-bottom: 0.6rem; text-wrap: balance; }
.cta-band p { max-width: 620px; margin: 0 auto 1.6rem; font-weight: 500; }
.cta-band .btn { background: var(--teal-900); color: #fff; box-shadow: 0 12px 30px rgba(10, 48, 51, 0.3); }
.cta-band .btn:hover { background: var(--teal-800); transform: translateY(-2px); }

/* ---------- Gallery ---------- */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.4rem; }
.gallery-tab {
    font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--teal-200);
    background: var(--paper);
    color: var(--teal-700);
    cursor: pointer;
    transition: all var(--transition);
}
.gallery-tab:hover { border-color: var(--teal-400); }
.gallery-tab.active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; box-shadow: 0 8px 20px rgba(26, 94, 99, 0.3); }

.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1440px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    background: var(--teal-100);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fadeUp 0.5s ease both;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.05); }
.gallery-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end;
    padding: 0.9rem;
    background: linear-gradient(180deg, transparent 45%, rgba(10, 48, 51, 0.72));
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-size: 0.85rem; font-weight: 700; display: flex; gap: 0.45rem; align-items: center; }
.gallery-item .video-flag {
    position: absolute; top: 0.8rem; right: 0.8rem;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--teal-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
}
.gallery-item .cat-flag {
    position: absolute; top: 0.8rem; left: 0.8rem;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--teal-950);
    background: var(--gold-400);
    padding: 0.24rem 0.65rem;
    border-radius: var(--radius-pill);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }


/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(8, 30, 32, 0.94);
    display: none;
    align-items: center; justify-content: center;
    padding: 1.5rem;
}
.lightbox.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage { max-width: min(960px, 94vw); max-height: 86vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-stage img, .lightbox-stage video { max-width: 100%; max-height: 78vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #000; }
.lightbox-caption { color: rgba(255, 255, 255, 0.85); margin-top: 0.9rem; font-size: 0.95rem; text-align: center; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), transform var(--transition);
    z-index: 2;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-close { top: 1.4rem; right: 1.4rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
@media (max-width: 640px) {
    .lightbox-prev { left: 0.4rem; } .lightbox-next { right: 0.4rem; }
    .lightbox-close { top: 0.8rem; right: 0.8rem; }
}

/* ---------- Forms ---------- */
.form-card {
    background: var(--paper);
    border: 1px solid rgba(13, 58, 61, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: clamp(1.6rem, 4vw, 2.6rem);
}
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 700; font-size: 0.88rem; color: var(--ink-900); }
.form-group label .req { color: var(--error); }
.form-control {
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--ink-900);
    background: var(--paper-soft);
    border: 1.5px solid rgba(13, 58, 61, 0.14);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--teal-500);
    background: var(--paper);
    box-shadow: 0 0 0 4px rgba(44, 140, 153, 0.14);
}
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a5e63' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.form-hint { font-size: 0.8rem; color: var(--ink-300); }
.form-errors { font-size: 0.83rem; color: var(--error); font-weight: 600; }
.field-error { border-color: var(--error); }

.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.contact-card {
    background: var(--paper);
    border: 1px solid rgba(13, 58, 61, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.7rem;
    box-shadow: var(--shadow-sm);
    display: flex; gap: 1rem; align-items: flex-start;
    margin-bottom: 1rem;
}
.contact-card .cc-icon {
    flex: 0 0 50px; height: 50px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--teal-600);
    background: var(--teal-50);
    font-size: 1.15rem;
    border: 1px solid var(--teal-100);
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.contact-card p, .contact-card a { color: var(--ink-500); font-size: 0.93rem; }
.contact-card a:hover { color: var(--teal-600); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: 2rem; }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; filter: saturate(0.85) contrast(1.02); }

/* ---------- Admissions steps ---------- */
.steps-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card { position: relative; background: var(--paper); border: 1px solid rgba(13, 58, 61, 0.08); border-radius: var(--radius-lg); padding: 2rem 1.6rem 1.6rem; box-shadow: var(--shadow-sm); }
.step-num {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    box-shadow: var(--shadow-gold);
    margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.9rem; color: var(--ink-500); }


/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: rgba(255, 255, 255, 0.78); position: relative; overflow: hidden; }
.site-footer::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}
.footer-grid {
    position: relative;
    display: grid; gap: 2.2rem;
    grid-template-columns: 1fr;
    padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr; } }

.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand img { width: 52px; height: auto; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.2rem; color: #fff; display: block; line-height: 1.15; }
.footer-brand span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-400); }
.footer-about p { font-size: 0.92rem; max-width: 320px; }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.82rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 1.1rem;
    position: relative;
    padding-bottom: 0.55rem;
}
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.footer-col > a:not(.btn) { display: block; color: rgba(255, 255, 255, 0.74); padding: 0.22rem 0; font-size: 0.93rem; }
.footer-col > a:not(.btn):hover { color: var(--gold-300); transform: translateX(3px); }
.footer-col a.btn { padding: 0.6rem 1.4rem; margin-top: 0.35rem; }
.footer-col p { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.93rem; padding: 0.28rem 0; }
.footer-col p i { color: var(--gold-400); margin-top: 0.2rem; }
.footer-col p a { display: inline; padding: 0; color: rgba(255, 255, 255, 0.74); }
.footer-col p a:hover { transform: none; color: var(--gold-300); }

.footer-hadith blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; color: #fff; line-height: 1.55; margin-bottom: 0.5rem; }
.footer-hadith cite { font-style: normal; font-size: 0.82rem; color: var(--gold-300); }

.social-links { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.social-links a {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: all var(--transition);
}
.social-links a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--teal-950); transform: translateY(-3px); }

.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 1.3rem 0;
    font-size: 0.85rem;
}
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--gold-300); }
.footer-bottom .fa-heart { color: var(--gold-400); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed;
    right: 1.2rem; bottom: 1.2rem;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
    z-index: 70;
    transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); color: #fff; box-shadow: 0 16px 34px rgba(37, 211, 102, 0.55); }

/* ---------- News detail ---------- */
.article {
    max-width: 780px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid rgba(13, 58, 61, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.article-cover { aspect-ratio: 16 / 7; overflow: hidden; background: var(--teal-100); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: clamp(1.6rem, 4vw, 2.8rem); }
.article-meta { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-300); font-size: 0.85rem; margin-bottom: 1rem; flex-wrap: wrap; }
.article-body h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 0.8rem; }
.article-summary { font-size: 1.1rem; color: var(--ink-500); font-style: italic; border-left: 4px solid var(--gold-500); padding-left: 1.1rem; margin-bottom: 1.4rem; }
.article-content p { margin-bottom: 1.1rem; color: var(--ink-700); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Empty state ---------- */
.empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--ink-300);
    background: var(--paper-soft);
    border: 1.5px dashed var(--teal-200);
    border-radius: var(--radius-lg);
}
.empty i { font-size: 2.4rem; margin-bottom: 0.8rem; color: var(--teal-300); }
.empty p { font-weight: 600; }

