/* ===================================
   TRAC Website Styles
   Professional Wireframe Design
   =================================== */

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Updated Professional Theme */
    --primary-color: #006A5F;
    --primary-dark: #004D45;
    --primary-light: #009A80;
    --secondary-color: #C75E3E;
    --accent-color: #D88773;

    /* Neutral Colors */
    --text-primary: #111111;
    --text-secondary: #4A4A4A;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-off-white: #F9F9F9;
    --bg-light: #FAFAFA;
    --bg-gray: #E5E5E5;
    --bg-dark: #333333;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;

    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    background: var(--bg-off-white);
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.container-wide {
    max-width: 90%;
    margin: 0 auto;
    padding: var(--container-padding);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}


/* ===================================
   NAVIGATION (fixed & stable logo)
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
    height: 150px; /* Increased height for larger logo */
    overflow-x: hidden;
}

/* scrolled state preserved */
.navbar.scrolled {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* wrapper holds nav items and logo — vertically centered */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    height: 150px; /* Match navbar height */
}

/* Logo container — fixed vertical space so logo cannot push other elements */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    height: 100%;
}

.logo-img {
    display: block;
    height: 140px;  /* Doubled logo size */
    width: auto;
    object-fit: contain;
    filter: saturate(1.06) contrast(1.05) drop-shadow(0 1px 0 rgba(0,0,0,0.06));
}

@media (min-width: 1200px) {
    .logo-img {
        height: 145px;  /* Slightly bigger on large desktop */
        width: auto;
        filter: saturate(1.1) contrast(1.08) drop-shadow(0 2px 2px rgba(0,0,0,0.08));
    }
}


/* If the logo is SVG and you want it crisper on retina, no-change needed; PNG will also scale well if high-res */

/* NAV MENU (unchanged logic, but ensure it stays centered vertically) */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.contact-btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
}

.nav-link.contact-btn::after { display: none; }

.nav-link.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile toggle (unchanged) */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}


/* ===================================
   HERO SECTION
   =================================== */
.hero {
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    margin-top: 150px;
    margin-bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    /*
    ============================================
    TO CHANGE HERO BACKGROUND IMAGE:
    ============================================
    Replace the URL below with your image:

    Option 1 - Local image in your project:
    background-image: url('images/hero-background.jpg');

    Option 2 - External URL:
    background-image: url('https://your-image-url.com/image.jpg');

    Option 3 - No image (use gradient only):
    Remove or comment out the background-image line
    ============================================
    */
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    animation: zoomInOut 20s ease-in-out infinite;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 106, 95, 0.5) 0%, rgba(0, 77, 69, 0.4) 50%, rgba(0, 154, 128, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUpHero 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUpHero 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUpHero 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s both;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: #A85335;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(199, 94, 62, 0.3);
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

/* ===================================
   SECTION STYLES
   =================================== */
.section {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.section-gray {
    background: var(--bg-light);
    position: relative;
}

.section-gray::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E0E0E0 50%, transparent);
}

.section-gray::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E0E0E0 50%, transparent);
}

