/* ============================================================
   OLIVE HOPE FOUNDATION — Main Stylesheet
   Inspired by ICRC design language: humanitarian, clean, trust
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
    /* Colors */
    --color-primary: #C41E3A;
    --color-primary-dark: #A01830;
    --color-primary-light: #E84A62;
    --color-secondary: #1A3A5C;
    --color-secondary-dark: #0F243D;
    --color-accent: #D4A84B;
    --color-accent-light: #E8C87A;

    --color-text: #1A1A2E;
    --color-text-light: #5A5A7A;
    --color-text-white: #FFFFFF;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F7F8FA;
    --color-bg-dark: #1A1A2E;
    --color-border: #E0E3EB;
    --color-border-light: #F0F2F6;

    /* Status */
    --color-success: #2ECC71;
    --color-warning: #F39C12;
    --color-error: #E74C3C;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --header-height: 140px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

ul, ol {
    list-style: none;
}

/* ---- Accessibility ---- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 10000;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn--secondary:hover {
    background: white;
    color: var(--color-text);
    transform: translateY(-1px);
}

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

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

.btn--donate {
    background: var(--color-primary);
    color: white;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.btn--donate:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-1px);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ---- Section Headers ---- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.25;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 640px;
    margin: 0 auto;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    font-size: 0.8125rem;
    padding: 0.5rem 0;
}

.header-top-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-lg);
}

.lang-selector {
    position: relative;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8125rem;
    transition: all var(--transition-fast);
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lang-icon {
    transition: transform var(--transition-fast);
}

.lang-btn[aria-expanded="true"] .lang-icon {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 150px;
    z-index: 100;
    overflow: hidden;
}

.lang-dropdown[hidden] {
    display: none;
}

.lang-dropdown a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--color-text);
    font-size: 0.875rem;
}

.lang-dropdown a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.header-main {
    padding: 0.75rem 0;
    position: relative;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
    text-decoration: none;
    color: var(--color-text);
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.2;
    color: var(--color-text);
}

.logo-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Navigation */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex: 1;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link--active {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.nav-link--active {
    font-weight: 600;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0.25rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 100;
    padding: 0.5rem;
}

.dropdown-menu[hidden] {
    display: none !important;
}

@media (min-width: 769px) {
    .has-dropdown:hover .dropdown-menu {
        display: block;
    }
}

.dropdown-link {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text);
    border-radius: var(--radius-sm);
}

.dropdown-link:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.header-cta {
    display: none;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 50;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    overflow: hidden;
    color: white;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A3A5C 0%, #2A5A8C 50%, #1A3A5C 100%);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(26, 26, 46, 0.85) 0%,
        rgba(26, 26, 46, 0.6) 50%,
        rgba(196, 30, 58, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: var(--space-3xl) 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    margin-bottom: var(--space-lg);
    color: var(--color-accent-light);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
}

.hero-title-accent {
    color: var(--color-accent-light);
    font-weight: 400;
    font-size: 0.7em;
}

.hero-description {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent-light);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    z-index: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Alert Banner ---- */
.alert-banner {
    background: #FFF8E1;
    border-bottom: 1px solid #FFE082;
    color: #5D4037;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.alert-icon {
    flex-shrink: 0;
    color: var(--color-warning);
}

.alert-link {
    font-weight: 600;
    white-space: nowrap;
}

.alert-dismiss {
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #5D4037;
    opacity: 0.6;
    padding: 0.25rem;
    flex-shrink: 0;
}

.alert-dismiss:hover {
    opacity: 1;
}

/* ---- Framework Section ---- */
.framework {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.framework-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.framework-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-letter {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.06;
    color: var(--color-primary);
    pointer-events: none;
}

.card-icon {
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.card-description {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.card-features {
    margin-bottom: var(--space-lg);
}

.card-features li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    font-size: 0.875rem;
}

.card-link svg {
    transition: transform var(--transition-fast);
}

.card-link:hover svg {
    transform: translateX(4px);
}

/* ---- Updates Section ---- */
.updates {
    padding: var(--space-3xl) 0;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.update-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
}

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

.update-image {
    height: 200px;
    overflow: hidden;
}

.update-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E8ECF4, #D5DBE8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.update-content {
    padding: var(--space-lg);
}

.update-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.8125rem;
}

.update-category {
    background: rgba(196, 30, 58, 0.08);
    color: var(--color-primary);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-weight: 600;
}

.update-date {
    color: var(--color-text-light);
}

.update-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.update-title a {
    color: var(--color-text);
}

.update-title a:hover {
    color: var(--color-primary);
}

.update-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.update-readmore {
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ---- Impact Banner ---- */
.impact-banner {
    background: var(--color-secondary);
    color: white;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-xl);
}

.impact-item {
    text-align: center;
}

.impact-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--color-accent-light);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.impact-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.impact-note {
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.impact-note a {
    color: var(--color-accent-light);
}

/* ---- Story Section ---- */
.story {
    padding: var(--space-3xl) 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.story-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.story-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #E8ECF4, #D5DBE8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.story-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.story-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.story-quote {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.story-quote p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-light);
    font-style: italic;
}

.story-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.author-avatar {
    font-size: 2.5rem;
    line-height: 1;
}

.author-name {
    display: block;
    font-weight: 600;
    font-style: normal;
    color: var(--color-text);
}

.author-role {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

/* ---- Partners ---- */
.partners {
    padding: var(--space-xl) 0;
    background: var(--color-bg-alt);
    text-align: center;
}

.partners-intro {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
    align-items: center;
}

.partner-item {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-light);
    opacity: 0.5;
    transition: all var(--transition-base);
}

.partner-item:hover {
    opacity: 0.8;
}

/* ---- Newsletter ---- */
.newsletter {
    padding: var(--space-3xl) 0;
    background: var(--color-secondary);
    color: white;
}

.newsletter-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--space-md);
}

