﻿/* ===================================================
   TAIBA MASJID - Main Stylesheet
   Colors: Primary #6C2823 (Maroon), #E9DFB4 (Cream)
           Secondary #4A9B08 (Green), #FFFFFF
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

/* ── CSS Variables ── */
:root {
    /* ── Primary: Maroon ── */
    --emerald: #6C2823;
    --emerald-light: #8A3530;
    --emerald-dark: #4E1C18;
    --emerald-glow: rgba(108, 40, 35, 0.12);

    /* ── Cream accent ── */
    --cream: #E9DFB4;
    --cream-light: #F5F0D6;
    --cream-dark: #C8BA7C;

    /* ── Secondary: Green ── */
    --green: #4A9B08;
    --green-light: #5CB80A;
    --green-dark: #357006;
    --green-glow: rgba(74, 155, 8, 0.15);

    /* ── Neutrals ── */
    --anthracite: #2D2D2D;
    --anthracite-light: #3f3f3f;
    --white: #ffffff;
    --off-white: #faf8f3;
    --gray-100: #f5f2ea;
    --gray-200: #e8e2d0;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;

    /* ── Gold (kept for donate button) ── */
    --gold: #c9a84c;
    --gold-light: #e8c96b;

    --danger: #dc3545;
    --info: #0ea5e9;

    --font-main: 'Inter', sans-serif;
    --font-arabic: 'Amiri', serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-green: 0 8px 32px rgba(108, 40, 35, 0.22);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--anthracite);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 42px;
    /* room for fixed quran ticker */
}

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-main);
}

input,
select,
textarea {
    font-family: var(--font-main);
}

/* ── Alert Banner ── */
/* ── Quran Ayat Ticker ── */
#quran-ticker {
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 20px;
    min-height: 38px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    overflow: hidden;
}

#quran-ticker::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 60px,
            rgba(201, 168, 76, 0.03) 60px,
            rgba(201, 168, 76, 0.03) 61px);
    pointer-events: none;
}

/* 3-column ticker: FR | AR | EN */
.quran-ticker-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.quran-ticker-col-fr {
    flex: 1;
    align-items: flex-start;
    padding-right: 12px;
    border-right: 1px solid rgba(201, 168, 76, 0.15);
}

.quran-ticker-col-ar {
    flex: 1.2;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    border-right: 1px solid rgba(201, 168, 76, 0.15);
}

.quran-ticker-col-en {
    flex: 1;
    align-items: flex-end;
    text-align: right;
    padding-left: 12px;
}

.quran-ticker-lang-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(201, 168, 76, 0.5);
    text-transform: uppercase;
    margin-bottom: 1px;
}

.quran-ticker-col-fr span:last-child,
.quran-ticker-col-en span:last-child {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

#quran-ticker-arabic {
    font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;
    font-size: 1.05rem;
    color: var(--gold-light);
    direction: rtl;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 12px rgba(232, 201, 107, 0.3);
}

.quran-ticker-ref {
    font-size: 0.62rem;
    color: rgba(201, 168, 76, 0.55);
    font-style: italic;
    white-space: nowrap;
    display: block;
    margin-top: 1px;
}

.quran-ticker-nav {
    flex-shrink: 0;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: var(--gold-light);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.quran-ticker-nav:hover {
    background: rgba(201, 168, 76, 0.25);
    border-color: var(--gold);
}

@media (max-width: 700px) {
    .quran-ticker-col-en {
        display: none;
    }

    .quran-ticker-col-fr {
        border-right: none;
        padding-right: 8px;
    }

    .quran-ticker-col-ar {
        border-right: 1px solid rgba(201, 168, 76, 0.15);
    }

    #quran-ticker-arabic {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .quran-ticker-col-fr {
        display: none;
    }

    .quran-ticker-col-ar {
        border-right: none;
    }
}


#alert-banner {
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
    color: var(--white);
    text-align: center;
    padding: 12px 48px;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 1001;
    display: none;
    animation: slideDown 0.4s ease;
}

