/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-blue: #1e3a8a;
    --sky-blue: #0ea5e9;
    --orange-accent: #47afe3;
    --light-blue: #e0f2fe;
    --dark-navy: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --primary-blue: #2563eb;
    --primary-cyan: #06b6d4;
    --accent-coral: #f43f5e;
    --accent-magenta: #a855f7;
    --graphite: #0f172a;
    --glass-layer: rgba(13, 25, 46, 0.45);
    --glass-border: rgba(255, 255, 255, 0.28);
    --glass-highlight: rgba(255, 255, 255, 0.08);
    --hero-bg: #050c1c;
    --brand-gradient: linear-gradient(120deg, rgba(37, 99, 235, 0.95) 0%, rgba(14, 165, 233, 0.82) 45%, rgba(244, 63, 94, 0.78) 100%);
    --cta-gradient: linear-gradient(135deg, #2563eb 0%, #9333ea 45%, #f43f5e 100%);
    --surface-blur: blur(24px);
    --glow-soft: 0 28px 60px rgba(37, 99, 235, 0.32);
    --shadow-xl: 0 32px 80px rgba(4, 14, 35, 0.55);
    --transition-sm: 160ms ease;
    --transition-md: 260ms ease;
    --transition-lg: 420ms cubic-bezier(0.22, 1, 0.36, 1);
    --space-2xs: clamp(0.5rem, 0.6vw + 0.4rem, 0.65rem);
    --space-xs: clamp(0.75rem, 0.8vw + 0.5rem, 1rem);
    --space-sm: clamp(1rem, 1vw + 0.7rem, 1.25rem);
    --space-md: clamp(1.5rem, 1.2vw + 0.9rem, 1.85rem);
    --space-lg: clamp(2rem, 1.8vw + 1.1rem, 2.5rem);
    --space-xl: clamp(2.5rem, 2.5vw + 1.2rem, 3rem);
    --space-2xl: clamp(3rem, 3vw + 1.4rem, 3.5rem);
    
    /* Light mode (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e0f2fe;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: rgba(30, 58, 138, 0.12);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.1);
    --light-gray: #1e293b;
    --white: #0f172a;
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
    --light-blue: #1e293b;
}

html {
    scroll-behavior: smooth;
    background-color: var(--hero-bg);
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-primary);
    overflow-x: hidden; /* prevent horizontal overflow beyond page margins */
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.05), transparent 35%),
        radial-gradient(circle at bottom right, rgba(244, 63, 94, 0.04), transparent 40%),
        var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color var(--transition-md), color var(--transition-md);
}

[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 35%),
        radial-gradient(circle at bottom right, rgba(244, 63, 94, 0.12), transparent 40%),
        var(--bg-primary);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 10000;
    padding: 1rem 1.5rem;
    background: var(--primary-blue);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    transition: top var(--transition-md);
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--orange-accent);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Raleway', sans-serif;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

p,
.news-content p,
.footer-section p,
.event-card p,
.impact-card p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw + 0.5rem, 2rem);
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Ensure media never exceeds page margins */
img,
video,
svg,
canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scroll Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px; /* thicker for better visibility */
    background: var(--light-gray);
    z-index: 1001;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    width: 0;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.45), 0 0 8px rgba(37, 99, 235, 0.35);
    transition: width 0.08s linear; /* slightly snappier */
}

/* Sticky Donation Button */
.sticky-donate {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--orange-accent);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.sticky-donate:hover {
    background: #e07b1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(90deg, rgba(8, 16, 28, 0.78) 0%, rgba(8, 16, 28, 0.5) 42%, rgba(8, 16, 28, 0.12) 100%);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 40px rgba(6, 14, 24, 0.25);
    transform: translateY(0);
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.4s ease, padding 0.4s ease;
    padding: var(--space-xs) 0;
}

body.nav-open header {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

header.header--scrolled {
    background: linear-gradient(135deg, rgba(12, 25, 44, 0.92), rgba(20, 70, 125, 0.78));
    box-shadow: 0 24px 48px rgba(11, 25, 45, 0.22);
}

header.header--compact {
    padding: clamp(0.6rem, 1vw + 0.35rem, 0.9rem) 0;
}

header.header--compact .logo-img {
    width: clamp(120px, 16vw, 160px);
}

header.header--hidden {
    transform: translateY(-120%);
}

header.header--drawer-open {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    min-width: 0; /* Allow flex children to shrink below their content size */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto; /* Allow to grow and shrink */
    min-width: 0; /* Allow content to shrink */
    max-width: calc(100% - 200px); /* Reserve space for nav-actions */
    overflow: hidden; /* Prevent overflow */
}

.logo-img {
    width: clamp(150px, 20vw, 190px);
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.32));
}

.nav-slogan {
    font-size: clamp(0.78rem, 0.5vw + 0.7rem, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    margin-left: clamp(0.75rem, 1.5vw, 1.5rem);
    white-space: nowrap;
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1; /* Allow to shrink if needed */
    min-width: 0; /* Allow to shrink below content size */
}

body.nav-open {
    overflow: hidden;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(180px, 45vw);
    height: 100vh;
    max-height: 100vh;
    padding: 0;
    background: linear-gradient(135deg, rgba(61, 85, 139, 0.95) 0%, rgba(217, 221, 227, 0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -8px 0 32px rgba(159, 163, 215, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    overflow: hidden;
    pointer-events: none;
}

/* Scrollable wrapper for menu items (created by JavaScript) */
.nav-links-scrollable {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(3rem, 4vw + 2rem, 4rem) clamp(1rem, 1.5vw + 0.75rem, 1.25rem) 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* All menu items inside scrollable wrapper */
.nav-links-scrollable > li {
    flex: 0 0 auto;
    width: 100%;
}

/* Fixed footer at bottom - never scrolls */
.nav-links > li.nav-sidebar-footer {
    flex: 0 0 auto;
    margin-top: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: linear-gradient(135deg, rgba(61, 85, 139, 0.95) 0%, rgba(217, 221, 227, 0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .nav-links > li.nav-sidebar-footer {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
}

/* Fallback for when JavaScript hasn't run yet */
.nav-links > li:not(.nav-sidebar-footer) {
    flex: 0 0 auto;
    width: 100%;
}

[data-theme="dark"] .nav-links {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
}

body.nav-open .nav-links {
    transform: translateX(0);
    pointer-events: auto;
}

/* Make body flexible when menu is open - subtle shift */
body.nav-open main {
    transform: translateX(calc(min(180px, 45vw) * -0.15));
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapse (close) arrow/button inside the nav drawer */
.nav-collapse {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1rem);
    right: clamp(0.75rem, 2vw, 1rem);
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    z-index: 1201;
    transition: all var(--transition-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-collapse i {
    font-size: 1rem;
}

body.nav-open .nav-collapse {
    display: inline-flex;
}

.nav-collapse:hover,
.nav-collapse:focus-visible {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    outline: none;
}

.nav-links li {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li + li {
    margin-top: 0.25rem;
}

.nav-links > li.nav-sidebar-footer {
    margin-top: auto;
}

.nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: #ffffff; /* Bright white */
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: transparent;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: var(--sky-blue);
    transform: translateX(4px);
}

.nav-links a.active {
    background: rgba(14, 165, 233, 0.2);
    color: #ffffff;
    border-left-color: var(--sky-blue);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0; /* Prevent nav-actions from shrinking */
    margin-left: auto; /* Push to the right */
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: rgba(14, 26, 47, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    transition: transform var(--transition-md), box-shadow var(--transition-md), background var(--transition-md);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
    background: rgba(14, 26, 47, 0.5);
}

.nav-cta.secondary {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.06);
}

/* Theme Toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    background: rgba(15, 23, 42, 0.3);
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(15, 23, 42, 0.5);
    outline: none;
}

.theme-toggle i {
    font-size: 0.95rem;
    transition: transform var(--transition-md);
    color: var(--white);
    display: inline-block;
}

/* Dark mode - ensure sun icon is visible with light color */
[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffd700; /* Gold/yellow color for sun icon in dark mode */
}

[data-theme="dark"] .theme-toggle i {
    color: #ffd700; /* Gold/yellow color for sun icon */
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .theme-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffed4e; /* Lighter gold on hover */
}

[data-theme="dark"] .theme-toggle:hover i,
[data-theme="dark"] .theme-toggle:focus-visible i {
    color: #ffed4e; /* Lighter gold on hover */
}

[data-theme="dark"] .theme-toggle i.fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle i.fa-sun {
    display: inline-block;
    color: #ffd700; /* Gold/yellow color for sun icon */
}

.theme-toggle i.fa-sun {
    display: none;
}

header.header--scrolled .theme-toggle,
header.header--drawer-open .theme-toggle {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.65);
    color: var(--navy-blue);
}

header.header--scrolled .theme-toggle i,
header.header--drawer-open .theme-toggle i {
    color: var(--navy-blue);
}

/* Dark mode with scrolled header */
[data-theme="dark"] header.header--scrolled .theme-toggle,
[data-theme="dark"] header.header--drawer-open .theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffd700;
}

[data-theme="dark"] header.header--scrolled .theme-toggle i,
[data-theme="dark"] header.header--drawer-open .theme-toggle i {
    color: #ffd700;
}

/* Header collapse toggle */
.header-collapse {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: transparent; /* no background */
    color: var(--sky-blue); /* bluish to blend with header */
    cursor: pointer;
    transition: transform var(--transition-md), color var(--transition-md), text-shadow var(--transition-md);
    position: fixed;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1400;
    animation: floatPulse 3s ease-in-out infinite;
}

.header-collapse i { font-size: 1rem; }

.header-collapse:hover,
.header-collapse:focus-visible {
    transform: translateY(-1px);
    color: #90cdf4; /* lighter blue on hover */
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.45);
    outline: none;
}

@media (min-width: 1024px) {
    .header-collapse { display: inline-flex; }
}

/* Collapsed header state */
body.header-collapsed header {
    transform: translateY(-72%);
}

/* Keep a small floating expand control visible when collapsed */
body.header-collapsed .header-collapse {
    position: fixed;
    top: 6px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 1400;
    background: transparent; /* keep transparent when floating */
    color: var(--sky-blue);
    border: none;
}

/* When collapsed, tighten header spacing and hide slogan for minimal chrome */
body.header-collapsed .nav-slogan {
    display: none;
}

body.header-collapsed .nav-donate {
    opacity: 0.92;
}

/* Hover-peek: when collapsed, hovering the header should drop it back */
body.header-collapsed.header-peek header {
    transform: translateY(0);
}

@keyframes floatPulse {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-2px); }
}
/* Prominent Donate button in the top nav (desktop) */
.nav-donate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #0b1222;
    background: linear-gradient(135deg, #ffd166 0%, #fca311 45%, #ff4d6d 100%);
    box-shadow:
        0 8px 24px rgba(252, 163, 17, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-md), box-shadow var(--transition-md), filter var(--transition-md);
}

.nav-donate i {
    color: #0b1222;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.nav-donate::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(115deg, rgba(255,255,255,0.65), rgba(255,255,255,0));
    transform: skewX(-20deg);
    opacity: 0;
    transition: opacity var(--transition-md), left var(--transition-lg);
}

.nav-donate:hover,
.nav-donate:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 14px 36px rgba(252, 163, 17, 0.45),
        0 18px 50px rgba(255, 77, 109, 0.35);
    outline: none;
    filter: saturate(1.05);
}

.nav-donate:hover::after,
.nav-donate:focus-visible::after {
    left: 120%;
    opacity: 1;
}

/* Hero Donate button below metrics */
.hero-donate {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: clamp(0.6rem, 2vw, 1rem);
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0b1222;
    background: linear-gradient(135deg, #ffd166 0%, #fca311 45%, #ff4d6d 100%);
    box-shadow:
        0 10px 28px rgba(252, 163, 17, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-md), box-shadow var(--transition-md), filter var(--transition-md);
}

.hero-donate i {
    color: #0b1222;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.hero-donate::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(115deg, rgba(255,255,255,0.65), rgba(255,255,255,0));
    transform: skewX(-20deg);
    opacity: 0;
    transition: opacity var(--transition-md), left var(--transition-lg);
}

.hero-donate:hover,
.hero-donate:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(252, 163, 17, 0.45),
        0 18px 50px rgba(255, 77, 109, 0.35);
    outline: none;
    filter: saturate(1.05);
}

.hero-donate:hover::after,
.hero-donate:focus-visible::after {
    left: 120%;
    opacity: 1;
}

@media (min-width: 1024px) {
    .hero--simple .hero-donate {
        grid-column: 2;
        justify-self: end;
        margin-right: clamp(0.75rem, 2.5vw, 1.5rem);
    }
}
@media (max-width: 1023px) {
    .theme-toggle {
        display: none;
    }
}

.dropdown {
    position: relative;
}

.dropdown > a {
    font-weight: 500;
}

.dropdown > a::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: auto;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.dropdown.dropdown-open > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0.25rem 0 0 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    position: static;
    box-shadow: none;
    border-left: 2px solid rgba(14, 165, 233, 0.3);
    display: block;
}

.dropdown.dropdown-open .dropdown-menu {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-menu li {
    margin: 0;
    list-style: none;
}

.dropdown-menu a {
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.5rem 1.5rem;
    color: #ffffff; /* Bright white */
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    display: block;
    border-radius: 0;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff; /* Bright white on hover */
    border-left-color: var(--sky-blue);
    padding-left: 1.75rem;
}

/* Sidebar Footer - Additional styling */
.nav-sidebar-footer {
    padding: clamp(1.5rem, 2vw + 1rem, 2rem) clamp(0.85rem, 1.5vw + 0.5rem, 1rem) clamp(1rem, 2vw + 0.75rem, 1.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    list-style: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-sidebar-footer a {
    display: none; /* Hide any link styling */
}

.nav-sidebar-logo {
    width: 80%;
    max-width: 80%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-sidebar-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.donate-btn {
    background: var(--orange-accent);
    color: white !important;
    padding: var(--space-2xs) var(--space-sm);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(246, 138, 30, 0.25);
    text-align: center;
}

.donate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(246, 138, 30, 0.35);
    background: var(--orange-accent) !important;
}

.hamburger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    background: rgba(15, 23, 42, 0.3);
    cursor: pointer;
    gap: 5px;
    z-index: 1200;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    padding: 12px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger span {
    transition: all 0.3s ease;
}

.hamburger-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
}

.hamburger:hover,
.hamburger:focus-visible {
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.75);
}

header.header--scrolled .hamburger,
header.header--drawer-open .hamburger {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.65);
}

header.header--scrolled .hamburger-line,
header.header--drawer-open .hamburger-line {
    background: var(--navy-blue);
}

body.nav-open .hamburger {
    background: transparent;
    border-color: rgba(30, 58, 138, 0.2);
}

body.nav-open .hamburger-line {
    background: var(--navy-blue);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 1050;
}

body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 1024px) {
    /* Keep the hamburger visible on desktop so navigation is always on demand */
    .hamburger {
        display: inline-flex;
    }

    /* On larger screens, keep nav as an off-canvas / overlay panel, but allow a wider width */
    .nav-links {
        width: min(420px, 60vw);
        font-size: 0.95rem;
    }

    .nav-actions {
        display: inline-flex;
    }
}

header:not(.header--scrolled):not(.header--drawer-open) .nav-links a {
    color: var(--navy-blue);
}

header.header--scrolled .nav-links a,
header.header--drawer-open .nav-links a {
    color: var(--text-dark);
}

header.header--scrolled .nav-slogan,
header.header--drawer-open .nav-slogan {
    color: rgba(255, 255, 255, 0.82) !important; /* Keep white on scroll */
}

@media (prefers-reduced-motion: reduce) {
    header {
        transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    }

    [data-animate],
    [data-animate] *,
    [data-tilt],
    .magnetic,
    .hero-video {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    [data-animate],
    [data-animate] * {
        opacity: 1 !important;
    }

    .hero-scroll-prompt svg {
        animation: none !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    color: #ffffff;
    text-align: left;
}

/* Team Page Hero - Matching provided design */
section.hero:not(.home-hero) {
    height: 50vh;
    min-height: 50vh;
    margin-top: 3.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../images/front1.jpg') no-repeat center center/cover;
    text-align: center;
    transition: margin-top 0.3s ease;
}

/* When navbar is collapsed, remove top margin/padding from all hero sections */
body.header-collapsed section.hero:not(.home-hero) {
    margin-top: 0 !important;
}


body.header-collapsed .impact-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.header-collapsed .hero--simple {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

section.hero:not(.home-hero) .hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 1.5rem;
    position: relative;
    inset: auto;
    transform: none;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    grid-template-columns: 1fr;
}

section.hero:not(.home-hero) .hero-cta-wrapper {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

section.hero:not(.home-hero) h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease forwards;
    letter-spacing: -0.025em;
    color: white;
}

section.hero:not(.home-hero) p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
    line-height: 1.5;
    color: white;
    max-width: 800px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix hero overflow on mobile - allow content to be visible */
@media (max-width: 768px) {
    .home-hero,
    .hero {
        min-height: auto;
        height: auto;
        overflow: visible;
        padding: clamp(2rem, 5vw + 1rem, 4rem) 0;
    }
    
    section.hero:not(.home-hero) {
        height: 40vh;
        min-height: 40vh;
    }
    
    section.hero:not(.home-hero) h1 {
        font-size: 1.75rem;
    }

.hero-video {
        position: relative;
        height: 50vh;
        min-height: 300px;
    }

    .video-overlay {
    position: absolute;
        height: 50vh;
        min-height: 300px;
    }
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
    z-index: 0;
}

/* Video Overlay - Translucent overlay that adapts to dark mode */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
    transition: background-color var(--transition-md);
}

/* Darker overlay in dark mode for better text contrast */
[data-theme="dark"] .video-overlay {
    background: rgba(0, 0, 0, 0.55);
}

/* Optional: Gradient overlay for more visual interest */
.video-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: absolute;
    inset: clamp(6rem, 8vw, 7.5rem) 0 clamp(4rem, 6vw, 5rem);
    left: 0;
    right: 0;
    transform: none;
    margin-left: auto;
    margin-right: auto;
    width: min(1100px, 92%);
    padding: 0 16px; /* respect page margins on all screens */
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: end;
    z-index: 2;
}

.hero--simple .hero-content {
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: start;
    text-align: left;
    gap: clamp(0.75rem, 2.5vw, 1.25rem);
    inset: clamp(2rem, 4vw, 3rem) 0 clamp(2.25rem, 4.5vw, 3.5rem);
    padding: 0;
    padding-left: clamp(2rem, 4vw + 1rem, 3rem); /* left alignment with slight margin */
    padding-right: clamp(1rem, 3vw + 0.5rem, 2rem); /* right padding for metrics */
    margin-left: 0;
}

/* Partners hero - centered content */
.partners-hero .hero-content {
    grid-template-columns: 1fr !important;
    align-items: center !important;
    justify-items: center !important;
    text-align: center !important;
    inset: clamp(6rem, 8vw + 4rem, 8rem) 0 clamp(2.25rem, 4.5vw, 3.5rem) !important;
    padding: 0 clamp(1rem, 3vw + 0.5rem, 2rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 1200px !important;
}

.partners-hero .hero-copy {
    align-items: center !important;
    text-align: center !important;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.partners-hero .hero-heading,
.partners-hero .hero-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 900px;
}

/* Remove gradient effect from Mission Partners - keep it constant white */
.partners-hero .hero-heading .hero-accent {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    filter: none !important;
    animation: none !important;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55) !important;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 2vw, 1.2rem);
    align-items: flex-start;
}

.hero--simple .hero-copy {
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.hero--simple .hero-heading,
.hero--simple .hero-subtitle {
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.hero-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(0.6rem, 2vw, 1rem);
    margin-top: 0.25rem;
    width: 100%;
}

.hero-buttons .cta-button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero--simple .hero-content {
        grid-template-columns: 1fr; /* single column - metrics removed from grid (absolutely positioned) */
        align-items: end;
        justify-items: start;
        padding-left: clamp(2.5rem, 5vw + 1.5rem, 4rem); /* more left padding on desktop */
        padding-right: 0; /* no right padding to allow metrics to reach far right */
        gap: clamp(3rem, 6vw, 5rem); /* increased gap between text and cards */
    }

    /* Limit hero text content to half the page width */
    .hero--simple .hero-copy {
        max-width: 60%;
    }

    .hero--simple .hero-heading,
    .hero--simple .hero-subtitle,
    .hero--simple .hero-buttons {
        width: 100%;
        text-align: left;
    }

    /* Prevent buttons from wrapping on desktop */
    .hero--simple .hero-buttons {
        flex-wrap: nowrap;
        width: auto;
        max-width: 100%;
    }

    /* Position metrics at far right with absolute positioning - independent of hero content flow */
    .hero--simple {
        position: relative; /* establish positioning context for absolute children */
    }

    /* Position metrics relative to hero section - now siblings of hero-content */
    .hero--simple .hero-metrics {
        position: absolute; /* positioned relative to hero section */
        right: clamp(0.25rem, 0.8vw, 0.5rem); /* small gap from right edge */
        bottom: clamp(4.5rem, 8vw, 6rem); /* moved up to avoid notifications icon overlap */
        margin: 0; /* remove any conflicting margins */
        z-index: 10; /* ensure metrics appear above other content */
        width: auto; /* allow natural width */
        max-width: 360px; /* maintain card width */
    }
}

/* Keep buttons horizontal on medium screens (larger tablets) */
@media (min-width: 900px) and (max-width: 1023px) {
    .hero--simple .hero-buttons {
        flex-wrap: nowrap;
        flex-direction: row;
    }
    
    .hero--simple .hero-copy {
        max-width: 90%;
    }
}

.hero-heading {
    font-family: 'Playfair Display', 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.3rem, 4.5vw + 0.9rem, 4.6rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    margin: 0;
    text-transform: none;
    color: #ffffff;
    text-shadow:
        2px 2px 8px rgba(0, 0, 0, 0.88),
        0 0 22px rgba(0, 0, 0, 0.78),
        0 0 44px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.45);
    font-kerning: normal;
    font-variant-ligatures: discretionary-ligatures;
}

