/*
  The Vineyard Christian CBO — Public Site Styles
  Direction: established nonprofit · vineyard harvest palette · editorial calm
  Performance: CSS-only atmosphere, no heavy filters/animations by default
*/

:root {
    /* Brand — deep ink + living vine + harvest bronze */
    --primary-color: #0B1F2A;
    --secondary-color: #1F6B52;
    --accent-color: #9B2C3E;
    --gold: #B8892D;
    --gold-light: #E2C47A;
    --vine: #2D8A68;
    --vine-soft: rgba(31, 107, 82, 0.1);

    /* Surfaces */
    --light-bg: #EEF2F0;
    --surface: #FFFFFF;
    --surface-muted: #F5F7F6;
    --white: #FFFFFF;
    --ink-soft: #243038;

    /* Text */
    --text-color: #1A2421;
    --muted-text: #5A6B66;

    /* Status */
    --success: #1F6B52;
    --error: #B91C1C;

    /* Type */
    --font-heading: "Fraunces", "Iowan Old Style", Georgia, serif;
    --font-body: "Sora", "Segoe UI", sans-serif;

    /* Elevation — single soft shadow, no glow stacks */
    --card-shadow: 0 1px 2px rgba(11, 31, 42, 0.04), 0 12px 28px rgba(11, 31, 42, 0.07);
    --hover-shadow: 0 2px 4px rgba(11, 31, 42, 0.05), 0 18px 40px rgba(11, 31, 42, 0.1);

    /* Radii — refined, not pill-heavy */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Layout */
    --container: 1180px;
    --header-h: 78px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(31, 107, 82, 0.07), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(184, 137, 45, 0.06), transparent 50%),
        var(--light-bg);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.85rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p { text-wrap: pretty; }

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
a:hover { color: var(--gold); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: clamp(18px, 4vw, 40px);
    padding-right: clamp(18px, 4vw, 40px);
}

/* ===================== HEADER ===================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(11, 31, 42, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@supports (backdrop-filter: blur(12px)) {
    header {
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(14px) saturate(1.2);
        -webkit-backdrop-filter: blur(14px) saturate(1.2);
    }
}

header.scrolled {
    background: rgba(11, 31, 42, 0.96);
    border-bottom-color: rgba(184, 137, 45, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

header.scrolled .logo a,
header.scrolled .logo-name { color: #fff; }
header.scrolled .nav-links li a { color: rgba(255, 255, 255, 0.88); }
header.scrolled .nav-links li a:hover,
header.scrolled .nav-links li a.active { color: var(--gold-light); }
header.scrolled .nav-links li a::after { background: var(--gold); }
header.scrolled .hamburger,
header.scrolled .hamburger::before,
header.scrolled .hamburger::after { background: #fff; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-h);
    gap: 1rem;
    padding: 0.55rem 0;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo picture {
    display: block;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
}

.logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    aspect-ratio: 1;
}

.logo-name {
    max-width: 230px;
    line-height: 1.25;
    font-size: 0.95rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: flex-end;
}

.nav-links li a {
    font-weight: 500;
    color: var(--ink-soft);
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    position: relative;
    font-size: 0.88rem;
    display: inline-block;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0.7rem;
    right: 0.7rem;
    height: 2px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
    border-radius: 2px;
}

.nav-links li a.active,
.nav-links li a:hover { color: var(--secondary-color); }
.nav-links li a.active::after,
.nav-links li a:hover::after { transform: scaleX(1); }

.nav-links li a.btn-secondary {
    background: var(--secondary-color);
    color: #fff !important;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.05rem;
    font-weight: 600;
    box-shadow: none;
    margin-left: 0.35rem;
}
.nav-links li a.btn-secondary::after,
.nav-links li a.btn-secondary::before { display: none !important; }
.nav-links li a.btn-secondary:hover {
    background: #185743;
    color: #fff !important;
    transform: none;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    transition: transform 0.25s ease;
}
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.mobile-nav-toggle.active .hamburger { background: transparent; }
.mobile-nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--gold);
}
.mobile-nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--gold);
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.45rem;
    min-height: 48px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: visible;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.25;
    white-space: normal;
    max-width: 100%;
}

.btn::before { display: none; }

a.btn-primary,
.btn-primary {
    background: var(--primary-color);
    color: #fff;
}
a.btn-primary:hover,
.btn-primary:hover {
    background: #163545;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--card-shadow);
}

a.btn-secondary,
.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}
a.btn-secondary:hover,
.btn-secondary:hover {
    background: #185743;
    color: #fff;
    transform: translateY(-1px);
}

a.btn-gold,
.btn-gold {
    background: var(--gold);
    color: var(--primary-color);
    font-weight: 700;
}
a.btn-gold:hover,
.btn-gold:hover {
    background: #c99736;
    color: var(--primary-color);
    transform: translateY(-1px);
}

a.btn-ghost,
.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}
a.btn-ghost:hover,
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}

.btn-block { width: 100%; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
}

.cta-row .btn { flex: 0 1 auto; }

/* ===================== HERO ===================== */
.hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(105deg, rgba(11, 31, 42, 0.88) 0%, rgba(11, 31, 42, 0.62) 48%, rgba(31, 107, 82, 0.35) 100%),
        url('../img/hero-cover.webp') center/cover no-repeat;
    color: var(--white);
    text-align: left;
    padding: clamp(72px, 10vw, 120px) 0 clamp(64px, 8vw, 100px);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(11, 31, 42, 0.55), transparent 42%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(184, 137, 45, 0.18), transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(to top, var(--light-bg), transparent);
    pointer-events: none;
    opacity: 0.35;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin-left: clamp(18px, 8vw, 12%);
    margin-right: auto;
}