#alert-banner.active {
    display: block;
}

#alert-banner .alert-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    opacity: 0.8;
    transition: var(--transition);
}

#alert-banner .alert-close:hover {
    opacity: 1;
    transform: translateY(-50%) rotate(90deg);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

/* ── Navigation ── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

#navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--emerald);
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.35rem;
}

.nav-logo-text {
    line-height: 1.2;
}

.nav-logo-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--gray-600);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--emerald);
    background: var(--emerald-glow);
}

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

.lang-toggle {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 5px 4px;
    display: flex;
    gap: 2px;
}

.lang-btn {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    background: none;
    color: var(--gray-600);
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--emerald);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 40, 35, 0.3);
}

/* Mobile lang select — hidden on desktop */
.lang-select-mobile {
    display: none;
    background: var(--emerald);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 5px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    min-width: 44px;
    box-shadow: 0 2px 8px rgba(108, 40, 35, 0.25);
}

.lang-select-mobile:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.btn-donate-nav {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--anthracite);
    border: none;
    padding: 9px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.35);
}

.btn-donate-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.45);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--anthracite);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero Section ── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(26, 8, 8, 0.80) 0%,
            rgba(58, 21, 21, 0.72) 40%,
            rgba(90, 32, 32, 0.68) 70%,
            rgba(108, 40, 35, 0.75) 100%),
        url('../images/mosque-interior.jpg') center / cover no-repeat;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    /* pattern removed — mosque photo shows through gradient overlay */
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 155, 8, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    direction: ltr;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    display: block;
    animation: blink 2s infinite;
    flex-shrink: 0;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-arabic {
    font-family: var(--font-arabic);
    font-size: 2.5rem;
    color: var(--gold-light);
    line-height: 1.4;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(201, 168, 76, 0.4);
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--gold-light);
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald-light), var(--emerald));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(108, 40, 35, 0.4);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-light);
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
}

.hero-prayer-widget {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 30px;
    backdrop-filter: blur(20px);
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.widget-title {
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.widget-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.next-prayer-big {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.next-prayer-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.next-prayer-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 6px 0;
}

.next-prayer-time {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.countdown-timer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

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

.prayer-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.prayer-mini-item.active {
    background: rgba(74, 155, 8, 0.3);
    border: 1px solid rgba(74, 155, 8, 0.5);
}

.prayer-mini-item .p-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.prayer-mini-item .p-time {
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
}

.prayer-mini-item .p-badge {
    font-size: 0.7rem;
    background: var(--gold);
    color: var(--anthracite);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

/* ── Section Base ── */
section {
    padding: 90px 5%;
}

.section-tag,
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--emerald-glow);
    color: var(--emerald);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--anthracite);
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-title .accent {
    color: var(--emerald);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 560px;
}

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

.section-header .section-desc {
    margin: 0 auto;
}

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

/* ── Prayer Times Section ── */
#prayer-times {
    background: var(--off-white);
}

.prayer-date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
    border: 1px solid var(--gray-200);
}

.prayer-date-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--anthracite);
}

.prayer-date-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 2px;
}

.prayer-hijri {
    font-family: var(--font-arabic);
    font-size: 1.1rem;
    color: var(--emerald);
}

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

.prayer-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.prayer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald), var(--emerald-light));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.prayer-card:hover::before,
.prayer-card.active::before {
    transform: scaleX(1);
}

.prayer-card:hover {
    border-color: var(--emerald-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-green);
}

.prayer-card.active {
    border-color: var(--emerald);
    background: linear-gradient(135deg, var(--emerald-glow), rgba(108, 40, 35, 0.05));
}

.prayer-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.prayer-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.prayer-adhan {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--anthracite);
}

.prayer-iqamah-label {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-top: 6px;
}

.prayer-iqamah {
    font-size: 1rem;
    font-weight: 600;
    color: var(--emerald);
}