.hero--simple .hero-heading {
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
    -webkit-text-stroke: 0;
}

.hero-kicker {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    margin-bottom: 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero--simple .hero-kicker {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.12);
}

.hero-heading .hero-highlight {
    position: relative;
    display: inline-block;
    background: linear-gradient(120deg, #a5b4fc 0%, #60a5fa 30%, #06b6d4 60%, #f472b6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    /* Start as white, then reveal gradient via animation */
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
    filter: drop-shadow(0 10px 30px rgba(14, 165, 233, 0.35));
    animation:
        revealGradient 900ms ease 400ms forwards,
        heroHighlightShift 6s ease-in-out infinite 900ms;
}

.hero-heading .hero-accent {
    position: relative;
    display: inline-block;
    background: var(--brand-gradient);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    /* Constant white base; gradient appears at intervals */
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
    filter: drop-shadow(0 10px 28px rgba(37, 99, 235, 0.28));
    animation:
        heroHighlightShift 7s linear infinite,
        accentRevealCycle 6s ease-in-out infinite;
}
.hero--simple .hero-subtitle {
    padding: 0;
    background: transparent;
    border-radius: 0;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.95);
}

@keyframes heroHighlightShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes revealGradient {
    0% {
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
    100% {
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}

/* Cycle between white text and gradient-filled text for the accent word */
@keyframes accentRevealCycle {
    0% {
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
    30% {
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
    35% {
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
    65% {
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
    70% {
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
    100% {
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-heading .hero-highlight {
        animation: none;
        background-position: 50% 50%;
    }
}

.hero-subtitle {
    max-width: 620px;
    font-size: clamp(1rem, 1.1vw + 0.85rem, 1.18rem);
    line-height: 1.7;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.82);
}

.hero-scroll-prompt {
    position: absolute;
    left: 50%;
    bottom: clamp(1.5rem, 3vw, 2.5rem);
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 2;
    animation: heroScrollBounce 2.2s ease-in-out infinite;
}

.hero-scroll-prompt svg {
    width: 18px;
    height: 32px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}

.hero-scroll-prompt:hover {
    color: #ffffff;
}

.hero-scroll-prompt span {
    letter-spacing: 0.28em;
}

@keyframes heroScrollBounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.5rem, 1.6vw, 0.8rem);
    align-self: end;
    align-items: stretch; /* ensure equal height cards */
}

.hero--simple .hero-metrics {
    align-self: start;
    justify-self: end; /* align to right on mobile too */
    width: auto;
    max-width: 360px;
    grid-template-columns: 1fr;
    gap: clamp(0.5rem, 1.4vw, 0.75rem);
    margin-left: auto; /* push to right */
    margin-right: clamp(0.25rem, 0.8vw, 0.5rem); /* very small margin from right edge - moved closer */
    margin-top: clamp(0.75rem, 2.2vw, 1.4rem); /* add breathing room from top */
}

.hero-metric {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-auto-rows: auto;
    column-gap: 0.5rem;
    row-gap: 0.2rem;
    padding: clamp(0.6rem, 1.4vw, 0.9rem); /* slightly shorter card height */
    border-radius: 12px;
    background: rgba(5, 11, 24, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(5, 11, 24, 0.26);
    transition: transform var(--transition-lg), box-shadow var(--transition-lg), border var(--transition-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    min-width: 0; /* allow text truncation inside */
    overflow: hidden; /* clip overflowing children */
    align-items: center;
}

.hero--simple .hero-metric {
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    padding: clamp(0.75rem, 1.6vw, 1rem);
}

/* Subtle glass + glow prototype for Years of Service */
.hero-metric--gold {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.55), rgba(10, 16, 28, 0.7));
    border: 1px solid rgba(255, 215, 0, 0.22);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.28),
        0 0 40px rgba(255, 215, 0, 0.12);
    overflow: hidden;
}

.hero-metric--gold::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    pointer-events: none;
    z-index: 0;
}

.hero-metric--gold::after {
    content: '';
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 50% 30%, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0) 60%);
    filter: blur(8px);
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
    transition: opacity var(--transition-lg), filter var(--transition-lg);
}

.hero-metric--gold .metric-icon {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(255, 215, 0, 0.95), rgba(255, 255, 255, 0.65));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: iconShimmer 4s linear infinite;
    z-index: 1;
}

.hero-metric--gold .metric-number {
    text-shadow:
        0 0 18px rgba(255, 215, 0, 0.28),
        0 2px 10px rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-metric--gold .metric-label {
    letter-spacing: 0.18em;
    z-index: 1;
}

.hero-metric--gold:hover::after,
.hero-metric--gold:focus-visible::after {
    opacity: 1;
    filter: blur(14px);
}

@keyframes iconShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hero-metric:hover,
.hero-metric:focus-visible {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 30px 70px rgba(5, 11, 24, 0.45);
}

.hero--simple .hero-metric:hover,
.hero--simple .hero-metric:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

.hero-metric:focus-visible {
    outline: 0;
}

.metric-icon {
    font-size: 1.4rem;
    opacity: 0.85;
    flex-shrink: 0;
    grid-row: 1 / span 2;
    grid-column: 1;
}

.partners-metrics .hero-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(0.75rem, 1.5vw, 1.25rem);
    gap: 0.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.metric-number {
    font-size: clamp(1.3rem, 1.6vw + 0.7rem, 1.9rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    white-space: nowrap; /* do not wrap numbers like 62,000+ */
    grid-column: 2;
    grid-row: 1;
}

.metric-label {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    white-space: normal; /* allow wrapping to keep full text visible */
    word-break: keep-all;
    overflow: visible;
    text-overflow: clip;
    grid-column: 2;
    grid-row: 2;
}

/* Extra small screens: tighten further to keep content visible within margins */
@media (max-width: 400px) {
    .hero-metrics {
        gap: 0.4rem;
    }
    .hero-metric {
        padding: 0.6rem;
        border-radius: 10px;
    }
    .metric-icon {
        font-size: 1.2rem;
    }
    .metric-number {
        font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    }
    .metric-label {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }
}

.magnetic {
    position: relative;
    transition: transform var(--transition-md), box-shadow var(--transition-md);
    will-change: transform;
}

.magnetic.is-active {
    transform: translate3d(var(--magnet-x, 0), var(--magnet-y, 0), 0) scale(1.03);
}

[data-tilt] {
    transition: transform var(--transition-lg), box-shadow var(--transition-lg);
    transform-style: preserve-3d;
}

[data-tilt].is-tilting {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(12px);
}

[data-glow]::before {
    content: '';
    position: absolute;
    inset: -25%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-lg);
    pointer-events: none;
}

[data-glow]:hover::before,
[data-glow]:focus-visible::before {
    opacity: 0.45;
}

/* Scroll-triggered animations */
[data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-in"] {
    transform: translateY(18px);
}

[data-animate="fade-up"] {
    transform: translateY(36px);
}

[data-animate="stagger-up"] > * {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="stagger-up"].is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="reveal"] {
    transform: translateY(12px);
    clip-path: inset(0 0 100% 0);
}

[data-animate="reveal"].is-visible {
    clip-path: inset(0 0 0 0);
}

[data-animate-delay] {
    transition-delay: calc(var(--animate-delay, 0ms) / 1000 * 1s);
}

@media (max-width: 1024px) {
    .hero-content {
        bottom: 8%;
    }

    .hero-heading {
        font-size: clamp(2.3rem, 4vw + 1.4rem, 4rem);
    }
}

@media (max-width: 640px) {
    .hero-content {
        inset: clamp(5.5rem, 12vw, 6.5rem) auto clamp(3rem, 10vw, 4rem);
    }

    .hero--simple {
        min-height: 100vh; /* full viewport height */
        display: flex;
        flex-direction: column;
        justify-content: center; /* vertically center content */
    }

    .hero-copy {
        gap: 1rem;
    }

    /* For the simplified hero, keep metrics in a single row on small screens */
    .hero--simple .hero-metrics {
        position: relative !important; /* override absolute positioning on mobile */
        display: flex !important; /* use flexbox instead of grid */
        flex-direction: row !important; /* horizontal row */
        justify-content: center; /* center horizontally */
        align-items: center; /* center vertically */
        flex-wrap: nowrap; /* prevent vertical stacking */
        margin-top: clamp(1rem, 2vw, 1.5rem); /* spacing below buttons */
        margin-left: auto;
        margin-right: auto;
        gap: 0.75rem; /* spacing between cards */
        width: 100%;
        max-width: 100%;
        right: auto !important; /* reset absolute positioning */
        bottom: auto !important; /* reset absolute positioning */
        left: auto !important; /* reset absolute positioning */
    }

    .hero--simple .hero-metric {
        padding: 0.6rem 0.5rem;
    }

    /* Very narrow screens - keep horizontal but allow smaller gap */
    @media (max-width: 480px) {
        .hero--simple .hero-metrics {
            flex-direction: row !important; /* keep horizontal */
            align-items: center; /* center each card */
            gap: 0.5rem; /* smaller spacing for very narrow screens */
        }
    }

    /* Medium-small screens - show truncated slogan */
    @media (max-width: 600px) and (min-width: 481px) {
        .nav-slogan {
            font-size: clamp(0.5rem, 1.2vw + 0.2rem, 0.65rem);
            max-width: 120px; /* Limit width to prevent overlap */
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .logo-container {
            max-width: calc(100% - 150px);
        }
    }

    .hero--simple .metric-number {
        font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    }

    .hero--simple .metric-label {
        font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    }

    .hero--simple .metric-icon {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }

    .hero-heading {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    /* Center and fit heading on one line for simple hero on small mobile */
    .hero--simple .hero-copy {
        align-items: center;
        text-align: center;
    }

    .hero--simple .hero-heading {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(1.2rem, 6.5vw, 2rem);
        white-space: nowrap;
        letter-spacing: -0.02em;
        max-width: 100%;
    }

    /* Center subtitle on small mobile */
    .hero--simple .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    /* Center all hero content on small mobile */
    .hero--simple .hero-content {
        justify-items: center;
        text-align: center;
        padding-left: clamp(1rem, 3vw, 2rem);
        padding-right: clamp(1rem, 3vw, 2rem);
    }

    .hero--simple .hero-copy {
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero--simple .hero-buttons {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-buttons {
        gap: var(--space-xs);
        align-items: center;
        justify-content: center;
    }

    .hero-buttons .cta-button {
        max-width: 280px;
        width: 100%;
    }
}

.home-hero .cta-button {
    /* Use the generic gradient and effects for consistent colouring */
    background-image: var(--cta-gradient);
    box-shadow: var(--glow-soft);
}

.home-hero .cta-button:hover,
.home-hero .cta-button:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 28px 65px rgba(37, 99, 235, 0.28);
    background-position: 100% 0;
}

.home-hero .cta-button.secondary {
    /* Match the generic secondary button styling */
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    color: #ffffff;
    box-shadow: none;
}

.home-hero .cta-button.secondary:hover,
.home-hero .cta-button.secondary:focus-visible {
    /* Revert to subtle gray/fade hover */
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(12, 25, 52, 0.28);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 2.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-radius: 999px;
    border: none;
    color: #ffffff;
    background-image: var(--cta-gradient);
    box-shadow: var(--glow-soft);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--transition-md),
        box-shadow var(--transition-lg),
        background-position 0.6s ease,
        filter var(--transition-md);
    background-size: 200% 200%;
    cursor: pointer;
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity var(--transition-md);
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 28px 65px rgba(37, 99, 235, 0.28);
    background-position: 100% 0;
    outline: none;
}

.cta-button:hover::after,
.cta-button:focus-visible::after {
    opacity: 0.35;
}

.cta-button.secondary {
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    background: transparent;
    box-shadow: none;
}

.cta-button.secondary:hover,
.cta-button.secondary:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 40px rgba(12, 25, 52, 0.25);
}

/* Welcome Section */
.welcome {
    padding: var(--space-xl) 0 clamp(2rem, 3vw + 1rem, 2.5rem) 0; /* Reduced bottom padding */
    background: var(--light-gray);
    min-height: auto; /* Allow content to expand naturally */
    display: flex;
    align-items: flex-start; /* Changed from center to prevent cutting off content */
    overflow: visible;
}

@media (min-width: 1025px) {
    .welcome {
        min-height: 100vh;
        align-items: center;
    }
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.welcome-content {
    padding: 1rem;
}

.welcome-content h3 {
    font-size: 1.8rem;
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.welcome-content p {
    font-size: 0.98rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.slider-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    height: 420px; /* reduced so full card fits within viewport more easily */
    margin: 0 auto;
    overflow: hidden;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

/* Hide any images that fail to load so they are never shown in the slider */
.slider-image--error {
    display: none;
}

/* Causes Section */
.causes {
    padding: 40px 0;
    background: var(--white);
}

/* Enhanced Programs Section */
.programs-section {
    position: relative;
    padding: clamp(4rem, 6vw + 2rem, 6rem) 0;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: 
        linear-gradient(135deg, rgba(240, 248, 255, 0.6) 0%, rgba(230, 240, 250, 0.5) 50%, rgba(245, 250, 255, 0.4) 100%),
        var(--bg-primary);
}

.programs-section::before,
.programs-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.programs-section::before {
    background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.1), transparent 50%);
    animation: programsFloat1 20s ease-in-out infinite;
}

.programs-section::after {
    background: radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.08), transparent 50%);
    animation: programsFloat2 25s ease-in-out infinite;
}

[data-theme="dark"] .programs-section {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(20, 30, 50, 0.6) 50%, rgba(25, 35, 55, 0.5) 100%),
        var(--bg-primary);
}

[data-theme="dark"] .programs-section::before {
    background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15), transparent 50%);
}

[data-theme="dark"] .programs-section::after {
    background: radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.12), transparent 50%);
}

.programs-section > * {
    position: relative;
    z-index: 1;
}

@keyframes programsFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.6;
    }
    66% {
        transform: translate(-20px, 30px) scale(0.95);
        opacity: 0.4;
    }
}

