@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

:root {
    --bg: #f4f8ff;
    --bg-soft: #eef4ff;
    --bg-accent: #dbeafe;
    --card: rgba(255, 255, 255, 0.9);
    --card-solid: #ffffff;
    --text: #0f172a;
    --text-soft: #475569;
    --blue-900: #0b1f54;
    --blue-800: #103474;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-200: #bfdbfe;
    --blue-100: #dbeafe;
    --teal-400: #22d3ee;
    --white: #ffffff;
    --border: rgba(148, 163, 184, 0.22);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 16px 36px rgba(37, 99, 235, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

html[lang="ur"] body {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    line-height: 2;
}

html[lang="ar"] body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

html[lang="ps"] body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

html[lang="ur"] h1,
html[lang="ur"] h2,
html[lang="ur"] h3,
html[lang="ur"] h4 {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .hero-arabic {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

html[lang="ps"] h1,
html[lang="ps"] h2,
html[lang="ps"] h3,
html[lang="ps"] h4,
html[lang="ps"] .hero-arabic {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.lang-text {
    display: inline-block;
    line-height: 1.2;
}

.lang-text-en {
    font-family: 'Manrope', sans-serif;
}

.lang-text-ur {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    line-height: 1.55;
}

.lang-text-ar,
.lang-text-ps {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    color: var(--white);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled {
    color: var(--text);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.nav-shell {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    width: 54px;
    height: 54px;
    padding: 7px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    object-fit: contain;
}

.site-header.is-scrolled .brand-logo {
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    line-height: 1.15;
}

.brand small {
    color: var(--teal-400);
    font-size: 0.82rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-nav > a,
.nav-dropdown > a {
    padding: 11px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.site-header.is-scrolled .desktop-nav > a:hover,
.site-header.is-scrolled .nav-dropdown > a:hover {
    background: rgba(37, 99, 235, 0.08);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 280px;
    padding: 10px;
    display: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(191, 219, 254, 0.8);
    box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-menu {
    display: grid;
    gap: 4px;
}

.dropdown-menu a {
    padding: 11px 13px;
    border-radius: 12px;
    color: var(--text);
}

.dropdown-menu a:hover {
    background: var(--bg-soft);
    color: var(--blue-800);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher {
    position: relative;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
}

.site-header.is-scrolled .lang-trigger {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.12);
}

.lang-trigger-flag,
.lang-option-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-trigger-text {
    font-weight: 600;
    font-size: 0.92rem;
}

.lang-trigger-text.lang-text-ur {
    line-height: 1.35;
}

.lang-trigger-caret {
    font-size: 0.85rem;
    opacity: 0.8;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    padding: 10px;
    display: none;
    gap: 4px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(191, 219, 254, 0.8);
    box-shadow: var(--shadow);
}

.lang-switcher.is-open .lang-menu {
    display: grid;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--text);
}

.lang-option:hover,
.lang-option.is-active {
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: var(--blue-800);
}

.lang-option .lang-text,
.mobile-languages .lang-text {
    color: inherit;
}

.lang-option .lang-text-ur,
.mobile-languages .lang-text-ur {
    font-size: 1.05rem;
    line-height: 1.45;
}

.lang-option .lang-text-ps,
.mobile-languages .lang-text-ps {
    font-size: 1rem;
    letter-spacing: 0;
}

.mobile-languages {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.mobile-languages a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-soft);
}

.mobile-languages a.is-active {
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: var(--blue-800);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-sm {
    padding: 11px 18px;
    font-size: 0.92rem;
}

.button-block {
    width: 100%;
}

.button-gold {
    background: linear-gradient(135deg, var(--blue-700), var(--teal-400));
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.button-emerald {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    color: var(--white);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: inherit;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.mobile-menu {
    display: none;
}

.hero,
.program-hero,
.section-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.4), transparent 28%),
        linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.hero {
    min-height: 78vh;
}

.hero-media,
.hero-overlay,
.hero-pattern {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    mix-blend-mode: screen;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(11, 31, 84, 0.9), rgba(37, 99, 235, 0.84));
}

.hero-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.6));
}

.hero-content,
.program-hero .container {
    position: relative;
    z-index: 2;
    padding: 126px 0 84px;
}

.hero-content {
    text-align: center;
}

.eyebrow {
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
}

.eyebrow-dark {
    color: var(--blue-700);
}

.hero-arabic,
.hero-title,
.section-heading h2,
.founder-copy h3,
.site-footer h3,
.program-hero h1,
.content-block h2,
.sidebar-card h3,
.program-card h3,
.stat-card strong,
.impact-card strong {
    font-family: 'Fraunces', serif;
}

.hero-arabic {
    margin: 0 0 10px;
    font-size: clamp(3rem, 9vw, 6rem);
    line-height: 1.05;
}

.hero-title {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 3rem);
}

.gold-divider {
    width: 140px;
    height: 3px;
    margin: 24px auto;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--teal-400), var(--white), transparent);
}

.hero-copy,
.section-copy {
    max-width: 760px;
    margin-inline: auto;
    line-height: 1.8;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.8);
}

.section-copy {
    color: var(--text-soft);
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.section {
    position: relative;
    padding: 84px 0;
}

.section-muted {
    background:
        linear-gradient(180deg, rgba(219, 234, 254, 0.7), rgba(255, 255, 255, 0.96)),
        var(--bg-soft);
}

.section-heading {
    margin-bottom: 48px;
}

.section-heading.centered {
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.08;
}

.stats-grid,
.program-grid,
.branch-grid,
.steps-grid,
.contact-grid,
.impact-grid {
    display: grid;
    gap: 24px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 72px;
}

.stat-card,
.program-card,
.branch-card,
.step-card,
.donation-card,
.impact-card,
.contact-card,
.content-block,
.sidebar-card,
.faq-card,
.info-card {
    background: var(--card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.stat-card,
.impact-card {
    padding: 30px;
    text-align: center;
}

.stat-card strong,
.impact-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--blue-800);
    font-size: 2rem;
}

.stat-card span,
.impact-card span {
    color: var(--text-soft);
}

.founder-grid,
.support-grid,
.program-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: start;
}

.founder-image-wrap {
    position: relative;
    padding: 18px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(191, 219, 254, 0.55), rgba(34, 211, 238, 0.16)),
        var(--card-solid);
    box-shadow: var(--shadow);
}