.section-dark {
    background: var(--bg-white);
    color: var(--text-primary);
    border-top: 1px solid #E8E8E8;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    display: block;
    margin: 25px auto 0;
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.section-dark .section-title {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-subtitle {
    color: var(--text-secondary);
}

.lead {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ===================================
   WELCOME SECTION
   =================================== */
.welcome-section {
    background: var(--bg-white);
}

.welcome-text {
    max-width: 900px;
    margin: 0 auto;
}

.welcome-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.signature {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--primary-color);
    text-align: right;
}

.signature-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.signature-title {
    font-size: 16px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Typewriter Animation */
.typewriter-heading {
    display: inline-block;
}

.typewriter-heading #typewriterText {
    display: inline;
}

.typewriter-cursor {
    color: var(--primary-color);
    font-weight: 700;
    opacity: 0;
    animation: none;
    margin-left: 2px;
}

.typewriter-cursor.blinking {
    animation: blink 0.5s step-end 3;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Hero Typewriter Styling */
.hero-title-typewriter,
.page-title-typewriter {
    display: inline-block;
}

.hero-cursor,
.page-cursor {
    color: white;
    font-weight: 700;
    opacity: 1;
    animation: cursorBlink 0.8s infinite;
    margin-left: 3px;
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* ===================================
   FRAMEWORK SECTION
   =================================== */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.framework-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid #E8E8E8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.framework-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(44, 95, 124, 0.15);
    border-color: var(--primary-color);
}

.framework-icon {
    margin: 0 auto 25px;
    width: 60px;
    height: 60px;
}

.framework-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.framework-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.about-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #E8E8E8;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.about-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.about-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.values-section {
    margin-top: 60px;
}

.values-section > h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #E8E8E8;
    border-top: 3px solid var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #D0D0D0;
}

.value-item h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.value-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    padding: 40px 35px;
    border-radius: 12px;
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid #E8E8E8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(44, 95, 124, 0.15);
    border-color: var(--primary-color);
}

.service-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: 20px;
    right: 30px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-right: 60px;
}

.service-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.approach-section {
    background: #FAFAFA;
    color: var(--text-primary);
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #E8E8E8;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.approach-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.approach-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.approach-section p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* ===================================
   TEAM SECTION
   =================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.team-member {
    background: white;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    transition: var(--transition-smooth);
    border: none;
    box-shadow: 0 5px 20px rgba(44, 95, 124, 0.15);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.team-member.featured {
    grid-column: span 2;
    background: white;
    color: var(--text-primary);
    border: none;
    box-shadow: 0 5px 20px rgba(44, 95, 124, 0.15);
}


/* Responsive: 1 column on mobile */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-member.featured {
        grid-column: span 1;
    }

}

/*
============================================
TO CHANGE TEAM MEMBER PHOTOS:
============================================
1. Create a folder: images/team/
2. Add your photos with these names:
   - ayo-ojebode.jpg
   - chris-kaghoma.jpg
   - robyn-read.jpg
   - eunice-kamaara.jpg
   - ibrahim-oanda.jpg
   - connie-nshemereirwe.jpg

Recommended specs:
- Size: 400x400 pixels (square)
- Format: JPG or PNG
- File size: Under 200KB each
============================================
*/

.team-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.team-photo img.img-top-align {
    object-position: center top;
    background-color: #f5f5f5;
}

/* Make Ayo's photo fill container better */
.team-member.featured .team-photo img {
    transform: scale(1.5);
    object-fit: cover;
    object-position: center 20%;
    transform-origin: center 20%;
}

.team-member.featured .team-photo img {
    width: 300px;      /* example width */
    height: 300px;     /* example height */
    overflow: hidden;  /* crop anything outside */
    position: relative;
}


.team-member:hover .team-photo {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(44, 95, 124, 0.3);
}

.team-member h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.team-role {
    font-size: 17px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.team-specialty {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.team-bio {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-top: 15px;
    text-align: left;
}

/* ===================================
   PLACEHOLDER SECTIONS
   =================================== */
.placeholder-content {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    border: 2px dashed #D0D0D0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.placeholder-content:hover {
    border-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.placeholder-content p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.contact-item p {
    font-size: 18px;
    margin: 0;
    color: var(--text-primary);
}

.contact-form-wrapper {
    background: #FAFAFA;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #E8E8E8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.contact-form button:hover {
    background: #A85335;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(199, 94, 62, 0.3);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-white);
    color: var(--text-primary);
    padding: 60px 0 30px;
    border-top: 1px solid #E8E8E8;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

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

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.footer-logo {
    height: auto;
    width: 250px;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 10px;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #E8E8E8;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #999;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpHero {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
    .team-member.featured {
        grid-column: span 1;
    }

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

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

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .nav-wrapper {
        height: 70px;
        padding: 0 15px;
    }

    .logo-img {
        height: 55px;
        width: auto;
    }

    .mobile-toggle {
        display: flex;
        flex-shrink: 0;
        margin-right: 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

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

    .hero {
        height: 60vh;
        min-height: 400px;
        margin-top: 70px;
    }

    .page-hero {
        margin-top: 70px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .framework-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }

    .section {
        padding: 50px 0;
    }

    .navbar {
        height: 60px;
    }

    .nav-wrapper {
        padding: 0 10px;
        height: 60px;
    }

    .logo-img {
        height: 45px;
        width: auto;
    }

    .mobile-toggle {
        display: flex;
        position: relative;
        z-index: 1000;
        flex-shrink: 0;
    }

    .logo {
        max-width: calc(100% - 50px);
        flex-shrink: 1;
    }

    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .hero {
        margin-top: 60px;
    }

    .page-hero {
        margin-top: 60px;
    }
}

/* ===================================
   PAGE HERO STYLES (For separate pages)
   =================================== */
.page-hero {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    margin-top: 150px;
    overflow: hidden;
}

/*
============================================
TO CHANGE PAGE HERO BACKGROUND IMAGES:
============================================
Add background images to specific page heroes by adding
the ::before pseudo-element. Examples below:

For About page - use .page-hero.about::before
For Services page - use .page-hero.services::before
For Team page - use .page-hero.team::before
For Events page - use .page-hero.events::before
For Resources page - use .page-hero.resources::before
For Contact page - use .page-hero.contact::before

See examples below for implementation.
============================================
*/

/* About Page Hero Background */
.page-hero.about::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('images/heroes/about-hero.jpg');
    background-size: cover;
    background-position: center;
    animation: zoomInOut 20s ease-in-out infinite;
    z-index: 0;
}

/* Services Page Hero Background */
.page-hero.services::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('images/heroes/services-hero.jpg');
    background-size: cover;
    background-position: center;
    animation: zoomInOut 20s ease-in-out infinite;
    z-index: 0;
}

/* Team Page Hero Background */
.page-hero.team::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('images/heroes/team-hero.jpg');
    background-size: cover;
    background-position: center;
    animation: zoomInOut 20s ease-in-out infinite;
    z-index: 0;
}

/* Events Page Hero Background */
.page-hero.events::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('images/heroes/events-hero.jpg');
    background-size: cover;
    background-position: center;
    animation: zoomInOut 20s ease-in-out infinite;
    z-index: 0;
}

/* Resources Page Hero Background */
.page-hero.resources::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('images/heroes/resources-hero.jpg');
    background-size: cover;
    background-position: center;
    animation: zoomInOut 20s ease-in-out infinite;
    z-index: 0;
}

/* Impact Page Hero Background */
.page-hero.impact::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('images/heroes/impact-hero.jpg');
    background-size: cover;
    background-position: center;
    animation: zoomInOut 20s ease-in-out infinite;
    z-index: 0;
}