@keyframes programsFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(-25px, 25px) scale(0.9);
        opacity: 0.4;
    }
    66% {
        transform: translate(25px, -25px) scale(1.15);
        opacity: 0.6;
    }
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
    color: var(--text-primary);
    margin-bottom: clamp(0.75rem, 1vw + 0.5rem, 1rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 1.3vw + 0.5rem, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: clamp(2rem, 3vw + 1.5rem, 3rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.cause-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 3vw + 1rem, 3rem);
    align-items: center;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: clamp(2rem, 3vw + 1.5rem, 3rem);
    margin-bottom: clamp(2.5rem, 4vw + 1.5rem, 4rem);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cause-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.cause-grid:hover::before {
    left: 100%;
}

.cause-grid:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.2), 0 8px 20px rgba(14, 165, 233, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.cause-grid:nth-child(even) {
    direction: rtl;
}

.cause-grid:nth-child(even) > * {
    direction: ltr;
}

.cause-content {
    padding: 0;
    position: relative;
    z-index: 1;
}

.cause-content h3 {
    font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2rem);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    letter-spacing: -0.02em;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cause-content p {
    font-size: clamp(1rem, 1.3vw + 0.5rem, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.cause-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cause-grid:hover .cause-image {
    transform: scale(1.05);
}

.cause-image img {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(244, 63, 94, 0.1));
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cause-grid:hover .cause-image img {
    transform: scale(1.08);
}

.programs {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    padding: clamp(1rem, 2vw + 0.5rem, 1.5rem) 0 clamp(1rem, 2vw + 0.5rem, 1.5rem) 0;
    margin-top: -2rem; /* Reduce space from previous section */
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.98) 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .programs {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
}

.programs::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
    background-size: 180px 180px, 200px 200px;
    opacity: 0.2;
    pointer-events: none;
}

.programs .container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 var(--container-padding);
}

.programs .section-title {
    margin-bottom: clamp(0.25rem, 1vw + 0.25rem, 0.5rem);
    font-size: clamp(1.75rem, 3vw + 1rem, 2.25rem);
}

.programs .section-subtitle {
    margin-bottom: 0;
    font-size: clamp(0.9rem, 1.2vw + 0.7rem, 1rem);
    line-height: 1.4;
}

.gradient-text--subtle {
    background: linear-gradient(120deg, rgba(30, 58, 138, 0.85), rgba(37, 99, 235, 0.75), rgba(14, 165, 233, 0.7));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-primary);
}

[data-theme="dark"] .gradient-text--subtle {
    background: linear-gradient(120deg, rgba(147, 197, 253, 0.9), rgba(96, 165, 250, 0.85), rgba(125, 211, 252, 0.8));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Programs Carousel Styles */
.programs-carousel-wrapper {
    position: relative;
    margin-top: clamp(0.5rem, 1.5vw + 0.25rem, 1rem);
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.programs-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw + 0.5rem, 1.5rem);
    overflow: visible;
    align-items: stretch;
}

.programs-carousel .cause-card {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.programs-carousel .cause-card img {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.programs-carousel .cause-card img.loaded {
    opacity: 1;
}

.programs-carousel .cause-card.active img {
    opacity: 1;
}

.programs-carousel .cause-card:hover img {
    transform: scale(1.02);
}

/* Image loading and error handling */
.image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.9), rgba(226, 232, 240, 0.9));
    color: var(--text-secondary);
    font-size: 0.9rem;
    z-index: 1;
}

.image-placeholder.image-error {
    display: flex;
}

[data-theme="dark"] .image-placeholder {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.9));
    color: var(--text-secondary);
}

.programs-carousel .cause-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 2;
}

/* Image loading styles - already defined above */

.programs-carousel .cause-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.45) 35%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.05) 85%, transparent 100%);
    padding: clamp(2.5rem, 5vw + 1.5rem, 3.5rem) clamp(2rem, 4vw + 1rem, 3rem);
    color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* Remove blue hover effect that blocks details - keep overlay subtle */
.programs-carousel .cause-card:hover .cause-overlay,
.programs-carousel .cause-card:focus-visible .cause-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.08) 85%, transparent 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    /* No blue overlay - keep it subtle and elegant */
}

/* Enhanced typography for programs carousel */
.programs-carousel .cause-title {
    font-size: clamp(1.5rem, 2.5vw + 1rem, 2rem);
    margin: 0 0 clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.programs-carousel .cause-description {
    margin: 0 0 clamp(1rem, 2vw + 0.5rem, 1.5rem);
    font-size: clamp(1rem, 1.2vw + 0.8rem, 1.15rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Carousel Navigation Buttons - No background or outline */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none; /* Removed border */
    background: transparent; /* Removed background */
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: none; /* Removed shadow */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-nav:hover,
.carousel-nav:focus-visible {
    background: transparent;
    border: none;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    outline: none;
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

/* Carousel Indicator */
.carousel-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
}

.indicator-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
}

.indicator-dots {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    border: 2px solid rgba(37, 99, 235, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.indicator-dot:hover {
    background: rgba(37, 99, 235, 0.6);
    transform: scale(1.1);
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .programs-carousel {
        grid-template-columns: 1fr; /* Stack cards on tablet */
        gap: 1rem;
    }

    .programs-carousel-wrapper {
        max-width: 100%;
        padding: 0 4rem; /* Space for transparent arrows */
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .programs {
        height: 100vh;
        min-height: 100vh;
    }

    .programs-carousel {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 0.75rem;
    }

    .programs-carousel-wrapper {
        padding: 0 3.5rem; /* Space for transparent arrows */
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        background: transparent; /* No background on mobile too */
        border: none; /* No border */
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-indicator {
        margin-top: 1rem;
    }

    .indicator-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .programs {
        height: 100vh;
        min-height: 100vh;
    }

    .programs-carousel-wrapper {
        padding: 0 3rem; /* Space for arrows */
    }

    .programs-carousel {
        grid-template-columns: 1fr; /* Single column on small mobile */
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }
}

/* Legacy masonry grid - keep for other pages */
.causes-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 150px);
    grid-template-areas:
        'card1 card1 card2 card2'
        'card1 card1 card2 card2'
        'card1 card1 card3 card4'
        'card5 card5 card3 card4'
        'card5 card5 card6 card7'
        'card5 card5 card6 card7';
    gap: 0;
    margin-top: 3rem;
}

.cause-card:nth-child(1) {
    grid-area: card1;
}

.cause-card:nth-child(2) {
    grid-area: card2;
}

.cause-card:nth-child(3) {
    grid-area: card3;
}

.cause-card:nth-child(4) {
    grid-area: card4;
}

.cause-card:nth-child(5) {
    grid-area: card5;
}

.cause-card:nth-child(6) {
    grid-area: card6;
}

.cause-card:nth-child(7) {
    grid-area: card7;
}

.cause-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cause-card::before {
    content: none;
}

.cause-card::after {
    content: none;
}

.cause-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cause-card:hover img,
.cause-card:focus-visible img {
    transform: scale(1.05);
}

.cause-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 20px 16px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.cause-card:hover .cause-overlay,
.cause-card:focus-visible .cause-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.25) 100%);
    /* Removed blue overlay - keep it subtle and dark */
}

.cause-title {
    font-size: 1.4rem;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #ffffff;
}

.cause-description {
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.cause-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.programs .support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: transform var(--transition-md), box-shadow var(--transition-md), background var(--transition-md), border-color var(--transition-md);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.support-btn::after {
    content: '↗';
    font-size: 1rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition-md), transform var(--transition-md);
}

.programs .support-btn:hover,
.programs .support-btn:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.support-btn:hover::after,
.support-btn:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.programs .impact-badge {
    position: absolute;
    inset: 1.2rem auto auto 1.2rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.85));
    color: #1f2937;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-theme="dark"] .programs .impact-badge {
    background: linear-gradient(120deg, rgba(30, 41, 59, 0.92), rgba(51, 65, 85, 0.85));
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.1);
}

.cause-card:hover,
.cause-card:focus-visible {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 38px 85px rgba(15, 23, 42, 0.38);
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes pulseBadge {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 18px 36px rgba(37, 99, 235, 0.45);
    }
}

@media (max-width: 960px) {
    .causes-masonry {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        grid-template-rows: auto;
        grid-template-areas: none;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .programs {
        padding: var(--space-xl) 0;
    }

    .cause-card {
        min-height: 260px;
        padding: 1.5rem;
    }

    .cause-overlay {
        padding: 1.25rem 1.3rem;
    }
}


/* Impact Section */
.impact {
    position: relative;
    padding: var(--space-2xl) 0;
    background:
        radial-gradient(circle at 25% 15%, rgba(37, 99, 235, 0.18), transparent 55%),
        radial-gradient(circle at 80% 25%, rgba(244, 63, 94, 0.12), transparent 45%),
        #0f172a;
    color: #f8fbff;
    overflow: hidden;
}

.impact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.impact .container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.impact .section-title,
.impact .section-subtitle {
    color: #f1f5ff;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.impact .section-title {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.impact .section-subtitle {
    max-width: 900px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.impact-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    justify-items: center;
    align-items: start;
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(1rem, 2vw, 2rem);
    justify-content: center;
}

/* Mobile responsive for impact counters */
@media (max-width: 768px) {
    .impact-counters {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: clamp(1rem, 2vw, 1.5rem);
        margin-top: clamp(1.5rem, 4vw, 2.5rem);
        justify-items: center;
        padding: 0 clamp(0.5rem, 2vw, 1rem);
    }
    
    .counter-item {
        min-height: 240px;
        padding: clamp(1rem, 2vw, 1.5rem);
        width: 100%;
        max-width: 100%;
    }
    
    .counter-ring {
        width: clamp(80px, 15vw, 120px);
    }
    
    .counter-number {
        font-size: clamp(1.2rem, 3vw, 1.6rem);
    }
    
    .counter-title {
        font-size: clamp(0.8rem, 2vw, 0.95rem);
    }
    
    .counter-subtitle {
        font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    }
}

@media (max-width: 480px) {
    .impact-counters {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
        display: grid !important;
        visibility: visible !important;
        justify-items: center;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .counter-item {
        min-height: 200px;
        padding: 1rem;
        opacity: 1 !important;
        transform: translateY(0) !important;
        visibility: visible !important;
        display: grid !important;
        width: 100%;
        max-width: 100%;
    }
    
    .counter-item.is-visible {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .counter-ring {
        width: clamp(70px, 20vw, 100px);
    }
    
    .counter-number {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }
    
    .counter-title {
        font-size: clamp(0.75rem, 3vw, 0.9rem);
        margin-top: 0.5rem;
    }
    
    .counter-subtitle {
        font-size: clamp(0.65rem, 2.5vw, 0.8rem);
        margin-top: 0.25rem;
    }
}

@media (max-width: 320px) {
    .impact-counters {
        gap: 0.75rem;
        display: grid !important;
        visibility: visible !important;
    }
    
    .counter-item {
        min-height: 180px;
        padding: 0.75rem;
        opacity: 1 !important;
        transform: translateY(0) !important;
        visibility: visible !important;
        display: grid !important;
    }
    
    .counter-item.is-visible {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .counter-ring {
        width: 60px;
    }
    
    .counter-number {
        font-size: 1rem;
    }
    
    .counter-title {
        font-size: 0.7rem;
    }
    
    .counter-subtitle {
        font-size: 0.65rem;
    }
}

.counter-item {
    position: relative;
    display: grid;
    gap: clamp(0.75rem, 1.5vw, 1.1rem);
    justify-items: center;
    align-content: center;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(14, 40, 83, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 60px rgba(3, 10, 21, 0.45);
    cursor: pointer;
    overflow: hidden;
    transition:
        transform var(--transition-lg),
        box-shadow var(--transition-lg),
        border var(--transition-md);
    --accent: rgba(71, 175, 227, 0.95);
    --progress: 0deg;
    opacity: 0;
    transform: translateY(20px);
    text-align: center;
    min-height: 280px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.counter-item::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity var(--transition-md);
    pointer-events: none;
}

.counter-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.counter-item:hover,
.counter-item:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 38px 95px rgba(3, 10, 21, 0.6);
    border-color: rgba(255, 255, 255, 0.32);
}

.counter-item:hover::before,
.counter-item:focus-visible::before,
.counter-item.is-hovered::before {
    opacity: 1;
}

.counter-ring {
    position: relative;
    width: clamp(100px, 12vw, 140px);
    max-width: 140px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(from -90deg, var(--accent) 0deg var(--progress), rgba(255, 255, 255, 0.08) var(--progress) 360deg);
    display: grid;
    place-items: center;
    transition: background 0.4s ease;
    flex-shrink: 0;
    margin: 0 auto;
}

.counter-ring::before {
    content: '';
    position: absolute;
    inset: clamp(10px, 2vw, 16px);
    border-radius: 50%;
    background: rgba(7, 16, 31, 0.78);
    box-shadow: inset 0 0 30px rgba(2, 6, 23, 0.65);
}

.counter-number {
    position: relative;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f8fbff;
    text-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: nowrap;
    z-index: 2;
}

/* Smaller font for large numbers (5 digits or more) */
/* Note: :contains() is not a valid CSS selector - removed invalid selectors */
.counter-item:has(.counter-number) .counter-number {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

/* Alternative approach using data attribute */
.counter-number[data-large="true"] {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

.counter-title {
    margin: 0;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(241, 245, 255, 0.92);
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 clamp(0.5rem, 1vw, 1rem);
    max-width: 100%;
}

.counter-subtitle {
    margin: 0;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: rgba(231, 233, 255, 0.68);
    text-align: center;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 clamp(0.5rem, 1vw, 1rem);
    max-width: 100%;
}

.counter-item:hover .counter-ring,
.counter-item:focus-visible .counter-ring {
    filter: drop-shadow(0 18px 40px rgba(37, 99, 235, 0.45));
}

.tooltip {
    position: fixed;
    background: rgba(6, 10, 22, 0.92);
    color: #f8fbff;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.4);
    transform: translateY(6px);
}

.tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* News Section */
.news {
    position: relative;
    padding: var(--space-2xl) 0;
    background:
        linear-gradient(180deg, #ffffff 0%, rgba(37, 99, 235, 0.08) 45%, rgba(15, 23, 42, 0.92) 100%),
        #0f172a;
    overflow: hidden;
}

.news::before {
    content: '';
    position: absolute;
    inset: 10% 0 -40% 0;
    background: radial-gradient(circle at 20% 20%, rgba(148, 197, 255, 0.25), transparent 60%);
    pointer-events: none;
}

.news-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-left: 0.5rem;
}

.news-grid::before {
    content: '';
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(148, 197, 255, 0.4), rgba(244, 63, 94, 0.35));
    pointer-events: none;
}

.news-card {
    position: relative;
    perspective: 1600px;
    border-radius: 24px;
    isolation: isolate;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: -1.1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fafc, rgba(37, 99, 235, 0.8));
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
}

.news-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow var(--transition-lg);
    border-radius: inherit;
    box-shadow: 0 24px 60px rgba(3, 10, 21, 0.25);
}

.news-card:hover .news-card-inner,
.news-card:focus-within .news-card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 34px 85px rgba(3, 10, 21, 0.45);
}

.news-card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(14, 25, 46, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-card-front {
    background: linear-gradient(180deg, rgba(8, 14, 28, 0.75), rgba(10, 19, 36, 0.92));
}

.news-card-back {
    transform: rotateY(180deg);
    padding: clamp(1.75rem, 3.5vw, 2.25rem);
    background: linear-gradient(180deg, rgba(14, 25, 46, 0.92), rgba(37, 99, 235, 0.35));
    color: #f8fbff;
    gap: 1rem;
    justify-content: space-between;
}

.news-card-back ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.45rem;
}

.news-card-back li {
    font-size: 0.95rem;
    line-height: 1.5;
}

.news-image {
    position: relative;
    width: 100%;
    height: clamp(200px, 30vw, 260px);
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.8s ease;
    filter: saturate(1.05);
}

.news-card:hover .news-image img,
.news-card:focus-within .news-image img {
    transform: scale(1.08);
}

.news-tag {
    position: absolute;
    inset: 1rem auto auto 1rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    background: rgba(7, 19, 40, 0.85);
    color: #f8fafc;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.news-content {
    padding: clamp(1.6rem, 3.5vw, 2.2rem);
    display: grid;
    gap: 0.9rem;
    color: #f8fafc;
}

.news-date {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(219, 234, 254, 0.75);
}

.news-content h3 {
    margin: 0;
    font-size: clamp(1.4rem, 1.4vw + 1rem, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #ffffff;
}

.news-content p {
    margin: 0;
    color: rgba(239, 246, 255, 0.78);
    line-height: 1.65;
}

.news-card-back h4 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 960px) {
    .news-grid {
        padding-left: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-grid {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
    }

    .news-grid::before {
        display: none;
    }

    .news-card {
        flex: 0 0 min(86vw, 320px);
        scroll-snap-align: start;
    }
}

@media (hover: none) {
    .news-card-inner {
        transform: none !important;
    }

    .news-card-back {
        display: none;
    }
}

/* Volunteer CTA */
/* Upcoming Events Section */
.upcoming-events {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.upcoming-events::before,
.upcoming-events::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.upcoming-events::before {
    background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.1), transparent 50%);
    animation: adminFloat1 20s ease-in-out infinite;
}

.upcoming-events::after {
    background: radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.08), transparent 50%);
    animation: adminFloat2 25s ease-in-out infinite;
}

.upcoming-events .container {
    position: relative;
    z-index: 1;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2rem, 3vw, 3rem);
}

.event-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Ensure event images are visible (override lazy loading opacity) */
.event-image img[data-event-image] {
    opacity: 1 !important;
}

