/* ==========================================================================
   V-DAC (Village Development and Activities Club) - Design System & Stylesheet
   IISER Berhampur Community Outreach & Social Upliftment Club
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --- CSS Variables & Color Tokens --- */
:root {
    /* Color Palette - Non-Profit Org Theme (Light Mode) */
    --primary-hue: 158; /* Emerald / Eco Green */
    --primary: #047857; /* Deep Eco Emerald */
    --primary-hover: #065f46; /* Rich Forest Green */
    --primary-light: #ecfdf5; /* Soft Eco Mint Tint */
    --primary-glow: rgba(4, 120, 87, 0.22);

    --accent-amber: #d97706; /* Solar Warmth Amber */
    --accent-amber-light: #fef3c7; /* Warm Amber Tint */
    --accent-indigo: #0284c7; /* Deep Community Blue */
    --accent-coral: #e11d48; /* Humanitarian Crimson */

    --bg-body: #f4fbf7; /* Crisp Eco Off-White */
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.92);
    --bg-subtle: #e6f4ed; /* Soft Mint Subtle Background */

    --text-heading: #082820; /* Deep Obsidian Forest */
    --text-body: #243833; /* Dark Emerald Charcoal */
    --text-muted: #526f67; /* Soft Forest Sage Muted */
    --text-white: #ffffff;

    --border-color: #d1e7dd; /* Light Emerald Border */
    --border-hover: #a3d6c0;

    --shadow-sm: 0 1px 3px rgba(4, 40, 32, 0.06), 0 1px 2px rgba(4, 40, 32, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(4, 40, 32, 0.08), 0 2px 4px -2px rgba(4, 40, 32, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(4, 40, 32, 0.1), 0 8px 10px -6px rgba(4, 40, 32, 0.04);
    --shadow-xl: 0 20px 30px -10px rgba(4, 120, 87, 0.18), 0 10px 15px -5px rgba(4, 40, 32, 0.08);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --nav-height: 80px;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Dark Mode Theme Overrides - Obsidian Pine & Mint */
[data-theme="dark"] {
    --primary: #34d399; /* Vibrant Mint */
    --primary-hover: #6ee7b7;
    --primary-light: rgba(52, 211, 153, 0.14);
    --primary-glow: rgba(52, 211, 153, 0.35);

    --accent-amber: #fbbf24;
    --accent-amber-light: rgba(251, 191, 36, 0.15);
    --accent-indigo: #38bdf8;
    --accent-coral: #fb7185;

    --bg-body: #06120e; /* Obsidian Pine */
    --bg-surface: #0e201b; /* Dark Forest Surface */
    --bg-surface-glass: rgba(14, 32, 27, 0.90);
    --bg-subtle: #152e27;

    --text-heading: #f0fdf4;
    --text-body: #c2e2d7;
    --text-muted: #7fa89b;

    --border-color: #1a3a30;
    --border-hover: #2a5648;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 30px -10px rgba(0, 0, 0, 0.6);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

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

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 50%, var(--accent-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 3rem;
}

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

/* --- Reusable Components --- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-heading);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* --- Navigation Header --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition-base);
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    height: 72px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-heading);
}

.brand-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-bounce);
}

.brand-logo:hover img {
    transform: scale(1.08) rotate(-3deg);
}

.brand-title-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-subtext {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    color: var(--text-body);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2.5px;
    background: var(--primary);
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Theme Switcher Toggle */
.theme-toggle {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background: var(--border-hover);
    transform: rotate(15deg);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section (Home) --- */
.hero {
    position: relative;
    min-height: 90vh;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4) contrast(1.1);
    transform: scale(1.05);
    animation: heroZoom 20s infinite alternate ease-in-out;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(9, 13, 22, 0.75) 0%,
        rgba(9, 13, 22, 0.88) 60%,
        var(--bg-body) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding-top: 2rem;
}

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

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    background: rgba(52, 211, 153, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: var(--radius-full);
    color: #34d399;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 3.8rem);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.5rem;
    max-width: 620px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* Glass Card */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.glass-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-card-header img {
    height: 48px;
    width: auto;
}

.glass-card-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
}

.glass-card-quote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

/* Subpage Hero Section */
.page-hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 4rem;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, var(--bg-subtle) 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Stats Row */
.stats-banner {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #34d399;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

/* --- About & Vision Section --- */
.section-padding {
    padding: 5.5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-banner-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-banner-frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.about-banner-frame:hover img {
    transform: scale(1.03);
}

.about-floating-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.pillar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.pillar-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pillar-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.pillar-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Dual Logo Partners Row in Body */
.partner-logos-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: 3rem;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.partner-logo-item img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* --- Filterable Initiatives Archive --- */
.initiatives-section {
    background-color: var(--bg-subtle);
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.initiative-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    position: relative;
}

.initiative-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

/* Initiative Header with Photo Background */
.initiative-card-header {
    height: 220px;
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    overflow: hidden;
}

.initiative-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-base);
    z-index: 1;
}

.initiative-card:hover .initiative-card-img {
    transform: scale(1.08);
}

.initiative-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.35) 0%, rgba(9, 13, 22, 0.8) 100%);
    z-index: 2;
}

.initiative-category-tag {
    position: relative;
    z-index: 3;
    align-self: flex-start;
    padding: 0.35rem 0.85rem;
    background: rgba(13, 148, 136, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.initiative-icon-large {
    position: relative;
    z-index: 3;
    font-size: 2.2rem;
    opacity: 0.9;
    align-self: flex-end;
}

.initiative-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.initiative-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.initiative-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.initiative-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Event Photo Gallery Grid */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.gallery-card-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.gallery-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.gallery-card-caption {
    padding: 1.25rem;
}

.gallery-card-caption h4 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.gallery-card-caption p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- CSR Partner Hub Section --- */
.csr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.csr-stats-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.csr-stat-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.csr-stat-row:last-child {
    margin-bottom: 0;
}

.csr-stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--accent-amber-light);
    color: var(--accent-amber);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.csr-stat-title {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

/* CSR Impact Calculator Widget */
.calc-card {
    background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
}

.slider-container {
    margin: 2rem 0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.amount-display {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.range-slider {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1.5rem;
    text-align: center;
}

.calc-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.calc-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* --- Get Involved / Interactive Tabs --- */
.tab-container {
    max-width: 820px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-subtle);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    background: none;
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.tab-btn.active {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-heading);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    color: var(--text-heading);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--bg-surface);
}

/* --- FAQ Accordion --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.25rem;
    transition: transform var(--transition-base);
    color: var(--primary);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease-out;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

/* --- Modal Dialog --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform var(--transition-bounce);
    position: relative;
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-close {
    background: var(--bg-subtle);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-heading);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.modal-close:hover {
    background: var(--border-hover);
}

.modal-body {
    padding: 2rem;
}

/* Social Icon Badges */
.social-links {
    display: flex;
    gap: 0.85rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.social-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* --- Footer --- */
.footer {
    background: #090d16;
    color: #cbd5e1;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid #1f293d;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.footer-brand-logos img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.92rem;
    color: #94a3b8;
    max-width: 340px;
    line-height: 1.6;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color var(--transition-fast);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #34d399;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1f293d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #64748b;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .csr-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform var(--transition-base);
    }

    .nav-menu.mobile-open {
        transform: translateY(0);
    }

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

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

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

    .hero-title {
        font-size: 2.25rem;
    }
}
