/*
 * ============================================================================
 * WSI - World Scholarship Initiative
 * Main Stylesheet
 * ============================================================================
 *
 * Color palette extracted from original Wix site.
 * Typography: Futura LT Light (headings), Helvetica (body).
 * Font files in /fonts/ are extracted from the Wix webarchive for local dev.
 * For public hosting, replace with Google Fonts: Jost (headings), Inter (body).
 *
 * MAINTAINER NOTES (for Claude Code):
 * - Colors are defined as CSS custom properties in :root
 * - Section backgrounds alternate: white, sage-green, dark-green, warm-brown
 * - Student cards use CSS Grid, 3-4 columns on desktop
 * - Navigation uses dropdowns with JS toggle (js/nav.js)
 * - All spacing uses rem units (1rem = 16px base)
 * ============================================================================
 */

/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === FONT FACES === */
/* NOTE: These woff2 files were extracted from the Wix webarchive.
   For public deployment, replace with Google Fonts equivalents. */
@font-face {
    font-family: 'Futura LT';
    src: url('../fonts/futura-lt-w01-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futura LT';
    src: url('../fonts/futura-lt-w01-book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica W01';
    src: url('../fonts/helvetica-w01-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica W01';
    src: url('../fonts/helvetica-w01-roman.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* === CSS CUSTOM PROPERTIES (Design Tokens) === */
:root {
    /* Brand colors - from Wix color palette */
    --color-text-primary: rgb(34, 33, 32);          /* color_11 - near black */
    --color-text-secondary: rgb(67, 66, 63);         /* color_12 */
    --color-text-muted: rgb(114, 113, 111);          /* color_13 */
    --color-text-light: rgb(208, 207, 205);          /* color_15 - light gray */

    --color-brown-darkest: rgb(47, 38, 30);          /* color_16 */
    --color-brown-dark: rgb(94, 77, 61);             /* color_17 - button bg */
    --color-brown-warm: rgb(188, 153, 121);          /* color_18 - accent/action */
    --color-brown-light: rgb(212, 185, 161);         /* color_19 */
    --color-brown-pale: rgb(227, 213, 200);          /* color_20 */

    --color-green-darkest: rgb(26, 37, 30);          /* color_31 */
    --color-green-dark: rgb(37, 45, 40);             /* color_21 */
    --color-green-mid: rgb(52, 73, 60);              /* color_32 / color_44 */
    --color-green-sage: rgb(112, 135, 121);          /* color_23 */
    --color-green-light: rgb(160, 175, 166);         /* color_24 */
    --color-green-pale: rgb(203, 215, 208);          /* color_25 */
    --color-green-softer: rgb(194, 210, 200);        /* color_35 */
    --color-green-muted: rgb(75, 90, 81);             /* color_22 - nav dropdown bg */

    --color-red-dark: rgb(117, 7, 7);                    /* color_27 - dark red/burgundy */
    --color-red-donate: rgb(176, 11, 11);              /* color_42 - donate button */

    --color-white: #ffffff;
    --color-off-white: rgb(250, 250, 250);

    /* Semantic colors */
    --color-bg-primary: var(--color-white);
    --color-bg-dark: var(--color-green-mid);
    --color-bg-accent: var(--color-brown-pale);
    --color-bg-footer: var(--color-text-primary);

    --color-accent: var(--color-brown-warm);
    --color-button-bg: var(--color-brown-dark);
    --color-button-text: var(--color-text-light);
    --color-button-hover: var(--color-brown-warm);

    /* Typography */
    --font-heading: 'Futura LT', 'Jost', 'Century Gothic', sans-serif;
    --font-body: 'Helvetica W01', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Spacing */
    --section-padding: 5rem 2rem;
    --section-padding-narrow: 3.5rem 2rem;
    --container-max: 1100px;
    --container-wide: 1300px;

    /* Transitions */
    --transition-base: 0.3s ease;
}

/* === BASE STYLES === */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text-primary);
    line-height: 1.7;
    background-color: var(--color-white);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.05em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

/* === UTILITY CLASSES === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-center { text-align: center; }
.text-upper { text-transform: uppercase; letter-spacing: 0.15em; }
.text-white { color: var(--color-white); }
.text-light { color: var(--color-text-light); }
.text-accent { color: var(--color-accent); }

/* === HEADER & NAVIGATION === */
/* The header is a dark green strip at the top with the nav menu.
   Original Wix uses color_44 (52,73,60) = --color-green-mid. */
.site-header {
    background-color: var(--color-green-mid);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    min-height: 70px;
}

/* Logo in header - WSI sun-rays logo with text.
   Original Wix logo is 184x111 but we scale it down to fit the header. */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

/* Main nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a,
.main-nav > ul > li > .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 1.2rem 1rem;
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--transition-base);
    white-space: nowrap;
    border: none;
    background: none;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > .nav-dropdown-trigger:hover,
.main-nav > ul > li.active > a {
    color: var(--color-white);
}

/* Dropdown arrow */
.nav-dropdown-trigger::after {
    content: '▾';
    font-size: 0.6rem;
    margin-left: 0.2rem;
}

/* Dropdown menu - uses color_22 (75,90,81), slightly lighter than header */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-green-muted);
    min-width: 220px;
    border-top: 2px solid var(--color-accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1001;
}

.nav-dropdown.open {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 0.75rem 1.2rem;
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all var(--transition-base);
}

.nav-dropdown a:hover {
    color: var(--color-white);
    background: rgba(255,255,255,0.05);
    padding-left: 1.5rem;
}

/* Donate button in nav - deep red pill shape, matching original Wix design.
   Original uses color_42 (176,11,11) with 50px border-radius and white text.
   High specificity selector needed to override .main-nav > ul > li > a */
.nav-donate {
    margin-left: 0.5rem;
}

.main-nav > ul > li.nav-donate > a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--color-red-donate);
    color: var(--color-white);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all var(--transition-base);
}

.main-nav > ul > li.nav-donate > a:hover {
    background-color: var(--color-brown-pale);
    color: var(--color-text-primary);
}

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

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-base);
}