.event-image img[data-event-image].loaded {
    opacity: 1 !important;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: clamp(1.25rem, 2vw, 1.75rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.event-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-date i,
.event-location i {
    color: var(--primary-blue);
    font-size: 0.9em;
}

.event-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.5rem 0;
    flex: 1;
}

.event-venue {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-venue i {
    color: var(--primary-cyan);
}

.event-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    border: none;
    color: #ffffff;
    background-image: var(--cta-gradient);
    box-shadow: var(--glow-soft);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-md), box-shadow var(--transition-lg), background-position 0.6s ease;
    background-size: 200% 200%;
    cursor: pointer;
    margin-top: 0.75rem;
    width: fit-content;
}

.event-register-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity var(--transition-md);
}

.event-register-btn:hover,
.event-register-btn:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 28px 65px rgba(37, 99, 235, 0.28);
    background-position: 100% 0;
    outline: none;
}

.event-register-btn:hover::after,
.event-register-btn:focus-visible::after {
    opacity: 0.35;
}

.event-register-btn:active {
    transform: translateY(-2px) scale(1);
}

.event-contact {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.event-contact a {
    color: var(--primary-blue);
    text-decoration: none;
}

.event-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

.volunteer-cta {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--navy-blue), var(--sky-blue));
    color: white;
    text-align: center;
}

.volunteer-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.volunteer-cta p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.volunteer-cta .cta-button.secondary {
    border-color: white;
}

.volunteer-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.volunteer-cta-buttons .cta-button {
    min-width: auto;
}

/* Menu toggle button with warm gradient for visibility on blue background */
.volunteer-cta .menu-toggle-btn {
    background-image: linear-gradient(135deg, #ff6b35 0%, #f7931e 45%, #ffd23f 100%);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.35), 0 8px 20px rgba(247, 147, 30, 0.25);
    color: #ffffff;
}

.volunteer-cta .menu-toggle-btn:hover,
.volunteer-cta .menu-toggle-btn:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 28px 65px rgba(255, 107, 53, 0.45), 0 12px 30px rgba(247, 147, 30, 0.35);
    background-position: 100% 0;
    outline: none;
}

.volunteer-cta .menu-toggle-btn:hover::after,
.volunteer-cta .menu-toggle-btn:focus-visible::after {
    opacity: 0.35;
}

@media (max-width: 480px) {
    .volunteer-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .volunteer-cta-buttons .cta-button {
        width: 100%;
        max-width: 280px;
    }
}

/* Ticker */
.tickertape {
    width: 100%;
    overflow: hidden;
    background-color: #1e90ff;
    color: white;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 10s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* About */
/* About Section - HEMIS Style */
.about-section {
    position: relative;
    min-height: 100vh;
    max-height: none;
    padding: clamp(2rem, 3vw + 1rem, 3rem) 0 clamp(1.5rem, 2vw + 0.5rem, 2rem);
    padding-top: clamp(90px, 12vw + 60px, 130px);
    background: var(--bg-primary);
    overflow: visible;
    display: flex;
    align-items: flex-start;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.header-collapsed .about-section {
    padding-top: clamp(60px, 8vw + 40px, 90px);
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(244, 63, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
    animation: backgroundFloat 20s ease-in-out infinite;
}

[data-theme="dark"] .about-background {
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(244, 63, 94, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.12) 0%, transparent 60%);
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.9;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
        opacity: 0.95;
    }
}

.about-section .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw + 0.5rem, 2rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 2vw + 0.75rem, 2rem);
    padding-top: 0;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw + 0.75rem, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-header p {
    font-size: clamp(0.9rem, 1.2vw + 0.4rem, 1.1rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 3vw + 1rem, 3rem);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-text-with-image {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2.5rem, 4vw + 1rem, 4rem);
    align-items: start;
    margin-bottom: clamp(2rem, 3vw + 1rem, 3rem);
}

@media (max-width: 968px) {
    .about-text-with-image {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 3vw + 1rem, 2.5rem);
    }
    
    .about-image-wrapper {
        order: -1;
    }
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    align-self: start;
    /* margin-top: clamp(1rem, 2vw + 0.5rem, 1.5rem); */
    margin-top: 3.5rem;
    padding-top: 0;
}

.about-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-featured-image {
    width: 100%;
    height: auto;
    min-height: 300px;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(244, 63, 94, 0.1));
}

.about-image-wrapper:hover .about-featured-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(244, 63, 94, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.about-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.about-text {
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-top: 0;
    margin-top: 0;
    align-self: start;
}

.about-text h3 {
    font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    padding-top: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: clamp(1rem, 1.3vw + 0.5rem, 1.15rem);
    line-height: 1.85;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    padding-top: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.mission-vision-circular {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 4vw + 1rem, 3rem);
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.circular-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 350px;
    margin: 0 auto;
}

.circle-outer {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 0 2px var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .circle-outer {
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 2px var(--border-color);
}

.circular-card:hover .circle-outer {
    transform: scale(1.05);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.15),
        inset 0 0 0 3px rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .circular-card:hover .circle-outer {
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.5),
        inset 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.circle-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .circle-inner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.circle-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 2rem;
    color: #ffffff;
    position: relative;
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-circle .circle-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue));
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.vision-circle .circle-icon {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-magenta));
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.4);
}

.circular-card:hover .circle-icon {
    transform: scale(1.1) rotate(5deg);
}

.circle-content {
    position: relative;
    z-index: 3;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.circle-content h4 {
    font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.circle-content p {
    font-size: clamp(0.85rem, 1vw + 0.4rem, 1rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Animated Rings */
.circle-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.3;
    animation: rotateRing 20s linear infinite;
}

.mission-circle .circle-ring {
    border-color: var(--primary-blue);
}

.vision-circle .circle-ring {
    border-color: var(--accent-coral);
}

.ring-1 {
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    animation-duration: 15s;
    animation-direction: normal;
}

.ring-2 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    animation-duration: 25s;
    animation-direction: reverse;
    border-width: 1.5px;
}

.ring-3 {
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    animation-duration: 30s;
    animation-direction: normal;
    border-width: 1px;
}

@keyframes rotateRing {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.circular-card:hover .ring-1 {
    animation-duration: 10s;
    opacity: 0.5;
}

.circular-card:hover .ring-2 {
    animation-duration: 15s;
    opacity: 0.4;
}

.circular-card:hover .ring-3 {
    animation-duration: 20s;
    opacity: 0.3;
}

/* Pulse effect on hover */
.circular-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.mission-circle::before {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

.vision-circle::before {
    background: radial-gradient(circle, rgba(244, 63, 94, 0.15) 0%, transparent 70%);
}

.circular-card:hover::before {
    opacity: 1;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

.mv-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.06),
        inset 0 -2px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mv-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-blue), var(--sky-blue));
    border-radius: 0 2px 2px 0;
}

[data-theme="dark"] .mv-item {
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 -2px 0 rgba(255, 255, 255, 0.02);
}

.mv-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04);
    border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .mv-item:hover {
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2);
}

.mv-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue));
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.mv-content h4 {
    font-size: clamp(0.95rem, 1.2vw + 0.4rem, 1.15rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.mv-content p {
    font-size: clamp(0.85rem, 1vw + 0.4rem, 0.95rem);
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.75rem, 1.5vw + 0.5rem, 1.25rem);
}

.stat-item {
    text-align: center;
    padding: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.06),
        inset 0 -2px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

[data-theme="dark"] .stat-item {
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 -2px 0 rgba(255, 255, 255, 0.02);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .stat-item:hover {
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.stat-item h3 {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item p {
    font-size: clamp(0.8rem, 1vw + 0.4rem, 0.95rem);
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}


.about-image {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--light-gray);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Core Values Section */
.core-values {
    padding: clamp(4rem, 6vw + 2rem, 6rem) 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.core-values::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(244, 63, 94, 0.06) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(180deg); }
}

.values-header {
    text-align: center;
    margin-bottom: clamp(3rem, 5vw + 1rem, 4rem);
    position: relative;
    z-index: 1;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: clamp(2rem, 2.5vw + 1rem, 2.5rem);
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.06),
        inset 0 -2px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.value-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-blue), var(--sky-blue));
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .value-item {
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 -2px 0 rgba(255, 255, 255, 0.02);
}

.value-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.value-item:hover::before {
    opacity: 1;
}

[data-theme="dark"] .value-item:hover {
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.value-item[data-value="compassion"]:hover::before {
    background: linear-gradient(180deg, #f43f5e, #fb7185);
}

.value-item[data-value="prayer"]:hover::before {
    background: linear-gradient(180deg, #2563eb, #3b82f6);
}

.value-item[data-value="empowerment"]:hover::before {
    background: linear-gradient(180deg, #0ea5e9, #38bdf8);
}

.value-item[data-value="innovation"]:hover::before {
    background: linear-gradient(180deg, #fbbf24, #fcd34d);
}

.value-item[data-value="justice"]:hover::before {
    background: linear-gradient(180deg, #2563eb, #3b82f6);
}

.value-item[data-value="dignity"]:hover::before {
    background: linear-gradient(180deg, #a855f7, #c084fc);
}

.value-item[data-value="integrity"]:hover::before {
    background: linear-gradient(180deg, #0ea5e9, #38bdf8);
}

.value-item[data-value="collaboration"]:hover::before {
    background: linear-gradient(180deg, #f43f5e, #fb7185);
}

.value-item[data-value="diversity"]:hover::before {
    background: linear-gradient(180deg, #2563eb, #3b82f6);
}

.value-item[data-value="inclusivity"]:hover::before {
    background: linear-gradient(180deg, #a855f7, #c084fc);
}


.value-visual {
    flex-shrink: 0;
}

.value-hand-icon {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue));
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.value-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    opacity: 0;
    animation: pulse 2s ease-in-out infinite;
}

.value-item:hover .value-hand-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}

.value-item:hover .value-pulse {
    opacity: 0.6;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.value-content {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.value-content h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.value-item:hover .value-content h3 {
    color: var(--primary-blue);
}

.value-content p {
    font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Responsive styles for about page */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: clamp(2.5rem, 4vw + 1rem, 3.5rem);
    }
    
    .mission-vision-circular {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 3vw + 1rem, 2.5rem);
    }
    
    .circular-card {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding-top: clamp(80px, 10vw + 60px, 120px);
        padding-bottom: clamp(1.5rem, 2.5vw + 0.75rem, 2rem);
    }
    
    body.header-collapsed .about-section {
        padding-top: clamp(55px, 7vw + 35px, 80px);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .value-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .value-hand-icon {
        margin: 0 auto;
    }
    
    .policies-timeline {
        padding-left: clamp(1.5rem, 3vw + 1rem, 2rem);
    }
    
    .policies-timeline::before {
        left: 12px;
    }
    
    .policy-item {
        padding-left: clamp(2rem, 3vw + 1rem, 2.5rem);
    }
    
    .policy-marker {
        left: -2.5rem;
        width: 14px;
        height: 14px;
    }
    
    .circular-card {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding-top: clamp(75px, 9vw + 55px, 110px);
        padding-bottom: clamp(1rem, 2vw + 0.5rem, 1.5rem);
    }
    
    body.header-collapsed .about-section {
        padding-top: clamp(50px, 6vw + 30px, 75px);
    }
    
    .section-header {
        margin-bottom: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
        padding-top: 0;
    }
    
    .section-header h2 {
        font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem);
    }
    
    .section-header p {
        font-size: clamp(0.85rem, 1vw + 0.3rem, 0.95rem);
    }
    
    .about-content {
        gap: clamp(1.5rem, 2.5vw + 0.75rem, 2rem);
    }
    
    .mission-vision-circular {
        gap: clamp(1.5rem, 2.5vw + 0.75rem, 2rem);
    }
    
    .circular-card {
        max-width: 250px;
    }
    
    .container {
        padding: 0 clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
    }
}

.policies {
    position: relative;
    padding: clamp(4rem, 6vw + 2rem, 6rem) 0;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: 
        linear-gradient(135deg, rgba(252, 245, 237, 0.6) 0%, rgba(250, 240, 230, 0.5) 50%, rgba(248, 235, 220, 0.4) 100%),
        var(--bg-primary);
}

.policies::before,
.policies::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.policies::before {
    background: radial-gradient(circle at 20% 30%, rgba(250, 240, 230, 0.5), transparent 50%);
    animation: policiesFloat1 20s ease-in-out infinite;
}

.policies::after {
    background: radial-gradient(circle at 80% 70%, rgba(245, 235, 220, 0.45), transparent 50%);
    animation: policiesFloat2 25s ease-in-out infinite;
}

[data-theme="dark"] .policies {
    background: 
        linear-gradient(135deg, rgba(20, 18, 15, 0.6) 0%, rgba(25, 22, 18, 0.5) 50%, rgba(30, 25, 20, 0.4) 100%),
        var(--bg-primary);
}

[data-theme="dark"] .policies::before {
    background: radial-gradient(circle at 20% 30%, rgba(30, 25, 20, 0.5), transparent 50%);
}

[data-theme="dark"] .policies::after {
    background: radial-gradient(circle at 80% 70%, rgba(35, 30, 25, 0.45), transparent 50%);
}

.policies > * {
    position: relative;
    z-index: 1;
}

@keyframes policiesFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: translate(-20px, 30px) scale(0.95);
        opacity: 0.5;
    }
}

@keyframes policiesFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(-25px, 25px) scale(0.9);
        opacity: 0.5;
    }
    66% {
        transform: translate(25px, -25px) scale(1.15);
        opacity: 0.7;
    }
}

.policies-header {
    text-align: center;
    margin-bottom: clamp(2rem, 3vw + 1rem, 3rem);
}

.policies-intro {
    max-width: 900px;
    margin: 0 auto clamp(3rem, 4vw + 1.5rem, 4rem);
    padding: clamp(2.5rem, 3.5vw + 1.5rem, 3rem);
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.06),
        inset 0 -2px 0 rgba(0, 0, 0, 0.02);
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

[data-theme="dark"] .policies-intro {
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 -2px 0 rgba(255, 255, 255, 0.02);
}

.policies-intro p {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.15rem);
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.policies-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: clamp(2rem, 4vw + 1rem, 3rem);
}

.policies-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-blue), var(--sky-blue), var(--accent-coral));
    border-radius: 2px;
}

.policy-item {
    position: relative;
    margin-bottom: clamp(2rem, 3vw + 1rem, 2.5rem);
    padding-left: clamp(2.5rem, 4vw + 1.5rem, 3.5rem);
    transition: transform 0.3s ease;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.policy-item:hover {
    transform: translateX(8px);
}

.policy-marker {
    position: absolute;
    left: -3rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue));
    border: 3px solid var(--bg-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    z-index: 2;
}

.policy-item:hover .policy-marker {
    transform: scale(1.3);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.policy-details {
    background: var(--bg-primary);
    padding: clamp(2rem, 2.5vw + 1rem, 2.5rem);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.06),
        inset 0 -2px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.policy-details h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.policy-details p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.policy-details::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-blue), var(--sky-blue));
    border-radius: 0 2px 2px 0;
}

[data-theme="dark"] .policy-details {
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 -2px 0 rgba(255, 255, 255, 0.02);
}

.policy-item:hover .policy-details {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04);
    border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .policy-item:hover .policy-details {
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .policy-details {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.policy-item:hover .policy-details {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-left-width: 4px;
}

.policy-details h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.policy-details p {
    font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.policies-content ul li {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.policies-content ul li::before {
    content: '•';
    color: var(--orange-accent);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: 0.1rem;
}

/* Team */
.team-section {
    position: relative;
    padding: clamp(4rem, 6vw + 2rem, 6rem) 0;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: 
        linear-gradient(135deg, rgba(240, 248, 255, 0.5) 0%, rgba(230, 240, 250, 0.4) 50%, rgba(245, 250, 255, 0.3) 100%),
        var(--bg-primary);
}

.team-section::before,
.team-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.team-section::before {
    background: radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.08), transparent 50%);
    animation: teamFloat1 22s ease-in-out infinite;
}

.team-section::after {
    background: radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.06), transparent 50%);
    animation: teamFloat2 28s ease-in-out infinite;
}

[data-theme="dark"] .team-section {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(20, 30, 50, 0.5) 50%, rgba(25, 35, 55, 0.4) 100%),
        var(--bg-primary);
}

[data-theme="dark"] .team-section::before {
    background: radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.12), transparent 50%);
}

[data-theme="dark"] .team-section::after {
    background: radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.1), transparent 50%);
}

.team-section > * {
    position: relative;
    z-index: 1;
}

@keyframes teamFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(25px, -15px) scale(1.1);
        opacity: 0.6;
    }
    66% {
        transform: translate(-15px, 25px) scale(0.95);
        opacity: 0.4;
    }
}

@keyframes teamFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.4;
    }
    66% {
        transform: translate(20px, -20px) scale(1.15);
        opacity: 0.6;
    }
}

/* Flowing Ribbon of Unity */
.ribbon-section {
    position: relative;
    min-height: 100vh;
    padding: clamp(4rem, 6vw + 2rem, 6rem) 0;
    overflow: visible;
}

.ribbon-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.ribbon-svg {
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.ribbon-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawRibbon 3s ease-in-out forwards, flowRibbon 15s linear infinite;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.ribbon-path.active {
    opacity: 1;
    stroke-width: 5;
    filter: url(#ribbonGlow) brightness(1.3);
}

.ribbon-dot {
    opacity: 0.9;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes drawRibbon {
    0% {
        stroke-dashoffset: 2000;
        opacity: 0;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
}

@keyframes flowRibbon {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -2000;
    }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.25);
        opacity: 1;
    }
}

/* Team card glow when ribbon passes */
.ribbon-section .team-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.ribbon-section .team-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(14, 165, 233, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(12px);
    animation: cardPulse 3s ease-in-out infinite;
}

.ribbon-section .team-card.ribbon-active::before {
    opacity: 0.8;
    animation: cardPulseActive 1s ease-in-out infinite;
}

.ribbon-section .team-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.25), 0 0 30px rgba(14, 165, 233, 0.2);
    z-index: 10;
}