.hero-brand {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 500;
    color: var(--gold-light);
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.35rem, 5.5vw, 3.75rem);
    font-weight: 600;
    margin-bottom: 1.1rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    line-height: 1.12;
}

.hero p {
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    max-width: 36rem;
    margin: 0 0 1.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
}

.hero .cta-row { justify-content: flex-start; }

.hero-center .container {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.hero-center .cta-row { justify-content: center; }
.hero-center p { margin-left: auto; margin-right: auto; }

/* ===================== PAGE HERO ===================== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 96px) 0 clamp(52px, 6vw, 76px);
    text-align: center;
    color: var(--white);
    background:
        linear-gradient(135deg, #0B1F2A 0%, #123447 55%, #1A4A3A 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 60% at 20% 40%, rgba(45, 138, 104, 0.28), transparent 65%),
        radial-gradient(ellipse 40% 50% at 85% 30%, rgba(184, 137, 45, 0.14), transparent 60%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--vine), var(--gold), var(--vine), transparent);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 38rem;
    margin: 0 auto;
    line-height: 1.75;
}

.page-hero .section-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.page-hero-overlay { display: none; }

/* ===================== SECTIONS ===================== */
.py-5 {
    padding-top: clamp(3.25rem, 6vw, 5rem);
    padding-bottom: clamp(3.25rem, 6vw, 5rem);
}

section h2,
.section-title {
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    font-weight: 600;
}

.section-lead {
    max-width: 40rem;
    margin: 0.5rem auto 0;
    color: var(--muted-text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-badge {
    display: inline-block;
    background: var(--vine-soft);
    border: 1px solid rgba(31, 107, 82, 0.22);
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
}

.section-head {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

/* ===================== IMPACT STRIP ===================== */
.impact-strip {
    background: var(--primary-color);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.impact-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 0% 50%, rgba(45, 138, 104, 0.25), transparent 55%);
    pointer-events: none;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    position: relative;
    z-index: 1;
}

.impact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 0.35rem;
    line-height: 1.1;
}

.impact-item span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.45;
}

/* ===================== CARDS ===================== */
.glass-card {
    background: var(--surface);
    border: 1px solid rgba(11, 31, 42, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--surface-muted);
}

.card-img-wrap img,
.card-img-wrap > div {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    transition: transform 0.45s var(--ease);
}

.glass-card:hover .card-img-wrap img,
.glass-card:hover .card-img-wrap > div { transform: scale(1.04); }

.card-img-wrap::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(11, 31, 42, 0.45), transparent);
    pointer-events: none;
}