.prayer-active-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--emerald);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prayer-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.prayer-extra-card {
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.prayer-extra-card:nth-child(2) {
    background: linear-gradient(135deg, #1a3a5c, #2563eb);
}

.prayer-extra-icon {
    font-size: 2rem;
}

.prayer-extra-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.prayer-extra-time {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ── Education Section ── */
#education {
    background: white;
}

.edu-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.edu-tab {
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    transition: var(--transition);
    cursor: pointer;
}

.edu-tab.active {
    background: var(--emerald);
    color: white;
    border-color: var(--emerald);
    box-shadow: var(--shadow-green);
}

.edu-tab:hover:not(.active) {
    border-color: var(--emerald);
    color: var(--emerald);
}

.edu-content {
    display: none;
}

.edu-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.edu-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.edu-info p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.edu-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.edu-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--off-white);
    border-radius: var(--radius-md);
}

.edu-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--emerald-glow);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.edu-feature-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.edu-feature-text span {
    font-size: 0.82rem;
    color: var(--gray-600);
}

/* Enrollment Form */
.enroll-form-card {
    background: linear-gradient(135deg, var(--off-white), white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.enroll-form-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--anthracite);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--anthracite);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--anthracite);
    background: white;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px var(--emerald-glow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.form-success {
    display: none;
    text-align: center;
    padding: 30px 20px;
}

.form-success .success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.form-success h4 {
    color: var(--emerald);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ── Projects Section ── */
#projects {
    background: var(--off-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.project-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-img.green {
    background: linear-gradient(135deg, #4E1C18, #6C2823);
}

.project-img.blue {
    background: linear-gradient(135deg, #1a3a5c, #2563eb);
}

.project-img.gold {
    background: linear-gradient(135deg, #7a5c1e, #c9a84c);
}

.project-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-tag {
    display: inline-block;
    background: var(--emerald-glow);
    color: var(--emerald);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.project-progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.project-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald), var(--emerald-light));
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-amounts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-raised {
    font-weight: 700;
    color: var(--anthracite);
    font-size: 0.95rem;
}

.project-goal {
    font-size: 0.82rem;
    color: var(--gray-400);
}

.btn-donate-project {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--anthracite);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-donate-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

/* ── Facilities Section ── */
#facilities {
    background: var(--off-white);
    padding: 80px 0;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.facility-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.facility-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.facility-body {
    flex: 1;
}

.facility-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--anthracite);
    margin-bottom: 10px;
}

.facility-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.8;
}

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

/* ── Events Section ── */
#events {
    background: white;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.event-card:hover {
    border-color: var(--emerald);
    box-shadow: var(--shadow-green);
    transform: translateX(4px);
}

.event-date {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: white;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    text-align: center;
    min-width: 64px;
    flex-shrink: 0;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.event-date .month {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.85;
}

.event-body {
    flex: 1;
}

.event-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.event-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.event-meta span {
    font-size: 0.82rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Contact Section ── */
#contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-item:hover {
    border-color: var(--emerald);
    box-shadow: var(--shadow-green);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--emerald-glow);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--anthracite);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.contact-item a {
    color: var(--emerald);
    font-weight: 600;
}

.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* ── Adhkar Section ── */
#adhkar {
    background: linear-gradient(180deg, var(--off-white) 0%, #fff 100%);
    padding: 100px 0;
}

.adhkar-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.adhkar-tab {
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid rgba(108, 40, 35, 0.2);
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--emerald);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.adhkar-tab:hover {
    border-color: var(--emerald);
    background: rgba(108, 40, 35, 0.05);
}

.adhkar-tab.active {
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(108, 40, 35, 0.3);
}

.adhkar-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(108, 40, 35, 0.1);
    border: 1px solid rgba(108, 40, 35, 0.08);
    padding: 40px 36px 32px;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.adhkar-counter {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--emerald);
    background: rgba(108, 40, 35, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.adhkar-body {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 32px;
}

.adhkar-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.adhkar-col-ar {
    align-items: center;
    border-left: 1px solid rgba(108, 40, 35, 0.1);
    border-right: 1px solid rgba(108, 40, 35, 0.1);
    padding: 0 24px;
}

.adhkar-lang-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald);
    background: rgba(108, 40, 35, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 4px;
}

.adhkar-ar-badge {
    font-family: 'Amiri', 'Cairo', serif;
    font-size: 0.8rem;
    letter-spacing: 0;
    text-transform: none;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--anthracite);
}

.adhkar-text-ar {
    font-family: 'Amiri', 'Cairo', 'Traditional Arabic', serif;
    font-size: 1.55rem;
    line-height: 2.1;
    color: var(--anthracite);
    text-align: center;
    direction: rtl;
    margin: 0;
}

.adhkar-text-side {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin: 0;
}

.adhkar-col-fr .adhkar-text-side {
    text-align: left;
}

.adhkar-col-en .adhkar-text-side {
    text-align: left;
}

.adhkar-repeat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--anthracite);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 8px;
}