.ribbon-section .team-card:hover::before {
    opacity: 1;
    animation: cardPulseActive 0.8s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

@keyframes cardPulseActive {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Hide ribbon on mobile for performance */
@media (max-width: 968px) {
    .ribbon-canvas {
        display: none;
    }
    
    .ribbon-section {
        min-height: auto;
    }
}

.team-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem auto;
    position: relative;
    z-index: 2;
}

.team-grid-top,
.team-grid-bottom {
    grid-template-columns: repeat(3, 1fr);
    max-width: 800px;
}

.team-grid-middle {
    grid-template-columns: repeat(4, 1fr);
}

.team-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(30, 58, 138, 0.15);
}

.team-image {
    width: 160px;
    height: 220px;
    border-radius: 10%;
    background: var(--light-gray);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10%;
}

.team-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.team-card h5 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 968px) {
    .team-grid-middle {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid-top,
    .team-grid-middle,
    .team-grid-bottom {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .team-image {
        width: 140px;
        height: 200px;
    }
}

/* Gallery */
.gallery-section {
    padding: var(--space-xl) 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px;
    aspect-ratio: 1 / 1;
}

.gallery-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.18);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 220px;
}

/* Ensure admin photos are always visible */
.gallery-card[data-admin-photo] img {
    opacity: 1 !important;
}

.gallery-card[data-admin-photo] img.loaded {
    opacity: 1 !important;
}

/* Gallery Image Loading Styles */
.gallery-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(240, 240, 240, 0.2) 0%, 
        rgba(240, 240, 240, 0.4) 50%, 
        rgba(240, 240, 240, 0.2) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 220px;
    transition: opacity 0.4s ease;
}

.gallery-card.image-loaded img {
    opacity: 1;
}

.gallery-fallback-avatar {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--navy-blue));
    color: white;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
}

.gallery-card.image-error .gallery-fallback-avatar {
    display: flex;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.lightbox.is-active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: min(90vw, 1200px);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.lightbox-loading .shimmer {
    width: 200px;
    height: 200px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        padding: 0.75rem;
    }
    
    .lightbox-prev {
        left: 12px;
    }
    
    .lightbox-next {
        right: 12px;
    }
    
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Video Gallery */
.video-gallery {
    padding: var(--space-xl) 0;
    background: var(--white);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15);
}

.video-card iframe {
    width: 100%;
    height: 240px;
    border: none;
}

/* WordPress Feed */
.wp-feed .loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.loading-spinner {
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--orange-accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(30, 58, 138, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15);
}

.article-card.hidden {
    display: none;
}

.article-image,
.article-image-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-gray);
}

.article-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
}

.article-card .article-content {
    padding: 1.5rem;
}

.article-card .article-content h3 {
    font-size: 1.5rem;
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.article-card .article-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.article-card .article-content a {
    display: inline-block;
    background: var(--orange-accent);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.article-card .article-content a:hover {
    background: #e07b1a;
    transform: translateY(-2px);
}

.category-badge {
    display: inline-block;
    background: var(--light-blue);
    color: var(--navy-blue);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Events */
.events {
    padding: var(--space-xl) 0;
    background: var(--white);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    border: 1.5px solid rgba(30, 58, 138, 0.2);
    color: var(--text-dark);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-button.active {
    background-image: var(--cta-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--glow-soft);
}

.tab-button.active::after {
    opacity: 0.35;
}

.tab-button:hover:not(.active) {
    background: rgba(30, 58, 138, 0.08);
    border-color: rgba(30, 58, 138, 0.4);
    transform: translateY(-2px);
}

.tab-button.active:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 28px 65px rgba(37, 99, 235, 0.28);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    display: none;
}

.event-grid.active {
    display: grid;
}

.event-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.12);
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15);
}

.event-card .event-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
}

.event-image {
    width: 100%;
    height: 220px;
    background: var(--light-gray);
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    font-size: 1.4rem;
    color: var(--navy-blue);
    margin-bottom: 0.75rem;
}

.event-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.event-content a {
    display: inline-block;
    background: var(--orange-accent);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.event-content a:hover {
    background: #e07b1a;
    transform: translateY(-2px);
}

/* Event Details Modal */
.event-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex; /* Base flex setup for centering */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none; /* Prevent interaction when hidden */
}

.event-details-modal.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s; /* Remove delay when opening */
    pointer-events: auto; /* Enable interaction when active */
}

.event-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.event-details-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.event-details-header {
    position: relative;
    background: linear-gradient(135deg, var(--navy-blue), var(--sky-blue));
    padding: 2rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
}

.event-details-logo {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.event-details-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-details-header-content {
    margin-left: 100px;
    color: white;
    flex: 1;
}

.event-details-header h2 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
    color: white;
    font-weight: 700;
}

.event-details-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.event-details-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.event-details-body {
    padding: 2rem;
}

.event-details-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.event-details-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.event-details-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.event-details-meta-item i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.event-details-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.event-details-documents {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.event-details-documents h3 {
    font-size: 1.3rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.event-document-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event-document-item:hover {
    background: rgba(30, 58, 138, 0.08);
    transform: translateX(4px);
}

.event-document-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.event-document-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.event-document-name {
    font-weight: 600;
    color: var(--text-dark);
}

.event-document-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.event-document-download:hover {
    background: var(--navy-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.event-details-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .event-details-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .event-details-header {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding: 1.5rem;
    }
    
    .event-details-logo {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1rem;
    }
    
    .event-details-header-content {
        margin-left: 0;
    }
    
    .event-details-meta {
        grid-template-columns: 1fr;
    }
}

/* Closing Section */
.closing {
    padding: clamp(4rem, 6vw + 2rem, 6rem) 0;
    background: 
        linear-gradient(135deg, rgba(252, 245, 237, 0.6) 0%, rgba(250, 240, 230, 0.5) 50%, rgba(248, 235, 220, 0.4) 100%),
        var(--bg-primary);
    position: relative;
    overflow: visible;
}

.closing::before,
.closing::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.closing::before {
    background: radial-gradient(circle at 25% 40%, rgba(250, 240, 230, 0.5), transparent 50%);
    animation: closingFloat1 22s ease-in-out infinite;
}

.closing::after {
    background: radial-gradient(circle at 75% 60%, rgba(245, 235, 220, 0.45), transparent 50%);
    animation: closingFloat2 28s ease-in-out infinite;
}

[data-theme="dark"] .closing {
    background: 
        linear-gradient(135deg, rgba(20, 18, 15, 0.6) 0%, rgba(25, 22, 18, 0.5) 50%, rgba(30, 25, 20, 0.4) 100%),
        var(--bg-primary);
}

[data-theme="dark"] .closing::before {
    background: radial-gradient(circle at 25% 40%, rgba(30, 25, 20, 0.5), transparent 50%);
}

[data-theme="dark"] .closing::after {
    background: radial-gradient(circle at 75% 60%, rgba(35, 30, 25, 0.45), transparent 50%);
}

.closing > * {
    position: relative;
    z-index: 1;
}

@keyframes closingFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(25px, -15px) scale(1.1);
        opacity: 0.6;
    }
    66% {
        transform: translate(-15px, 25px) scale(0.95);
        opacity: 0.4;
    }
}

@keyframes closingFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.4;
    }
    66% {
        transform: translate(20px, -20px) scale(1.15);
        opacity: 0.6;
    }
}

.closing-content {
    max-width: 900px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.closing-content .article-content {
    background: var(--bg-primary);
    padding: clamp(2.5rem, 4vw + 1.5rem, 4rem);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.closing-content h2 {
    font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: clamp(1.5rem, 2vw + 1rem, 2rem);
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.closing-content p {
    font-size: clamp(1rem, 1.3vw + 0.5rem, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: clamp(1.5rem, 2vw + 1rem, 2rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.closing-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: clamp(1.5rem, 2vw + 1rem, 2rem);
    margin: clamp(2rem, 3vw + 1.5rem, 3rem) 0;
    font-style: italic;
    color: var(--text-primary);
    font-size: clamp(1.1rem, 1.4vw + 0.6rem, 1.25rem);
    line-height: 1.7;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(14, 165, 233, 0.03));
    padding: clamp(1.5rem, 2vw + 1rem, 2rem);
    border-radius: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.closing-content blockquote strong {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    color: var(--primary-blue);
    font-weight: 600;
}

.article-content h2 {
    font-size: 1.6rem;
    color: var(--navy-blue);
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    letter-spacing: -0.025em;
}

.article-content h3 {
    font-size: 1.3rem;
    color: var(--navy-blue);
    font-weight: 600;
    margin: 1rem 0 0.3rem;
}

.article-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.article-content ul {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.article-content blockquote {
    background: var(--light-blue);
    border-left: 4px solid var(--orange-accent);
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Contact Page */

/* Modern Contact Section - Split Layout */
.contact-section {
    padding: 0;
    background: var(--white);
}

.contact-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

/* Left Panel: Contact Information */
.contact-info-panel {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--primary-blue) 100%);
    padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 3vw, 2.5rem);
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 100%;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.contact-info-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

.contact-info-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.contact-info-description {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: clamp(2rem, 3vw, 2.5rem);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: clamp(2rem, 3vw, 2.5rem);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--sky-blue), var(--orange-accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.contact-info-item:hover::before {
    transform: scaleY(1);
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.contact-info-icon i {
    font-size: 1.25rem;
    color: #ffffff;
}

.contact-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.contact-info-value {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #ffffff;
    font-weight: 500;
    line-height: 1.5;
}

.contact-info-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.contact-info-item:hover .contact-info-arrow {
    color: #ffffff;
    transform: translateX(5px);
}

.contact-social-links {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.social-links-grid {
    display: flex;
    gap: 1rem;
}

.social-link-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.25rem;
}

.social-link-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.1);
}


/* Right Panel: Contact Form */
.contact-form-panel {
    background: var(--white);
    padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 3vw, 2.5rem);
    display: flex;
    align-items: flex-start;
    height: 100%;
    min-height: 100%;
}

.contact-form-container {
    width: 100%;
    max-width: 600px;
}

.contact-form-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.contact-form-subtitle {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.6;
}

/* Minimal Contact Form */
.minimal-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    position: relative;
}

.minimal-contact-form input,
.minimal-contact-form textarea {
    width: 100%;
    padding: 1.5rem 1rem 0.75rem;
    border: none;
    border-bottom: 2px solid rgba(30, 58, 138, 0.1);
    background: transparent;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    resize: none;
}

.minimal-contact-form input:focus,
.minimal-contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-blue);
    background: rgba(14, 165, 233, 0.02);
}

.minimal-contact-form input:focus + label,
.minimal-contact-form textarea:focus + label,
.minimal-contact-form input:not(:placeholder-shown) + label,
.minimal-contact-form textarea:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem) scale(0.85);
    color: var(--primary-blue);
}

.minimal-contact-form label {
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: var(--text-dark);
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left top;
}

.minimal-contact-form textarea {
    min-height: 120px;
    padding-top: 1.75rem;
}

.minimal-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: var(--navy-blue);
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.minimal-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.minimal-submit-btn:hover::before {
    left: 100%;
}

.minimal-submit-btn:hover {
    background: var(--primary-blue);
    transform: translateX(5px);
}

.minimal-submit-btn i {
    transition: transform 0.3s ease;
}

.minimal-submit-btn:hover i {
    transform: translateX(5px);
}

/* Quotes Section */
.quotes-section {
    margin-top: clamp(2rem, 3vw, 3rem);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.6) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.1);
    position: relative;
    overflow: hidden;
}

.quotes-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(14, 165, 233, 0.1);
    padding-bottom: 0.75rem;
}

.quote-tab {
    flex: 1;
    padding: clamp(0.75rem, 1vw, 0.875rem) clamp(1rem, 1.5vw, 1.25rem);
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.quote-tab i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.quote-tab:hover {
    opacity: 0.8;
    background: rgba(14, 165, 233, 0.05);
    border-color: rgba(14, 165, 233, 0.2);
}

.quote-tab:hover i {
    transform: scale(1.1);
}

.quote-tab.active {
    opacity: 1;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-color: var(--primary-blue);
    color: var(--navy-blue);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.quote-tab.active i {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.quote-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.quote-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Pop animation for quote/verse rotation */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
}

.quote-type-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quote-type-indicator i {
    font-size: 1rem;
}

.quotes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue), var(--sky-blue));
}

.quotes-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: var(--navy-blue);
}

.quotes-header i {
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.quotes-label {
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy-blue);
    opacity: 0.8;
}

.quotes-container {
    position: relative;
    min-height: 80px;
}

.quote-text {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-dark);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.quote-text.active {
    opacity: 1;
    transform: translateY(0);
}

.quote-text p {
    margin: 0;
    color: var(--navy-blue);
    font-weight: 500;
}

.quote-author {
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    color: var(--text-dark);
    opacity: 0.7;
    font-weight: 600;
    text-align: right;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.2s;
}

.quote-author.active {
    opacity: 0.7;
    transform: translateY(0);
}

/* Admin Quotes Management Styles */
.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(241, 245, 249, 0.5);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.quote-item:hover {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(14, 165, 233, 0.2);
    transform: translateX(5px);
}

.quote-item-content {
    flex: 1;
}

.quote-item-text p {
    font-size: 1rem;
    color: var(--text-dark);
    font-style: italic;
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.quote-item-author {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
    font-weight: 600;
}

.quote-item-meta {
    margin-top: 0.75rem;
}

.quote-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.quote-date-badge.scheduled {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.quote-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-icon:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: scale(1.1);
}

.btn-icon.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-icon.btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Quote Form Buttons Styling */
#quotes-tab .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

#quotes-tab .btn-primary {
    flex: 1;
    min-width: 150px;
    padding: clamp(0.875rem, 1.2vw, 1rem) clamp(1.5rem, 2vw, 2rem);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--sky-blue) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: clamp(0.95rem, 1.1vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

#quotes-tab .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#quotes-tab .btn-primary:hover::before {
    left: 100%;
}

#quotes-tab .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--primary-blue) 100%);
}

#quotes-tab .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

#quotes-tab .btn-primary i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

#quotes-tab .btn-primary:hover i {
    transform: scale(1.1) rotate(5deg);
}

#quotes-tab .btn-secondary {
    flex: 1;
    min-width: 150px;
    padding: clamp(0.875rem, 1.2vw, 1rem) clamp(1.5rem, 2vw, 2rem);
    background: rgba(241, 245, 249, 0.8);
    color: var(--navy-blue);
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: 12px;
    font-size: clamp(0.95rem, 1.1vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

#quotes-tab .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    transition: width 0.3s ease;
}

#quotes-tab .btn-secondary:hover::before {
    width: 100%;
}

#quotes-tab .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(255, 255, 255, 1);
    color: var(--primary-blue);
}

#quotes-tab .btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#quotes-tab .btn-secondary i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

#quotes-tab .btn-secondary:hover i {
    transform: rotate(90deg);
}

/* Map Section */
.contact-map-section {
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.3) 0%, rgba(255, 255, 255, 1) 100%);
}

.map-section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--navy-blue);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
    letter-spacing: -0.01em;
}

.contact-map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(30, 58, 138, 0.2);
}

.contact-map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