.card-body { padding: 1.4rem 1.45rem 1.55rem; }

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
}

.card-body p {
    font-size: 0.94rem;
    color: var(--muted-text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}
.card-link:hover { gap: 0.65rem; color: var(--gold); }
.card-link::after { content: '→'; }

.featured-chip {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: var(--gold);
    color: var(--primary-color);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.impact-callout {
    background: var(--vine-soft);
    border-left: 3px solid var(--secondary-color);
    padding: 0.7rem 0.9rem;
    margin: 0.85rem 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.grid-cards-lg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.75rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(2rem, 4vw, 3.25rem);
    align-items: center;
}

.icon-tile {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--vine-soft);
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.benefit-card {
    padding: 1.75rem 1.4rem;
    text-align: center;
}

.benefit-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
}

.media-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--hover-shadow);
}

.media-frame img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
}

.media-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2rem 1.5rem 1.35rem;
    background: linear-gradient(transparent, rgba(11, 31, 42, 0.85));
    color: #fff;
}

/* News article body — prevent padded content from clipping on small screens */
.article-shell {
    max-width: 850px;
    margin: -4.5rem auto 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.article-shell .article-share,
.article-shell .article-body {
    padding-left: clamp(1.15rem, 4vw, 3.5rem);
    padding-right: clamp(1.15rem, 4vw, 3.5rem);
}

.article-shell .article-body {
    padding-top: clamp(1.75rem, 4vw, 3rem);
    padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

.media-caption h4 {
    color: #fff;
    margin-bottom: 0.2rem;
}

.quote-block {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.65;
    padding-left: 1.1rem;
    border-left: 3px solid var(--gold);
    margin: 1rem 0 1.25rem;
}

.quote-block footer {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--muted-text);
    font-style: normal;
    font-weight: 600;
    font-family: var(--font-body);
    background: none;
    padding: 0;
}

.impact-levels {
    display: inline-flex;
    flex-direction: column;
    gap: 0.65rem;
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(11, 31, 42, 0.08);
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 100%;
}

.impact-levels p {
    margin: 0;
    font-size: 0.94rem;
    color: var(--muted-text);
}

.impact-levels strong { color: var(--primary-color); }

/* ===================== SCRIPTURE / CTA BANDS ===================== */
.scripture-band {
    background:
        linear-gradient(rgba(11, 31, 42, 0.9), rgba(18, 52, 55, 0.92)),
        url('../img/hero-cover.webp') center/cover;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.scripture-band .container { position: relative; z-index: 1; }

.scripture-band h2 {
    color: #fff;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 500;
    font-style: italic;
    max-width: 44rem;
    margin: 0 auto 0.85rem;
    line-height: 1.45;
}

.scripture-band p {
    color: var(--gold-light);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 0;
}

.site-cta {
    background:
        linear-gradient(135deg, #0B1F2A 0%, #123447 55%, #164438 100%);
    color: #fff;
    border-top: 3px solid var(--gold);
    text-align: center;
}

.site-cta h2 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.site-cta p {
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
    font-size: 1.05rem;
}

/* ===================== NEWS ===================== */
.news-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid rgba(11, 31, 42, 0.08);
    padding: 1.15rem;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.news-card-img {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
}

.news-card h4 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.news-card small {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.78rem;
    display: block;
    margin-bottom: 0.45rem;
}

.news-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.news-tile-media {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s var(--ease);
}

.news-tile:hover .news-tile-media img { transform: scale(1.04); }

.news-date-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(11, 31, 42, 0.88);
    color: var(--gold-light);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
}

.news-tile-body {
    padding: 1.4rem 1.45rem 1.55rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ===================== PARTNERS ===================== */
.partner-card {
    background: var(--surface);
    border: 1px solid rgba(11, 31, 42, 0.08);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--card-shadow);
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.partner-card::before { display: none; }

.partner-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(100%, 240px);
    padding: 1.1rem 1.4rem;
    background: #fff;
    border: 1px solid rgba(184, 137, 45, 0.28);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.partner-logo-wrap img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* ===================== SPONSOR ===================== */
.sponsor-wrapper {
    background: var(--light-bg);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    min-height: 60vh;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1.75rem, 4vw, 2.75rem);
    background: var(--surface);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(11, 31, 42, 0.08);
    overflow: visible;
}

.sponsor-grid::before {
    content: '';
    display: block;
    grid-column: 1 / -1;
    height: 3px;
    margin: -1.5rem -1.5rem 0.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--gold));
}