.newsletter-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
}

.newsletter-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: var(--space-sm);
}

.form-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.15);
}

.form-note {
    margin-top: var(--space-md);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.form-note a {
    color: var(--color-accent-light);
}

/* ---- Footer ---- */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-main {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: var(--space-2xl);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: white;
    margin-bottom: var(--space-md);
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    color: var(--color-primary-light);
}

.footer-logo .logo-name {
    color: white;
    font-size: 1rem;
}

.footer-tagline {
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.footer-nav h3 {
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    transition: all var(--transition-fast);
}

.footer-nav a:hover {
    color: white;
    padding-left: 4px;
}

.footer-address p {
    margin-bottom: var(--space-xs);
    font-style: normal;
}

.footer-address a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-address a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-lg) 0;
    font-size: 0.8125rem;
}

.footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
}

.copyright {
    margin-right: auto;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: white;
}

.registration {
    width: 100%;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    margin-top: var(--space-sm);
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ---- Page Header ---- */
.page-header {
    margin-top: var(--header-height);
    background: var(--color-secondary);
    color: white;
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    position: relative;
}

.page-header .subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    margin: var(--space-md) auto 0;
}

/* ---- Content Section ---- */
.content-section {
    padding: var(--space-3xl) 0;
}

.content-section:nth-child(even) {
    background: var(--color-bg-alt);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.content-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.content-image img,
.content-image .placeholder {
    width: 100%;
    height: 350px;
    object-fit: cover;
    background: linear-gradient(135deg, #E8ECF4, #D5DBE8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.content-text h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.content-text p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.content-text ul {
    margin-bottom: var(--space-lg);
}

.content-text li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text-light);
}

.content-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ---- Team Grid ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8ECF4, #D5DBE8);
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.team-name {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.team-role {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

/* ---- Get Involved Cards ---- */
.involve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.involve-card {
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.involve-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.involve-icon {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.involve-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.involve-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

/* ---- Contact Form ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.contact-form {
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-field {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.contact-info {
    padding: var(--space-xl);
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.contact-detail {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.contact-detail h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.contact-detail p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ---- Program Detail Page ---- */
.program-detail .framework-card {
    cursor: default;
}

.program-detail .framework-card:hover {
    transform: none;
}

/* ---- Impact Page ---- */
.impact-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.impact-stat-card {
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.impact-stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.impact-stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.impact-stat-desc {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-top: var(--space-sm);
}

/* ---- News Page ---- */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* ---- Loading & Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .framework-grid,
    .updates-grid,
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .impact-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .involve-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header-top {
        display: none;
    }

    .header-main {
        padding: 0.75rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        flex-direction: column;
        background: white;
        padding: var(--space-xl) var(--space-lg);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-base);
        overflow-y: auto;
        z-index: 40;
        justify-content: flex-start;
        align-items: stretch;
    }

    .nav-wrapper.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 1rem 0;
        font-size: 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--color-border-light);
    }

    .has-dropdown .dropdown-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 0;
        padding: 0.875rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        padding-left: var(--space-md);
    }

    .dropdown-menu:not([hidden]) {
        display: block;
    }

    .header-cta {
        display: block;
        margin-top: var(--space-lg);
    }

    .hero {
        min-height: 80vh;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title-accent {
        font-size: 0.65em;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .stat-number {
        font-size: 2rem;
    }

    .framework-grid,
    .updates-grid,
    .news-list {
        grid-template-columns: 1fr;
    }

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

    .story-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .impact-stats-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        flex-wrap: wrap;
    }

    .partner-item {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .hero-scroll {
        display: none;
    }

    .update-image {
        height: 160px;
    }
}
