:root {
    --bg-dark: #071512;
    --bg-light: #F9FAF9;
    --primary: #124A36;
    --primary-light: #1E6B50;
    --accent-gold: #D4AF37;
    --accent-gold-hover: #E8C454;
    --text-dark: #1A2622;
    --text-light: #E0EBE6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --font-arabic: 'Noto Kufi Arabic', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-light);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-light);
}

/* --- Ambient Glowing Background --- */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: floatOrb 25s infinite ease-in-out alternate;
}
.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0) 70%);
    top: -100px;
    left: -200px;
}
.orb-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(18,74,54,0.1) 0%, rgba(18,74,54,0) 70%);
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}
.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(18,74,54,0.08) 0%, rgba(18,74,54,0) 70%);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -5s;
    animation-duration: 30s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 80px) scale(1.2); }
}

h1, h2, h3, h4, .arabic-text {
    font-family: var(--font-display);
    color: var(--text-dark);
}

.arabic-text {
    font-family: var(--font-arabic);
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

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

/* --- Floating Nav (Index) --- */
.glass-nav {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(18, 74, 54, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.glass-nav .nav-brand {
    font-family: var(--font-display);
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}
.glass-nav .nav-links { display: flex; gap: 30px; }
.glass-nav .nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}
.glass-nav .nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--accent-gold); transition: 0.3s ease;
}
.glass-nav .nav-links a:hover::after, .glass-nav .nav-links a.active::after { width: 100%; }

/* --- Solid Nav (Subpages) --- */
.solid-nav {
    background: #255243;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative; z-index: 1000;
}
.solid-nav .nav-brand {
    font-family: var(--font-display); color: #e5cc6f; font-size: 1.6rem; font-weight: 700; letter-spacing: 1px;
}
.solid-nav .nav-links { display: flex; gap: 30px; }
.solid-nav .nav-links a { color: white; font-weight: 500; font-size: 0.9rem; text-transform: uppercase; opacity: 0.8; padding: 5px 0; }
.solid-nav .nav-links a:hover, .solid-nav .nav-links a.active { opacity: 1; border-bottom: 2px solid #e5cc6f; }

/* Buttons */
.btn-gold {
    background: var(--accent-gold); color: var(--bg-dark); padding: 12px 28px; border-radius: 30px; font-weight: 700; text-transform: uppercase; transition: 0.3s; box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); display: inline-block;
}
.btn-gold:hover { background: var(--accent-gold-hover); transform: translateY(-2px); box-shadow: 0 15px 25px rgba(212, 175, 55, 0.5); }

.btn-gold-pill {
    background: #e5cc6f; color: #1a1a1a; padding: 10px 24px; border-radius: 50px; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; box-shadow: 0 4px 10px rgba(229, 204, 111, 0.3); transition: 0.3s; display: inline-block;
}
.btn-gold-pill:hover { background: #f5dc7f; transform: translateY(-2px); }

.btn-solid {
    background: var(--primary); color: white; padding: 15px 35px; border-radius: 30px; font-weight: 600; transition: 0.3s; border: 2px solid var(--primary); display: inline-block;
}
.btn-solid:hover { background: transparent; color: var(--primary); }

.btn-outline-light {
    background: transparent; color: white; padding: 15px 35px; border-radius: 30px; font-weight: 600; border: 2px solid white; transition: 0.3s; display: inline-block;
}
.btn-outline-light:hover { background: white; color: var(--primary); }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    background: url('hero-bg.png') center/cover no-repeat fixed;
    display: flex; flex-direction: column; justify-content: center; padding: 0 5%;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(7, 21, 18, 0.95) 0%, rgba(7, 21, 18, 0.3) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; margin-top: 50px; }
