
:root {
    --primary-blue: #0050a2;
    --secondary-blue: #0072ce;
    --dark-blue: #001f47;
    --navy: #0a1628;
    --accent-gold: #f7a823;
    --accent-gold-light: #ffc857;
    --cranberry: #d91b5c;
    --teal: #18b7be;
    --text-dark: #1a1a2e;
    --text-medium: #555;
    --text-light: #888;
    --bg-light: #f5f7fa;
    --bg-warm: #fef9f0;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(0,114,206,0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utility: Will-change for animated elements (GPU acceleration) */
.gpu-accelerated {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS (CSS-only approach)
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ============================================
   1. ANNOUNCEMENT BAR (replaces marquee)
============================================ */
.announcement-bar {
    background: linear-gradient(135deg, var(--dark-blue), var(--navy));
    color: rgba(255,255,255,0.9);
    padding: 10px 5%;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* CSS-only infinite scroll ticker replacing <marquee> */
.ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 22px;
}
.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 25s linear infinite;
}
.ticker span {
    display: inline-flex;
    align-items: center;
    padding-right: 80px;
    font-weight: 400;
    letter-spacing: 0.3px;
}
.ticker span i {
    color: var(--accent-gold);
    margin-right: 8px;
    font-size: 10px;
}
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.social-icons-top {
    display: flex;
    gap: 6px;
    margin-left: 20px;
    flex-shrink: 0;
}
.social-icons-top a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    border-radius: 50%;
    font-size: 13px;
    transition: var(--transition);
}
.social-icons-top a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* ============================================
   2. MAIN NAVIGATION
============================================ */
header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 85px;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
}

.logo img {
    height: 160px;
    width: auto;
    display: block;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 130px;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links li a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.2px;
}

.nav-links li a:hover {
    color: var(--primary-blue);
    background: rgba(0,80,162,0.05);
}

.nav-links li a .fa-chevron-down {
    font-size: 10px;
    transition: var(--transition);
}

/* Active nav indicator */
.nav-links li a.active {
    color: var(--primary-blue);
    font-weight: 600;
}
.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 3px;
}

/* CTA in nav */
.nav-cta {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    margin-left: 8px;
    box-shadow: 0 4px 15px rgba(0,80,162,0.3);
}
.nav-cta:hover {
    background: var(--secondary-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,80,162,0.4);
}

/* Dropdown Menus */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white);
    min-width: 240px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 1002;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.06);
}
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}
.dropdown-content li a {
    padding: 12px 16px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--text-medium) !important;
    display: flex !important;
    align-items: center;
}
.dropdown-content li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
    margin-right: 12px;
    opacity: 0;
    transition: var(--transition);
}
.dropdown-content li a:hover {
    background: var(--bg-light) !important;
    color: var(--primary-blue) !important;
}
.dropdown-content li a:hover::before {
    opacity: 1;
}
/* Create an invisible hover bridge to prevent the dropdown from closing */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px; /* Reaches up across the 10px gap to touch the main nav item */
    left: 0;
    width: 100%;
    height: 15px; 
}
/* Hamburger */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.hamburger:hover { background: var(--bg-light); }
.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    position: relative;
    transition: var(--transition);
}
.hamburger-line::before,
.hamburger-line::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    left: 0;
    transition: var(--transition);
}
.hamburger-line::before { top: -7px; }
.hamburger-line::after { top: 7px; }
.hamburger.active .hamburger-line { background: transparent; }
.hamburger.active .hamburger-line::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--text-dark);
}
.hamburger.active .hamburger-line::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--text-dark);
}

/* ============================================
   3. HERO SECTION (Rotary.org-inspired)
============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hero Slideshow */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay gradient - like Rotary.org */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 31, 71, 0.85) 0%,
        rgba(0, 80, 162, 0.6) 50%,
        rgba(0, 31, 71, 0.4) 100%
    );
    z-index: 1;
}