.adhkar-ref {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-style: italic;
    text-align: center;
    margin-top: 4px;
}

.adhkar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(108, 40, 35, 0.08);
}

.adhkar-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(108, 40, 35, 0.2);
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.adhkar-nav-btn:hover {
    background: var(--emerald);
    color: white;
    border-color: var(--emerald);
}

.adhkar-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.adhkar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(108, 40, 35, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.adhkar-dot.active {
    background: var(--emerald);
    width: 22px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .adhkar-body {
        grid-template-columns: 1fr;
    }

    .adhkar-col-ar {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(108, 40, 35, 0.1);
        border-bottom: 1px solid rgba(108, 40, 35, 0.1);
        padding: 16px 0;
        order: -1;
    }

    .adhkar-text-ar {
        font-size: 1.3rem;
    }

    .adhkar-col-fr,
    .adhkar-col-en {
        display: none;
    }
}

/* ── Footer ── */
footer {
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 2 L58 30 L30 58 L2 30Z' fill='none' stroke='rgba(201,168,76,0.06)' stroke-width='1'/%3E%3C/svg%3E"),
        linear-gradient(160deg, #2a0e0c 0%, #4a1c18 40%, #6C2823 75%, #5a2020 100%);
    color: white;
    padding: 64px 5% 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand>p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
}

.footer-col h5 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-light);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold-light);
    padding-left: 6px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.65);
}

.social-link:hover {
    background: var(--gold);
    color: var(--anthracite);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.38);
}


/* ── Floating Donate Button ── */
#float-donate {
    position: fixed;
    bottom: 80px;
    /* well above quran ticker bar */
    right: 28px;
    z-index: 999;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--anthracite);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#float-donate:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 16px 45px rgba(201, 168, 76, 0.6);
}

#float-donate .float-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--anthracite);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
}

#float-donate:hover .float-tooltip {
    opacity: 1;
}

/* ── Donate Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-overlay.open .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--anthracite);
    margin-top: 12px;
}

.modal-header p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 6px;
}

.donate-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.donate-amount-btn {
    padding: 14px 8px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    background: white;
    transition: var(--transition);
}

.donate-amount-btn.selected,
.donate-amount-btn:hover {
    border-color: var(--emerald);
    background: var(--emerald-glow);
    color: var(--emerald);
}

.btn-donate-modal {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--anthracite);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-donate-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

/* ── Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile Nav ── */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 4px;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: white;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }

    .nav-hamburger {
        display: flex;
    }

    /* Spread Logo | FR▾ | 💝 | ☰ across full width */
    #navbar {
        justify-content: space-between;
    }

    .nav-actions {
        gap: 16px;
    }

    /* Language: switch to compact dropdown on mobile */
    .lang-btn {
        display: none;
    }

    .lang-select-mobile {
        display: block;
    }

    /* Donate nav button: emoji only on mobile (no text) */
    .btn-donate-nav {
        padding: 8px 10px;
        font-size: 1.1rem;
        min-width: 38px;
        justify-content: center;
    }

    .btn-donate-nav span {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-prayer-widget {
        display: none;
    }

    .edu-content.active {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .prayer-extras {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    section {
        padding: 60px 5%;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .donate-amounts {
        grid-template-columns: repeat(3, 1fr);
    }

    .btn-donate-nav span {
        display: none;
    }
}

/* ── Loading spinner ── */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--emerald);
    border-radius: 3px;
}

.nav-links a.active {
    color: var(--emerald);
    background: var(--emerald-glow);
    font-weight: 600;
}

/* ── RTL Support (Arabic) ── */
[dir="rtl"] body {
    font-family: 'Amiri', 'Inter', sans-serif;
}

[dir="rtl"] #navbar {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
    margin: 0 auto;
}