.form-wrapper {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-wrapper.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* Success State */
.form-success-state {
    text-align: center;
    padding: clamp(2rem, 3vw, 3rem) 0;
    animation: fadeInUp 0.6s ease-out;
}

.success-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto clamp(1.5rem, 2vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.success-icon-wrapper i {
    font-size: 3rem;
    color: #ffffff;
}

.success-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.success-message {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.success-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--navy-blue);
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: clamp(0.95rem, 1.1vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.success-reset-btn:hover {
    background: var(--primary-blue);
    transform: translateX(5px);
}

.success-reset-btn i {
    transition: transform 0.3s ease;
}

.success-reset-btn:hover i {
    transform: translateX(5px);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message {
    margin-top: 1.5rem;
    padding: clamp(1rem, 1.5vw, 1.25rem) clamp(1.25rem, 2vw, 1.5rem);
    border-radius: 12px;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    display: none;
    align-items: center;
    gap: 0.75rem;
    animation: slideInMessage 0.4s ease-out;
    position: relative;
    z-index: 2;
}

.form-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.form-message span {
    flex: 1;
    line-height: 1.5;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
    color: #047857;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.success-message i {
    color: #10b981;
}

.error-message {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(239, 68, 68, 0.12) 100%);
    color: #b91c1c;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.error-message i {
    color: #ef4444;
}

.info-message {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(59, 130, 246, 0.12) 100%);
    color: #0369a1;
    border: 2px solid rgba(14, 165, 233, 0.3);
}

.info-message i {
    color: #0ea5e9;
}

/* Contact Page Responsive Styles */
@media (max-width: 992px) {
    .contact-split-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel {
        padding: clamp(3rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
    }
    
    .contact-form-panel {
        padding: clamp(3rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
    }
    
    .contact-map-container iframe {
        height: 400px;
    }
}

@media (max-width: 768px) {
    
    .contact-info-panel {
        padding: clamp(2.5rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
    }
    
    .contact-form-panel {
        padding: clamp(2.5rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
    }
    
    .contact-info-title,
    .contact-form-title {
        font-size: 2rem;
    }
    
    .contact-info-item {
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .contact-info-icon {
        width: 45px;
        height: 45px;
    }
    
    .minimal-contact-form {
        gap: 1.5rem;
    }
    
    .contact-map-container iframe {
        height: 350px;
    }
}

@media (max-width: 640px) {
    
    .contact-info-panel {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-panel {
        padding: 2rem 1.5rem;
    }
    
    .contact-info-title,
    .contact-form-title {
        font-size: 1.75rem;
    }
    
    .contact-info-description,
    .contact-form-subtitle {
        font-size: 1rem;
    }
    
    .contact-info-list {
        gap: 1.25rem;
    }
    
    .contact-info-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .contact-info-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-info-icon i {
        font-size: 1.1rem;
    }
    
    .contact-info-value {
        font-size: 0.95rem;
    }
    
    .minimal-contact-form input,
    .minimal-contact-form textarea {
        padding: 1.25rem 0.75rem 0.5rem;
    }
    
    .minimal-contact-form label {
        left: 0.75rem;
        top: 1.25rem;
    }
    
    .minimal-submit-btn {
        padding: 1rem 2rem;
        width: 100%;
    }
    
    .contact-map-container iframe {
        height: 300px;
    }
    
    .social-links-grid {
        flex-wrap: wrap;
    }
}


/* ============================================
   PARTNERS PAGE STYLES
   ============================================ */

/* Partners Metrics Section */
.partners-metrics-section {
    padding: clamp(0.5rem, 1.5vw, 1rem) 0 clamp(2rem, 4vw, 3rem) 0;
    margin-top: clamp(0rem, 0vw, 0rem);
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
}

.partners-metrics-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.partners-metric-card {
    flex: 1 1 0;
    min-width: clamp(80px, 10vw, 100px);
    /* padding: clamp(2rem, 3vw, 2.5rem) clamp(1.5rem, 2.5vw, 2rem); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partners-metric-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.partners-metric-1 {
    background: linear-gradient(135deg, rgba(14, 165, 233, 1) 0%, rgba(14, 165, 233, 0.85) 100%);
    border: 2px solid #0ea5e9;
}

.partners-metric-2 {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(59, 130, 246, 0.85) 100%);
    border: 2px solid #3b82f6;
}

.partners-metric-3 {
    background: linear-gradient(135deg, rgba(37, 99, 235, 1) 0%, rgba(37, 99, 235, 0.85) 100%);
    border: 2px solid #2563eb;
}

.partners-metric-card .metric-icon {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
}

.partners-metric-card .metric-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0 0 0.5rem 0;
}

.partners-metric-card .metric-label {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .partners-metrics-grid {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .partners-metric-card {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 180px;
    }
}

@media (max-width: 640px) {
    .partners-metric-card {
        flex: 1 1 100%;
    }
}

/* Partners Community Section */
.partners-community {
    padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(2rem, 3vw, 2.5rem) 0;
    margin-top: clamp(-1rem, -2vw, -0.5rem);
    background: var(--sky-blue);
    min-height: auto;
}

.partners-community .section-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
}

.partners-community .section-title {
    font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2rem);
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.partners-community .section-subtitle {
    font-size: clamp(0.9rem, 1.1vw + 0.4rem, 1rem);
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.community-item {
    text-align: center;
    padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 2.5vw, 2rem);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(30, 58, 138, 0.12),
        0 0 0 1px rgba(14, 165, 233, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 380px;
    width: 100%;
}

.community-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        rgba(14, 165, 233, 1) 0%, 
        rgba(59, 130, 246, 1) 50%, 
        rgba(37, 99, 235, 1) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.community-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.community-item:hover::before {
    transform: scaleX(1);
}

.community-item:hover::after {
    opacity: 1;
}

.community-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(30, 58, 138, 0.2),
        0 0 0 1px rgba(14, 165, 233, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.community-icon {
    width: clamp(70px, 8vw, 85px);
    height: clamp(70px, 8vw, 85px);
    margin: 0 auto clamp(0.75rem, 1.5vw, 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--sky-blue) 50%, var(--primary-blue) 100%);
    background-size: 200% 200%;
    border-radius: 50%;
    color: #ffffff;
    font-size: clamp(1.75rem, 2.5vw, 2rem);
    box-shadow: 
        0 10px 30px rgba(14, 165, 233, 0.4),
        0 0 0 4px rgba(14, 165, 233, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    animation: iconGradientShift 3s ease-in-out infinite;
}

@keyframes iconGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.community-item:hover .community-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 
        0 15px 40px rgba(14, 165, 233, 0.5),
        0 0 0 6px rgba(14, 165, 233, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    background-position: 100% 0;
}

.community-item h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: var(--navy-blue);
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    font-weight: 700;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.community-item p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 0.85;
    text-align: center;
    max-width: 100%;
}

.community-item:hover p {
    opacity: 1;
}

@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Partners Section */
.partners-section {
    padding: clamp(4rem, 6vw + 2rem, 6rem) 0;
    background: var(--white);
    position: relative;
}

.partners-section.funding-partners {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.3) 0%, rgba(255, 255, 255, 1) 100%);
}

.partners-header {
    text-align: center;
    margin-bottom: clamp(3rem, 5vw, 4rem);
}

.partners-header .section-title {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.partners-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--sky-blue));
    border-radius: 2px;
}

.partners-header .section-subtitle {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.1rem);
    color: var(--text-dark);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    max-width: 1400px;
    margin: 0 auto;
}

.partner-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 24px;
    padding: 0;
    box-shadow: 
        0 8px 32px rgba(30, 58, 138, 0.1),
        0 0 0 1px rgba(14, 165, 233, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        rgba(14, 165, 233, 1) 0%, 
        rgba(59, 130, 246, 1) 50%, 
        rgba(37, 99, 235, 1) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.partner-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.partner-card:nth-child(3n+1) {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(239, 246, 255, 0.95) 100%);
    border-color: rgba(14, 165, 233, 0.15);
}

.partner-card:nth-child(3n+1)::after {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
}

.partner-card:nth-child(3n+2) {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(241, 245, 249, 0.95) 100%);
    border-color: rgba(59, 130, 246, 0.15);
}

.partner-card:nth-child(3n+2)::after {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.partner-card:nth-child(3n+3) {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 252, 0.95) 100%);
    border-color: rgba(37, 99, 235, 0.15);
}

.partner-card:nth-child(3n+3)::after {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}

.partner-card:hover::before {
    transform: scaleX(1);
}

.partner-card:hover::after {
    opacity: 1;
}

.partner-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 12px 40px rgba(30, 58, 138, 0.2),
        0 0 0 1px rgba(14, 165, 233, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(14, 165, 233, 0.3);
}

.partner-card-inner {
    padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1rem, 1.5vw, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.partner-logo-wrapper {
    position: relative;
    width: 120px;
    height: 90px;
    min-height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.8) 100%);
    border-radius: 16px;
    padding: clamp(1rem, 2vw, 1.5rem);
    box-shadow: 
        0 8px 24px rgba(14, 165, 233, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.partner-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.partner-logo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    transition: left 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

.partner-card:hover .partner-logo-wrapper::before {
    left: 100%;
}

.partner-card:hover .partner-logo-wrapper {
    transform: scale(1.03);
    box-shadow: 
        0 8px 24px rgba(14, 165, 233, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(239, 246, 255, 0.95) 100%);
}

.partner-logo {
    width: auto;
    height: auto;
    max-width: 110px;
    max-height: 80px;
    min-width: 60px;
    min-height: 40px;
    object-fit: contain;
    object-position: center;
    filter: grayscale(15%) brightness(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.partner-logo-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    flex-direction: column;
    gap: 0.5rem;
}

.partner-logo-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-card:hover .partner-logo-placeholder svg {
    opacity: 1;
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%) brightness(1.05);
    transform: scale(1.08);
}

.partner-name {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: var(--navy-blue);
    font-weight: 600;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.partner-card:hover .partner-name {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Partner card animation on scroll */
@keyframes partnerCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.partner-card {
    animation: partnerCardFadeIn 0.6s ease-out backwards;
}

.partner-card:nth-child(1) {
    animation-delay: 0.1s;
}

.partner-card:nth-child(2) {
    animation-delay: 0.2s;
}

.partner-card:nth-child(3) {
    animation-delay: 0.3s;
}

.partner-card:nth-child(4) {
    animation-delay: 0.4s;
}

.partner-card:nth-child(5) {
    animation-delay: 0.5s;
}

.partner-card:nth-child(6) {
    animation-delay: 0.6s;
}

@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1rem, 2vw, 1.25rem);
    }
    
    .partner-logo-wrapper {
        width: 100px;
        height: 75px;
    }
    
    .partner-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
}

@media (max-width: 640px) {
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 400px;
    }
    
    .partner-logo-wrapper {
        width: 100px;
        height: 75px;
    }
    
    .partner-card-inner {
        padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1rem, 1.5vw, 1.25rem);
    }
}

/* Partners CTA Section */
.partners-cta {
    padding: clamp(4rem, 6vw + 2rem, 6rem) 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.94), rgba(14, 165, 233, 0.85));
    color: var(--white);
}

.partners-cta .cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.partners-cta h2 {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.partners-cta p {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.partners-cta .cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.partners-cta .cta-button.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.partners-cta .cta-button.secondary:hover {
    background: var(--white);
    color: var(--navy-blue);
    border-color: var(--white);
}

/* Footer */
footer {
    background: var(--text-dark) url('../../images/footer-bg.jpeg') no-repeat center center/cover;
    background-blend-mode: overlay;
    background-color: rgba(31, 41, 55, 0.9);
    color: #e5e7eb;
    padding: 40px 0 20px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    visibility: visible;
    opacity: 1;
}

.footer-logo-img {
    width: 180px;
    height: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Override lazy loading opacity for footer logo */
.footer-logo-img[loading="lazy"] {
    opacity: 1 !important;
}

.footer-logo h3 {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--orange-accent);
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    color: #d1d5db;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--orange-accent);
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    font-size: 0.9rem;
    width: 100%;
}

.newsletter-form button {
    background: var(--dark-navy);
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.newsletter-form button:hover {
    background: #1E90FF;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.85rem;
}

.footer-bottom p {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }

    .logo-img {
        width: 160px;
    }

    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .slider-container {
        height: 350px;
    }

    .causes-masonry {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        grid-template-rows: auto;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        top: 0;
    }

    nav {
        padding: 0;
        gap: var(--space-xs);
    }

    .nav-links {
        width: min(320px, 88vw);
        padding: clamp(4rem, 4vw + 3rem, 4.5rem) clamp(1.25rem, 4vw + 0.75rem, 1.75rem);
        box-shadow: -18px 0 48px rgba(15, 23, 42, 0.16);
    }

    .dropdown-menu {
        border-left: 1px solid rgba(30, 58, 138, 0.16);
        padding: var(--space-2xs) 0 0 var(--space-sm);
    }

    .hamburger {
        width: 42px;
        height: 42px;
    }

    /* Reduce nav slogan font size and add spacing from hamburger menu */
    .nav-slogan {
        font-size: clamp(0.6rem, 1.2vw + 0.4rem, 0.75rem);
        margin-right: clamp(0.5rem, 2vw, 1rem);
        margin-left: clamp(0.5rem, 1.5vw, 1rem);
        letter-spacing: 0.12em;
    }

    .logo-container {
        gap: clamp(8px, 1.5vw, 12px);
        margin-right: auto;
        max-width: calc(100% - 180px); /* Reserve more space for nav-actions on mobile */
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo-img {
        width: clamp(120px, 18vw, 160px);
    }

    .hero-content {
        inset: clamp(6rem, 12vw, 7rem) auto clamp(3.5rem, 8vw, 4.5rem);
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 6vw, 2.5rem);
        align-items: stretch;
    }

    .hero-heading {
        font-size: clamp(2.1rem, 7vw, 3.2rem);
    }

    .hero-subtitle {
        padding: 0.85rem 1.4rem;
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    }

    .hero-copy {
        align-items: flex-start;
    }

    .hero-metrics {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        width: 100%;
    }

    .hero-scroll-prompt {
        display: none;
    }

    .cause-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .cause-grid:nth-child(even) {
        direction: ltr;
    }
    
    .cause-image img {
        min-height: 250px;
        max-height: 300px;
    }
    
    .programs-section {
        padding: clamp(3rem, 5vw + 1.5rem, 4rem) 0;
    }
    
    .closing {
        padding: clamp(3rem, 5vw + 1.5rem, 4rem) 0;
    }
    
    .closing-content .article-content {
        padding: 1.5rem;
    }

    .cause-image img {
        height: 200px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .causes,
    .closing {
        padding: 1rem 0;
    }

    .sticky-donate {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .contact-map iframe {
        height: 320px;
    }

    .contact-details {
        padding: 1.75rem;
    }

    .contact-social {
        justify-content: flex-start;
    }

    .contact-form {
        padding: 2rem;
    }


    .news-grid {
        grid-template-columns: 1fr;
    }

    .tickertape {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .slider-container {
        height: 260px;
    }

    .volunteer-cta h2 {
        font-size: 1.8rem;
    }

    .volunteer-cta p {
        font-size: 1rem;
    }
}

/* ============================================
   IMPACT PAGE STYLES
   ============================================ */

/* Impact Hero Section */
.impact-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(14, 165, 233, 0.9) 50%, rgba(244, 63, 94, 0.85) 100%),
                url('../../images/front/front0.jpeg') center/cover no-repeat;
    color: #ffffff;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 6rem) 0;
    transition: padding-top 0.3s ease, margin-top 0.3s ease;
}

.impact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.impact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.impact-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.impact-hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 750px;
    margin: 0 auto;
}

/* Testimonials Section */
.testimonials-section {
    padding: clamp(4rem, 6vw + 2rem, 6rem) 0;
    background: 
        linear-gradient(135deg, rgba(240, 248, 255, 0.6) 0%, rgba(230, 240, 250, 0.5) 50%, rgba(245, 250, 255, 0.4) 100%),
        var(--bg-primary);
    position: relative;
    overflow: visible;
}

.testimonials-section::before,
.testimonials-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.testimonials-section::before {
    background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.1), transparent 50%);
    animation: testimonialsFloat1 20s ease-in-out infinite;
}

.testimonials-section::after {
    background: radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.08), transparent 50%);
    animation: testimonialsFloat2 25s ease-in-out infinite;
}

[data-theme="dark"] .testimonials-section {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(20, 30, 50, 0.6) 50%, rgba(25, 35, 55, 0.5) 100%),
        var(--bg-primary);
}

[data-theme="dark"] .testimonials-section::before {
    background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15), transparent 50%);
}

[data-theme="dark"] .testimonials-section::after {
    background: radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.12), transparent 50%);
}

.testimonials-section > * {
    position: relative;
    z-index: 1;
}

@keyframes testimonialsFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.6;
    }
    66% {
        transform: translate(-20px, 30px) scale(0.95);
        opacity: 0.4;
    }
}

@keyframes testimonialsFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(-25px, 25px) scale(0.9);
        opacity: 0.4;
    }
    66% {
        transform: translate(25px, -25px) scale(1.15);
        opacity: 0.6;
    }
}

.testimonials-carousel-wrapper {
    position: relative;
    margin-top: var(--space-xl);
    overflow: hidden;
}

.testimonials-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-lg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Removed will-change to reduce memory consumption warning */
}

.testimonial-card {
    flex: 0 0 calc(33.333% - var(--space-lg) * 2 / 3);
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s ease;
}

