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

:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --accent: #10b981;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.text-center { text-align: center; }

/* NAVIGATION */
.navbar { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 1000; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.nav-brand a { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-menu a { font-weight: 500; color: var(--dark); position: relative; padding: 0.5rem 0; }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: 0.3s; }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; }
.hamburger span { width: 25px; height: 3px; background: var(--dark); }

/* HERO */
/* .hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; text-align: center; padding-top: 80px; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 1; } */
/* Hero Section Background */
/* Universal Hero Styling */
.hero {
    position: relative;
    background-image: url('../images/hero-bg.png'); /* Ensure case matches exactly: .png vs .PNG */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; 
    min-height: 45vh; /* Shorter height for sub-pages */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Specific height for the main Home page hero */
#home.hero {
    min-height: 85vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Tint to ensure white text is readable */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10; /* Ensures text stays above the dark overlay */
}
/* .hero .container { position: relative; z-index: 2; } */
.hero-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.5rem; margin-bottom: 1rem; opacity: 0.95; }
.hero-stats { display: flex; justify-content: center; gap: 2rem; margin: 3rem 0; flex-wrap: wrap; }
.stat-box { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); border-radius: 15px; padding: 2rem; min-width: 180px; transition: 0.3s; }
.stat-box:hover { transform: translateY(-10px); background: rgba(255,255,255,0.25); }
.stat-num { font-size: 3rem; font-weight: 800; margin-bottom: 0.5rem; }
.stat-label { font-size: 1rem; opacity: 0.9; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.75rem; font-weight: 600; border-radius: 8px; transition: 0.3s; cursor: pointer; }
.btn-primary { background: white; color: var(--primary); }
.btn-primary:hover { background: var(--light-gray); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: white; border: 2px solid white; }
.btn-secondary:hover { background: white; color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* SECTIONS */
.section { padding: 5rem 0; }
.gray-bg { background: var(--light-gray); }
.section-title { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; font-size: 1.125rem; color: var(--gray); margin-bottom: 3rem; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.about-text .lead { font-size: 1.25rem; font-weight: 500; margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1rem; color: var(--gray); line-height: 1.8; }
.about-img img { border-radius: 12px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.highlights { margin-top: 2rem; }
.highlight-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.highlight-item i { color: var(--accent); font-size: 1.25rem; }

/* FEATURES */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center; transition: 0.3s; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.feature-card i { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--gray); }

/* METRICS */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.metric { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center; }
.metric:hover { transform: translateY(-5px); }
.metric .num { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.metric .lbl { font-size: 1rem; color: var(--gray); }

/* TABLES */
.results-table { width: 100%; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); margin-top: 2rem; border-collapse: collapse; }
.results-table thead { background: var(--primary); color: white; }
.results-table th, .results-table td { padding: 1rem; text-align: left; }
.results-table tbody tr { border-bottom: 1px solid var(--light-gray); }
.results-table tbody tr:hover { background: var(--light-gray); }
.results-table .highlight { background: #fef3c7; font-weight: 600; }

/* FUNDING */
.funding { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.funding-box { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: 15px; padding: 3rem; text-align: center; }
.funding-box h3 { font-size: 2rem; margin-bottom: 1rem; }
.funding-box p { font-size: 1.125rem; opacity: 0.95; }

/* NEWS */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.news-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: 0.3s; }
.news-card:hover { transform: translateY(-5px); }
.news-card .date { display: inline-block; background: var(--primary); color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; margin-bottom: 1rem; }
.news-card h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.team-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center; transition: 0.3s; }
.team-card:hover { transform: translateY(-10px); }
.team-card img { width: 100%; height: 300px; object-fit: cover; background: var(--light-gray); }
.team-card h4 { font-size: 1.25rem; margin: 1rem 0 0.5rem; }
.team-card p { color: var(--gray); padding: 0 1rem 1.5rem; }

/* FOOTER */
.footer { background: var(--dark); color: white; padding: 2rem 0; }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer .social { display: flex; gap: 1rem; }
.footer .social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: 50%; transition: 0.3s; }
.footer .social a:hover { background: var(--primary); transform: scale(1.1); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.125rem; }
    .about-grid { grid-template-columns: 1fr; }
    .stat-box { min-width: 140px; padding: 1.5rem; }
    .stat-num { font-size: 2rem; }
}
/* News Slider CSS */
#news-slider {
    position: relative;
    max-width: 600px; /* Optional: narrows the card for better look */
    margin: 0 auto;
    display: block; /* Overrides the grid to show one at a time */
}

#news-slider .news-card {
    display: none; /* Hide all cards by default */
    animation: fadeIn 0.8s; /* Smooth fade-in effect */
}

#news-slider .news-card.active {
    display: block; /* Only show the card with the 'active' class */
}

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