/* Design Tokens */
:root {
    /* Colors */
    --clr-primary: #0F8C51;
    /* Forest Green for main accents */
    --clr-primary-light: #d6f2e3;
    --clr-primary-hover: #0a7342;
    --clr-text-main: #1f2937;
    --clr-text-muted: #6b7280;
    --clr-bg-main: #ffffff;
    --clr-bg-alt: #f8fafc;
    /* Very light cool gray */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Variables */
    --br-sm: 8px;
    --br-md: 12px;
    --br-lg: 20px;
    --br-pill: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Max Widths */
    --container-width: 1200px;
}

/* Reset / Global Defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--clr-text-main);
    background-color: var(--clr-bg-main);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.brand-name {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: var(--br-pill);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: var(--font-body);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--clr-text-main);
    padding: 0.6rem 1.25rem;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    border-color: #d1d5db;
    box-shadow: var(--shadow-sm);
}

.btn-large {
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
}

/* Typography Utility */
.section-tag {
    color: var(--clr-primary);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--clr-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: var(--font-heading);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--clr-text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-main);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--clr-text-main);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    /* Offset fixed header */
    height: 600px;
    background-image: url('C:/Users/imran/.gemini/antigravity/brain/670b6bf6-b70c-4b48-bb76-cc04e872d7a9/hero_mosque_bg_1772861122340.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::after {
    /* Overlay for readability */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(200, 215, 255, 0.2), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    /* Soft glassmorphism background for text block */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: var(--br-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-headline {
    font-size: 3.5rem;
    color: #ffffff;
    /* Or dark if background is light */
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-headline {
        font-size: 2.5rem;
    }
}

/* Sections Common */
.section {
    padding: 6rem 0;
}

.bg-alt {
    background-color: var(--clr-bg-alt);
}

.text-center {
    text-align: center;
}

.section-tag.center {
    justify-content: center;
}

/* Prayer Times */
.prayer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    border-radius: var(--br-lg);
}

.prayer-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--br-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.prayer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-primary-light);
}

.prayer-name {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.prayer-time {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--clr-text-main);
}

.prayer-card.active {
    background: white;
    box-shadow: 0 0 0 2px var(--clr-primary);
    position: relative;
}

.prayer-card.active::before {
    content: 'Next Prayer';
    position: absolute;
    top: -12px;
    background: var(--clr-primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: var(--br-pill);
    font-weight: 500;
}

/* Events Section */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    position: relative;
}

/* Events Container & Scroll */
.events-scroll-wrapper {
    position: relative;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.events-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    color: var(--clr-primary);
}

.events-scroll-btn:hover {
    background: var(--clr-primary);
    color: white;
}

.events-scroll-btn.prev {
    left: -22px;
}

.events-scroll-btn.next {
    right: -22px;
}

.events-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 1rem 0 3rem;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.events-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.event-card {
    background: white;
    padding: 2rem;
    border-radius: var(--br-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 320px;
    /* Fixed width for horizontal scroll */
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--br-pill);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.event-badge.light-green {
    background: #d1fae5;
    color: #065f46;
}

.event-badge.light-blue {
    background: #dbeafe;
    color: #1e40af;
}

.event-badge.light-purple {
    background: #f3e8ff;
    color: #6b21a8;
}

.event-badge.primary {
    background: var(--clr-primary);
    color: white;
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.event-detail {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.featured-event {
    padding: 0;
    overflow: hidden;
    position: relative;
    background-image: url('C:/Users/imran/.gemini/antigravity/brain/670b6bf6-b70c-4b48-bb76-cc04e872d7a9/event_thumbnail_1772861250564.png');
    background-size: cover;
    background-position: center;
}

.featured-event::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
}

.featured-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.featured-date {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.featured-title {
    color: white;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* Community Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: white;
    padding: 2.5rem 1rem;
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--clr-primary-light);
    color: var(--clr-primary);
    border-radius: var(--br-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* Support Section */
.support-banner {
    background: var(--clr-bg-alt);
    padding: 4rem 2rem;
    border-radius: var(--br-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.support-icon {
    width: 64px;
    height: 64px;
    background: #d1fae5;
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.support-text {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.support-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin-top: 1rem;
}

.donate-info-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    text-align: left;
    background: white;
    padding: 2.5rem;
    border-radius: var(--br-xl);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-sm);
}

.bank-details {
    flex: 1;
}

.bank-item {
    margin-bottom: 1.5rem;
}

.bank-label {
    display: block;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.bank-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-text-main);
    font-family: var(--font-body);
}

.qr-code-wrapper {
    flex-shrink: 0;
    text-align: center;
}

.qr-image {
    width: 180px;
    height: 180px;
    border-radius: var(--br-md);
    border: 1px solid #eee;
    padding: 0.5rem;
    background: white;
    box-shadow: var(--shadow-sm);
}

.qr-label {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-primary);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo-wrap {
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--clr-primary);
}

.footer-contact p,
.footer-hours p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}

/* Media Queries for new sections */
@media (max-width: 1024px) {

    .events-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prayer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .prayer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .support-actions {
        flex-direction: column;
        gap: 2rem;
    }

    .donate-info-grid {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .prayer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}