/* Decorative geometric shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}
.hero-shape-1 {
    width: 600px;
    height: 600px;
    border: 2px solid var(--accent-gold);
    top: -200px;
    right: -100px;
}
.hero-shape-2 {
    width: 400px;
    height: 400px;
    border: 2px solid var(--white);
    bottom: -100px;
    left: -50px;
}
.hero-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-gold);
    top: 50%;
    right: 10%;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 0 8%;
    max-width: 800px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--accent-gold-light);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.15);
    letter-spacing: 0.5px;
}
.hero-badge i { font-size: 11px; }

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero h1 .highlight {
    color: var(--accent-gold);
    position: relative;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    max-width: 560px;
    font-weight: 300;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}
.btn-primary {
    background: var(--accent-gold);
    color: var(--dark-blue);
    box-shadow: 0 8px 25px rgba(247,168,35,0.35);
}
.btn-primary:hover {
    background: var(--accent-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(247,168,35,0.45);
}
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
}

/* Hero slide indicators */
.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 8%;
    z-index: 3;
    display: flex;
    gap: 10px;
}
.hero-indicator {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}
.hero-indicator.active {
    width: 60px;
    background: var(--accent-gold);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    right: 8%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.scroll-hint .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    position: relative;
}
.scroll-hint .mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 4px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 1.8s ease infinite;
}
@keyframes scroll-bounce {
    0%, 100% { opacity: 1; top: 6px; }
    50% { opacity: 0.3; top: 18px; }
}

/* ============================================
   4. IMPACT STATS BAR
============================================ */
.stats-bar {
    background: var(--white);
    padding: 0 8%;
    margin-top: -50px;
    position: relative;
    z-index: 5;
}
.stats-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}
.stat-item {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #eee;
}
.stat-item:hover {
    background: var(--bg-light);
}
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 15px;
}
.stat-icon.blue { background: rgba(0,80,162,0.1); color: var(--primary-blue); }
.stat-icon.gold { background: rgba(247,168,35,0.1); color: var(--accent-gold); }
.stat-icon.teal { background: rgba(24,183,190,0.1); color: var(--teal); }
.stat-icon.cranberry { background: rgba(217,27,92,0.1); color: var(--cranberry); }

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* ====================================================
   INTERACTIVE STAT CARDS (With Color Flip)
==================================================== */
a.stat-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background-color: #ffffff; /* Explicitly set base color */
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px; /* Ensure corners stay smooth on background change */
    
    /* We added background-color and color to the transition engine for a smooth fade */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* The Hover Color Flip & Lift */
a.stat-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 80, 162, 0.2); /* Shadow is now subtly tinted blue */
    background-color: var(--primary, #0050A2); /* Floods the card with Rotary Blue */
}

/* Force the text to turn white when the card turns blue */
a.stat-link:hover .stat-number,
a.stat-link:hover .stat-label {
    color:  #ffffff; 
    transition: color 0.3s ease;
}

/* Make the icon pop by slightly enlarging it */
a.stat-link:hover .stat-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
    
    /* Optional: If the colored icons clash with the blue background, 
       uncomment the lines below to turn the icon circles white on hover */
    background-color: #ffffff; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

/* ============================================
   5. ABOUT / WELCOME SECTION
============================================ */
.section-padding {
    padding: 100px 8%;
}

.about-section {
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.about-text-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--dark-blue);
    margin-bottom: 24px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.section-text {
    color: var(--text-medium);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 15px;
    margin-top: 12px;
    padding: 10px 0;
}
.about-link i {
    transition: var(--transition);
}
.about-link:hover i {
    transform: translateX(5px);
}

/* About image with decorative element */
.about-image-wrapper {
    position: relative;
}
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 3px solid var(--accent-gold);
    border-radius: var(--radius-md);
    z-index: 0;
    opacity: 0.4;
}
.about-image-wrapper img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Floating card on the about image */
.about-floating-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--white);
    padding: 24px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}
.about-floating-card .icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}
.about-floating-card .card-text strong {
    display: block;
    font-size: 22px;
    color: var(--dark-blue);
}
.about-floating-card .card-text span {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   6. FOCUS AREAS (Rotary.org card-style)
============================================ */
.focus-section {
    background: var(--bg-light);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header .section-title {
    margin-bottom: 16px;
}
.section-header .section-subtitle {
    color: var(--text-medium);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.focus-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}
.focus-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.focus-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.focus-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.focus-card:hover .focus-card-image img {
    transform: scale(1.08);
}
.focus-card-image .focus-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.focus-card-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    z-index: 1;
}

.focus-card-body {
    padding: 28px;
}
.focus-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 12px;
}
.focus-card-body p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.7;
}
.focus-card-body .focus-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    margin-top: 16px;
}
.focus-card-body .focus-link:hover i {
    transform: translateX(4px);
}
.focus-card-body .focus-link i {
    transition: var(--transition);
    font-size: 12px;
}