.founder-image {
    width: 100%;
    border-radius: 22px;
}

.founder-copy .highlight {
    color: var(--blue-700);
    font-weight: 700;
}

.founder-copy blockquote {
    margin: 24px 0 0;
    padding-inline-start: 22px;
    border-inline-start: 4px solid var(--blue-500);
    color: var(--text-soft);
    line-height: 1.9;
    font-style: italic;
}

.program-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.program-card,
.branch-card,
.step-card,
.contact-card,
.content-block,
.sidebar-card,
.donation-card,
.impact-panel {
    padding: 28px;
}

.program-card {
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 68%);
}

.program-card h3 {
    margin: 0 0 10px;
}

.program-card p,
.branch-card p,
.step-card p,
.contact-card p,
.impact-panel p,
.content-block p,
.faq-card p {
    color: var(--text-soft);
    line-height: 1.75;
}

.step-card {
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(244, 248, 255, 0.9));
}

.step-card h3 {
    color: var(--text);
    margin: 0 0 10px;
}

.section-hero .step-card p {
    color: var(--text-soft);
}

.program-card a,
.text-link {
    color: var(--blue-700);
    font-weight: 700;
}

.program-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 18px;
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.16);
}

.program-icon-emerald,
.program-icon-navy {
    background: linear-gradient(135deg, var(--blue-700), var(--teal-400));
}

.branch-grid,
.steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.branch-card,
.contact-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(239,246,255,0.86));
}

.branch-meta,
.step-number {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--blue-600);
    font-weight: 800;
}

.section-cta {
    margin-top: 36px;
    text-align: center;
}

.segmented-control,
.choice-grid,
.amount-grid {
    display: grid;
    gap: 10px;
}

.segmented-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.9);
}

.segmented-control button,
.choice-grid button,
.amount-grid button {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 12px 14px;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
}

.segmented-control button.is-active,
.choice-grid button.is-active,
.amount-grid button.is-active {
    background: linear-gradient(135deg, var(--blue-700), var(--teal-400));
    border-color: transparent;
    color: var(--white);
}

.field-group {
    margin-top: 24px;
}

.field-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 12px;
}

.field-group input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: var(--white);
    color: var(--text);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 24px;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--royal);
}

.impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
}

.impact-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(219,234,254,0.65));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.sponsorship-list,
.schedule-list,
.faq-list {
    display: grid;
    gap: 14px;
}

.sponsorship-list div,
.schedule-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid rgba(191, 219, 254, 0.8);
}

.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 24%),
        linear-gradient(180deg, var(--blue-900), #08173f);
    padding: 80px 0 26px;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.site-footer > .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, 0.72);
}

.muted {
    color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.62);
}

.footer-arabic {
    color: rgba(34, 211, 238, 0.9);
}

.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 35;
    padding: 14px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue-700), var(--teal-400));
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.program-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.06;
}

.program-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.76);
}

.program-badges {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.program-badges span {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.program-main {
    display: grid;
    gap: 24px;
}

.content-block h2 {
    margin-top: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.info-card,
.faq-card {
    padding: 18px;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.check-list li {
    position: relative;
    padding-inline-start: 26px;
}

.check-list li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    color: var(--blue-600);
    font-size: 1.4rem;
    line-height: 1;
}

.faq-card h3 {
    margin-top: 0;
}

.sidebar-card {
    position: sticky;
    top: 104px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(219,234,254,0.82));
}

.meta-list {
    margin: 18px 0 24px;
    display: grid;
    gap: 14px;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 1120px) {
    .program-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .founder-grid,
    .support-grid,
    .program-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .desktop-nav,
    .lang-switcher,
    .nav-actions .button-sm {
        display: none;
    }

    .mobile-toggle {
        display: inline-block;
    }

    .mobile-menu {
        display: none;
        padding: 0 16px 18px;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(191, 219, 254, 0.8);
        box-shadow: var(--shadow);
    }

    .mobile-menu.is-open {
        display: grid;
        gap: 8px;
    }

    .mobile-menu a {
        padding: 12px 14px;
        border-radius: 14px;
        background: var(--bg-soft);
        color: var(--text);
    }

    .stats-grid,
    .program-grid,
    .branch-grid,
    .steps-grid,
    .contact-grid,
    .impact-grid,
    .footer-grid,
    .choice-grid,
    .amount-grid,
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero-content,
    .program-hero .container {
        padding: 112px 0 68px;
    }

    .stats-grid,
    .program-grid,
    .branch-grid,
    .steps-grid,
    .contact-grid,
    .impact-grid,
    .footer-grid,
    .choice-grid,
    .amount-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom,
    .program-badges,
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        align-items: stretch;
    }

    .button,
    .button-sm {
        width: 100%;
    }

    .whatsapp-float {
        left: 16px;
        right: 16px;
        text-align: center;
    }
}