.hero-content .arabic-text { color: var(--accent-gold); font-size: 3rem; margin-bottom: 20px; }
.main-title { color: white; font-size: 4rem; line-height: 1.1; margin-bottom: 30px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero-desc { color: var(--text-light); font-size: 1.3rem; margin-bottom: 40px; max-width: 600px; }
.hero-actions { display: flex; gap: 20px; }

/* Eye-Catching Frosted Glass Ticker */
.hero-prayer-ticker {
    position: absolute;
    bottom: 50px;
    right: 5%;
    background: rgba(7, 21, 18, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(212, 175, 55, 0.5); /* Premium Gold Accent */
    border-radius: 20px;
    padding: 25px 35px;
    color: white;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 20px rgba(212,175,55,0.05);
    max-width: 650px;
}
.ticker-header {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ticker-times {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ticker-times span {
    background: rgba(0,0,0,0.4);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ticker-times span i {
    color: var(--accent-gold);
}
.ticker-times span strong {
    font-weight: 700;
    margin-left: 3px;
    color: white;
}
.ticker-times span:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    background: rgba(0,0,0,0.6);
}
.ticker-times span.highlight {
    background: linear-gradient(135deg, var(--accent-gold), #b59226);
    border: none;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
    transform: scale(1.05);
}
.ticker-times span.highlight i,
.ticker-times span.highlight strong,
.ticker-times span.highlight {
    color: var(--bg-dark) !important;
}



/* --- Unified Prayer Timings & Juma Section --- */
.prayer-timings-section {
    padding: 100px 5%;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

/* Islamic Geometric Subtle Background Pattern */
.islamic-pattern {
    background-image: 
        linear-gradient(30deg, rgba(18,74,54,0.03) 12%, transparent 12.5%, transparent 87%, rgba(18,74,54,0.03) 87.5%, rgba(18,74,54,0.03)),
        linear-gradient(150deg, rgba(18,74,54,0.03) 12%, transparent 12.5%, transparent 87%, rgba(18,74,54,0.03) 87.5%, rgba(18,74,54,0.03)),
        linear-gradient(30deg, rgba(18,74,54,0.03) 12%, transparent 12.5%, transparent 87%, rgba(18,74,54,0.03) 87.5%, rgba(18,74,54,0.03)),
        linear-gradient(150deg, rgba(18,74,54,0.03) 12%, transparent 12.5%, transparent 87%, rgba(18,74,54,0.03) 87.5%, rgba(18,74,54,0.03)),
        linear-gradient(60deg, rgba(212,175,55,0.03) 25%, transparent 25.5%, transparent 75%, rgba(212,175,55,0.03) 75%, rgba(212,175,55,0.03)),
        linear-gradient(60deg, rgba(212,175,55,0.03) 25%, transparent 25.5%, transparent 75%, rgba(212,175,55,0.03) 75%, rgba(212,175,55,0.03));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}
.prayer-timings-section .section-header h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.prayer-timings-section .section-header p {
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.prayer-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.prayer-card-wrapper {
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.08));
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.prayer-card-wrapper:hover {
    transform: translateY(-12px) scale(1.02);
    filter: drop-shadow(0 20px 30px rgba(212,175,55,0.25));
}

.prayer-card {
    background: linear-gradient(to bottom, #d6b34d, #c4992b);
    color: white;
    text-align: center;
    padding: 40px 15px 30px 15px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160' preserveAspectRatio='none'%3E%3Cpath d='M50 0 C 65 20, 100 30, 100 50 L 100 160 L 0 160 L 0 50 C 0 30, 35 20, 50 0 Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    position: relative;
    height: 100%;
    min-height: 220px;
}
.prayer-card::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 15px 15px; opacity: 0.8; z-index: 1; pointer-events: none;
}
.prayer-card > * { position: relative; z-index: 2; }

.card-icon-top {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.prayer-card h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prayer-card .time {
    font-size: 1.1rem;
    font-weight: 600;
}

.prayer-card .divider {
    height: 1px;
    background: rgba(255,255,255,0.3);
    margin: 15px auto;
    width: 60%;
}

.prayer-card .label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.prayer-card .iqamah-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

/* Active Prayer Card (Green) */
.prayer-card.active-prayer {
    background: linear-gradient(to bottom, #1E6B50, #124A36);
}

/* Juma Schedule container */
.mt-5 { margin-top: 80px; }
.mb-4 { margin-bottom: 30px; }

.juma-schedule-container {
    max-width: 1000px;
    margin: 80px auto 0;
    background: linear-gradient(135deg, var(--primary), var(--bg-dark));
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(18,74,54,0.3);
    border: 1px solid rgba(212,175,55,0.2);
}
.juma-schedule-container h3 {
    color: var(--accent-gold) !important;
}
.juma-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.juma-card {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: 0.4s ease;
}
.juma-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-gold);
}
.glass-nav .nav-links a:hover {
    color: var(--accent-gold);
}
.glass-nav .btn-gold-pill {
    background: linear-gradient(135deg, var(--accent-gold), #b5952f);
    color: var(--bg-dark);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}
.juma-time {
    background: var(--accent-gold); color: var(--bg-dark); padding: 10px 20px; border-radius: 30px; font-weight: 800; font-size: 1.2rem; margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(212,175,55,0.3);
}
.juma-info h4 { color: white; font-size: 1.3rem; margin-bottom: 5px; }
.juma-info p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

/* --- Services Dynamic --- */
.services-dynamic {
    padding: 120px 5%;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.5);
}
.services-dynamic .section-header h2 {
    color: var(--primary); text-align: center; margin-bottom: 60px;
}
.service-cards-container {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.premium-card {
    background: white; border-radius: 24px; padding: 50px 40px; position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.05); transition: 0.5s ease; border: 1px solid rgba(0,0,0,0.02); cursor: pointer;
}
.premium-card:hover {
    transform: translateY(-15px); box-shadow: 0 30px 60px rgba(18,74,54,0.15);
}
.card-icon {
    font-size: 3rem; color: var(--primary); margin-bottom: 30px; transition: 0.5s ease;
}
.premium-card:hover .card-icon {
    color: var(--accent-gold); transform: scale(1.1);
}
.premium-card h3 {
    font-size: 1.8rem; margin-bottom: 15px; color: var(--text-dark);
}
.premium-card p {
    color: #666; font-size: 1.1rem;
}
.card-glow {
    position: absolute; bottom: -50px; right: -50px; width: 150px; height: 150px; background: var(--accent-gold); filter: blur(60px); opacity: 0; transition: 0.5s ease;
}
.premium-card:hover .card-glow { opacity: 0.3; }

/* --- Footer --- */
.premium-footer {
    background: var(--primary); color: white; padding: 80px 0 0 0;
}
.footer-content {
    display: flex; justify-content: space-between; padding-bottom: 60px;
}
.footer-brand h2 {
    color: var(--accent-gold); font-size: 2.5rem; margin-bottom: 20px;
}
.social-links {
    display: flex; gap: 15px; margin-top: 30px;
}
.social-links a {
    width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; transition: 0.3s;
}
.social-links a:hover {
    background: var(--accent-gold); color: var(--bg-dark);
}
.footer-links {
    display: flex; gap: 80px;
}
.link-column h4 {
    color: white; font-size: 1.3rem; margin-bottom: 25px;
}
.link-column a {
    display: block; color: rgba(255,255,255,0.7); margin-bottom: 12px; transition: 0.3s;
}
.link-column a:hover {
    color: var(--accent-gold); transform: translateX(5px);
}
.footer-bottom {
    text-align: center; padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5);
}

/* --- ABOUT PAGE SPECIFIC --- */
.about-hero {
    background: linear-gradient(rgba(18,74,54,0.85), rgba(7,21,18,0.95)), url('hero-bg.png') center/cover fixed;
    padding: 150px 5% 100px;
    position: relative;
    z-index: 1;
    text-align: center;
}
.about-hero .arabic-text {
    color: var(--accent-gold);
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.about-hero .main-title {
    color: white;
    margin-bottom: 20px;
}
.about-hero .hero-desc {
    margin: 0 auto;
    text-align: center;
    color: rgba(255,255,255,0.9);
}

.our-story-section {
    padding: 120px 5%;
    position: relative;
    z-index: 1;
}
.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}
.gold-subtitle {
    color: var(--accent-gold);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
.section-title {
    font-size: 3rem;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 30px;
}
.story-text {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 25px;
}
.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}
.stat-item span {
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.story-image-wrapper {
    position: relative;
}
.story-img-backdrop {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}
.main-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(18,74,54,0.2);
}
.floating-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: floatOrb 5s infinite alternate;
}
.floating-badge i {
    font-size: 2rem;
    color: var(--accent-gold);
}
.floating-badge span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.pillars-section {
    padding: 120px 5%;
    position: relative;
    z-index: 1;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}
.pillar-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    transition: 0.4s ease;
    border: 1px solid rgba(18,74,54,0.05);
}
.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(18,74,54,0.15);
    border-color: var(--accent-gold);
}
.pillar-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 25px;
    transition: 0.4s;
}
.pillar-card:hover .pillar-icon {
    background: var(--primary);
    color: var(--accent-gold);
}
.pillar-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.pillar-card p {
    color: #666;
}

.leadership-section {
    padding: 120px 5%;
    position: relative;
    z-index: 1;
}
.leadership-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
}
.leader-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 350px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    transition: 0.4s;
}
.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(18,74,54,0.15);
}
.leader-img-placeholder {
    width: 120px;
    height: 120px;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-gold);
    border: 3px solid rgba(212,175,55,0.3);
}
.leader-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}
.leader-info .role {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- PROGRAMS PAGE --- */
.programs-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.program-card {
    display: flex;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(18,74,54,0.05);
    transition: 0.4s ease;
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(18,74,54,0.15);
}
.program-date-badge {
    background: linear-gradient(135deg, var(--primary), var(--bg-dark));
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    border-right: 1px solid rgba(212,175,55,0.3);
}
.program-date-badge .month {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
}
.program-date-badge .day {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}
.program-content {
    padding: 40px;
    flex: 1;
}
.program-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.program-header .tag {
    background: rgba(18,74,54,0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.program-header .fee {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 5px;
}
.program-content h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.program-desc {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}
.program-details {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
    font-weight: 600;
}
.detail-item i {
    color: var(--accent-gold);
}
.program-instructors {
    display: flex;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.program-instructors img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.overlap-img {
    margin-left: -15px;
}
.instructor-text {
    margin-left: 15px;
    font-size: 0.95rem;
    color: #333;
}
.instructor-text span {
    color: #777;
    font-size: 0.85rem;
}
.program-cta {
    background: #fcfdfc;
    padding: 40px;
    min-width: 300px;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(0,0,0,0.05);
}
.cta-content h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.cta-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}
.btn-outline-gold {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}
.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* --- EVENTS PAGE --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}
.premium-event-card {
    display: flex;
    background: white;
    border-radius: 20px;
    padding: 30px;
    align-items: center;
    gap: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.premium-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(18,74,54,0.15);
    border-color: var(--accent-gold);
}
.event-date-box {
    background: rgba(18,74,54,0.05);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    min-width: 90px;
    border: 1px solid rgba(18,74,54,0.1);
    transition: 0.4s;
}
.premium-event-card:hover .event-date-box {
    background: var(--primary);
}
.event-date-box .day {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.premium-event-card:hover .event-date-box .day,
.premium-event-card:hover .event-date-box .month {
    color: var(--accent-gold);
}
.event-date-box .month {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.event-details {
    flex: 1;
}
.event-details h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.event-details h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: 0.3s;
}
.premium-event-card:hover .event-details h3 a {
    color: var(--primary);
}
.event-meta {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 5px;
}
.event-meta i {
    color: var(--accent-gold);
    width: 20px;
}
.event-arrow {
    position: absolute;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-20px);
    transition: 0.4s;
    text-decoration: none;
}
.premium-event-card:hover .event-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--accent-gold);
}

