/* ==========================================================================
   Harmandir Gurukul Seva Trust - Master Stylesheet
   Modern, Ultra-responsive, Lightweight, High Performance
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --primary: #085848;
    --primary-dark: #043e33;
    --primary-light: #0d705c;
    --primary-subtle: #e6f4f1;
    --secondary: #e67e22;
    --secondary-hover: #d35400;
    --accent: #f59e0b;
    --dark: #122421;
    --text-body: #4b635e;
    --text-muted: #6b827e;
    --light-bg: #f8faf9;
    --card-bg: #ffffff;
    --border-color: #e5ece9;
    --shadow-sm: 0 2px 8px rgba(8, 88, 72, 0.06);
    --shadow-md: 0 8px 24px rgba(8, 88, 72, 0.08);
    --shadow-lg: 0 16px 40px rgba(8, 88, 72, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--light-bg);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-white { color: #ffffff !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-light { background-color: var(--light-bg) !important; }
.bg-white { background-color: #ffffff !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 88, 72, 0.25);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 126, 34, 0.3);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-outline-white {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--primary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 15px 36px;
    font-size: 17px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--primary-subtle);
    color: var(--primary);
}

.badge-secondary {
    background: #fef3c7;
    color: #b45309;
}

.badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

.badge-success {
    background: #dcfce7;
    color: #15803d;
}

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.topbar {
    background-color: var(--primary-dark);
    color: #cbdad6;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar a {
    color: #e2edea;
}

.topbar a:hover {
    color: #ffffff;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tax-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
}

.topbar-social a:hover {
    background: var(--secondary);
    color: #ffffff;
}

/* ==========================================================================
   Main Navigation
   ========================================================================== */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(8, 88, 72, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    gap: 15px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(8, 88, 72, 0.2);
    flex-shrink: 0;
}

.brand-name {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.2px;
    line-height: 1.15;
    white-space: nowrap;
}

.brand-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap !important;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(8, 88, 72, 0.06);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(8, 88, 72, 0.08);
    font-weight: 700;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    padding: 8px 0;
    list-style: none;
    display: none;
    z-index: 1000;
    animation: navDrop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navDrop {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-item {
    margin: 0;
    list-style: none;
}

.nav-dropdown-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-dropdown-item a i {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.nav-dropdown-item a:hover {
    background: var(--primary-subtle);
    color: var(--primary);
    padding-left: 22px;
}

/* Header Donate Button */
.header-donate-btn {
    padding: 9px 20px;
    font-size: 14px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
    white-space: nowrap;
}

.header-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 126, 34, 0.4);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--dark);
    cursor: pointer;
    padding: 6px;
}

/* ==========================================================================
   Hero Banner Slider / Carousel
   ========================================================================== */
.hero-slider-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 60px 0 90px;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 62, 51, 0.92) 0%, rgba(8, 88, 72, 0.85) 55%, rgba(18, 47, 42, 0.9) 100%);
    z-index: 1;
}

.hero-slide-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 2;
}

.hero-slide .container {
    position: relative;
    z-index: 3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fbbf24;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: #fbbf24;
    font-family: var(--font-serif);
    font-style: italic;
}

.hero-desc {
    font-size: 17px;
    color: #d1e5e0;
    margin-bottom: 30px;
    max-width: 580px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-trust-badges {
    margin-top: 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.slider-arrow:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.4);
}

.slider-arrow.prev-btn {
    left: 20px;
}

.slider-arrow.next-btn {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    width: 28px;
    border-radius: 8px;
    background: var(--secondary);
}
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fbbf24;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: #fbbf24;
    font-family: var(--font-serif);
    font-style: italic;
}

.hero-desc {
    font-size: 18px;
    color: #d1e5e0;
    margin-bottom: 35px;
    max-width: 580px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-trust-badges {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #e2edea;
}

.trust-item i {
    color: #fbbf24;
    font-size: 18px;
}

/* Quick Hero Donation Box */
.hero-donate-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: var(--dark);
    position: relative;
}

