/* ==========================================
   1. CSS RESET
   Strips browser default styling so every
   browser renders our site identically.
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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


/* ==========================================
   2. DESIGN SYSTEM — CSS VARIABLES
   Our single source of truth for colors,
   fonts, and spacing. Defined on :root so
   they're available everywhere in this file.
   ========================================== */

:root {

    /* --- Brand Colors --- */
    --color-primary: #407E7C;
    --color-primary-light: #CCDDDC;
    --color-secondary: #06171E;
    --color-secondary-light: #6A7478;
    --color-accent: #FC9E01;
    /* Darkened orange for TEXT on light backgrounds — #FC9E01 fails WCAG AA
       (2.09:1) as text on white/light-grey. This variant passes (4.65:1 on
       white, 3.93:1 on navy) while still reading clearly as the brand orange. */
    --color-accent-text: #A46701;

    /* --- Neutrals --- */
    --color-white: #FFFFFF;
    --color-light-grey: #F2F6F6;

    /* --- Typography --- */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* --- Spacing scale ---
       Using a consistent scale (instead of random
       px values) keeps spacing visually rhythmic
       across the whole site. */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* --- Border radius ---
       amplifi's brand style uses soft, rounded,
       glassmorphic shapes — so we centralize this too. */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}


/* ==========================================
   3. BASE STYLES
   ========================================== */

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-secondary);
    line-height: 1.6;
}


/* ==========================================
   4. NAVIGATION BAR
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); /* Safari needs this prefix */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);

    transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* Applied via JS once the user scrolls down */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 24px rgba(14, 14, 37, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Logo --- */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-logo span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-secondary);
}

/* --- Nav links --- */
.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: var(--space-xs) 0;
    transition: color 0.3s ease;
}

/* Animated underline on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent-text);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 14, 37, 0.25);
}

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

/* --- Mobile hamburger toggle (hidden on desktop) --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-secondary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Applied via JS when the mobile menu is open */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================
   5. RESPONSIVE — MOBILE NAVIGATION
   ========================================== */

@media (max-width: 768px) {

    .nav-links {
        position: fixed;
        top: 68px; /* sits just below the navbar */
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;

        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);

        /* Hidden by default — collapsed upward and invisible */
        max-height: 0;
        overflow: hidden;
        opacity: 0;

        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    /* This class gets toggled by JavaScript */
    .nav-links.active {
        max-height: 400px;
        opacity: 1;
    }

    .nav-links li {
        text-align: center;
        padding: var(--space-sm) 0;
    }

    .nav-cta {
        display: none; /* hidden on mobile; the same CTA is reachable via the mobile menu links */
    }

    .nav-toggle {
        display: flex; /* show the hamburger icon */
    }
}


/* ==========================================
   6. HERO SECTION
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    padding: 0 var(--space-md);
    background: linear-gradient(
        180deg,
        var(--color-light-grey) 0%,
        var(--color-primary-light) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-headline {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--color-secondary);
    text-transform: capitalize;
    margin-bottom: var(--space-sm);
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--color-secondary-light);
    max-width: 600px;
    margin: 0 auto var(--space-md);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

/* Outlined "ghost" button variant */
.btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border: 1.5px solid var(--color-secondary);
}

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

/* --- Floating gradient blobs (decorative background) --- */

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.blob-1 {
    width: 420px;
    height: 420px;
    background: var(--color-primary);
    top: 10%;
    left: 5%;
    animation: float-blob-1 14s ease-in-out infinite;
}

.blob-2 {
    width: 520px;
    height: 520px;
    background: var(--color-accent);
    bottom: 0%;
    right: 0%;
    animation: float-blob-2 18s ease-in-out infinite;
}

.blob-3 {
    width: 320px;
    height: 320px;
    background: var(--color-secondary-light);
    top: 45%;
    left: 45%;
    opacity: 0.25;
    animation: float-blob-3 20s ease-in-out infinite;
}

/* Each blob moves along a different path/timing so
   they never feel mechanical or synced together. */

@keyframes float-blob-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 60px) scale(1.1); }
}

@keyframes float-blob-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -30px) scale(1.15); }
}

@keyframes float-blob-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(0.9); }
}

/* Respect users who've asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gradient-blob {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}


/* ==========================================
   7. SCROLL-REVEAL ANIMATION SYSTEM
   ========================================== */

/* Default hidden state — applied to any element
   we want to animate in on scroll. */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* JavaScript adds this class once the element
   scrolls into the viewport. */
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ==========================================
   8. MISSION SECTION
   ========================================== */

.mission {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-white);
}

.mission-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-text);
    margin-bottom: var(--space-sm);
    padding: 0.4rem 1rem;
    background: var(--color-light-grey);
    border-radius: var(--radius-lg);
}

.mission-heading {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
}

.mission-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-secondary-light);
}


/* ==========================================
   9. IMPACT STATISTICS
   ========================================== */

.stats {
    padding: var(--space-lg) var(--space-md);
    background: var(--color-secondary);
}