/* ============================================
   7. FEATURED PROJECT / CTA SECTION
============================================ */
.cta-section {
    position: relative;
    padding: 120px 8%;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta-bg .cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 31, 71, 0.92) 0%,
        rgba(0, 80, 162, 0.85) 100%
    );
}
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}
.cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 36px;
    line-height: 1.8;
}
.cta-content .btn-primary {
    font-size: 16px;
    padding: 16px 40px;
}

/* Rotary wheel watermark */
.cta-section .watermark {
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 500px;
    height: 500px;
    opacity: 0.05;
    z-index: 1;
}

/* ============================================
   8. NEWS / UPDATES SECTION
============================================ */
.news-section {
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Featured news item (large) */
.news-featured {
    grid-row: span 2;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    min-height: 500px;
    cursor: pointer;
}
.news-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.news-featured:hover img {
    transform: scale(1.05);
}
.news-featured .news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}
.news-featured .news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: white;
    z-index: 1;
}
.news-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.news-tag.community { background: var(--teal); color: white; }
.news-tag.grants { background: var(--accent-gold); color: var(--dark-blue); }
.news-tag.events { background: var(--cranberry); color: white; }

.news-featured h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.news-featured .news-date {
    font-size: 13px;
    opacity: 0.7;
}

/* Smaller news cards */
.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
}
.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}
.news-card-image {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.news-card:hover .news-card-image img {
    transform: scale(1.05);
}
.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-card-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-card-body .news-date {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   9. TESTIMONIAL / QUOTE SECTION
============================================ */
.quote-section {
    background: linear-gradient(135deg, var(--bg-warm), #fff5e0);
    padding: 80px 8%;
    text-align: center;
}
.quote-mark {
    font-size: 60px;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 20px;
}
.quote-text {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--dark-blue);
    font-weight: 500;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
.quote-author {
    color: var(--text-medium);
    font-size: 15px;
}
.quote-author strong {
    color: var(--dark-blue);
}

/* ============================================
   10. FOOTER (Elevated)
============================================ */
footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 80px 8% 30px;
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold), var(--teal), var(--cranberry));
    border-radius: 4px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    margin-top: 16px;
    line-height: 1.8;
    font-size: 14px;
}
.footer-brand .footer-logo {
    height: 100px;
    width: auto;
    /* Make logo visible on dark bg — apply a brightness filter or use a white version */
    filter: brightness(0) invert(1);
}

.footer-item h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
}
.footer-item h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-item ul li {
    margin-bottom: 12px;
}
.footer-item ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-item ul li a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

.footer-item .meeting-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-item .meeting-info i {
    color: var(--accent-gold);
    margin-top: 4px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
}
.footer-socials a:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.footer-bottom-links a {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    margin-left: 24px;
}
.footer-bottom-links a:hover {
    color: var(--accent-gold);
}

/* ============================================
   LOADING SCREEN
============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--bg-light);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   BACK TO TOP
============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent-gold);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 1024px) {
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .stats-container .stat-item:nth-child(2)::after { display: none; }
    .focus-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {

    /* Fix: Turn the mobile menu into a solid overlay */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed; /* Changed from absolute to fixed */
        top: 75px; /* Starts right below your 75px header */
        left: 0;
        width: 100%;
        height: calc(100vh - 75px); /* Fills the rest of the screen */
        background-color: var(--white); /* Ensure it has a solid background */
        padding: 30px;
        box-shadow: var(--shadow-lg);
        z-index: 1001; /* Ensure it sits above the hero section */
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }
   /* 1. Setup the closed/hidden state for smooth sliding */
   #navLinks .dropdown-content {
    display: block !important; /* Overrides shared.css so it can animate */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease, padding 0.4s ease;
    background-color: transparent !important; /* Keeps your dark mode look */
}

/* 2. The open state (slides down and fades in smoothly) */
#navLinks .dropdown.open .dropdown-content,
#navLinks .dropdown:hover .dropdown-content {
    max-height: 400px;
    opacity: 1;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* 4. Keep the premium transparent glow on hover */