.hero-donate-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.hero-donate-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.amount-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.amount-pill {
    padding: 10px 8px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: #ffffff;
    transition: var(--transition);
}

.amount-pill:hover, .amount-pill.active {
    border-color: var(--primary);
    background: var(--primary-subtle);
    color: var(--primary);
}

.custom-amount-wrapper {
    position: relative;
    margin-bottom: 18px;
}

.custom-amount-wrapper span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.custom-amount-input {
    width: 100%;
    padding: 12px 14px 12px 34px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

.custom-amount-input:focus {
    border-color: var(--primary);
}

.tax-benefit-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px dashed #059669;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #065f46;
    margin-bottom: 18px;
    font-weight: 600;
}

/* ==========================================================================
   Impact Statistics Counter
   ========================================================================== */
.stats-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.stat-item {
    padding: 30px 24px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: var(--primary-subtle);
}

.stat-icon {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.stat-number {
    font-size: 34px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.section-tagline {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
}

/* ==========================================================================
   Causes / Campaigns Grid
   ========================================================================== */
.causes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cause-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.cause-img-box {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
}

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

.cause-card:hover .cause-img-box img {
    transform: scale(1.05);
}

.cause-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(8, 88, 72, 0.9);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.urgent-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #dc2626;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.cause-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cause-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.cause-title a {
    color: var(--dark);
}

.cause-title a:hover {
    color: var(--primary);
}

.cause-desc {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.progress-box {
    margin-bottom: 20px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #edf2f0;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 1s ease-in-out;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.progress-stats .raised {
    color: var(--primary);
    font-weight: 700;
}

.progress-stats .goal {
    color: var(--text-muted);
}

.cause-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Mission & Gurukul Pillars
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-group {
    position: relative;
}

.about-main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary);
    color: #ffffff;
    padding: 24px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4);
    text-align: center;
}

.experience-badge .years {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.experience-badge .text {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.pillar-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pillar-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.pillar-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.pillar-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   Events Section
   ========================================================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.event-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

.event-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
}

.event-body {
    padding: 20px;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}

.event-title a {
    color: var(--dark);
}

.event-title a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Volunteer / CTA Banner
   ========================================================================== */
.volunteer-cta {
    background: linear-gradient(135deg, var(--dark) 0%, #163630 100%);
    color: #ffffff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.volunteer-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.volunteer-cta-text h2 {
    color: #ffffff;
    font-size: 34px;
    margin-bottom: 10px;
}

.volunteer-cta-text p {
    color: #cbdad6;
    font-size: 17px;
    max-width: 600px;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 230px;
    box-shadow: var(--shadow-sm);
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 88, 72, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    color: #ffffff;
}

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

.gallery-title {
    font-size: 14px;
    font-weight: 700;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
}

.quote-icon {
    font-size: 36px;
    color: #fbbf24;
    opacity: 0.4;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-body);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.author-info h5 {
    font-size: 15px;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--dark);
    color: #b0c4bf;
    padding: 70px 0 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--secondary);
    border-radius: var(--radius-full);
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0c4bf;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #fbbf24;
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact-item i {
    color: var(--secondary);
    font-size: 16px;
    margin-top: 4px;
}

.bank-detail-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 15px;
}

.bank-detail-card .row-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
}

.bank-detail-card .copy-btn {
    cursor: pointer;
    color: #fbbf24;
    font-size: 11px;
    margin-left: 6px;
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.footer-bottom a {
    color: #b0c4bf;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 36, 33, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.show {
    display: flex;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 30px;
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--dark);
    transition: var(--transition);
}

.modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ==========================================================================
   Forms & Controls
   ========================================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-control, .form-select {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--dark);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 88, 72, 0.12);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-info {
    background-color: #f0fdfa;
    border: 1px solid #99f6e4;
    color: #115e59;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .causes-grid, .events-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item:nth-child(2) {
        border-right: none;
    }
    
    .stat-item:nth-child(1), .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--border-color);
    }

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

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

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 15px 20px 25px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-link {
        padding: 12px 14px;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid var(--border-color);
        background: #f8fafc;
        border-radius: 8px;
        padding: 6px 0;
        margin: 4px 0 10px 10px;
    }

    .hero-slider-section, .hero-slider {
        min-height: 680px;
    }

    .slider-arrow {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 640px) {
    .causes-grid, .events-grid, .gallery-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-item {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
    }

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

    .hero-title {
        font-size: 32px;
    }

    .topbar {
        display: none;
    }

    .amount-pills {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================================================
   EXPANDED HOME PAGE & NGO SYSTEM ENHANCEMENTS
   ========================================================================== */

/* Government Accreditation Ribbon */
.trust-ribbon {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.trust-ribbon-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-ribbon-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-ribbon-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(4, 62, 51, 0.06);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.trust-ribbon-text h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.trust-ribbon-text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Impact Calculator / Slabs */
.impact-calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 35px;
}

.impact-calc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.impact-calc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary);
}

.impact-calc-card.popular {
    border: 2px solid var(--secondary);
    box-shadow: 0 10px 25px rgba(224, 122, 20, 0.12);
}

.impact-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 14px;
    border-radius: 20px;
}

.impact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fdf5ec;
    color: var(--secondary);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: all 0.3s ease;
}

.impact-calc-card:hover .impact-icon {
    background: var(--secondary);
    color: #ffffff;
    transform: scale(1.08);
}

.impact-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    font-family: var(--font-sans);
}

.impact-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.impact-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
    margin-bottom: 22px;
}

/* Financial Transparency Section */
.transparency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.fund-bar-list {
    margin-top: 25px;
}

.fund-bar-item {
    margin-bottom: 20px;
}

.fund-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.fund-bar-track {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.fund-bar-fill {
    height: 100%;
    border-radius: 6px;
}

/* Home Volunteer Section */
.home-volunteer-wrapper {
    background: linear-gradient(135deg, #043e33 0%, #085848 100%);
    border-radius: 20px;
    padding: 50px 45px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 45px;
    align-items: center;
    box-shadow: 0 20px 45px rgba(4, 62, 51, 0.25);
    position: relative;
    overflow: hidden;
}

.home-volunteer-wrapper::after {
    content: '';
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.home-volunteer-perks {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
}

.home-volunteer-perks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    color: #d1e5e0;
}

.home-volunteer-perks li i {
    color: #fbbf24;
    font-size: 17px;
    margin-top: 2px;
}

.home-volunteer-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 30px;
    color: var(--dark);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.home-volunteer-card h3 {
    font-size: 20px;
    color: var(--dark);
    margin-top: 0;
    margin-bottom: 6px;
}

.home-volunteer-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Donor Wall */
.donor-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.donor-wall-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.donor-wall-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.donor-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #d96d06);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.donor-details h5 {
    margin: 0;
    font-size: 14px;
    color: var(--dark);
    font-weight: 700;
}

.donor-details .donor-amt {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.donor-details .donor-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 860px;
    margin: 35px auto 0;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    font-size: 14px;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 14.5px;
    color: var(--text-body);
    line-height: 1.65;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* WhatsApp Strip */
.whatsapp-community-strip {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    padding: 35px 0;
    color: #ffffff;
}

.whatsapp-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.whatsapp-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.whatsapp-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #25d366;
    flex-shrink: 0;
}

.whatsapp-btn {
    background: #25d366;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    transition: all 0.2s;
}

.whatsapp-btn:hover {
    background: #1eb956;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

/* CSR Box */
.csr-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 35px;
    align-items: center;
}

@media (max-width: 900px) {
    .home-volunteer-wrapper {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    .transparency-grid {
        grid-template-columns: 1fr;
    }
    .csr-container {
        grid-template-columns: 1fr;
        padding: 25px;
    }
}