/* Contact Page Hero Background */
.page-hero.contact::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('images/heroes/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    animation: zoomInOut 20s ease-in-out infinite;
    z-index: 0;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 106, 95, 0.5) 0%, rgba(0, 77, 69, 0.4) 50%, rgba(0, 154, 128, 0.5) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUpHero 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.page-subtitle {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUpHero 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

/* ===================================
   HAPPY CLIENTS SECTION
   =================================== */
.happy-clients-section {
    background: var(--bg-white);
    text-align: center;
}

.clients-content {
    max-width: 1000px;
    margin: 0 auto;
}

.clients-heading {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.clients-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.clients-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    padding: 30px 20px;
    background: #FAFAFA;
    border-radius: 15px;
    transition: var(--transition-smooth);
    border: 1px solid #E8E8E8;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 95, 124, 0.15);
    border-color: var(--primary-color);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================
   CUSTOMERS SECTION
   =================================== */
.customers-section {
    background: #FAFAFA;
    overflow: hidden;
}

.customers-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 50px 0;
    margin-top: 30px;
    position: relative;
}

.customers-scroll-wrapper::before,
.customers-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.customers-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, #FAFAFA 0%, transparent 100%);
}

.customers-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, #FAFAFA 100%);
}

.customers-scroll {
    display: flex;
    gap: 40px;
    animation: scroll-left 30s linear infinite;
    width: fit-content;
}