/* Hide testimonials beyond the first 3 */
.testimonial-card:nth-child(n+4) {
    display: none;
}

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - var(--space-lg) / 2);
    }
    
    .testimonial-card:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        gap: var(--space-md);
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .testimonial-card:nth-child(n+2) {
        display: none;
    }
    
    .testimonial-card-inner {
        padding: var(--space-md);
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    
    .avatar-initials {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .testimonials-grid {
        gap: var(--space-sm);
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
        border-radius: 16px;
    }
    
    .testimonial-card-inner {
        padding: 1rem;
    }
    
    .testimonial-header {
        flex-direction: row;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .testimonial-avatar {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }
    
    .avatar-initials {
        font-size: 1rem;
    }
    
    .testimonial-name {
        font-size: 0.95rem;
    }
    
    .testimonial-role {
        font-size: 0.8rem;
    }
    
    .testimonial-quote {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0.75rem 0;
    }
    
    .testimonial-rating {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .testimonial-tags {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 320px) {
    .testimonials-grid {
        gap: 0.75rem;
    }
    
    .testimonial-card {
        border-radius: 12px;
    }
    
    .testimonial-card-inner {
        padding: 0.75rem;
    }
    
    .testimonial-header {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }
    
    .avatar-initials {
        font-size: 0.9rem;
    }
    
    .testimonial-name {
        font-size: 0.85rem;
    }
    
    .testimonial-role {
        font-size: 0.75rem;
    }
    
    .testimonial-quote {
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0.5rem 0;
    }
    
    .testimonial-rating {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .testimonial-tags {
        gap: 0.4rem;
        margin-top: 0.5rem;
    }
    
    .tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

.testimonial-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: transform var(--transition-lg), box-shadow var(--transition-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

.testimonial-card-inner {
    padding: var(--space-lg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.avatar-initials {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
    display: block;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--space-sm);
    color: #fbbf24;
    font-size: 0.9rem;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

.testimonial-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-sm);
}

.testimonial-tags .tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Social Media Links */
.testimonials-social-links {
    text-align: center;
    margin: clamp(2rem, 3vw + 1.5rem, 3rem) auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-links-intro {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.social-links-grid {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-facebook {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
    color: #ffffff;
}

.social-twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: #ffffff;
}

.social-instagram {
    background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
    color: #ffffff;
}

.social-linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
    color: #ffffff;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 1.1rem;
}

/* Testimonial Interactions */
.testimonial-interactions {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-comments {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: block !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 2000px;
    }
}

.comment-item {
    animation: commentFadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

@keyframes commentFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.comment-item:nth-child(1) { animation-delay: 0.1s; }
.comment-item:nth-child(2) { animation-delay: 0.2s; }
.comment-item:nth-child(3) { animation-delay: 0.3s; }
.comment-item:nth-child(4) { animation-delay: 0.4s; }
.comment-item:nth-child(5) { animation-delay: 0.5s; }
.comment-item:nth-child(n+6) { animation-delay: 0.6s; }

.like-btn,
.comment-toggle-btn,
.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn {
    margin-left: auto;
}

.share-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.like-btn:hover,
.comment-toggle-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.like-btn.liked {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(239, 68, 68, 0.2));
    border-color: #ef4444;
    color: #ef4444;
}

.like-btn.liked i.far.fa-heart {
    display: none !important;
}

.like-btn.liked i.fas.fa-heart {
    display: inline-block !important;
    color: #ef4444;
    animation: heartPulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
    }
}

.like-btn {
    position: relative;
    overflow: visible;
}

.like-btn::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.3);
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.like-btn.liked::after {
    animation: rippleEffect 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rippleEffect {
    0% {
        opacity: 0.6;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.like-btn.liked .like-count {
    color: #ef4444;
    font-weight: 700;
}

.like-btn:not(.liked) i.fas.fa-heart {
    display: none !important;
}

.like-btn:not(.liked) i.fas {
    display: none;
}

.like-btn i.fas {
    color: #f43f5e;
}

.like-count,
.comment-count {
    font-weight: 600;
}

/* Comments Section */
.testimonial-comments {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comments-list {
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comment-avatar {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 0.25rem;
}

.comment-form {
    margin-top: 1rem;
    animation: slideDown 0.4s ease-out;
}

.comment-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-name-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.comment-name-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

.comment-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.comment-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-submit-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.comment-submit-btn:active {
    transform: translateY(0);
}

.comment-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.comment-submit-btn.submitting {
    animation: submitPulse 1s ease-in-out infinite;
}

@keyframes submitPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Engagement bar enhancements */
.testimonial-interactions {
    position: relative;
}

.testimonial-interactions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Story card engagement visual feedback */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
}

/* Like count animation */
.like-count,
.comment-count {
    transition: all 0.3s ease;
    font-weight: 600;
}

.like-btn.liked .like-count {
    animation: countBounce 0.5s ease;
}

@keyframes countBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Comment joining animation */
.comment-item.joining {
    animation: commentJoin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes commentJoin {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Share Modal */
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-modal.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.share-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-modal.active .share-modal-content {
    transform: scale(1) translateY(0);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    border-bottom: 1px solid var(--border-color);
}

.share-modal-header h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.share-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.share-modal-close:hover {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    transform: rotate(90deg);
}

.share-modal-body {
    padding: clamp(1.5rem, 2.5vw, 2rem);
}

.share-story-preview {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 3px solid var(--primary-blue);
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.share-platforms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.share-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.share-platform-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.share-platform-btn > * {
    position: relative;
    z-index: 1;
}

.share-platform-btn i {
    font-size: 2rem;
}

.share-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.share-facebook {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.share-twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.share-linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.share-instagram {
    background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
}

.share-platform-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.share-platform-btn:hover::before {
    opacity: 0.2;
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .share-platforms {
        grid-template-columns: 1fr;
    }
    
    .share-platform-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
    }
}

/* Impact Submission Form */
.impact-submission {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.impact-submission-content {
    max-width: 900px;
    margin: 0 auto;
}

.impact-form {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    margin-top: var(--space-xl);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group .required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color var(--transition-md), box-shadow var(--transition-md);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition-md);
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.file-upload-label i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.file-upload-text {
    font-weight: 600;
    color: var(--text-primary);
}

.file-upload-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-preview {
    position: relative;
    margin-top: var(--space-sm);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.file-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.file-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-md);
}

.file-remove:hover {
    background: #ef4444;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: var(--space-md);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-blue);
}

.impact-submit-btn {
    width: 100%;
    margin-top: var(--space-md);
    padding: 1rem 2rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.form-message {
    margin-top: var(--space-md);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success-message {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: block;
}

.form-message.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

/* Impact Gallery */
.impact-gallery {
    padding: clamp(4rem, 6vw + 2rem, 6rem) 0;
    background: 
        linear-gradient(135deg, rgba(250, 245, 255, 0.6) 0%, rgba(240, 248, 255, 0.5) 50%, rgba(245, 250, 255, 0.4) 100%),
        var(--bg-primary);
    position: relative;
    overflow: visible;
}

.impact-gallery::before,
.impact-gallery::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.impact-gallery::before {
    background: radial-gradient(circle at 30% 40%, rgba(147, 51, 234, 0.1), transparent 50%);
    animation: galleryFloat1 22s ease-in-out infinite;
}

.impact-gallery::after {
    background: radial-gradient(circle at 70% 60%, rgba(37, 99, 235, 0.08), transparent 50%);
    animation: galleryFloat2 28s ease-in-out infinite;
}

[data-theme="dark"] .impact-gallery {
    background: 
        linear-gradient(135deg, rgba(20, 18, 25, 0.7) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(25, 35, 55, 0.5) 100%),
        var(--bg-primary);
}

[data-theme="dark"] .impact-gallery::before {
    background: radial-gradient(circle at 30% 40%, rgba(147, 51, 234, 0.15), transparent 50%);
}

[data-theme="dark"] .impact-gallery::after {
    background: radial-gradient(circle at 70% 60%, rgba(37, 99, 235, 0.12), transparent 50%);
}

.impact-gallery > * {
    position: relative;
    z-index: 1;
}

@keyframes galleryFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(25px, -18px) scale(1.1);
        opacity: 0.6;
    }
    66% {
        transform: translate(-18px, 25px) scale(0.95);
        opacity: 0.4;
    }
}

@keyframes galleryFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(-22px, 22px) scale(0.9);
        opacity: 0.4;
    }
    66% {
        transform: translate(22px, -22px) scale(1.15);
        opacity: 0.6;
    }
}

.impact-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 2.5vw, 2rem);
    margin-top: clamp(2rem, 3vw + 1.5rem, 3rem);
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    background: var(--bg-primary);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.25), 0 8px 20px rgba(147, 51, 234, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.85) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    opacity: 1;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.4) 30%,
        rgba(37, 99, 235, 0.7) 100%
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gallery-overlay h3 {
    color: #ffffff;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(147, 51, 234, 0.4));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(8px);
}

.gallery-item:hover::before {
    opacity: 0.6;
}

/* Impact Gallery Section Title */
.impact-gallery .section-title,
.impact-gallery .section-subtitle {
    color: var(--text-primary);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.impact-gallery .section-title {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impact-gallery .section-subtitle {
    max-width: 900px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    color: var(--text-secondary);
}

/* Responsive Design for Impact Page */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .impact-form {
        padding: var(--space-lg);
    }

    .impact-gallery {
        padding: clamp(3rem, 5vw + 1.5rem, 4rem) 0;
    }
    
    .impact-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item {
        border-radius: 16px;
    }
    
    .gallery-overlay {
        padding: 1.5rem;
    }

    .impact-hero {
        min-height: 40vh;
        padding: var(--space-xl) 0;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - ensure all content is visible */
    body {
        font-size: 14px;
    }

    /* Hide nav-slogan on very small screens to prevent overlap */
    .nav-slogan {
        display: none;
    }

    .logo-container {
        max-width: calc(100% - 140px); /* More space for nav-actions when slogan is hidden */
        gap: clamp(4px, 1vw, 8px);
    }

    .logo-img {
        width: clamp(90px, 15vw, 120px);
    }

    .nav-actions {
        gap: clamp(0.25rem, 1vw, 0.5rem);
    }

    .hamburger {
        width: clamp(36px, 8vw, 42px);
        height: clamp(36px, 8vw, 42px);
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 1.5rem 0;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }

    .file-upload-label {
        padding: 2rem 1rem;
    }

    /* Ensure all headings are readable */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.35rem !important; }
    h3 { font-size: 1.2rem !important; }
    h4 { font-size: 1.1rem !important; }

    /* Ensure buttons are touch-friendly but don't overflow */
    button, .btn, .cta-button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 100%;
    }

    /* Ensure forms are fully visible */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ============================================ */

/* Base Responsive Typography */
html {
    font-size: clamp(14px, 1.2vw + 0.5rem, 16px);
}

body {
    font-size: clamp(0.9rem, 0.8vw + 0.5rem, 1rem);
    line-height: clamp(1.5em, 0.1vw + 1.4em, 1.65em);
}

/* Responsive Container */
.container {
    width: 100%;
    max-width: min(1280px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Responsive Headings */
h1, .h1 {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
    line-height: clamp(1.2em, 0.1vw + 1.1em, 1.3em);
}

h2, .h2, .section-title {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
    line-height: clamp(1.3em, 0.1vw + 1.2em, 1.4em);
}

h3, .h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    line-height: clamp(1.4em, 0.1vw + 1.3em, 1.5em);
}

h4, .h4 {
    font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.5rem);
    line-height: 1.5;
}

h5, .h5 {
    font-size: clamp(1rem, 1vw + 0.5rem, 1.25rem);
    line-height: 1.5;
}

h6, .h6 {
    font-size: clamp(0.9rem, 0.8vw + 0.5rem, 1.1rem);
    line-height: 1.5;
}

p, .p {
    font-size: clamp(0.9rem, 0.8vw + 0.5rem, 1rem);
    line-height: clamp(1.5em, 0.1vw + 1.4em, 1.65em);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive Buttons */
button, .btn, .cta-button, .support-btn {
    font-size: clamp(0.85rem, 0.6vw + 0.5rem, 0.95rem);
    padding: clamp(0.65rem, 0.8vw + 0.4rem, 0.95rem) clamp(1.25rem, 2vw + 0.75rem, 2.2rem);
    min-height: 44px; /* Touch target size */
}

/* Responsive Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="url"],
input[type="password"],
textarea,
select {
    font-size: clamp(0.9rem, 0.8vw + 0.5rem, 1rem);
    padding: clamp(0.75rem, 0.8vw + 0.5rem, 0.85rem) clamp(0.875rem, 1vw + 0.5rem, 1rem);
    min-height: 44px; /* Touch target size */
    width: 100%;
}

textarea {
    min-height: clamp(120px, 15vw + 80px, 150px);
}

/* Responsive Grid Systems */
.grid,
.grid-auto,
.causes-masonry,
.testimonials-grid,
.impact-gallery-grid,
.news-grid {
    display: grid;
    gap: clamp(1rem, 2vw + 0.5rem, 2rem);
}

/* Responsive Section Padding */
section {
    padding: clamp(2rem, 5vw + 1rem, 4rem) 0;
    overflow: visible !important;
    min-height: auto !important;
}

/* Ensure all content containers are visible */
.container,
.welcome-grid,
.causes-masonry,
.testimonials-grid,
.impact-gallery-grid,
.news-grid,
.impact-counters {
    overflow: visible;
}

/* Fix any hidden content on mobile */
@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    .container {
        padding: 0 clamp(1rem, 4vw, 2rem);
        width: 100%;
        overflow: visible;
    }

    /* Ensure all text is visible and wraps */
    h1, h2, h3, h4, h5, h6, p, span, a, li, td, th {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Remove any max-height restrictions that might hide content */
    .welcome-content,
    .about-content,
    .testimonial-card-inner,
    .news-content,
    .impact-form {
        max-height: none !important;
        overflow: visible !important;
    }

    /* Ensure cards and containers expand to show all content */
    .card,
    .cause-card,
    .testimonial-card,
    .news-card,
    .counter-item {
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    /* Fix any absolute positioning that might hide content */
    .hero-content {
        position: relative !important;
        transform: none !important;
        inset: auto !important;
    }
}

.section-title {
    margin-bottom: clamp(0.75rem, 1.5vw + 0.5rem, 1.5rem);
}

.section-subtitle {
    font-size: clamp(0.95rem, 1vw + 0.5rem, 1.1rem);
    margin-bottom: clamp(1.5rem, 3vw + 1rem, 2.5rem);
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Responsive Cards */
.card,
.cause-card,
.testimonial-card,
.news-card {
    padding: clamp(1rem, 2vw + 0.5rem, 1.5rem);
    border-radius: clamp(12px, 1.5vw + 8px, 20px);
}

/* Responsive Navigation */
@media (max-width: 1023px) {
    .nav-links {
        width: min(360px, 90vw);
        padding: clamp(3.5rem, 6vw + 2rem, 5.75rem) clamp(1rem, 3vw + 0.5rem, 2.5rem);
    }

    .nav-links a {
        font-size: clamp(0.95rem, 1.2vw + 0.7rem, 1.05rem);
        padding: clamp(0.5rem, 0.8vw + 0.3rem, 0.75rem) clamp(0.75rem, 1.2vw + 0.5rem, 1rem);
    }

    .hamburger {
        width: clamp(40px, 5vw + 30px, 50px);
        height: clamp(40px, 5vw + 30px, 50px);
    }

    .nav-donate {
        padding: clamp(0.5rem, 0.8vw + 0.3rem, 0.7rem) clamp(0.875rem, 1.5vw + 0.5rem, 1.25rem);
        font-size: clamp(0.75rem, 0.8vw + 0.5rem, 0.85rem);
    }

    /* Reduce nav slogan font size and add spacing from hamburger menu on smaller screens */
    .nav-slogan {
        font-size: clamp(0.55rem, 1.5vw + 0.3rem, 0.7rem);
        margin-right: clamp(0.5rem, 2.5vw, 1rem);
        margin-left: clamp(0.4rem, 1.2vw, 0.8rem);
        letter-spacing: 0.1em;
    }

    .logo-container {
        gap: clamp(6px, 1.2vw, 10px);
        margin-right: auto;
        max-width: calc(100% - 160px); /* Reserve space for nav-actions */
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo-img {
        width: clamp(100px, 16vw, 140px);
    }
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        overflow: visible;
        padding-bottom: 2rem;
    }

    .hero--simple {
        min-height: 100vh; /* ensure full viewport height */
        display: flex;
        flex-direction: column;
        justify-content: center; /* vertically center content */
    }

    .hero-content {
        padding: clamp(1rem, 3vw, 2rem);
        gap: clamp(1rem, 2vw + 0.5rem, 1.5rem);
        position: relative;
        transform: none;
        inset: auto;
        margin: 2rem 0;
    }

    .hero-heading {
        font-size: clamp(1.75rem, 6vw + 0.5rem, 3rem);
        line-height: clamp(1.2em, 0.15vw + 1.1em, 1.3em);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Center and fit heading on one line for simple hero on mobile/tablet */
    .hero--simple .hero-copy {
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero--simple .hero-heading {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(1.3rem, 4.5vw + 0.3rem, 2.2rem);
        white-space: nowrap;
        letter-spacing: -0.02em;
        max-width: 100%;
    }

    /* Center subtitle on mobile/tablet */
    .hero--simple .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.18rem);
        padding: clamp(0.75rem, 1.5vw + 0.5rem, 1rem) clamp(1rem, 2vw + 0.5rem, 2rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Arrange metrics horizontally below buttons on tablet/mobile */
    .hero--simple .hero-content {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
        justify-items: center;
        text-align: center;
        padding-left: clamp(1rem, 3vw, 2rem);
        padding-right: clamp(1rem, 3vw, 2rem);
        margin-bottom: 2rem; /* create space for metrics below */
    }

    .hero--simple .hero-metrics {
        position: relative !important; /* override absolute positioning */
        display: flex !important; /* use flexbox instead of grid */
        flex-direction: row !important; /* force horizontal row */
        justify-content: center; /* center horizontally */
        align-items: center; /* center vertically */
        flex-wrap: nowrap; /* prevent vertical stacking */
        margin-top: clamp(1rem, 2vw, 1.5rem); /* spacing below buttons */
        margin-left: auto;
        margin-right: auto;
        gap: 1rem; /* spacing between cards */
        width: 100%;
        max-width: 100%;
        right: auto !important; /* reset absolute positioning */
        bottom: auto !important; /* reset absolute positioning */
        left: auto !important; /* reset absolute positioning */
    }

    .hero--simple .hero-metric {
        padding: clamp(0.6rem, 1.2vw, 0.85rem);
    }

    .hero--simple .metric-number {
        font-size: clamp(1.15rem, 3.8vw, 1.5rem);
    }

    .hero--simple .metric-label {
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }

    .hero--simple .metric-icon {
        font-size: clamp(1.1rem, 2.8vw, 1.3rem);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: clamp(0.75rem, 1vw + 0.5rem, 1rem);
        align-items: center;
        justify-content: center;
    }

    .hero--simple .hero-buttons {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-buttons .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: clamp(0.5rem, 1vw + 0.3rem, 0.75rem);
        margin-top: 1.5rem;
    }

    .hero-metric {
        padding: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
        width: 100%;
    }
}

/* Responsive Programs Section */
@media (max-width: 1024px) {
    .programs {
        overflow: visible;
        min-height: auto;
    }

    .causes-masonry {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: clamp(1rem, 2vw + 0.5rem, 1.5rem);
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .programs {
        padding: clamp(2rem, 5vw + 1rem, 3rem) 0;
    }

    .causes-masonry {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vw + 0.5rem, 1.5rem);
        overflow: visible;
    }

    .cause-card {
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    .cause-overlay {
        overflow: visible;
    }
}

/* Responsive Welcome Section */
@media (max-width: 1024px) {
    .welcome {
        min-height: auto;
        overflow: visible;
        padding: clamp(2rem, 5vw + 1rem, 4rem) 0;
    }

    .welcome-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw + 1rem, 2rem);
        overflow: visible;
    }

    .welcome-content {
        padding: clamp(1rem, 2vw + 0.5rem, 1.5rem);
        overflow: visible;
        max-height: none;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .welcome-content h3 {
        font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem);
        word-wrap: break-word;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .welcome-content p {
        font-size: clamp(0.9rem, 1vw + 0.5rem, 1rem);
        word-wrap: break-word;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .welcome-content .cta-button {
        margin-left: auto;
        margin-right: auto;
        align-self: center;
    }

    .slider-container {
        height: clamp(250px, 40vw + 150px, 400px);
        overflow: visible;
    }
}

/* Responsive Impact Counters */
@media (max-width: 1024px) {
    .impact {
        overflow: visible;
        min-height: auto;
    }

    .impact-counters {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: clamp(1rem, 2vw + 0.5rem, 1.5rem);
        overflow: visible;
    }
    
    .counter-item {
        min-height: 260px;
        padding: clamp(1.25rem, 2.5vw, 1.75rem);
    }
    
    .counter-ring {
        width: clamp(90px, 11vw, 120px);
    }
}

@media (max-width: 768px) {
    .impact-counters {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: clamp(1rem, 2vw, 1.5rem);
    }
    
    .counter-item {
        min-height: 240px;
        padding: clamp(1rem, 2vw, 1.5rem);
        gap: clamp(0.5rem, 1vw, 0.75rem);
    }
    
    .counter-ring {
        width: clamp(80px, 10vw, 100px);
    }
    
    .counter-title {
        font-size: clamp(0.75rem, 1vw, 0.9rem);
        letter-spacing: 0.1em;
    }
    
    .counter-subtitle {
        font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    }
}

@media (max-width: 480px) {
    .impact-counters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .counter-item {
        min-height: 220px;
        padding: 1.25rem;
    }
    
    .counter-ring {
        width: clamp(70px, 20vw, 90px);
    }
}

@media (max-width: 640px) {
    .impact {
        padding: clamp(2rem, 5vw + 1rem, 3rem) 0;
    }

    .impact-counters {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .counter-item {
        padding: clamp(1.25rem, 2.5vw + 0.75rem, 1.6rem);
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    .counter-ring {
        width: clamp(100px, 12vw + 60px, 140px);
    }

    .counter-number {
        font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2rem);
        word-wrap: break-word;
    }

    .counter-title {
        font-size: clamp(0.9rem, 1.2vw + 0.6rem, 1.05rem);
        word-wrap: break-word;
    }

    .counter-subtitle {
        word-wrap: break-word;
    }
}

/* Responsive Footer */
@media (max-width: 1024px) {
    footer {
        overflow: visible;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: clamp(1.5rem, 3vw + 1rem, 2rem);
        overflow: visible;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        padding: 0 clamp(1rem, 3vw, 2rem);
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-form input {
        min-width: 100%;
        width: 100%;
        padding: 10px 12px;
    }

    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    footer {
        padding: clamp(2rem, 5vw + 1rem, 3rem) 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        overflow: visible;
    }

    .footer-section {
        margin-bottom: clamp(1.5rem, 2vw + 1rem, 2rem);
        overflow: visible;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-section ul {
        overflow: visible;
    }

    .footer-section li {
        word-wrap: break-word;
    }

    .footer-bottom {
        text-align: center;
        padding-top: clamp(1rem, 2vw + 0.5rem, 1.5rem);
    }

    .footer-bottom p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        padding: 0 clamp(1rem, 3vw, 2rem);
        font-size: clamp(0.75rem, 1.5vw + 0.5rem, 0.85rem);
        line-height: 1.6;
    }
}

/* Responsive Tables */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table thead {
        display: none;
    }

    table tbody,
    table tr,
    table td {
        display: block;
        width: 100%;
    }

    table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.75rem;
    }

    table td {
        text-align: right;
        padding: 0.5rem;
        border: none;
        border-bottom: 1px solid var(--border-color);
    }

    table td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--text-primary);
    }

    table td:last-child {
        border-bottom: none;
    }
}

/* Responsive Utilities */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .show-mobile {
        display: block;
    }
}

/* Responsive Spacing Utilities */
@media (max-width: 640px) {
    .mb-mobile {
        margin-bottom: 1rem;
    }

    .mt-mobile {
        margin-top: 1rem;
    }

    .px-mobile {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-mobile {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    button,
    a,
    .btn,
    .cta-button {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-links a {
        padding: 1rem;
    }

    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-top: 0.5rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 1rem 0;
    }

    section {
        padding: 2rem 0;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .section-title {
        font-size: clamp(2.5rem, 2vw + 1rem, 3rem);
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    header,
    footer,
    .nav-actions,
    .hamburger,
    .theme-toggle,
    .nav-donate,
    .progress-bar {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Responsive Adjustments */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
}

@media (max-width: 768px) {
    [data-theme="dark"] .nav-links {
        background: rgba(15, 23, 42, 0.98);
    }
}

/* Container Queries Support (Progressive Enhancement) */
@supports (container-type: inline-size) {
    .container-query {
        container-type: inline-size;
    }

    @container (max-width: 600px) {
        .container-query .responsive-content {
            flex-direction: column;
        }
    }
}

/* Flexible Grid with Auto-fit */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 2vw + 0.5rem, 2rem);
}

/* Responsive Flex Utilities */
.flex-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 1.5vw + 0.5rem, 1.5rem);
}

@media (max-width: 768px) {
    .flex-responsive {
        flex-direction: column;
    }
}

/* Ensure all content is within viewport */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Critical fix: Ensure all content is visible on small screens */
@media (max-width: 768px) {
    /* Remove any height restrictions */
    .welcome,
    .programs,
    .impact,
    .testimonials-section,
    .impact-submission,
    .impact-gallery,
    .volunteer-cta,
    .about-section,
    section {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Ensure all containers allow content to expand */
    .container,
    .welcome-grid,
    .causes-masonry,
    .testimonials-grid,
    .impact-gallery-grid,
    .news-grid,
    .impact-counters,
    .footer-content {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Fix any text that might be cut off */
    p, h1, h2, h3, h4, h5, h6, span, a, li, td, th, label, input, textarea, select {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Ensure buttons and links are fully visible */
    button, .btn, .cta-button, a {
        white-space: normal;
        word-wrap: break-word;
    }

    /* Fix any absolute positioned elements that might hide content */
    .hero-content,
    .welcome-content,
    .about-content {
        position: relative !important;
    }

    /* Ensure images don't cause overflow */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}

/* Prevent horizontal scroll but allow vertical scroll */
html, body {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    min-height: 100vh;
}

/* Ensure main content is always visible and scrollable */
main {
    min-height: auto;
    overflow: visible;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure all sections can expand to show content */
section {
    overflow: visible !important;
    min-height: auto !important;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive Video */
video,
iframe {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    video.hero-video {
        object-position: center;
    }
}

/* Responsive Text Selection */
::selection {
    background: rgba(37, 99, 235, 0.3);
    color: inherit;
}

::-moz-selection {
    background: rgba(37, 99, 235, 0.3);
    color: inherit;
}

/* Floating Notifications Icon */
.floating-notifications {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: var(--cta-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), 0 4px 12px rgba(244, 63, 94, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.floating-notifications:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5), 0 6px 16px rgba(244, 63, 94, 0.4);
}

.floating-notifications:active {
    transform: scale(0.95);
}

.floating-notifications.has-notifications {
    animation: notificationPulse 2s ease-in-out infinite;
}

.notification-icon-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-notifications .fa-bell {
    font-size: 28px;
    color: white;
    animation: bellRing 2s ease-in-out infinite;
}

.floating-notifications.has-notifications .fa-bell {
    animation: bellRing 1.5s ease-in-out infinite;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f43f5e;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.5);
    animation: badgeBounce 0.5s ease-out;
}

.notification-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulseRing 2s ease-out infinite;
    pointer-events: none;
}

.floating-notifications.has-notifications .notification-pulse {
    animation: pulseRing 1.5s ease-out infinite;
}

@keyframes notificationPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-10deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(10deg);
    }
}

@keyframes badgeBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Events Modal */
.events-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.events-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.events-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.events-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.events-modal.active .events-modal-content {
    transform: scale(1) translateY(0);
}

.events-modal-header {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
}

.events-modal-header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary);
    font-weight: 700;
}

.events-modal-close {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-size: 20px;
}

.events-modal-close:hover {
    background: var(--bg-tertiary);
    transform: rotate(90deg);
}

.events-modal-body {
    padding: clamp(1.5rem, 3vw, 2rem);
    overflow-y: auto;
    flex: 1;
}

.events-grid-modal {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.events-grid-modal .event-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.events-grid-modal .event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Responsive adjustments for floating notifications */
@media (max-width: 768px) {
    .floating-notifications {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-notifications .fa-bell {
        font-size: 24px;
    }
    
    .notification-badge {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .events-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .events-modal-header {
        padding: 1.25rem;
    }
    
    .events-modal-body {
        padding: 1.25rem;
    }
}

/* Story Success Modal */
.story-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.story-success-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.story-success-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.story-success-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: clamp(2rem, 4vw, 3rem);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #10b981;
}

.story-success-modal.active .story-success-modal-content {
    transform: scale(1) translateY(0);
}

.story-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 0.6s ease-out;
}

.story-success-icon i {
    font-size: 40px;
    color: white;
}

.story-success-modal-content h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: #10b981;
    font-weight: 700;
}

.story-success-modal-content p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.story-success-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
}

.story-success-close-btn:hover {
    background: var(--bg-tertiary);
    transform: rotate(90deg);
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Word Counter */
.word-counter {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
    font-weight: 500;
}

.word-counter.over-limit {
    color: #ef4444;
    font-weight: 600;
}

/* File Upload Text Update */
.file-upload-text {
    transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Photo List View */
.photo-list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
}

.photo-list-item:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.3);
}

.photo-list-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.photo-list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 2rem;
}

.photo-list-content {
    flex: 1;
    min-width: 0;
}

.photo-list-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.photo-list-description {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.photo-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.photo-list-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.photo-list-meta i {
    font-size: 0.9em;
    opacity: 0.7;
}

.photo-list-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Photo Details Modal */
.photo-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.photo-details-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.photo-details-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.photo-details-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.photo-details-modal.active .photo-details-modal-content {
    transform: scale(1) translateY(0);
}

.photo-details-modal-header {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
}

.photo-details-modal-header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary);
    font-weight: 700;
}

.photo-details-modal-close {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-size: 20px;
}

.photo-details-modal-close:hover {
    background: var(--bg-tertiary);
    transform: rotate(90deg);
}

.photo-details-modal-body {
    padding: clamp(1.5rem, 3vw, 2rem);
    overflow-y: auto;
    flex: 1;
}

.photo-details-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.photo-details-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.photo-placeholder-large {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.5rem;
    gap: 1rem;
}

.photo-placeholder-large i {
    font-size: 3rem;
    opacity: 0.5;
}

.photo-details-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.photo-details-field {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.photo-details-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.photo-details-field label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.photo-details-field p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
}

.photo-details-url {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    word-break: break-all;
}

.photo-details-url button {
    flex-shrink: 0;
}

/* Responsive adjustments for photo list */
@media (max-width: 768px) {
    .photo-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .photo-list-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .photo-list-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .photo-list-actions .btn {
        flex: 1;
    }
    
    .photo-details-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .photo-details-modal-header {
        padding: 1.25rem;
    }
    
    .photo-details-modal-body {
        padding: 1.25rem;
    }
}

/* Admin Search Styles */
.admin-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 400px;
    width: 100%;
    min-width: 250px;
}

.admin-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-md);
    outline: none;
}

.admin-search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

[data-theme="dark"] .admin-search-input {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .admin-search-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

@media (max-width: 768px) {
    .admin-search-wrapper {
        max-width: 100%;
        min-width: 100%;
    }
}

/* Testimonial Carousel Controls */
.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 1.5rem 0;
}

.testimonial-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-md);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.testimonial-nav-btn:hover {
    background: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.testimonial-nav-btn:active {
    transform: translateY(0);
}

.testimonial-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.testimonial-nav-btn i {
    font-size: 0.875rem;
}

.testimonial-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.testimonial-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-md);
}

.testimonial-indicator.active {
    background: var(--primary-blue);
    width: 12px;
    height: 12px;
    border-color: var(--primary-blue);
}

.testimonial-indicator:hover {
    background: var(--primary-cyan);
    transform: scale(1.2);
}

[data-theme="dark"] .testimonial-nav-btn {
    background: var(--primary-cyan);
}

[data-theme="dark"] .testimonial-nav-btn:hover {
    background: var(--sky-blue);
}

@media (max-width: 768px) {
    .testimonial-controls {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .testimonial-nav-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .testimonial-nav-btn span {
        display: none;
    }
    
    .testimonial-nav-btn i {
        font-size: 1rem;
    }
}

/* Event Registration Modal */
.event-registration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-md), visibility var(--transition-md);
}

.event-registration-modal.active {
    opacity: 1;
    visibility: visible;
}

.event-registration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.event-registration-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform var(--transition-md);
}