.stats-container {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.stat-card {
    text-align: center;
    padding: var(--space-md);
}

.stat-number {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.stat-plus {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-accent);
}

.stat-label {
    margin-top: var(--space-xs);
    font-size: 0.95rem;
    color: var(--color-primary);
    opacity: 0.8;
}

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

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   10. PROGRAMS SECTION
   ========================================== */

.programs {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-light-grey);
}

.programs-header {
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    text-align: center;
}

.section-heading {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-secondary);
    margin-top: var(--space-xs);
}

.programs-grid {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.program-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);

    box-shadow: 0 4px 20px rgba(14, 14, 37, 0.06);
    border: 1px solid rgba(181, 184, 250, 0.2);

    /* Makes the hover tilt feel 3D rather than flat */
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.program-card:hover {
    transform: translateY(-10px) rotateX(4deg);
    box-shadow: 0 20px 40px rgba(14, 14, 37, 0.12);
}

.program-icon {
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
}

.program-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.program-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-secondary-light);
}

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

@media (max-width: 480px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   11. PROJECTS SECTION
   ========================================== */

.projects {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-white);
}

.filter-bar {
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.filter-btn {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-secondary-light);
    background: var(--color-light-grey);
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
}

/* Applied via JS to whichever button is currently selected */
.filter-btn.active {
    background: var(--color-secondary);
    color: var(--color-white);
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.project-card {
    background: var(--color-light-grey);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(14, 14, 37, 0.1);
}

.project-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    background: var(--color-accent);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.project-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-secondary-light);
}

/* Hidden state for filtered-out cards */
.project-card.hidden {
    display: none;
}

/* --- Reused by careers.html for job/volunteer listings --- */
.career-location {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-text);
    margin-bottom: var(--space-xs);
}

.project-card .btn {
    margin-top: var(--space-sm);
}

.careers-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-secondary-light);
    padding: var(--space-lg) 0;
}

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

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   12. TESTIMONIALS
   ========================================== */

.testimonials {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-light-grey);
}

.testimonials-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: 0 4px 20px rgba(14, 14, 37, 0.06);
    text-align: center;
}

.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-secondary-light);
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.testimonial-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.testimonial-role {
    font-size: 0.82rem;
    color: var(--color-accent-text);
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   13. MEET THE TEAM
   ========================================== */

.team {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-white);
}

.team-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.team-card {
    display: block;
    text-align: center;
    padding: var(--space-md);
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Only cards with a real LinkedIn link (rendered as <a>) get hover affordance —
   plain <div> cards (no link set) stay static so they don't look clickable. */
.team-card.has-link:hover,
.team-card.has-link:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(14, 14, 37, 0.1);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-sm);
}

.team-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.team-role {
    font-size: 0.85rem;
    color: var(--color-accent-text);
    margin-bottom: var(--space-xs);
}

.team-bio {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-secondary-light);
}

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

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   14. NEWSLETTER
   ========================================== */

.newsletter {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-white);
}

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

.newsletter-container h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.newsletter-container p {
    font-size: 1rem;
    color: var(--color-secondary-light);
    margin-bottom: var(--space-md);
}

.newsletter-form {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 220px;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-light-grey);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background: var(--color-light-grey);
    color: var(--color-secondary);
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter-status {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    color: var(--color-accent-text);
    font-weight: 500;
    min-height: 1.2em; /* reserves space so layout doesn't jump when text appears */
}


/* ==========================================
   15. FINAL CALL TO ACTION
   ========================================== */

.final-cta {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-secondary);
    text-align: center;
}

.final-cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta-container h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.final-cta-container p {
    font-size: 1.05rem;
    color: var(--color-primary);
    opacity: 0.85;
    margin-bottom: var(--space-md);
}


/* ==========================================
   16. CONTACT SECTION
   ========================================== */

.contact {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-light-grey);
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-sm);
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(14, 14, 37, 0.1);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background: var(--color-white);
    color: var(--color-secondary);
    transition: border-color 0.3s ease;
    resize: vertical; /* only applies to textarea, but harmless on inputs */
}

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

.contact-form .btn {
    width: 100%;
}

.contact-status {
    margin-top: var(--space-sm);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent-text);
    min-height: 1.2em;
}


/* ==========================================
   17. SHARED SECTION-INTRO TEXT & FORM EXTRAS
   (.join-intro name kept as-is — it's reused as the
   generic centered-intro-paragraph style under the
   Articles and Work With Us headings, not tied to the
   removed "Join the Movement" section.)
   ========================================== */

.join-intro {
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--color-secondary-light);
    line-height: 1.6;
    text-align: center;
}

/* Dropdown styling, matched to our text inputs. Not currently used on the
   page (the one form that used a <select> was removed along with the Join
   section), but kept as ready-to-use styling for any future form field. */
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(14, 14, 37, 0.1);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background: var(--color-white);
    color: var(--color-secondary);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}


