/* ========================================
   GeoAI-Africa — Dark Orange Theme
   Cohesive light palette with warm orange tones
   ======================================== */

/* --- CSS Variables --- */
:root {
    --primary: #C96B20;
    --primary-dark: #A85A1A;
    --primary-light: #E8A96A;
    --primary-lighter: #F5D4B0;
    --secondary: #3B2D1E;
    --accent: #D48A4C;
    --accent-light: #EBBF94;
    --bg-light: #FBFAF8;
    --bg-off: #F6F3EF;
    --bg-hero: #F3EDE6;
    --bg-hero-darker: #ECE3D8;
    --bg-card: #ffffff;
    --bg-card-hover: #FAF6F1;
    --bg-section-alt: #F4EFE8;
    --text-primary: #3B2D1E;
    --text-secondary: #5F4D3A;
    --text-muted: #917E6B;
    --text-on-dark: #3B2D1E;
    --text-secondary-dark: #5F4D3A;
    --border: rgba(201, 107, 32, 0.12);
    --border-hover: rgba(201, 107, 32, 0.35);
    --shadow: 0 4px 24px rgba(201, 107, 32, 0.08);
    --shadow-hover: 0 8px 32px rgba(201, 107, 32, 0.14);
    --shadow-glow: 0 0 40px rgba(201, 107, 32, 0.10);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 480px;
    height: auto;
    margin-bottom: 20px;
    filter: none;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(201, 107, 32, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(251, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 6px 0;
    box-shadow: 0 2px 16px rgba(201, 107, 32, 0.06);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    filter: none;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo-img {
    height: 44px;
    filter: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
    background: rgba(201, 107, 32, 0.08);
}

/* After scroll, nav links stay consistent */
.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary-dark);
    background: rgba(201, 107, 32, 0.08);
}

.nav-link.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 600;
    margin-left: 8px;
}

.nav-link.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.navbar.scrolled .nav-link.nav-cta {
    color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .nav-toggle span {
    background: var(--text-primary);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===================== HERO — light sage ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, #F3EDE6 0%, #EDE3D8 30%, #E5D8CB 60%, #ECE3D8 100%);
}

#globe-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(201, 107, 32, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(212, 138, 76, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, rgba(243, 237, 230, 0.2) 0%, rgba(243, 237, 230, 0.4) 50%, rgba(243, 237, 230, 0.85) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 880px;
    padding: 0 24px;
    padding-top: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(201, 107, 32, 0.10);
    border: 1px solid rgba(201, 107, 32, 0.20);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease forwards;
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(201, 107, 32, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 107, 32, 0.35);
}

.btn-secondary {
    background: rgba(201, 107, 32, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(201, 107, 32, 0.20);
}

.btn-secondary:hover {
    background: rgba(201, 107, 32, 0.14);
    border-color: rgba(201, 107, 32, 0.30);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* Light-section button overrides */
.section:not(.hero) .btn-secondary {
    background: rgba(201, 107, 32, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.section:not(.hero) .btn-secondary:hover {
    background: rgba(201, 107, 32, 0.10);
    border-color: var(--border-hover);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(201, 107, 32, 0.20);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.8s ease 0.6s forwards, float 3s ease-in-out infinite;
    opacity: 0;
}

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 3px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

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

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

/* ===================== LIGHT SECTIONS ===================== */

.section {
    padding: 100px 0;
    position: relative;
}

.section-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(201, 107, 32, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 138, 76, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-tag i {
    font-size: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Mission Section --- */
.mission-section {
    background: var(--bg-section-alt);
}

.mission-content {
    margin-bottom: 64px;
}

.mission-statement {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
}

.mission-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(201, 107, 32, 0.15), rgba(212, 138, 76, 0.12));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.5rem;
    color: var(--primary);
}

.mission-statement p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.mission-statement p:last-child {
    margin-bottom: 0;
}

.mission-statement strong {
    color: var(--text-primary);
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.pillar-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(201, 107, 32, 0.15), rgba(212, 138, 76, 0.10));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary);
}

.pillar-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Impact / Objectives Section --- */
.impact-section {
    background: var(--bg-light);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.objective-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.objective-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.objective-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.7;
}

.objective-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.objective-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.objective-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.2rem;
    color: rgba(201, 107, 32, 0.18);
}

/* Engage Section */
.engage-section {
    padding-top: 20px;
}

.engage-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.engage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.engage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.engage-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.engage-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(201, 107, 32, 0.15), rgba(212, 138, 76, 0.10));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
}

.engage-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.engage-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.engage-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.engage-link:hover {
    gap: 10px;
}

.engage-link i {
    font-size: 0.7rem;
}

/* --- Team Section --- */
.team-section {
    background: var(--bg-section-alt);
}

.team-group-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.team-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.team-card-inner {
    padding: 28px 20px;
    text-align: center;
}

.team-avatar {
    margin-bottom: 16px;
}