@media (min-width: 720px) {
    .sponsor-grid::before {
        margin: clamp(-1.5rem, -4vw, -2.75rem) clamp(-1.5rem, -4vw, -2.75rem) 0.75rem;
    }
}

.sponsor-photo img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
}

.sponsor-why-box {
    margin-top: 1.5rem;
    background: var(--surface-muted);
    padding: 1.4rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary-color);
}

.sponsor-why-box h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.sponsor-why-box ul {
    padding-left: 1.15rem;
    line-height: 1.85;
    font-size: 0.92rem;
    color: var(--muted-text);
}

.sponsor-cta-box {
    background: var(--surface-muted);
    border: 1px solid rgba(11, 31, 42, 0.08);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    position: relative;
    overflow: visible;
}

.sponsor-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--gold));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.sponsor-cta-box h2 {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.sponsor-cta-box p {
    color: var(--muted-text);
    font-size: 0.92rem;
    margin-bottom: 1.1rem;
}

.sponsor-cta-box .btn-main-cta {
    display: flex;
    width: 100%;
    padding: 0.95rem 1rem;
    min-height: 52px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: normal;
    line-height: 1.3;
}

.sponsor-cta-box .btn-main-cta::before { display: none; }
.sponsor-cta-box .btn-main-cta:hover {
    background: #185743;
    transform: translateY(-1px);
    color: #fff;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ===================== FORMS ===================== */
.form-card {
    padding: clamp(1.4rem, 3vw, 2rem);
    overflow: visible;
}

.form-group {
    margin-bottom: 1.15rem;
}

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

.form-control {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1rem;
    min-height: 48px;
    border: 1px solid rgba(11, 31, 42, 0.14);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

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

.form-control:hover {
    border-color: rgba(31, 107, 82, 0.35);
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 107, 82, 0.16);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235A6B66' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.alert {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
}

.alert-success {
    background: #edf7f2;
    border: 1px solid #1F6B52;
    color: #14533e;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.info-panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(11, 31, 42, 0.08);
    margin-bottom: 1.35rem;
}

.info-row {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.info-row:last-child { margin-bottom: 0; }

.info-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--vine-soft);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-row strong {
    display: block;
    font-size: 0.72rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
}

.map-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(11, 31, 42, 0.08);
}

.map-frame iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
}