/* ==========================================
   18. CONTACT DETAILS
   ========================================== */

.contact-details {
    max-width: 560px;
    margin: 0 auto var(--space-lg);
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    text-align: center;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent-text);
    margin-bottom: 0.3rem;
}

.contact-detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-secondary);
}

.contact-detail-value a {
    color: inherit;
    text-decoration: none;
}

.contact-detail-value a:hover {
    color: var(--color-accent-text);
}


/* ==========================================
   19. UPLOADED IMAGES (Testimonials/Programs/Projects/Articles)
   ========================================== */

.testimonial-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-xs);
}

.program-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}


/* ==========================================
   20. SUBSIDIARIES
   ========================================== */

.subsidiaries {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-white);
}

.subsidiaries-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.subsidiary-card {
    background: var(--color-light-grey);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.subsidiary-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.subsidiary-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-secondary-light);
}

.subsidiary-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-xs);
}

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

@media (max-width: 480px) {
    .subsidiaries-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   21. ARTICLES
   ========================================== */

.articles {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-light-grey);
}

.articles-grid {
    max-width: 1000px;
    margin: 0 auto var(--space-xl);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.article-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: 0 4px 20px rgba(14, 14, 37, 0.06);
}

.article-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.article-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.article-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-secondary-light);
}

.article-author {
    margin-top: var(--space-xs);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent-text);
}

.article-submit {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.article-submit h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.article-submit p {
    color: var(--color-secondary-light);
    margin-bottom: var(--space-md);
}

@media (max-width: 700px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   22. WORK WITH US (Partner + Article Submission)
   ========================================== */

.engage {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-white);
}

.engage-tabs {
    max-width: 420px;
    margin: 0 auto var(--space-lg);
    display: flex;
    background: var(--color-light-grey);
    border-radius: var(--radius-lg);
    padding: 0.3rem;
}

.engage-tab {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary-light);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.engage-tab.active {
    background: var(--color-secondary);
    color: var(--color-white);
}

.engage-panel {
    max-width: 1000px;
    margin: 0 auto;
}

.engage-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-lg);
    background: var(--color-light-grey);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.engage-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.engage-benefits {
    list-style: none;
}

.engage-benefits li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-secondary-light);
}

/* Custom checkmark-style bullet instead of a plain dot */
.engage-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent-text);
    font-weight: 700;
}

.engage-form {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: 0 4px 20px rgba(14, 14, 37, 0.06);
}

.engage-status {
    margin-top: var(--space-sm);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent-text);
    min-height: 1.2em;
}

/* Chip-style selectable buttons (replaces a <select>) */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-xs);
}

.chip {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(14, 14, 37, 0.15);
    background: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-secondary-light);
    cursor: pointer;
    transition: all 0.25s ease;
}

.chip:hover {
    border-color: var(--color-accent-text);
}

.chip.active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

@media (max-width: 800px) {
    .engage-content {
        grid-template-columns: 1fr;
        padding: var(--space-md);
    }
}


/* ==========================================
   23. FOOTER
   ========================================== */

.footer {
    position: relative;
    background: var(--color-secondary);
    padding: var(--space-lg) var(--space-md) var(--space-md);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-lg);
}

/* --- Brand column --- */
.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-logo span {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-primary);
    opacity: 0.75;
}

/* --- Link columns --- */
.footer-links h4,
.footer-social h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

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

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-primary);
    opacity: 0.75;
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

/* --- Social icons --- */
.social-icons {
    display: flex;
    gap: var(--space-xs);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    background: var(--color-accent);
    color: var(--color-secondary);
    transform: translateY(-3px);
}

/* --- Bottom bar --- */
.footer-bottom {
    max-width: 1200px;
    margin: var(--space-lg) auto 0;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-primary);
    opacity: 0.6;
}

/* --- Back to top button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-secondary);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(14, 14, 37, 0.2);

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;

    z-index: 999;
}

/* Shown via JS once user scrolls down */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   24. LEGAL / LONG-FORM TEXT PAGES
   (Terms of Use, Privacy Policy, etc. — left-aligned
   prose reads better than centered text at this length.)
   ========================================== */

.legal {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-white);
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--color-secondary-light);
    margin-bottom: var(--space-lg);
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xs);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--color-secondary-light);
    margin-bottom: var(--space-sm);
}

.legal-content ul {
    margin: 0 0 var(--space-sm) var(--space-md);
    color: var(--color-secondary-light);
    line-height: 1.75;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--color-accent-text);
}

.legal-todo {
    display: block;
    background: var(--color-light-grey);
    border-left: 3px solid var(--color-accent);
    padding: 0.6rem 0.9rem;
    margin: var(--space-xs) 0 var(--space-sm);
    font-size: 0.88rem;
    color: var(--color-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}


/* ==========================================
   25. ACCESSIBILITY — FOCUS STATES
   ========================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 0.75rem 1.25rem;
    z-index: 2000;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
    transition: top 0.2s ease;
}

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

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