[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
    direction: rtl;
}

[dir="rtl"] .hero-text {
    direction: rtl;
}

[dir="rtl"] .hero-arabic {
    font-size: 3rem;
}

[dir="rtl"] .hero-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-stats {
    direction: rtl;
}

[dir="rtl"] .section-header {
    direction: rtl;
}

[dir="rtl"] .section-desc {
    margin: 0 auto;
    text-align: center;
}

[dir="rtl"] .prayer-date-bar {
    direction: rtl;
}

[dir="rtl"] .prayer-card {
    direction: rtl;
}

[dir="rtl"] .prayer-active-badge {
    right: auto;
    left: 10px;
}

[dir="rtl"] .edu-content.active {
    direction: rtl;
}

[dir="rtl"] .edu-info {
    direction: rtl;
}

[dir="rtl"] .enroll-form-card {
    direction: rtl;
}

[dir="rtl"] .form-group label {
    text-align: right;
}

[dir="rtl"] .event-card {
    direction: rtl;
    flex-direction: row-reverse;
}

[dir="rtl"] .event-card:hover {
    transform: translateX(-4px);
}

[dir="rtl"] .contact-grid {
    direction: rtl;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

[dir="rtl"] .footer-col ul li a:hover {
    padding-left: 0;
    padding-right: 4px;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-bottom {
    flex-direction: row-reverse;
}

[dir="rtl"] #float-donate {
    right: auto;
    left: 28px;
}

[dir="rtl"] #float-donate .float-tooltip {
    right: auto;
    left: 70px;
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 16px;
}

[dir="rtl"] .modal-box {
    direction: rtl;
}

[dir="rtl"] .project-card {
    direction: rtl;
}

[dir="rtl"] .project-amounts {
    flex-direction: row-reverse;
}

[dir="rtl"] .prayer-extra-card {
    direction: rtl;
}

[dir="rtl"] .edu-tab {
    font-family: 'Amiri', 'Inter', sans-serif;
    font-size: 1rem;
}

[dir="rtl"] .hero-prayer-widget {
    direction: rtl;
}

[dir="rtl"] .prayer-mini-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .widget-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .edu-feature {
    flex-direction: row-reverse;
}

[dir="rtl"] .edu-feature-text {
    text-align: right;
}

[dir="rtl"] .contact-info {
    direction: rtl;
}

[dir="rtl"] .contact-item h4 {
    text-align: right;
}

/* RTL mobile nav */
@media (max-width: 900px) {
    [dir="rtl"] .nav-links {
        left: 0;
        right: 0;
    }
}

/* ── Photo Gallery Strip ── */
#gallery {
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 2 L58 30 L30 58 L2 30Z' fill='none' stroke='rgba(201,168,76,0.07)' stroke-width='1'/%3E%3Cpath d='M30 12 L48 30 L30 48 L12 30Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 20% 50%, rgba(138, 53, 48, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(78, 28, 24, 0.6) 0%, transparent 60%),
        linear-gradient(160deg, #3a1210 0%, #6C2823 45%, #7a2e28 75%, #5a2020 100%);
    padding: 0;
    overflow: hidden;
    position: relative;
}