/* Stunning WhatsApp Box */
.whatsapp-premium-box {
    background: linear-gradient(135deg, #075E54, #128C7E);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(18, 140, 126, 0.3);
}
.whatsapp-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,211,102,0.4) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}
.whatsapp-content {
    position: relative;
    z-index: 2;
    flex: 1;
    color: white;
}
.wa-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #25D366;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    box-shadow: 0 15px 30px rgba(37,211,102,0.4);
}
.whatsapp-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.whatsapp-content .arabic-text {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.whatsapp-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 600px;
}
.btn-wa-solid {
    background: #25D366;
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(37,211,102,0.3);
    text-decoration: none;
}
.btn-wa-solid:hover {
    background: white;
    color: #128C7E;
    transform: translateY(-3px);
}
.whatsapp-qr-container {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}
.qr-frame {
    background: white;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}
.qr-frame img {
    display: block;
    width: 200px;
    height: 200px;
}
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #25D366;
    box-shadow: 0 0 15px #25D366;
    animation: scanQr 2.5s infinite linear;
}
@keyframes scanQr {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.whatsapp-qr-container span {
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- CONTACT PAGE --- */
.contact-page-wrapper {
    position: relative;
    z-index: 1;
}
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}
.contact-method-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(18,74,54,0.05);
    transition: 0.3s;
}
.contact-method-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(18,74,54,0.1);
    border-color: var(--accent-gold);
}
.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(212,175,55,0.1);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
}
.contact-method-card:hover .icon-circle {
    background: var(--primary);
    color: white;
}
.method-text h5 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 5px;
}
.method-text p {
    color: #666;
    line-height: 1.4;
    font-size: 0.95rem;
}