#navLinks .dropdown-content li a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--accent-gold) !important;
}
/* 1. Force ALL links (Main Links + Sub-links) to center */
#navLinks a {
    justify-content: center !important;
    text-align: center !important;
}

/* 2. Strip the left-side borders/indents from the dropdown container */
#navLinks .dropdown-content {
    border-left: none !important;
    margin-left: 0 !important;
    background-color: transparent !important; /* Keeps the dark theme */
}

/* 3. Strip the uneven side padding from sub-links so they center perfectly */
#navLinks .dropdown-content li a {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

    .hamburger { display: flex; z-index: 1002; }

    /* Mobile overlay */
    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    header { padding: 0 5%; height: 75px; }
    .logo img { height: 120px; }
    header.scrolled .logo img { height: 100px; }

    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-image-wrapper::before { display: none; }
    .about-floating-card { position: relative; bottom: auto; left: auto; margin-top: -40px; }

    .news-grid { grid-template-columns: 1fr; }
    .news-featured { min-height: 350px; }
    .news-card { flex-direction: column; }
    .news-card-image { width: 100%; height: 200px; }

    
}




@media (max-width: 600px) {
    .announcement-bar { font-size: 12px; padding: 8px 4%; }
    .social-icons-top { display: none; }

    .hero { min-height: 80vh; }
    .hero-container { padding: 0 5%; }

    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 25px 15px; }
    .stat-number { font-size: 2rem; }
    .stat-item:nth-child(odd)::after { display: block; }
    .stat-item:nth-child(even)::after { display: none; }

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

    .section-padding { padding: 60px 5%; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links a { margin: 0 12px; }

    .scroll-hint { display: none; }
}

/* ============================================
   9. PARTNERS CAROUSEL SECTION
============================================ */
.partners-section {
    padding: 60px 5% 70px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* Subtle top/bottom borders */
.partners-section::before,
.partners-section::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 61, 100, 0.08), transparent);
}

.partners-section::before {
    top: 0;
}

.partners-section::after {
    bottom: 0;
}

.partners-header {
    margin-bottom: 40px;
}

.partners-header .section-title {
    font-size: 2rem;
    margin-top: 8px;
}

/* Carousel container */
.partners-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* Fade edges for polish */
.partners-carousel::before,
.partners-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.partners-carousel::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.partners-carousel::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fc, transparent);
}

/* The scrolling track */
.partners-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: partners-scroll 35s linear infinite;
    will-change: transform;
}

.partners-track:hover {
    animation-play-state: paused;
}

/* Individual logo container */
.partner-logo {
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    box-shadow: 0 6px 24px rgba(0, 61, 100, 0.1);
    border-color: rgba(0, 97, 162, 0.15);
    transform: translateY(-3px);
}

/* Images — uniform sizing regardless of source dimensions */
.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Scroll animation */
@keyframes partners-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


@media (max-width: 768px) {
    .footer-bottom {
        /* forces the bottom of your website 
           to end 40px higher, lifting it out of the browser's dead zone. */
        padding-bottom: 40px !important; 
        
        /* Center everything nicely when it stacks */
        justify-content: center !important; 
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px; /* Use gap instead of margins for cleaner mobile stacking */
    }

    .footer-bottom-links a {
        /* Kill the desktop left-margin so things center perfectly on phones */
        margin-left: 0 !important; 
    }
    .partners-section {
        padding: 40px 5% 50px;
    }

    .partners-header .section-title {
        font-size: 1.6rem;
    }

    .partners-track {
        gap: 40px;
        animation-duration: 25s;
    }

    .partner-logo {
        width: 110px;
        height: 70px;
        padding: 8px;
    }

    .partners-carousel::before,
    .partners-carousel::after {
        width: 60px;
    }

    .hero-container {
        /* This pushes the white stats card further down so the buttons have room */
        padding-bottom: 80px !important; 
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%; /* Makes the buttons full-width for easy tapping */
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .partners-track {
        gap: 30px;
        animation-duration: 20s;
    }

    .partner-logo {
        width: 90px;
        height: 60px;
        padding: 6px;
        border-radius: 8px;
    }
    .hero-container {
        /* This pushes the white stats card further down so the buttons have room */
        padding-bottom: 60px !important; 
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 90%; /* Makes the buttons full-width for easy tapping */
        justify-content: center;
    }
}