.avatar-img {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.team-card:hover .avatar-img {
    border-color: var(--border-hover);
}

.avatar-placeholder {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-placeholder span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.avatar-placeholder.avatar-advisor {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.team-info h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-role {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 2px;
}

.team-org {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.team-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.team-links a {
    width: 34px;
    height: 34px;
    background: rgba(201, 107, 32, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.team-links a:hover {
    background: rgba(201, 107, 32, 0.15);
    color: var(--primary-dark);
}

/* --- News Section --- */
.news-section {
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.news-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.news-date-badge,
.news-source-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 6px;
}

.news-date-badge {
    background: rgba(201, 107, 32, 0.10);
    color: var(--primary-dark);
}

.news-source-badge {
    background: var(--bg-off);
    color: var(--text-muted);
}

.news-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.news-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.news-card:hover .news-read-more {
    gap: 10px;
}

.news-read-more i {
    font-size: 0.7rem;
}

/* --- News Full Page Styles --- */
.news-article {
    max-width: 800px;
    margin: 0 auto 64px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
}

.news-article-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-date,
.news-source {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-date i,
.news-source i {
    font-size: 0.7rem;
    color: var(--primary);
}

.news-article-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-article-subtitle {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 32px;
}

.news-article-body p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.news-article-body strong {
    color: var(--text-primary);
}

.news-highlights {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-highlights li {
    padding: 20px 24px;
    background: var(--bg-off);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.news-highlights li strong {
    color: var(--text-primary);
}

.news-article-cta {
    margin-top: 36px;
    text-align: center;
}

/* --- Events Section --- */
.events-section {
    background: var(--bg-light);
}

.events-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent), transparent);
}

.event-item {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    position: relative;
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-marker {
    flex-shrink: 0;
    width: 50px;
    display: flex;
    justify-content: center;
    padding-top: 24px;
}

.event-dot {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-light);
    box-shadow: 0 0 0 3px rgba(201, 107, 32, 0.25);
    position: relative;
    z-index: 1;
}

.event-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.event-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}

.event-date {
    margin-bottom: 12px;
}

.event-month {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(201, 107, 32, 0.10);
    padding: 4px 12px;
    border-radius: 6px;
}

.event-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.event-venue {
    font-size: 0.85rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-venue i {
    font-size: 0.75rem;
}

.event-card > p:last-of-type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.event-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.event-link:hover {
    gap: 10px;
}

.event-link i {
    font-size: 0.7rem;
}

/* --- Resources Section --- */
.resources-section {
    background: var(--bg-section-alt);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: block;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.resource-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.resource-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.resource-card:hover::after {
    transform: scaleX(1);
}

.resource-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(201, 107, 32, 0.15), rgba(212, 138, 76, 0.10));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--primary);
}

.resource-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.resource-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.resource-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resource-card:hover .resource-cta {
    gap: 10px;
}

/* --- Projects Section --- */
.projects-section {
    background: var(--bg-light);
}

/* Preview card (homepage) */
.projects-preview-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-preview-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.project-preview-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.project-preview-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, rgba(201, 107, 32, 0.15), rgba(212, 138, 76, 0.10));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
}

.project-preview-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.project-preview-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-preview-arrow {
    margin-left: auto;
    font-size: 1.1rem;
    color: var(--primary);
    transition: var(--transition);
    min-width: 24px;
}

.project-preview-card:hover .project-preview-arrow {
    transform: translateX(4px);
}

/* Full project card (projects page) */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px 36px;
    background: linear-gradient(135deg, rgba(201, 107, 32, 0.06), rgba(212, 138, 76, 0.03));
    border-bottom: 1px solid var(--border);
}

.project-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, rgba(201, 107, 32, 0.15), rgba(212, 138, 76, 0.10));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.project-body {
    padding: 36px;
}

.project-description {
    margin-bottom: 32px;
}

.project-description p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
    padding: 24px;
    background: var(--bg-off);
    border-radius: var(--radius);
}

.meta-block h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.meta-block p {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.meta-block p a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.meta-block p a:hover {
    color: var(--primary);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--primary-dark);
    background: rgba(201, 107, 32, 0.08);
    border: 1px solid rgba(201, 107, 32, 0.18);
    border-radius: 20px;
}

.project-partners h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.partner-item {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-off);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.partner-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.partner-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, rgba(201, 107, 32, 0.15), rgba(212, 138, 76, 0.10));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
}

.partner-info strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.partner-info span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Contact Section --- */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(201, 107, 32, 0.15), rgba(212, 138, 76, 0.10));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.contact-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.contact-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: var(--transition);
}

.contact-card:hover .contact-arrow {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, rgba(201, 107, 32, 0.08), rgba(232, 169, 106, 0.10));
    border: 1px solid rgba(201, 107, 32, 0.18);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 107, 32, 0.04) 0%, transparent 60%);
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    to { transform: rotate(360deg); }
}