.premium-glass-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05), inset 0 0 0 1px rgba(255,255,255,0.5);
}
.premium-glass-form h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
}
.input-group {
    margin-bottom: 25px;
}
.input-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.input-group input,
.input-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 20px;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: 0.3s;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}
.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.1);
}

/* --- Other Pages Specific Fallbacks --- */
.page-header { background: linear-gradient(135deg, rgba(15, 118, 110, 0.8), rgba(15, 23, 42, 0.9)), url('hero-bg.png') center/cover; height: 250px; display:flex; align-items:center; justify-content:center; box-shadow: inset 0 -20px 20px -20px rgba(0,0,0,0.5); }
.page-header h1 { color:white; font-size: 3.5rem; }
.section-padding { padding: 6rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.service-card, .event-card { background: white; padding: 2rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* Responsive Utilities */
@media (max-width: 1024px) {
    .main-title { font-size: 3.2rem; }
    .prayer-cards-container { padding: 0 20px; grid-template-columns: repeat(3, 1fr); }
    .service-cards-container { grid-template-columns: repeat(2, 1fr); }
    .juma-cards { flex-direction: column; }
    .story-grid { grid-template-columns: 1fr; gap: 60px; }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .leadership-grid { flex-wrap: wrap; }
    .program-card { flex-direction: column; }
    .program-date-badge { flex-direction: row; gap: 15px; padding: 20px; border-right: none; border-bottom: 1px solid rgba(212,175,55,0.3); }
    .program-cta { border-left: none; border-top: 1px solid rgba(0,0,0,0.05); }
    .events-grid { grid-template-columns: 1fr; }
    .whatsapp-premium-box { flex-direction: column; text-align: center; }
    .wa-icon-wrapper { margin: 0 auto 25px; }
    .premium-glass-form { padding: 30px; }
}

@media (max-width: 768px) {
    /* Mobile Navigation - App Header Layout */
    .glass-nav {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        top: 45px; 
    }
    .solid-nav, .glass-nav { 
        display: flex !important; 
        flex-wrap: wrap; 
        justify-content: space-between; 
        padding: 10px 15px !important; 
        border-radius: 0; 
        align-items: center; 
        position: relative; 
    }
    
    /* Left: Donate Button */
    .glass-nav .btn-gold-pill, .solid-nav .btn-gold-pill { 
        font-size: 0.75rem !important; 
        padding: 6px 12px !important; 
        order: 1; 
        position: relative; 
        z-index: 10; 
        margin-right: 5px;
    }

    /* Dynamically Centered Logo (Never Overlaps) */
    .glass-nav .nav-brand, .solid-nav .nav-brand { 
        font-size: 0.95rem !important; 
        position: static; 
        transform: none; 
        white-space: nowrap !important; 
        z-index: 10;
        flex: 1; 
        text-align: center;
    }
    
    /* Right: Hamburger Menu */
    .glass-nav .mobile-menu-toggle, .solid-nav .mobile-menu-toggle { 
        display: block; 
        order: 3; 
        margin-left: 5px; 
        position: relative; 
        z-index: 10; 
    }
    
    /* Dropdown Menu */
    .glass-nav .nav-links, .solid-nav .nav-links { 
        display: none !important; /* Hidden by default */
        flex-direction: column; 
        width: 100%; 
        order: 4; 
        margin-top: 15px; 
        background: rgba(10, 48, 56, 0.98); 
        border: 1px solid rgba(212,175,55,0.2); 
        border-radius: 12px; 
        text-align: center;
        padding: 10px 0;
    }
    .glass-nav .nav-links.active, .solid-nav .nav-links.active { display: flex !important; }
    .glass-nav .nav-links a, .solid-nav .nav-links a { font-size: 1.1rem; padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .glass-nav .nav-links a:last-child, .solid-nav .nav-links a:last-child { border-bottom: none; }
    
    /* Hero Fixes */
    .hero-section { min-height: 80vh; padding-top: 100px; padding-bottom: 40px; }
    .main-title { font-size: 2rem; line-height: 1.2; }
    
    /* Top Bar Mobile Prayer Ticker */
    .hero-prayer-ticker { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        bottom: auto; 
        right: auto; 
        padding: 5px 0; 
        border-radius: 0; 
        background: rgba(10, 48, 56, 0.95); 
        backdrop-filter: blur(10px);
        border: none; 
        border-bottom: 2px solid var(--accent-gold); 
        z-index: 2000; 
        transform: none !important; 
    }
    .ticker-header { display: none; }
    .ticker-times { 
        justify-content: flex-start; 
        gap: 20px; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        padding: 0 15px; 
        -webkit-overflow-scrolling: touch; 
    }
    .ticker-times::-webkit-scrollbar { display: none; }
    .ticker-times span { font-size: 0.85rem; padding: 4px 0; white-space: nowrap; }
    
    /* Push nav down below the top bar */
    .glass-nav { top: 45px; }
    .solid-nav { margin-top: 40px; }
    
    /* --- APP-LIKE MOBILE PRAYER SECTION --- */
    .prayer-timings-section { padding: 0 0 40px 0; background: var(--bg-light); }
    
    .prayer-timings-section .container {
        background: var(--primary); /* Deep green top background */
        border-radius: 0 0 35px 35px;
        padding: 40px 15px 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        box-shadow: none;
        border: none;
    }
    
    /* Hide desktop headers on mobile */
    .prayer-timings-section .section-header { display: none; }
    
    /* Mobile App Header (Date & Next Prayer) */
    .mobile-app-header { display: block !important; margin-bottom: -40px; position: relative; z-index: 10; }
    
    .mobile-date-location {
        display: flex; justify-content: space-between; align-items: flex-start;
        background: rgba(0,0,0,0.15); border-radius: 16px 16px 0 0; padding: 15px 20px;
        margin: 0 10px;
        border: 1px solid rgba(255,255,255,0.05);
        border-bottom: none;
    }
    .date-info { display: flex; flex-direction: column; }
    .gregorian { color: white; font-weight: 600; font-size: 0.85rem; margin-bottom: 3px; }
    .hijri { color: rgba(255,255,255,0.7); font-size: 0.75rem; }
    .location-info { color: rgba(255,255,255,0.8); font-size: 0.8rem; display: flex; align-items: center; gap: 5px; }
    .location-info i { color: var(--accent-gold); }
    
    .mobile-next-prayer-card {
        background: linear-gradient(135deg, #dfbc53, #c89c2c);
        border-radius: 16px; padding: 25px 20px;
        display: flex; justify-content: space-between; align-items: center;
        box-shadow: 0 15px 30px rgba(212,175,55,0.3);
        margin: 0 10px;
        position: relative;
    }
    .next-prayer-left { display: flex; align-items: center; gap: 15px; }
    .icon-circle-large { 
        width: 55px; height: 55px; background: white; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.8rem; color: #c89c2c; box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    }
    .next-prayer-info { display: flex; flex-direction: column; }
    .next-prayer-info .label { font-size: 0.7rem; color: rgba(255,255,255,0.8); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
    .next-prayer-info h3 { font-size: 1.5rem; color: white; margin: 0; line-height: 1.1; letter-spacing: 1px; font-weight: 800; }
    .next-prayer-info .time { font-size: 1.4rem; font-weight: 800; color: white; }
    
    .next-prayer-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
    .next-prayer-right .label { font-size: 0.7rem; color: rgba(255,255,255,0.8); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
    .next-prayer-right h3 { font-size: 1.4rem; color: white; margin: 0 0 2px 0; line-height: 1.1; font-weight: 800; }
    .next-prayer-right .duration { font-size: 0.75rem; color: rgba(255,255,255,0.9); font-weight: 600; }
    
    /* The white table container */
    .prayer-cards-container { 
        display: flex; flex-direction: column; gap: 0; padding: 50px 0 10px;
        background: white;
        border-radius: 20px;
        border: none;
        box-shadow: 0 10px 40px rgba(0,0,0,0.05);
        margin: 0 15px;
        position: relative; z-index: 5;
    }
    
    .prayer-card-wrapper { 
        height: auto !important; padding: 0 !important; margin: 0 !important; 
        filter: none; transform: none !important; background: transparent !important; 
    }
    
    /* Table Rows */
    .prayer-card { 
        display: flex; justify-content: space-between; align-items: center;
        padding: 12px 15px !important; /* Decreased padding to bring them closer */
        margin: 0 !important; /* Ensure no stray margins */
        min-height: 0 !important;
        border-radius: 0;
        height: auto !important;
        -webkit-mask-image: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        background: transparent !important;
        position: relative;
    }
    .prayer-card-wrapper:nth-child(odd) .prayer-card { background: rgba(0,0,0,0.02) !important; }
    .prayer-card:last-child { border-bottom: none; }
    
    /* Active prayer row */
    .prayer-card.active-prayer { background: rgba(0,0,0,0.04) !important; }
    .prayer-card.active-prayer::before {
        content: ''; position: absolute; left: 0; top: 15%; height: 70%; width: 4px;
        background: #c89c2c; border-radius: 0 4px 4px 0; display: block;
    }
    
    .prayer-card::before { display: none; }
    
    /* List item contents */
    .card-icon-top { 
        display: flex !important; width: 38px; height: 38px; background: rgba(18,74,54,0.1); border-radius: 50%;
        align-items: center; justify-content: center; color: var(--primary); font-size: 1.1rem; margin: 0; margin-right: 15px; box-shadow: none; filter: none;
    }
    
    .prayer-card h4 { margin: 0; font-size: 1rem; color: var(--primary); font-weight: 800; width: 85px; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; }
    .prayer-card .time { margin: 0; font-size: 1.1rem; font-weight: 800; color: #222; text-align: left; flex: 1; }
    .prayer-card .iqamah-time { font-size: 0.8rem; font-weight: 600; color: #888; margin: 0; text-align: right; margin-right: 15px; }
    
    /* Add a small icon to the right side of the row */
    .prayer-card::after {
        content: '\f185'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
        color: #bbb; font-size: 0.9rem; display: block;
    }
    #card-maghrib::after, #card-isha::after { content: '\f186'; } /* moon icon */
    
    .prayer-card .label, .prayer-card .divider { display: none; }
    
    /* Juma Schedule */
    .juma-schedule-container { 
        padding: 20px; margin: 20px 15px 0; 
        background: white; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border: none;
        position: relative; z-index: 5;
    }
    .juma-schedule-container h3 {
        font-size: 1.2rem; margin-bottom: 15px; border-top: none; padding-top: 0; color: var(--primary) !important; text-align: left;
    }
    .juma-cards { gap: 10px; flex-direction: column; }
    .juma-card { 
        flex-direction: row; align-items: center; text-align: left; 
        padding: 12px; gap: 15px; border-radius: 12px; 
        background: rgba(18,74,54,0.03);
        border: 1px solid rgba(18,74,54,0.05);
    }
    .juma-time { margin: 0; font-size: 0.85rem; padding: 6px 10px; background: rgba(18,74,54,0.1); color: var(--primary); border-radius: 8px; font-weight: 700; box-shadow: none; }
    .juma-info h4 { font-size: 0.95rem; margin-bottom: 2px; color: var(--text-dark); }
    .juma-info p { font-size: 0.8rem; margin: 0; color: #666; }
    
    /* Other Elements */
    .service-cards-container { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 40px; }
    .footer-links { flex-direction: column; gap: 30px; }
    .story-stats { flex-direction: column; gap: 20px; text-align: center; }
    .floating-badge { display: none; }
    .pillars-grid { grid-template-columns: 1fr; }
    .program-details { flex-direction: column; gap: 10px; }
    .about-hero { padding: 120px 5% 60px; }
    .section-title { font-size: 2rem; }
    .whatsapp-premium-box { padding: 30px 20px; }
    .whatsapp-glow { width: 300px; height: 300px; }
    .wa-icon-wrapper { width: 60px; height: 60px; font-size: 2rem; }
    .whatsapp-content h2 { font-size: 1.8rem; }
}