/* === SCROLL ANIMATIONS === */
/* Fade-in on scroll: elements start invisible and translate up */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Parallax background images: sized taller to allow vertical shift */
.parallax-bg {
    position: absolute;
    inset: -40px 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

/* === HERO SECTIONS === */
/* Full-width hero with background image and text overlay */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* When parallax is active, hero-bg extends beyond bounds for shift room */
.hero .parallax-bg {
    inset: -50px 0;
}

/* Hero overlay — the original Wix site uses transparent overlays (no darkening).
   We use a very subtle overlay just for text readability over photos. */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 45, 40, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* Home page hero - left-aligned text, matching original Wix layout */
.hero-home {
    justify-content: flex-start;
    text-align: left;
}

.hero-content-left {
    max-width: 600px;
    margin-left: 5%;
    text-align: left;
}

/* Page hero - smaller for inner pages */
.hero-page {
    min-height: 300px;
}

.hero-page h1 {
    font-size: 2.5rem;
}

/* === CONTENT SECTIONS === */
/* Sections alternate backgrounds for visual rhythm */
.section {
    padding: var(--section-padding);
}

.section-narrow {
    padding: var(--section-padding-narrow);
}

/* Section background variants */
/* MAINTAINER: These map to the site's alternating color scheme */
.bg-white { background-color: var(--color-white); }
.bg-off-white { background-color: var(--color-off-white); }
.bg-green-pale { background-color: var(--color-green-pale); }
.bg-green-light { background-color: var(--color-green-light); }
.bg-green-mid {
    background-color: var(--color-green-mid);
    color: var(--color-white);
}
.bg-green-dark {
    background-color: var(--color-green-dark);
    color: var(--color-white);
}
.bg-brown-pale { background-color: var(--color-brown-pale); }
.bg-red-dark {
    background-color: var(--color-red-dark);
    color: var(--color-white);
}
.bg-brown-darkest {
    background-color: var(--color-brown-darkest);
    color: var(--color-white);
}
.bg-brown-dark {
    background-color: var(--color-brown-dark);
    color: var(--color-white);
}
.bg-dark {
    background-color: var(--color-text-primary);
    color: var(--color-white);
}

/* Section heading styles */
.section-title {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 300;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Decorative divider line */
.divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 1.5rem auto;
}

.divider-left {
    margin-left: 0;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-button-bg);
    color: var(--color-text-light);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

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

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

.btn-accent:hover {
    background-color: var(--color-brown-dark);
    color: var(--color-white);
}

/* Donate CTA button - red pill matching nav donate button */
.btn-donate {
    background-color: var(--color-red-donate);
    color: var(--color-white);
    border-radius: 50px;
}

.btn-donate:hover {
    background-color: var(--color-brown-pale);
    color: var(--color-text-primary);
}

/* === VIDEO CONTAINER === */
/* Responsive YouTube embed - 16:9 aspect ratio */
.video-container {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 3px;
}

/* === SPLIT SECTIONS (Home page two-column layout) === */
/* Used for "Meet the Students" and "Join Us" on the home page.
   Each split section is 50/50: one side is a background photo,
   the other side has text content on a solid color background. */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 550px;
}