.gallery-header-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 52px 5% 32px;
    gap: 8px;
    position: relative;
}

.gallery-header-bar::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 10px auto 0;
}

.gallery-header-bar h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.gallery-header-bar .accent {
    color: var(--gold-light);
    text-shadow: 0 0 30px rgba(232, 201, 107, 0.4);
}

.gallery-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 5% 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.4) transparent;
    scroll-snap-type: x mandatory;
}

.gallery-strip::-webkit-scrollbar {
    height: 4px;
}

.gallery-strip::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

.gallery-item {
    flex-shrink: 0;
    width: 300px;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    scroll-snap-align: start;
    transition: var(--transition);
    border: 2px solid rgba(201, 168, 76, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 16px 48px rgba(201, 168, 76, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    padding: 32px 14px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 48px 5% 56px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
    width: 100%;
}

/* ── Lightbox ── */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    padding: 20px;
}

#lightbox.open {
    opacity: 1;
    pointer-events: all;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

#lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 20px;
    white-space: nowrap;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-prev {
    left: 20px;
}

#lightbox-next {
    right: 20px;
}

#lightbox-prev:hover,
#lightbox-next:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ── Event card with photo ── */
.event-photo-wrap {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--gray-200);
}

.event-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    background: var(--emerald-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    border: 2px solid var(--gray-100);
}

/* ── Project card with photo header ── */
.project-img-custom {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.project-img-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-custom img {
    transform: scale(1.06);
}

/* ── Project Photo Carousel ── */
.project-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    height: 180px;
    background: #1a1a1a;
}

.project-carousel-track {
    height: 100%;
}

.project-carousel-slide {
    display: none;
    height: 100%;
}

.project-carousel-slide.active {
    display: block;
    animation: carouselFade 0.35s ease;
}

.project-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-carousel-slide.active img {
    transform: scale(1.05);
}

@keyframes carouselFade {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
    line-height: 1;
}

.carousel-arrow:hover {
    background: rgba(108, 40, 35, 0.85);
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.25);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* ── Ramadan Section ── */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#ramadan {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--off-white) 0%, #fdf8f0 100%);
    position: relative;
    overflow: hidden;
}

#ramadan::before {
    content: '🌙';
    position: absolute;
    top: 20px;
    right: 5%;
    font-size: 6rem;
    opacity: 0.06;
    pointer-events: none;
}

.ramadan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

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

.ramadan-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition);
}

.ramadan-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.ramadan-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #6C2823 0%, #00855a 100%);
    color: white;
}

.ramadan-card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.ramadan-card-icon {
    font-size: 1.4rem;
}

.ramadan-schedule {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 80px;
}

.ramadan-day-row {
    margin-top: 8px;

    first-of-type {
        margin-top: 0;
    }
}

.ramadan-day-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(108, 40, 35, 0.1), rgba(212, 175, 55, 0.1));
    color: #6C2823;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(108, 40, 35, 0.15);
}

.ramadan-schedule-line {
    font-size: 0.875rem;
    color: var(--gray-600);
    padding: 2px 4px;
    padding-left: 12px;
    border-left: 2px solid rgba(212, 175, 55, 0.35);
    margin-left: 8px;
}

.ramadan-iftars {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 80px;
}

/* Iftar date cards */
.iftar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--off-white);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.iftar-item:hover {
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.4);
}

.iftar-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #6C2823, #00855a);
    color: white;
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.iftar-day {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.iftar-month {
    font-size: 0.65rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.iftar-info {
    flex: 1;
    min-width: 0;
}

.iftar-caption {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--anthracite);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iftar-time {
    font-size: 0.8rem;
    color: var(--emerald);
    font-weight: 600;
    margin-top: 2px;
}

.iftar-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
    font-style: italic;
}

.iftar-badge {
    font-size: 1.4rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.iftar-weekday {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: capitalize;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}