/* ============================================
   WORLD MISSIONS FELLOWSHIP — Design System
   Premium NPO Website Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
    --primary: #0a1628;
    --primary-light: #1a2a4a;
    --primary-dark: #060e1a;
    --accent: #c9a227;
    --accent-light: #e6c44a;
    --accent-dark: #a68520;
    --white: #ffffff;
    --off-white: #f8f6f0;
    --light-gray: #e8e6e0;
    --medium-gray: #8a8a8a;
    --dark-gray: #333333;
    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --success: #28a745;
    --danger: #dc3545;
    --gradient-gold: linear-gradient(135deg, #c9a227, #e6c44a, #c9a227);
    --gradient-navy: linear-gradient(135deg, #0a1628, #1a2a4a);
    --gradient-hero: linear-gradient(135deg, rgba(10,22,40,0.85), rgba(26,42,74,0.7));
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
    --shadow-gold: 0 4px 20px rgba(201,162,39,0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --max-width: 1200px;
    --header-height: 80px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Utility Bar (Top) ---- */
.utility-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(201,162,39,0.2);
}

.utility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.utility-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.utility-left a {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.utility-left a:hover {
    color: var(--accent-light);
}

.utility-right .btn-donate-sm {
    background: var(--accent);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.utility-right .btn-donate-sm:hover {
    background: var(--accent-light);
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

/* ---- Main Header ---- */
.main-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(10,22,40,0.97);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-body);
    font-weight: 500;
}

/* ---- Navigation ---- */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    color: rgba(255,255,255,0.85);
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--accent-light) !important;
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* ---- Mobile Menu Toggle ---- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 40px 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(201,162,39,0.2);
    border: 1px solid rgba(201,162,39,0.4);
    color: var(--accent-light);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero h1 .highlight {
    color: var(--accent-light);
    font-style: italic;
}

.hero p {
    color: rgba(255,255,255,0.85);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: var(--shadow-gold);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-dark {
    background: var(--primary);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-gold-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-gold-outline:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ---- Section Styles ---- */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-light {
    background: var(--off-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header .label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.section-dark .section-header p {
    color: rgba(255,255,255,0.7);
}

.gold-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 16px auto;
    border-radius: 3px;
}

/* ---- Stats Counter ---- */
.stats-bar {
    background: var(--primary);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ---- Cards ---- */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-body {
    padding: 28px;
}

.card-body h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-link:hover {
    color: var(--accent);
    gap: 10px;
}

/* Glass Card */
.glass-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-5px);
    border-color: rgba(201,162,39,0.3);
}

.glass-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(201,162,39,0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-light);
}

/* ---- Grid Layouts ---- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ---- Image Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay p {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ---- CTA Banner ---- */
.cta-banner {
    background: var(--gradient-gold);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.cta-banner h2 {
    color: var(--primary);
    margin-bottom: 16px;
    position: relative;
}

.cta-banner p {
    color: var(--primary-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
    position: relative;
}

/* ---- Page Header (Interior pages) ---- */
.page-header {
    background: var(--gradient-navy);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 16px;
}

.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.breadcrumb a {
    color: var(--accent);
}

.breadcrumb a:hover {
    color: var(--accent-light);
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(201,162,39,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* ---- Contact Info ---- */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-info-item .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(201,162,39,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-info-item h4 {
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.contact-info-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Timeline ---- */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--light-gray);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: calc(50% + 40px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: calc(50% + 40px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-content .year {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

/* ---- Service Schedule ---- */
.schedule-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.schedule-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.schedule-card .day {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.schedule-card h3 {
    margin-bottom: 8px;
}

.schedule-card .time {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- Donation Tiers ---- */
.donate-tier {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--light-gray);
    transition: var(--transition);
    position: relative;
}

.donate-tier:hover,
.donate-tier.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-gold);
    transform: translateY(-5px);
}

.donate-tier.featured {
    background: var(--primary);
    color: var(--white);
}

.donate-tier.featured h3,
.donate-tier.featured h4 {
    color: var(--white);
}

.donate-tier .amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 16px 0;
}

.donate-tier .amount span {
    font-size: 1rem;
    color: var(--text-light);
}

.donate-tier ul {
    text-align: left;
    margin: 24px 0;
}

.donate-tier ul li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.donate-tier.featured ul li {
    color: rgba(255,255,255,0.7);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h3 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.footer-contact .icon {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 2px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent-light);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--accent-light);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Values Grid ---- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-card .emoji {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

/* ---- Mission Image Block ---- */
.mission-image-block {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.mission-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.mission-image-block .accent-border {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ---- Alert Messages ---- */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ---- Map ---- */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ---- Content Sections ---- */
.content-section {
    padding: 60px 0;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.text-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.text-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.text-content ul li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .utility-bar { display: none; }

    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--primary);
        padding: 100px 30px 40px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 1rem;
    }

    .nav-cta {
        margin-top: 20px;
        text-align: center;
    }

    .hero {
        min-height: 70vh;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 55px;
        padding-right: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

/* ---- Overlay for mobile nav ---- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}

/* ---- Scroll to top ---- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 900;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
}

/* ---- Leader Card ---- */
.leader-card {
    text-align: center;
    padding: 30px 20px;
}

.leader-card .photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--accent);
    box-shadow: var(--shadow-md);
}

.leader-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card h3 {
    margin-bottom: 4px;
    font-size: 1.2rem;
}

.leader-card .role {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Checklist for Get Involved ---- */
.involve-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.95rem;
}

.involve-list .check-icon {
    width: 28px;
    height: 28px;
    background: rgba(201,162,39,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    font-size: 0.85rem;
}