.event-registration-modal.active .event-registration-content {
    transform: scale(1);
}

.event-registration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.event-registration-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.event-registration-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-md);
}

.event-registration-close:hover {
    color: var(--text-primary);
}

.event-registration-body {
    padding: 1.5rem;
}

.event-registration-body .form-group {
    margin-bottom: 1.25rem;
}

.event-registration-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.event-registration-body input,
.event-registration-body select,
.event-registration-body textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color var(--transition-md);
}

.event-registration-body input:focus,
.event-registration-body select:focus,
.event-registration-body textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.btn-cancel,
.btn-submit {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-md);
}

.btn-cancel {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-cancel:hover {
    background: var(--bg-tertiary);
}

.btn-submit {
    background: var(--primary-blue);
    color: white;
}

.btn-submit:hover {
    background: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

#registration-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

#registration-alert.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

#registration-alert.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.btn-info {
    background: #0ea5e9;
    color: white;
}

.btn-info:hover {
    background: #0284c7;
}

.registrants-table {
    margin-top: 1rem;
}

.registrants-table th,
.registrants-table td {
    padding: 0.75rem;
    text-align: left;
}

.registrants-table tbody tr:hover {
    background: var(--bg-secondary);
}

.btn-download-template,
.btn-upload-excel,
.btn-add-attendee {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download-template {
    background: var(--primary-blue);
    color: white;
}

.btn-download-template:hover {
    background: var(--dark-navy);
}

.btn-upload-excel {
    background: #10b981;
    color: white;
}

.btn-upload-excel:hover {
    background: #059669;
}

.btn-add-attendee {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-add-attendee:hover {
    background: var(--bg-tertiary);
}

.attendee-row {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.attendee-row input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .event-registration-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .event-registration-header {
        padding: 1rem;
    }
    
    .event-registration-body {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
    
    .attendee-row {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
}

/* ============================================
   Publications & News List View Styles
   ============================================ */

.publications-list-container,
.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.publication-list-item,
.news-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Colorful borders for publications - different color for each card */
.publication-list-item:nth-child(1) {
    border-left: 4px solid #2563eb; /* Blue */
    background: linear-gradient(to right, rgba(37, 99, 235, 0.05), var(--bg-primary));
}

.publication-list-item:nth-child(2) {
    border-left: 4px solid #10b981; /* Green */
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), var(--bg-primary));
}

.publication-list-item:nth-child(3) {
    border-left: 4px solid #f59e0b; /* Amber */
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05), var(--bg-primary));
}

.publication-list-item:nth-child(4) {
    border-left: 4px solid #8b5cf6; /* Purple */
    background: linear-gradient(to right, rgba(139, 92, 246, 0.05), var(--bg-primary));
}

.publication-list-item:nth-child(5) {
    border-left: 4px solid #ec4899; /* Pink */
    background: linear-gradient(to right, rgba(236, 72, 153, 0.05), var(--bg-primary));
}

.publication-list-item:nth-child(6) {
    border-left: 4px solid #06b6d4; /* Cyan */
    background: linear-gradient(to right, rgba(6, 182, 212, 0.05), var(--bg-primary));
}

.publication-list-item:nth-child(7) {
    border-left: 4px solid #f97316; /* Orange */
    background: linear-gradient(to right, rgba(249, 115, 22, 0.05), var(--bg-primary));
}

.publication-list-item:nth-child(8) {
    border-left: 4px solid #14b8a6; /* Teal */
    background: linear-gradient(to right, rgba(20, 184, 166, 0.05), var(--bg-primary));
}

/* Cycle through colors for items beyond 8 */
.publication-list-item:nth-child(9) {
    border-left: 4px solid #2563eb; /* Blue - cycle back */
    background: linear-gradient(to right, rgba(37, 99, 235, 0.05), var(--bg-primary));
}

.publication-list-item:nth-child(10) {
    border-left: 4px solid #10b981; /* Green - cycle back */
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), var(--bg-primary));
}

.publication-list-item:nth-child(11) {
    border-left: 4px solid #f59e0b; /* Amber - cycle back */
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05), var(--bg-primary));
}

.publication-list-item:nth-child(12) {
    border-left: 4px solid #8b5cf6; /* Purple - cycle back */
    background: linear-gradient(to right, rgba(139, 92, 246, 0.05), var(--bg-primary));
}

.publication-list-item:hover,
.news-list-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.publication-list-item:active,
.news-list-item:active {
    transform: translateY(0);
}

.publication-list-content,
.news-list-content {
    flex: 1;
    min-width: 0;
}

.publication-list-title,
.news-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.publication-list-meta,
.news-list-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.publication-list-meta span,
.news-list-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.publication-list-meta i,
.news-list-meta i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.publication-list-arrow,
.news-list-arrow {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.publication-list-item:hover .publication-list-arrow,
.news-list-item:hover .news-list-arrow {
    transform: translateX(4px);
    color: var(--primary-blue);
}

/* ============================================
   Publication & News Modal Styles
   ============================================ */

.publication-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.publication-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.publication-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.publication-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.publication-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.publication-modal-body {
    overflow-y: auto;
    padding: 2.5rem;
    flex: 1;
}

.publication-detail,
.news-detail {
    max-width: 800px;
    margin: 0 auto;
}

.publication-detail-title,
.news-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.publication-detail-meta,
.news-detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.publication-detail-meta span,
.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publication-detail-meta i,
.news-detail-meta i {
    font-size: 0.875rem;
    opacity: 0.7;
}

.publication-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.publication-detail-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-detail-image-wrapper {
    margin-bottom: 2rem;
}

.news-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.publication-detail-content,
.news-detail-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.publication-detail-content p,
.news-detail-content p {
    margin-bottom: 1.25rem;
}

.publication-detail-videos {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.publication-detail-videos h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.publication-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.publication-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: none;
}

.news-detail-link {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.news-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.news-link-button:hover {
    background: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .publication-list-item,
[data-theme="dark"] .news-list-item {
    background: var(--graphite);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .publication-list-item:hover,
[data-theme="dark"] .news-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-blue);
}

[data-theme="dark"] .publication-modal-content {
    background: var(--graphite);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .publication-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

[data-theme="dark"] .publication-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast notification animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .publication-list-item,
    .news-list-item {
        padding: 1rem;
    }
    
    .publication-list-title,
    .news-list-title {
        font-size: 1rem;
    }
    
    .publication-list-meta,
    .news-list-meta {
        font-size: 0.8rem;
        gap: 0.75rem;
    }
    
    .publication-modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .publication-modal-body {
        padding: 1.5rem;
    }
    
    .publication-detail-title,
    .news-detail-title {
        font-size: 1.5rem;
    }
    
    .publication-detail-content,
    .news-detail-content {
        font-size: 1rem;
    }
    
    .publication-videos-grid {
        grid-template-columns: 1fr;
    }
}