.cta-globe-mini {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.cta-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-card .btn {
    position: relative;
    z-index: 1;
}

/* --- Footer — soft sage dark --- */
.footer {
    background: #3B2D1E;
    border-top: 1px solid rgba(201, 107, 32, 0.15);
    padding: 64px 0 32px;
    color: #F0E8E0;
}

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

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 256px;
    width: auto;
    filter: invert(1);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(240, 232, 224, 0.65);
    line-height: 1.6;
    max-width: 360px;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #F0E8E0;
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: rgba(240, 232, 224, 0.55);
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(201, 107, 32, 0.12);
    border: 1px solid rgba(201, 107, 32, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(240, 232, 224, 0.55);
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(201, 107, 32, 0.25);
    border-color: rgba(201, 107, 32, 0.40);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(201, 107, 32, 0.12);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(240, 232, 224, 0.50);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .team-group-title {
        font-size: 1.3rem;
    }

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

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

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

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

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

    .footer-logo-img {
        height: 180px;
    }

    .loader-logo {
        width: 360px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        box-shadow: -4px 0 24px rgba(201, 107, 32, 0.08);
    }

    .nav-menu.active {
        right: 0;
    }

    /* Mobile menu: consistent text */
    .nav-menu .nav-link {
        color: var(--text-secondary);
    }
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--primary-dark);
        background: rgba(201, 107, 32, 0.08);
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-link.nav-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        justify-content: center;
    }

    .section {
        padding: 72px 0;
    }

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

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

    .section-subtitle {
        font-size: 1rem;
    }

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

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

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

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

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

    .hero-content {
        padding-top: 60px;
    }

    .hero-stats {
        gap: 24px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-logo-img {
        height: 140px;
    }

    .timeline-line {
        left: 12px;
    }

    .event-marker {
        width: 26px;
    }

    .event-item {
        gap: 16px;
    }

    .event-card {
        padding: 20px;
    }

    .loader-logo {
        width: 280px;
    }

    .mission-statement {
        padding: 28px 20px;
    }

    .pillar-card {
        padding: 24px;
    }

    .objective-card {
        padding: 24px;
        gap: 16px;
    }

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

    .engage-title {
        font-size: 1.4rem;
    }

    .engage-card {
        padding: 24px;
    }

    .cta-card {
        padding: 36px 24px;
    }

    .contact-card {
        padding: 16px 20px;
    }

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

    .news-card {
        padding: 24px;
    }

    .news-article {
        padding: 28px 20px;
    }

    .project-card-header {
        padding: 24px;
    }

    .project-body {
        padding: 24px;
    }

    .project-meta {
        grid-template-columns: 1fr;
    }

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

    .project-title {
        font-size: 1.15rem;
    }

    .project-preview-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .project-preview-arrow {
        align-self: flex-end;
    }
}

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

    .news-card h3 {
        font-size: 1rem;
    }

    .news-card p {
        font-size: 0.85rem;
    }

    .news-article {
        padding: 24px 16px;
    }

    .news-article-title {
        font-size: 1.3rem;
    }

    .news-highlights li {
        padding: 16px;
        font-size: 0.88rem;
    }

    .section {
        padding: 56px 0;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 14px;
        margin-bottom: 24px;
    }

    .hero-content {
        padding-top: 48px;
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .team-card-inner {
        padding: 20px 12px;
    }

    .avatar-img,
    .avatar-placeholder {
        width: 60px;
        height: 60px;
    }

    .team-info h3 {
        font-size: 0.85rem;
    }

    .team-role {
        font-size: 0.72rem;
    }

    .team-org {
        font-size: 0.68rem;
    }

    .team-links a {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

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

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .objective-card {
        padding: 20px;
        gap: 12px;
    }

    .objective-number {
        font-size: 1.7rem;
    }

    .objective-content h3 {
        font-size: 1rem;
    }

    .objective-icon {
        display: none;
    }

    .pillar-card {
        padding: 20px;
    }

    .resource-card {
        padding: 24px;
    }

    .event-card {
        padding: 16px;
    }

    .event-card h3 {
        font-size: 1rem;
    }

    .cta-card {
        padding: 28px 16px;
    }

    .cta-card h3 {
        font-size: 1.25rem;
    }

    .cta-card p {
        font-size: 0.88rem;
    }

    .footer {
        padding: 48px 0 24px;
    }

    .footer-logo-img {
        height: 100px;
    }

    .footer-brand p {
        font-size: 0.82rem;
    }

    .footer-bottom p {
        font-size: 0.72rem;
    }

    .loader-logo {
        width: 200px;
    }

    .loader-ring {
        width: 44px;
        height: 44px;
    }

    .scroll-indicator {
        display: none;
    }

    .nav-logo-img {
        height: 44px;
    }

    .navbar.scrolled .nav-logo-img {
        height: 36px;
    }

    .engage-title {
        font-size: 1.2rem;
    }

    .team-group-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

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

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

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

    .btn {
        padding: 12px 20px;
        font-size: 0.88rem;
    }
}