.customers-scroll:hover {
    animation-play-state: paused;
}

.customer-logo {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 120px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    border: 1px solid #E8E8E8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.customer-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCC;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-placeholder img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.customer-logo:hover .logo-placeholder img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    background: var(--bg-white);
    color: var(--text-primary);
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid #E8E8E8;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.cta-content {
    background: #FAFAFA;
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px solid #E8E8E8;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 35px;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   VALUE ITEMS
   =================================== */
.value-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    opacity: 0.2;
    margin-bottom: 15px;
}

/* ===================================
   CARD ICONS
   =================================== */
.card-icon {
    margin: 0 auto 25px;
    width: 60px;
    height: 60px;
}

/* ===================================
   LOGO LINK STYLING
   =================================== */
.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover h1 {
    color: var(--primary-light);
}

/* ===================================
   RESPONSIVE - PAGE HERO
   =================================== */
@media (max-width: 768px) {
    .page-hero {
        height: 300px;
        margin-top: 70px;
    }

    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-hero {
        margin-top: 60px;
    }

    .page-title {
        font-size: 28px;
    }
}

/* ===================================
   SERVICE DETAILS LIST
   =================================== */
.service-details {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.service-details li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 15px;
    color: var(--text-secondary);
}

.service-details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ===================================
   IMPACT PAGE STYLES
   =================================== */

/* Impact Report Section */
.impact-report-section {
    background: var(--bg-white);
}

.impact-welcome {
    max-width: 900px;
    margin: 0 auto;
}

.impact-welcome p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Impact Map Section */
.impact-map-section {
    background: #FAFAFA;
}

.impact-map-placeholder {
    background: white;
    border-radius: 15px;
    padding: 50px;
    border: 1px solid #E8E8E8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.map-container {
    text-align: center;
    padding: 30px 20px;
    background: #F5F5F5;
    border-radius: 12px;
    margin-bottom: 40px;
    position: relative;
    min-height: 400px;
}

/* SVG Africa Map Styles */
#africa-map {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

/* Map Tooltip */
.map-tooltip {
    position: absolute;
    background: rgba(0, 106, 95, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.tooltip-country {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.tooltip-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tooltip-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.tooltip-label {
    color: rgba(255, 255, 255, 0.8);
}

.tooltip-value {
    font-weight: 600;
    font-size: 14px;
}

/* Countries List Styles */
.countries-by-region {
    margin-top: 50px;
}

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

.region-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E0E0E0;
}

.country-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    cursor: default;
}

.country-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Intensity-based styling */
.country-chip.intensity-1 {
    border-color: #B3D9D3;
    background: #F0F9F7;
}

.country-chip.intensity-2 {
    border-color: #66B3A3;
    background: #E0F2EE;
    font-weight: 600;
}

.country-chip.intensity-3 {
    border-color: #006A5F;
    background: #D0EBE7;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 106, 95, 0.15);
}

.country-name {
    color: var(--text-primary);
}

.country-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
}

.map-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.map-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.map-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.map-stat {
    text-align: center;
    padding: 30px 20px;
    background: #FAFAFA;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.map-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.map-stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.map-stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Who We Work With - Charts Section */
.who-we-work-with-section {
    background: var(--bg-white);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 50px;
    margin-top: 50px;
}

.chart-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #E8E8E8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.chart-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.chart-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.chart-wrapper {
    max-width: 350px;
    margin: 0 auto 30px;
    position: relative;
}

.chart-wrapper canvas {
    max-height: 350px;
}

.custom-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #FAFAFA;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.legend-item:hover {
    background: #F0F0F0;
    transform: translateX(5px);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.legend-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Our DNA Section */
.our-dna-section {
    background: #FAFAFA;
}

.dna-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.dna-card {
    background: white;
    padding: 40px 35px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid #E8E8E8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dna-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(44, 95, 124, 0.15);
    border-color: var(--primary-color);
}