.split-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3.5rem;
}

.split-content h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.split-content p {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.split-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.split-content ul li {
    font-size: 0.95rem;
    line-height: 1.9;
    padding-left: 1rem;
    position: relative;
}

.split-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.split-content .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* === MORE ABOUT WSI - Cards on background image === */
.about-cards-section {
    position: relative;
    padding: 5rem 2rem;
}

.about-cards-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.about-cards-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 45, 40, 0.45);
    z-index: 1;
}

.about-cards-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-wide);
    margin: 0 auto;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.about-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border-radius: 3px;
    overflow: hidden;
    transition: transform var(--transition-base);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-card-body {
    padding: 1.5rem;
}

.about-card h3 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.about-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-card a {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition-base);
}

.about-card a:hover {
    color: var(--color-white);
}

.about-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--color-accent);
    border-radius: 2px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    transition: all var(--transition-base);
}

.about-card-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.about-card-btn svg {
    flex-shrink: 0;
}

/* === STUDENT CARDS === */
/* Grid layout for student card pages */
.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: var(--container-wide);
    margin: 0 auto;
}

/* Individual student card */
.student-card {
    text-align: center;
    transition: transform var(--transition-base);
}

.student-card:hover {
    transform: translateY(-4px);
}

.student-card-photo {
    width: 100%;
    aspect-ratio: 287 / 293;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 1rem;
    background-color: var(--color-green-pale);
}

.student-card h3 {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.student-card .student-divider {
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 0.5rem auto;
}

.student-card .student-info {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.student-card .student-info p {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

/* Higher Ed graduate cards - larger photos */
.student-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.student-grid-large .student-card-photo {
    aspect-ratio: auto;
    max-height: 400px;
}

/* === TEAM MEMBER CARDS === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    max-width: var(--container-wide);
    margin: 0 auto;
}

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

.team-card-photo {
    width: 260px;
    height: 250px;
    object-fit: cover;
    border-radius: 3px;
    margin: 0 auto 1rem;
    background-color: var(--color-green-pale);
}

.team-card h3 {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.team-card .team-role {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.team-card .team-bio {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 320px;
    margin: 0 auto;
}

/* === QUOTE / TESTIMONIAL BLOCK === */
.quote-block {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem 0;
}

.quote-block .quote-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 300;
    font-style: italic;
    line-height: 2;
    margin-bottom: 1.5rem;
    color: inherit;
}

.quote-block .quote-attribution {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* === LETTER CARDS (Student Letters page) === */
.letter-card {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-green-pale);
}

.letter-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.letter-card-image {
    flex-shrink: 0;
    width: 280px;
    border-radius: 3px;
    background-color: var(--color-green-pale);
}

.letter-card-content h3 {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.letter-card-content p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
}

/* === PHOTO GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 3px;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 3px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-heading);
    z-index: 10001;
}

/* === INFO CARDS (Home page - 3 column layout) === */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.info-card {
    text-align: center;
    padding: 1.5rem;
}

.info-card h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

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

.info-card a {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition-base);
}

.info-card a:hover {
    color: var(--color-brown-dark);
}

/* === PROGRAMS GRID (What We Do page) === */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.program-item h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.program-item p {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* === NEWSLETTER SECTION === */
.newsletter-section {
    text-align: center;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form-row {
    display: flex;
    gap: 0.75rem;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-text-light);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-base);
    min-width: 0;
}

.newsletter-form input[type="text"]:focus,
.newsletter-form input[type="email"]:focus {
    border-color: var(--color-accent);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-button-bg);
    color: var(--color-text-light);
    border: none;
    border-radius: 2px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--transition-base);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: var(--color-button-hover);
}

