/* Global Styles & Variables - ActionAid Reference Style */
:root {
    /* Color Palette - Dark Mode Premium */
    --background-dark: #050505;
    --surface-dark: #121212;
    --surface-hover: #1a1a1a;
    
    /* Neon Accents */
    --primary-brand: #ff0055; /* Vibrant Red/Pink */
    --secondary-brand: #7000ff; /* Deep Purple */
    --accent-glow: 0 0 20px rgba(112, 0, 255, 0.4);
    --gradient-brand: linear-gradient(135deg, #ff0055, #7000ff);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* UI Elements */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --glass-bg: rgba(5, 5, 5, 0.7); /* Dark translucent background */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(10px);
}



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

/* Global Responsive Media */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block; /* Removes bottom space */
}

body {
    font-family: var(--font-body);
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 58px; }
h2 { font-size: 38px; }
h3 { font-size: 30px; }
h4 { font-size: 24px; }
h5 { font-size: 21px; }
h6 { font-size: 17px; }

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-brand);
}

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

/* Container & Grid */
.container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem; /* Ensure padding prevents edge touching */
}

/* Responsive Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Responsive Join Mission Flex */
.join-mission-flex {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 40px;
} 
.join-mission-item {
    flex: 1;
    min-width: 280px; /* Safer for small screens */
}

/* Responsive Partner Grid */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    opacity: 0.6;
}

@media (max-width: 576px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cols on mobile */
    }
}

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .join-mission-item {
        min-width: 100%; /* Full width on mobile */
    }
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color) !important; }
.text-white { color: white !important; }
.bg-light { background-color: var(--ast-global-color-6); }
.bg-primary { background-color: var(--primary-color); color: white; }

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Buttons (Matching Reference) */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px; /* Rounded pill buttons from Ref */
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-brand);
    color: white;
    border-color: var(--primary-brand);
}

.btn-primary:hover {
    background-color: var(--primary-brand);
    border-color: var(--primary-brand);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 0, 85, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--secondary-color);
    color: white;
}

/* Card Styles */
.card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

/* Section Divider */
.section-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, #eee, var(--primary-color), #eee);
    margin: 3rem 0;
    opacity: 0.6;
}
/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Shared Hero Styles */
.text-gradient {
    background: linear-gradient(to right, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.text-gradient-brand {
    background: var(--gradient-brand); /* Pink/Purple Gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    filter: drop-shadow(0 2px 10px rgba(112, 0, 255, 0.3));
}

.hero-header-style h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    color: #ffffff;
}

.hero-header-style p {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .hero-header-style h1 { font-size: 3rem; }
}

/* Full Hero Section Styles */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--background-dark);
    overflow: hidden;
    padding-top: 80px; /* Header space */
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.95)), url('../assets/images/hero-bg.jpg') center/cover no-repeat;
    opacity: 1;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-brand) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(100px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-social {
    position: absolute;
    right: 40px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.hero-social a {
    color: var(--text-secondary);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.hero-social a:hover {
    color: var(--primary-brand);
    transform: translateY(-5px);
}

.hero-social .line {
    width: 1px;
    height: 60px;
    background: var(--text-secondary);
    margin-top: 10px;
}

@media (max-width: 768px) {
    .hero-section { height: auto; padding: 150px 0 100px; }
    .hero-social { display: none; }
}