.dna-icon {
    margin: 0 auto 25px;
    width: 60px;
    height: 60px;
}

.dna-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.dna-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: left;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.value-item-small {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.value-item-small::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

.value-item-small strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===================================
   RESOURCES & EVENTS INTRO SECTIONS
   =================================== */
.resources-intro {
    margin: 0 auto;
    text-align: center;
}

.resources-icon {
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
}

.resources-heading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.resources-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.resources-expectations {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: left;
    margin-top: 30px;
}

.resources-expectations h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.resources-expectations ul li {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.resources-expectations ul li:hover {
    color: var(--primary-color);
}

.resources-expectations ul li span:first-child {
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===================================
   DYNAMIC CONTENT - EVENTS & RESOURCES CARDS
   =================================== */

/* Loading & No Content States */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-content p {
    font-size: 1.1rem;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    align-items: stretch;
}

.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.event-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-off-white);
    flex-shrink: 0;
}

.event-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-type {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 106, 95, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.event-card h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: auto;
    flex-grow: 1;
}

.event-description-preview {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-description-full {
    color: var(--text-secondary);
    line-height: 1.8;
}

.event-description-full p {
    margin-bottom: 1em;
}

.event-description-full ul,
.event-description-full ol {
    margin: 1em 0;
    padding-left: 25px;
}

.event-description-full li {
    margin-bottom: 0.5em;
}

.event-speaker {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.event-detail-section {
    margin: 25px 0;
    padding: 20px;
    background: var(--bg-off-white);
    border-radius: 8px;
}

.event-detail-section h4 {
    color: var(--primary-color);
    margin: 0 0 12px 0;
    font-size: 1.1rem;
}

.event-detail-section ul {
    list-style: none;
    padding: 0;
}

.event-detail-section li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.event-detail-section li:last-child {
    border-bottom: none;
}

.event-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.event-date,
.event-location {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.event-location {
    margin-bottom: 0;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.resource-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.resource-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-off-white);
}

.resource-content {
    padding: 25px;
}

.resource-type-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(199, 94, 62, 0.1);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.resource-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.resource-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.resource-author {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 8px;
}

.resource-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.resource-tags .tag {
    background: var(--bg-off-white);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .events-grid,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   EVENT REGISTRATION MODAL & FORMS
   =================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

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

/* Modal Header */
.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
}

/* Modal Body */
.modal-body {
    padding: 30px;
}

/* Event Info Box */
.event-info-box {
    background: var(--bg-off-white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
}

.event-info-box h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.event-info-box p {
    margin: 5px 0;
    color: var(--text-primary);
}

/* Registration Form */
.registration-form {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:has(> .form-group:only-child) {
    grid-template-columns: 1fr;
}

.registration-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.registration-form .form-group input,
.registration-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.registration-form .form-group input:focus,
.registration-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.registration-form .form-group textarea {
    resize: vertical;
}

/* Form Actions */
.registration-form .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.registration-form .form-actions .btn {
    flex: 1;
}

/* Registration Message */
.registration-message {
    margin-top: 20px;
}

.registration-message .alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 0;
}

.registration-message .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.registration-message .alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Event Actions */
.event-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.event-registrations {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 20px;
    }

    .registration-form .form-actions {
        flex-direction: column;
    }

    .registration-form .form-actions .btn {
        width: 100%;
    }

    /* Impact Map Responsive */
    .map-container {
        padding: 20px 10px;
        min-height: 400px;
    }

    #africa-map {
        max-width: 100%;
    }

    .map-tooltip {
        font-size: 12px;
        padding: 12px 15px;
        min-width: 180px;
    }

    .tooltip-country {
        font-size: 14px;
    }

    .country-chips {
        gap: 8px;
    }

    .country-chip {
        padding: 8px 12px;
        font-size: 13px;
    }

    .region-title {
        font-size: 18px;
    }
}

/* ===================================
   ANALYTICS & STAT BOXES
   =================================== */
.stat-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