.action-panel {
    border-radius: var(--radius-md);
    padding: 1.6rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.action-panel-dark {
    background: linear-gradient(145deg, #0B1F2A, #164438);
    color: #fff;
}

.action-panel-dark h3 { color: var(--gold-light); }
.action-panel-dark p { color: rgba(255, 255, 255, 0.82); }

.action-panel-light {
    background: var(--surface);
    border: 1px solid rgba(11, 31, 42, 0.08);
    box-shadow: var(--card-shadow);
}

/* ===================== FOOTER ===================== */
.footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.footer-brand-lockup picture,
.footer-brand-lockup img {
    display: block;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.footer-brand-lockup h3 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.02rem;
    color: #fff;
    line-height: 1.3;
}

footer {
    background: linear-gradient(165deg, #0B1F2A 0%, #102833 60%, #143A32 100%);
    color: var(--white);
    padding: 3.25rem 0 1.5rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--vine), var(--gold), var(--vine), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: var(--gold-light);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(226, 196, 122, 0.22);
    padding-bottom: 0.65rem;
    display: block;
    margin-bottom: 1rem;
    text-align: left;
    font-family: var(--font-body);
    text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    padding: 0.15rem 0;
    font-size: 0.9rem;
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-logo-section p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.7;
}

.toggle-icon { display: none; float: right; font-size: 1.1rem; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.15rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.footer-bottom a:hover {
    color: var(--gold-light);
}

/* Legal pages (privacy, terms) */
.privacy-doc,
.legal-doc {
    max-width: 46rem;
    margin: 0 auto;
    padding: 2rem 1.75rem 2.5rem;
}

.privacy-doc:hover,
.legal-doc:hover {
    transform: none;
    box-shadow: var(--shadow-soft, 0 8px 24px rgba(11, 31, 42, 0.06));
}

.privacy-lead {
    color: var(--muted-text);
    line-height: 1.85;
    font-size: 1.02rem;
    margin-bottom: 0.75rem;
}

.privacy-meta {
    font-size: 0.88rem;
    color: var(--muted-text);
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(11, 31, 42, 0.08);
}

.privacy-doc h2,
.legal-doc h2 {
    font-size: 1.2rem;
    margin: 1.85rem 0 0.65rem;
    color: var(--primary-color, #0b1f2a);
}

.privacy-doc h3,
.legal-doc h3 {
    font-size: 1.02rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--primary-color, #0b1f2a);
}

.privacy-doc p,
.privacy-doc li,
.legal-doc p,
.legal-doc li {
    color: var(--muted-text);
    line-height: 1.85;
    font-size: 0.98rem;
}

.privacy-doc p,
.legal-doc p {
    margin-bottom: 0.85rem;
}

.privacy-doc ul,
.legal-doc ul {
    margin: 0 0 1rem 1.15rem;
    padding: 0;
}

.privacy-doc li,
.legal-doc li {
    margin-bottom: 0.4rem;
}

.privacy-doc a,
.legal-doc a {
    color: var(--secondary-color, #2d8a68);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.privacy-doc a:hover,
.legal-doc a:hover {
    color: var(--gold, #c4a35a);
}

@media (max-width: 640px) {
    .privacy-doc,
    .legal-doc {
        padding: 1.5rem 1.15rem 2rem;
    }
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.75rem;
    align-items: stretch;
}

.newsletter-form input {
    flex: 1 1 160px;
    min-width: 0;
    min-height: 46px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

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

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

.newsletter-form .btn {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0.7rem 1.1rem;
    white-space: nowrap;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: var(--primary-color);
    font-weight: 700;
}

.newsletter-form .btn:hover {
    background: var(--gold-light);
    transform: none;
}

/* ===================== BIOS / STEPS ===================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    padding: 1.35rem 1.1rem;
    text-align: center;
}

.step-num {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

.bios-hero {
    position: relative;
    background:
        linear-gradient(rgba(11, 31, 42, 0.72), rgba(18, 52, 55, 0.68)),
        url('../img/studentsbiohero.webp?v=20261030') center 38%/cover no-repeat;
    padding: clamp(5rem, 10vw, 7rem) 0 clamp(3.5rem, 7vw, 5rem);
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.bios-hero .section-badge {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(226, 196, 122, 0.55);
    color: var(--gold-light);
}

.bios-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.bios-hero p {
    font-size: 1.08rem;
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.value-card {
    padding: 2rem 1.6rem;
    border-top: 4px solid var(--secondary-color);
    height: 100%;
}

.value-card.gold-top { border-top-color: var(--gold); }
.value-card.accent-top { border-top-color: var(--accent-color); }

.value-card ul {
    list-style: none;
    color: var(--muted-text);
    font-size: 0.95rem;
    line-height: 2;
    padding: 0;
}

.leader-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 28px rgba(11, 31, 42, 0.18), 0 0 0 2px var(--gold);
    margin: 0 auto;
}

/* ===================== UTILITIES ===================== */
.text-center { text-align: center; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

.grad-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(31, 107, 82, 0.22), transparent);
    margin: 0;
    border: none;
}

blockquote {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--primary-color);
    border-left: 3px solid var(--gold);
    margin: 1.5rem 0;
    background: rgba(184, 137, 45, 0.06);
    padding: 1.1rem 1.2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.enlarged-quote {
    display: inline;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 600;
    background: rgba(31, 107, 82, 0.08);
    padding: 0 0.25rem;
}

.shadow-lg { box-shadow: var(--hover-shadow); }

/* Focus */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(31, 107, 82, 0.45);
    outline-offset: 3px;
}

/* Reveal — light, GPU-friendly */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: none;
}

.fade-in,
.fade-up { transform: translateY(18px); }
.fade-left { transform: translateX(-20px); }
.fade-right { transform: translateX(20px); }

.card-lift { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--hover-shadow); }

.pulse-glow,
.float-anim { animation: none; }

.admin-header .logo picture {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
}

.admin-header .logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
    .mobile-nav-toggle { display: block; }

    .nav-links {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(11, 31, 42, 0.97);
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 1.25rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
        padding: 2rem;
        overflow-y: auto;
    }

    .nav-active .nav-links {
        opacity: 1;
        visibility: visible;
    }

    .nav-links li a {
        font-size: 1.25rem;
        color: rgba(255, 255, 255, 0.92);
        padding: 0.55rem 1rem;
    }

    .nav-links li a::after { background: var(--gold); }
    .nav-links li a:hover,
    .nav-links li a.active { color: var(--gold-light); }

    .nav-links li a.btn-secondary {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    body.no-scroll { overflow: hidden; }
}

@media (max-width: 768px) {
    .logo picture,
    .logo img {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .logo-name { max-width: 170px; font-size: 0.82rem; }

    .hero {
        min-height: auto;
        text-align: center;
        padding: 4.5rem 0 3.5rem;
    }

    .hero .container {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hero .cta-row { justify-content: center; }
    .hero p { margin-left: auto; margin-right: auto; }

    .cta-row .btn {
        flex: 1 1 100%;
        width: 100%;
    }

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

    .footer-content { text-align: center; gap: 0.5rem; }
    .footer-col h3 { text-align: center; }
    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding-bottom: 0.5rem;
    }
    .footer-col:last-child { border-bottom: none; }
    .footer-col h3.accordion-header {
        margin-bottom: 0;
        padding: 0.9rem 0;
        cursor: pointer;
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .toggle-icon { display: inline-block; float: none; }
    .accordion-content { display: none; padding-bottom: 1rem; }
    .accordion-item.active .accordion-content { display: block; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input,
    .newsletter-form .btn { width: 100%; flex: none; }
    .footer-logo-section p { text-align: center; }
    .footer-brand-lockup { justify-content: center; }

    .sponsor-grid { padding: 1.25rem; gap: 1.5rem; }
    .sponsor-grid::before { margin: -1.25rem -1.25rem 0.5rem; }

    .news-card { flex-direction: column; }
    .news-card-img { width: 100%; height: 180px; }
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal.active,
    .fade-in,
    .fade-up,
    .fade-left,
    .fade-right {
        opacity: 1;
        transform: none;
    }
}