.newsletter-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === BREVO FORM OVERRIDES === */
/* Load sib-styles.css for JS functionality, then override all visual styling */

.wsi-brevo-wrap #sib-container {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    max-width: 450px;
    margin: 0 auto;
    padding: 0 !important;
}

.wsi-brevo-wrap .sib-form-block,
.wsi-brevo-wrap .sib-input {
    padding: 0 !important;
    background: transparent !important;
}

.wsi-brevo-wrap form#sib-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.wsi-brevo-wrap .form__entry.entry_block {
    flex: 1;
    min-width: 200px;
}

.wsi-brevo-wrap .entry__field {
    width: 100%;
}

.wsi-brevo-wrap input.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-text-light);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: white;
    outline: none;
    transition: border-color var(--transition-base);
    box-sizing: border-box;
}

.wsi-brevo-wrap input.input:focus {
    border-color: var(--color-accent);
}

.wsi-brevo-wrap .sib-form-block__button {
    padding: 0.75rem 1.5rem !important;
    font-family: var(--font-heading) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
    align-self: flex-start;
}

.wsi-brevo-wrap .entry__error {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-red-dark);
    display: block;
    text-align: left;
    margin-top: 0.25rem;
}

.wsi-brevo-wrap #error-message,
.wsi-brevo-wrap #success-message {
    max-width: 450px;
    margin: 0 auto 1rem;
    padding: 0.75rem 1rem;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-align: center;
}

.wsi-brevo-wrap #error-message {
    color: var(--color-red-dark) !important;
    background-color: rgba(117, 7, 7, 0.07) !important;
    border: 1px solid var(--color-red-dark) !important;
}

.wsi-brevo-wrap #success-message {
    color: var(--color-green-dark) !important;
    background-color: rgba(52, 73, 60, 0.1) !important;
    border: 1px solid var(--color-green-sage) !important;
}

.wsi-brevo-wrap .sib-form-message-panel__text {
    font-family: var(--font-body) !important;
    color: inherit !important;
}

/* Hide Roboto font loading from Brevo — use site fonts instead */
.wsi-brevo-wrap * {
    font-family: inherit;
}

/* === DONATE PAGE === */
.donate-content {
    max-width: 800px;
    margin: 0 auto;
}

.donorbox-container {
    max-width: 500px;
    margin: 2rem auto;
}

.donorbox-container iframe {
    width: 100%;
    border: none;
}

.donate-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.donate-info-card h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* === SCHOOLS PAGE === */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.pillar-item {
    padding: 1.5rem;
    text-align: center;
}

.pillar-item h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

/* === BLOG INDEX (Card Grid) === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    max-width: var(--container-wide);
    margin: 0 auto;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 3px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    text-decoration: none;
    color: inherit;
}

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

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: var(--color-green-pale);
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.blog-card-body h3 {
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

.blog-card-readmore {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    transition: color var(--transition-base);
}

.blog-card:hover .blog-card-readmore {
    color: var(--color-brown-dark);
}

/* === BLOG PAGINATION === */
.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-green-pale);
}

.pagination-btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-green-dark);
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--color-green-sage);
    transition: background var(--transition-base), color var(--transition-base);
}

a.pagination-btn:hover {
    background: var(--color-green-dark);
    color: white;
    border-color: var(--color-green-dark);
}

.pagination-btn--disabled {
    opacity: 0.3;
    cursor: default;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
}

.pagination-page {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-green-dark);
    transition: background var(--transition-base), color var(--transition-base);
}

a.pagination-page:hover {
    background: var(--color-green-pale);
}

.pagination-page--active {
    background: var(--color-green-dark);
    color: white;
}

/* === BLOG POST (Individual Article) === */
.blog-post-header {
    background: var(--color-off-white);
    padding: 3rem 2rem;
    text-align: center;
}

.blog-post-header .container {
    max-width: 750px;
}

.blog-post-date {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.blog-post-header h1 {
    font-size: 2.2rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: none;
}

.blog-post-author {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.blog-post-featured {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-post-featured img {
    width: 100%;
    border-radius: 3px;
    margin-top: 2rem;
}

.blog-post-body {
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.blog-post-body p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.blog-post-body h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.blog-post-body h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.06em;
}

.blog-post-body img {
    width: 100%;
    border-radius: 3px;
    margin: 1.5rem 0;
}

.blog-post-body figure {
    margin: 1.5rem 0;
}

.blog-post-body figcaption {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
    font-size: 1.05rem;
    line-height: 1.9;
}

.blog-post-body li {
    margin-bottom: 0.5rem;
}

.blog-post-body blockquote {
    border-left: 3px solid var(--color-accent);
    margin: 1.5rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-style: italic;
    color: var(--color-text-secondary);
}

.blog-post-body a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: var(--color-brown-light);
    transition: color var(--transition-base);
}

.blog-post-body a:hover {
    color: var(--color-brown-dark);
}

.blog-post-nav {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.blog-post-nav a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    transition: color var(--transition-base);
}

.blog-post-nav a:hover {
    color: var(--color-brown-dark);
}

/* === FOOTER === */
.site-footer {
    background-color: var(--color-text-primary);
    color: var(--color-text-light);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    transition: color var(--transition-base);
}

.footer-back-to-top:hover {
    color: var(--color-white);
}

.footer-logo {
    margin: 2rem auto;
}

.footer-logo img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    opacity: 0.85;
    transition: opacity var(--transition-base);
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-contact h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.footer-contact p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.footer-contact a {
    color: var(--color-accent);
    transition: color var(--transition-base);
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* === RESPONSIVE DESIGN === */
/* Tablet */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .donate-info-grid {
        grid-template-columns: 1fr;
    }

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

    .split-section {
        grid-template-columns: 1fr;
    }

    .split-image {
        min-height: 300px;
    }

    .about-cards-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1.5rem;
        --section-padding-narrow: 2.5rem 1.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .hero { min-height: 350px; }
    .hero h1 { font-size: 2rem; letter-spacing: 0.15em; }
    .hero .subtitle { font-size: 1rem; }

    .hero-page { min-height: 200px; }

    .hero-content-left {
        margin-left: 1.5rem;
    }

    .site-logo img {
        height: 55px;
    }

    /* Mobile nav */
    .main-nav > ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--color-green-mid);
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 1rem 0;
    }

    .main-nav > ul.mobile-open {
        display: flex;
    }

    .main-nav > ul > li > a,
    .main-nav > ul > li > .nav-dropdown-trigger {
        padding: 0.8rem 2rem;
        justify-content: space-between;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 1rem;
    }

    .nav-donate {
        margin: 0.5rem 2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .student-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

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

    .letter-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .letter-card-image {
        width: 100%;
        max-width: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

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

    .blog-post-header h1 {
        font-size: 1.6rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .student-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

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