/* C.O.D.E Design Tokens */
:root {
    /* Brand palette */
    --background: #ffffff;
    --surface-alt: #f7f5f2;
    --surface-raised: #ffffff;
    --surface-translucent: rgba(255, 255, 255, 0.9);
    --surface-soft: #f8f9fa;
    --ink: #2a1c18;
    --accent: #1f7a80;
    --accent-dark: #17616a;
    --accent-soft: #e6f2f2;
    --button: #17616a;
    --link: #1f7a80;
    --on-accent: #ffffff;
    --border-strong: #d5cec5;
    --header-background: rgba(255, 255, 255, 0.92);
    --mobile-overlay: rgba(42, 28, 24, 0.4);
    --panel-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 249, 249, 0.9) 100%);
    color-scheme: light;

    /* Semantic names used throughout the stylesheet */
    --primary-color: #1f7a80;
    --secondary-color: #17616a;
    --accent-color: #b45309;
    --text-primary: #2a1c18;
    --text-secondary: #4b4340;
    --text-muted: #766d68;
    --background-secondary: #f3f0ec;
    --border-color: #e6e1da;
    --shadow: 0 1px 2px rgba(42, 28, 24, 0.05), 0 2px 6px rgba(42, 28, 24, 0.06);
    --shadow-lg: 0 12px 32px rgba(42, 28, 24, 0.10);
    --radius: 8px;
    --radius-lg: 14px;
    --header-height: 68px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: var(--font-sans);
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --background: #0d1113;
        --surface-alt: #141b1d;
        --surface-raised: #172023;
        --surface-translucent: rgba(23, 32, 35, 0.9);
        --surface-soft: #11181a;
        --ink: #050708;
        --accent: #61c3ca;
        --accent-dark: #8bd9de;
        --accent-soft: rgba(97, 195, 202, 0.16);
        --button: #3fb6bd;
        --link: #7fd4da;
        --on-accent: #071113;
        --border-strong: #39474c;
        --header-background: rgba(13, 17, 19, 0.9);
        --mobile-overlay: rgba(0, 0, 0, 0.58);
        --panel-gradient: linear-gradient(135deg, rgba(23, 32, 35, 0.95) 0%, rgba(17, 24, 26, 0.95) 100%);
        --primary-color: #61c3ca;
        --secondary-color: #8bd9de;
        --accent-color: #f2a65a;
        --text-primary: #f4f0ea;
        --text-secondary: #d1cac2;
        --text-muted: #a69b93;
        --background-secondary: #192225;
        --border-color: #263236;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.24);
        --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.38);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --background: #0d1113;
    --surface-alt: #141b1d;
    --surface-raised: #172023;
    --surface-translucent: rgba(23, 32, 35, 0.9);
    --surface-soft: #11181a;
    --ink: #050708;
    --accent: #61c3ca;
    --accent-dark: #8bd9de;
    --accent-soft: rgba(97, 195, 202, 0.16);
    --button: #3fb6bd;
    --link: #7fd4da;
    --on-accent: #071113;
    --border-strong: #39474c;
    --header-background: rgba(13, 17, 19, 0.9);
    --mobile-overlay: rgba(0, 0, 0, 0.58);
    --panel-gradient: linear-gradient(135deg, rgba(23, 32, 35, 0.95) 0%, rgba(17, 24, 26, 0.95) 100%);
    --primary-color: #61c3ca;
    --secondary-color: #8bd9de;
    --accent-color: #f2a65a;
    --text-primary: #f4f0ea;
    --text-secondary: #d1cac2;
    --text-muted: #a69b93;
    --background-secondary: #192225;
    --border-color: #263236;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.38);
    color-scheme: dark;
}

:root[data-theme="light"] {
    color-scheme: light;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--link);
}

img {
    max-width: 100%;
}

::selection {
    background: var(--accent-soft);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Header */
header {
    background: var(--header-background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.logo-main {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.logo-location {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    padding-left: 0.6rem;
    border-left: 1px solid var(--border-strong);
}

/* Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--background-secondary);
}

.nav-link.donate {
    color: var(--accent);
    border: 1px solid var(--border-strong);
    margin-left: 0.5rem;
}

.nav-link.donate:hover {
    color: var(--accent-dark);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.nav-cta {
    margin-left: 0.5rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
    background: var(--background-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-theme-toggle {
    width: 100%;
    height: auto;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 0.75rem;
    margin-top: 0.5rem;
    font: inherit;
    font-weight: 600;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.4rem 0.7rem;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.mobile-menu-btn:hover {
    background: var(--background-secondary);
}

.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mobile-overlay);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-content {
    background: var(--background);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav .nav-link {
    display: block;
    padding: 0.85rem 0.75rem;
    font-size: 1rem;
}

.mobile-nav .nav-link.donate {
    margin: 0.5rem 0 0;
    text-align: center;
}

.mobile-nav .btn {
    justify-content: center;
    margin: 0.75rem 0 0;
}

@media (max-width: 960px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

.container-sponsorship {
    max-width: 960px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.text-link {
    font-weight: 600;
    text-decoration: none;
    color: var(--link);
}

.text-link:hover {
    text-decoration: underline;
}

/* Cards */
.card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: var(--accent);
    color: var(--on-accent);
    text-decoration: none;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    border: 1px solid var(--accent);
    cursor: pointer;
}

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

.btn-secondary {
    background: var(--background);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--background-secondary);
    border-color: var(--text-muted);
}

.btn-lg {
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
}

.btn-on-dark {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-on-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* ================================================
   HOMEPAGE
   ================================================ */

/* Hero */
.home-hero {
    padding: 4.5rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
}

.hero-title em {
    font-style: normal;
    color: var(--accent);
}

.hero-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 34rem;
    margin: 0 0 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin: 1.5rem 0 0;
}

.hero-sponsor {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.btn-sponsor {
    background: var(--ink);
    border-color: var(--ink);
    border-radius: 999px;
    padding: 0.85rem 2rem;
    box-shadow: var(--shadow-lg);
}

.btn-sponsor i {
    color: #7fc4c9;
}

.btn-sponsor:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-sponsor:hover i {
    color: white;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Line the card up with the offset backdrop behind the video (shifted 1.25rem right) */
@media (min-width: 961px) {
    .hero-hackathon {
        margin-left: 1.25rem;
        margin-right: -1.25rem;
    }
}

/* Condensed next-hackathon card under the hero video */
.hero-hackathon {
    --hot: #f5b14b;
    padding: 1.1rem 1.25rem 1.25rem;
    background: linear-gradient(160deg, #2a1c18 0%, #3b2418 100%);
    color: #ffffff;
    border: 1px solid rgba(245, 177, 75, 0.35);
    border-radius: 16px;
    box-shadow: 0 0 0 4px rgba(245, 177, 75, 0.08), var(--shadow-lg);
}

.hero-hackathon-kicker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hot);
}

/* Pulsing "live" dot in front of the kicker */
.hero-hackathon-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hot);
    box-shadow: 0 0 0 0 rgba(245, 177, 75, 0.6);
    animation: hotPulse 1.6s ease-out infinite;
}

@keyframes hotPulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 177, 75, 0.6); }
    100% { box-shadow: 0 0 0 10px rgba(245, 177, 75, 0); }
}

.hero-hackathon .countdown-grid {
    gap: 0.5rem;
}

.hero-hackathon .countdown-unit {
    padding: 0.55rem 0.25rem;
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.35);
}

.hero-hackathon .countdown-value {
    font-size: 1.75rem;
    font-weight: 400;
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.45);
}

.hero-hackathon .countdown-label {
    margin-top: 0.2rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.72);
}

/* Terminal-style face for the countdown card only */
.hero-hackathon {
    --font-terminal: 'Share Tech Mono', var(--font-mono);
}

.hero-hackathon,
.hero-hackathon .btn,
.hero-hackathon-kicker,
.hero-hackathon .countdown-value,
.hero-hackathon .countdown-label {
    font-family: var(--font-terminal);
}

/* Title as a red LED dot-matrix display */
.hero-hackathon-title {
    margin: 0 0 0.6rem;
    font-family: 'Doto', var(--font-terminal);
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: uppercase;
    color: #ff3b30;
    text-shadow: 0 0 6px rgba(255, 59, 48, 0.75), 0 0 18px rgba(255, 59, 48, 0.35);
}

.hero-hackathon-facts {
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.hero-hackathon-facts div {
    display: flex;
    gap: 0.5rem;
}

.hero-hackathon-facts dt {
    color: rgba(255, 255, 255, 0.6);
}

.hero-hackathon-facts dd {
    margin: 0;
    color: #ffffff;
}

.hero-hackathon .countdown-status {
    margin: -0.4rem 0 0.9rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
}

.hero-hackathon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-hackathon .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Primary action in the same hot colour as the numbers */
.hero-hackathon .btn-hot {
    background: var(--hot);
    border-color: var(--hot);
    color: #2a1c18;
}

.hero-hackathon .btn-hot:hover {
    background: #ffc76a;
    border-color: #ffc76a;
}

@media (prefers-reduced-motion: reduce) {
    .hero-hackathon-kicker::before {
        animation: none;
    }
}

.hero-media {
    position: relative;
    margin: 0;
}

.hero-media::before {
    content: '';
    position: absolute;
    inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    background: var(--accent-soft);
    border-radius: 20px;
}

.hero-media img,
.hero-media video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Hackathon countdown */
.hackathon-countdown {
    padding: 2.5rem 0;
    background: var(--ink);
    color: #ffffff;
}

.hackathon-countdown .eyebrow {
    color: #7fc4c9;
}

.hackathon-countdown-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
    gap: 2.25rem;
    align-items: center;
}

.hackathon-countdown h2 {
    color: #ffffff;
    font-size: 2rem;
    margin: 0 0 0.75rem;
}

.hackathon-countdown p {
    color: rgba(255, 255, 255, 0.78);
}

.hackathon-countdown-copy > p {
    max-width: 42rem;
    margin: 0 0 1.25rem;
}

.hackathon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.hackathon-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    line-height: 1.2;
}

.hackathon-meta i {
    color: #7fc4c9;
}

.countdown-panel {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
}

.countdown-kicker {
    margin: 0 0 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.countdown-unit {
    min-width: 0;
    padding: 0.9rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
}

.countdown-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.countdown-label {
    display: block;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.countdown-status {
    margin: 1rem 0 0;
    font-size: 0.95rem;
}

/* Stats band */
.stats-band {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-alt);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 2rem 0;
    list-style: none;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Sections */
.home-section {
    padding: 5rem 0;
}

.home-section-alt {
    background: var(--surface-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-head {
    max-width: 42rem;
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 0.75rem;
}

.section-head p {
    font-size: 1.05rem;
    margin: 0;
}

.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.section-head-row .section-head {
    margin-bottom: 0;
}

.section-split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
}

.section-split .section-head {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.section-split .section-head .btn {
    margin-top: 1.75rem;
}

.events-feed-empty {
    padding: 2rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    margin: 0;
}

/* Photo mosaic */
.photo-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.photo-mosaic img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.photo-mosaic img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

/* Get involved cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.feature-card p {
    font-size: 0.975rem;
    margin: 0 0 1.25rem;
}

.feature-card .text-link {
    margin-top: auto;
}

/* Blog cards */
.post-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.post-card-image {
    display: block;
}

.post-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

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

.post-card-meta {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.post-card h3 {
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 0 0 0.6rem;
}

.post-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--accent);
}

.post-card-excerpt {
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
}

.post-card .text-link {
    margin-top: auto;
    font-size: 0.925rem;
}

/* Media page groups */
.media-group {
    margin-top: 3rem;
}

.media-group .eyebrow {
    margin-bottom: 1.25rem;
}

/* Sponsors */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}

.logo-grid-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 2.5rem 0 1rem;
}

.cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding: 2rem 2.25rem;
    background: var(--accent-soft);
    border-radius: var(--radius-lg);
}

.cta-banner h3 {
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
}

.cta-banner p {
    margin: 0;
    max-width: 38rem;
}

/* Join band */
.join-band {
    background: var(--ink);
    padding: 5rem 0;
    text-align: center;
}

.join-band .eyebrow {
    color: #7fc4c9;
}

.join-band h2 {
    color: white;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 1rem;
}

.join-band p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.join-band .hero-actions {
    justify-content: center;
}

/* Scroll-triggered fade-in */
.fade-in-section {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Homepage responsive */
@media (max-width: 960px) {
    .hero-grid,
    .section-split,
    .hackathon-countdown-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section-split .section-head {
        position: static;
    }

    .hero-media::before {
        inset: 1rem -0.5rem -1rem 1rem;
    }

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

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

@media (max-width: 768px) {
    .home-hero {
        padding: 3rem 0;
    }

    .home-section,
    .join-band {
        padding: 3.5rem 0;
    }

    .cta-banner {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

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

/* Article Info Sidebar */
.article-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--background-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.topic-value {
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 600;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--background-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    font-family: var(--font-display);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: var(--accent);
    color: var(--on-accent);
    transform: translateY(-1px);
}

.toc {
    font-size: 0.9rem;
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc ul ul {
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.toc li {
    margin: 0.25rem 0;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.toc a:hover {
    color: var(--accent);
    background: var(--background-secondary);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--background-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--accent);
    color: var(--on-accent);
    transform: translateY(-1px);
}

.twitter-share:hover {
    background: #1DA1F2;
}

.linkedin-share:hover {
    background: #0077B5;
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--background-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.tag:hover {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
}


/* Events Gallery */
.events-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.events-gallery-tile {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--background-secondary);
}

.events-gallery-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.events-gallery-tile:hover img {
    transform: scale(1.04);
}

.events-gallery-tile figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1rem 0.9rem;
    background: linear-gradient(transparent, rgba(42, 28, 24, 0.85));
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.events-gallery-empty {
    grid-column: 1 / -1;
    color: var(--text-muted);
}

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

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

@media (prefers-reduced-motion: reduce) {
    .events-gallery-tile img {
        transition: none;
    }
}

/* Blog Specific Styles */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.blog-content {
    min-width: 0;
}

/* Full-width Blog Layout */
.blog-layout-full {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

.blog-content-full {
    min-width: 0;
}

/* Blog Header Box */
.blog-header-box {
    background: var(--surface-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.blog-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    text-align: center;
}

.blog-main-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Single blog post layout */
.blog-layout .blog-post {
    background: var(--surface-translucent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Blog Post Header Styling */
.blog-post-header {
    position: relative;
    margin-bottom: 2rem;
}

.blog-hero-image {
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
}

.blog-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.blog-hero-image:hover img {
    transform: scale(1.02);
}

.blog-header-content {
    padding: 2rem;
    background: var(--panel-gradient);
    border-bottom: 1px solid var(--border-color);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.featured-badge:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.topic-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--on-accent);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: capitalize;
    margin-bottom: 1rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.topic-badge:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.blog-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface-soft);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.meta-icon {
    font-size: 1rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.blog-tag {
    background: var(--surface-raised);
    color: var(--primary-color);
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.blog-tag:hover {
    background: var(--primary-color);
    color: var(--on-accent);
    transform: translateY(-2px);
}

/* Blog Content Body */
.blog-content-body {
    padding: 2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.blog-content-body h2,
.blog-content-body h3,
.blog-content-body h4 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-content-body h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.blog-content-body h3 {
    font-size: 1.5rem;
}

.blog-content-body p {
    margin-bottom: 1.5rem;
}

.blog-content-body ul,
.blog-content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

.blog-content-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.blog-content-body code {
    background: var(--background-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.blog-content-body pre {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content-body pre code {
    background: none;
    padding: 0;
}

/* Responsive header styling */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-description {
        font-size: 1.125rem;
    }
    
    .blog-header-content {
        padding: 1.5rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .blog-content-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* Related Posts Styling */
.related-posts {
    margin-top: 3rem;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.related-posts-grid {
    display: grid;
    gap: 1.5rem;
}

.related-post-card {
    background: var(--surface-translucent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.related-post-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-post-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
}

.related-post-link:hover {
    color: var(--primary-color);
}

.related-post-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.related-post-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.related-post-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.blog-sidebar {
    background: var(--surface-translucent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
    backdrop-filter: blur(10px);
}

.blog-post-sidebar {
    background: var(--surface-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: fit-content;
    box-shadow: var(--shadow);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-post {
    background: var(--surface-translucent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    height: fit-content;
}

.blog-post:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-post-sidebar .sidebar-widget h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Article Meta */
.article-details-widget {
    border: 1px solid var(--border-strong);
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
}

.article-meta-box {
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(31, 122, 128, 0.08);
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-item:first-child {
    padding-top: 0;
}

.meta-icon {
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.topic-badge-sidebar {
    background: var(--accent);
    color: var(--on-accent);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-family: var(--font-display);
    display: inline-block;
    box-shadow: 0 2px 4px rgba(31, 122, 128, 0.3);
}

.featured-badge-sidebar {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-family: var(--font-display);
    display: inline-block;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    background: var(--surface-raised);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(31, 122, 128, 0.1);
}

.article-tag:hover {
    background: var(--accent);
    color: var(--on-accent);
    transform: translateY(-1px);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    background: var(--surface-raised);
    transition: all 0.3s ease;
    font-family: var(--font-display);
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.share-btn:hover {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.share-btn span {
    font-size: 1.1rem;
}

/* Table of Contents */
.table-of-contents {
    max-height: 300px;
    overflow-y: auto;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    border-left: 3px solid transparent;
}

.toc-link:hover {
    background: var(--surface-soft);
    color: var(--text-primary);
    border-left-color: var(--accent);
}

.toc-link.active {
    background: var(--accent);
    color: var(--on-accent);
    border-left-color: var(--accent);
}

.toc-h2 {
    padding-left: 0.75rem;
}

.toc-h3 {
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.toc-h4 {
    padding-left: 2.25rem;
    font-size: 0.8rem;
}

.toc-h5, .toc-h6 {
    padding-left: 3rem;
    font-size: 0.75rem;
}

.recent-post {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-post:last-child {
    border-bottom: none;
}

.recent-post-title {
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.recent-post-title:hover {
    color: var(--primary-color);
}

.recent-post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Compact Tag Display */
.compact-tag-display {
    background: var(--surface-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.tag-cloud-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.compact-tag-item {
    display: inline-flex;
    align-items: center;
    background: var(--background);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.compact-tag-item:hover {
    background: var(--accent);
    color: var(--on-accent);
    transform: translateY(-2px);
}

.compact-tag-item.active {
    background: var(--accent);
    color: var(--on-accent);
}

.tag-hidden {
    display: none;
}

.tag-expand-controls {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.tag-expand-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.tag-expand-button:hover {
    background: var(--accent);
    color: var(--on-accent);
    transform: translateY(-2px);
}

.tag-expand-button .expand-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.tag-expand-button.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Legacy tag cloud styles */
.tag-cloud-item {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag-cloud-item:hover,
.tag-cloud-item.active {
    background: var(--primary-color);
    color: var(--on-accent);
    border-color: var(--primary-color);
}

/* Community Links */
.community-link {
    display: block;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.community-link:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.community-link strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.community-link span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Search Input Styling */
#search-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 122, 128, 0.1);
}

.search-result-card {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    background: var(--surface-raised);
    box-shadow: var(--shadow);
}

.search-result-heading {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.search-result-title {
    color: var(--link);
    text-decoration: none;
}

.search-result-title:hover {
    text-decoration: underline;
}

.search-result-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--on-accent);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.search-result-badge-featured {
    background: var(--accent-color);
    color: #ffffff;
}

.search-result-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.search-result-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.search-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-result-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--background-secondary);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-primary);
}

/* Links Page Styling */
.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.link-item {
    background: var(--surface-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.link-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(31, 122, 128, 0.15);
    border-color: var(--primary-color);
}

.link-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.link-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .links-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .link-item {
        padding: 1.5rem;
    }
}

/* Onboarding Page Styling */
.onboarding-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.onboarding-section {
    background: var(--surface-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.onboarding-section-title {
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.onboarding-step {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.onboarding-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.step-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.step-title {
    font-weight: 700;
    color: var(--text-primary);
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-desc a {
    color: var(--link);
    text-decoration: none;
}

.step-desc a:hover {
    text-decoration: underline;
}

.step-checkbox input:checked + .step-content .step-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.step-checkbox input:checked + .step-content .step-desc {
    color: var(--text-muted);
}

/* Resources Page Styling */
.resources-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-item {
    background: var(--surface-raised);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.resource-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(31, 122, 128, 0.15);
    border-color: var(--primary-color);
}

.resource-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.resource-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.resources-extra {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.resources-extra h2 {
    font-family: var(--font-display);
    color: var(--accent);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .resources-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .resource-item {
        padding: 1.5rem;
    }

    .onboarding-section {
        padding: 1.5rem;
    }

    .onboarding-section-title {
        font-size: 1.25rem;
    }
}

/* No results styling */
#no-results {
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}


/* Footer */
footer {
    background: var(--surface-alt);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.925rem;
    max-width: 22rem;
    margin: 0 0 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--background);
}

.footer-section h4 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.925rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom p {
    color: inherit;
    margin: 0;
}

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout-full {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem 1rem;
    }

    .blog-sidebar {
        position: static;
        order: -1;
    }
}

/* General Mobile Styles */
@media (max-width: 768px) {
    .blog-layout,
    .blog-layout-full {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .blog-posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-post {
        padding: 1.25rem;
    }

    .blog-sidebar {
        position: static;
        order: -1;
    }

    h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Stack filters vertically on mobile */
    .blog-content-full > div {
        margin-bottom: 1rem !important;
    }

    /* Adjust tag cloud for mobile */
    .tag-cloud {
        gap: 0.5rem;
    }

    .tag-cloud-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .blog-post {
        padding: 1rem;
    }

    .header-container {
        padding: 0 1.25rem;
    }

    .logo-location {
        display: none;
    }
}

/* ================================================
   Sponsor/Collaborator Cards
   ================================================ */

.sponsor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--surface-translucent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-height: 140px;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(31, 122, 128, 0.15);
}

.sponsor-card img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.sponsor-card span {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .sponsor-card {
        padding: 1rem;
        min-height: 120px;
    }

    .sponsor-card img {
        max-width: 100px;
        max-height: 50px;
    }

    .sponsor-card span {
        font-size: 0.8rem;
    }
}

/* =============================================================================
   TEAM PAGE STYLES
   ============================================================================= */

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member-card {
    background: var(--surface-translucent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(42, 28, 24, 0.08);
}

.team-member-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(31, 122, 128, 0.15);
}

.team-member-image-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.25rem;
}

.team-member-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    background: var(--background-secondary);
}

.team-member-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--background-secondary);
    border: 3px solid var(--accent);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.team-member-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.team-member-social {
    display: inline;
    margin-left: 0.5rem;
}

.team-member-role {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--on-accent);
    background: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-member-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.team-member-social a {
    color: var(--accent);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    padding: 0.25rem;
}

.team-member-social a:hover {
    color: var(--button);
    transform: translateY(-2px);
}

/* Team page responsive */
@media (max-width: 768px) {
    .team-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .team-member-card {
        padding: 1.5rem;
    }

    .team-member-image-wrapper,
    .team-member-image,
    .team-member-placeholder {
        width: 120px;
        height: 120px;
    }

    .team-member-placeholder {
        font-size: 2.5rem;
    }
}

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

/* ============================
   SPONSORSHIP TABS
   ============================ */

.sponsorship-tabs {
    margin-top: 20px;
}

.sponsorship-tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.sponsorship-tab-btn {
    font-family: var(--font-display);
    font-size: 1.1rem;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: -2px;
    transition: background-color 0.2s, border-color 0.2s;
}

.sponsorship-tab-btn:hover {
    background-color: var(--accent-soft);
}

.sponsorship-tab-btn.active {
    background-color: var(--surface-raised);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: bold;
}

.sponsorship-tab-panel {
    display: none;
    background-color: var(--surface-raised);
    padding: 20px;
    border: 2px solid var(--accent);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.sponsorship-tab-panel.active {
    display: block;
}

.sponsorship-tab-copy {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0d8d0;
}

.sponsorship-tab-copy h3 {
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 1.4rem;
    margin: 0 0 12px 0;
}

.sponsorship-tab-copy p {
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0 0 14px 0;
}

.sponsorship-tab-copy ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
}

.sponsorship-tab-copy li {
    padding: 6px 0 6px 20px;
    position: relative;
    line-height: 1.6;
    color: var(--text-primary);
}

.sponsorship-tab-copy li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

@media (max-width: 480px) {
    .sponsorship-tab-btn {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
}


/* ================================================
   SIDEBAR COMMUNITY LINKS
   ================================================ */

.community-link {
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.community-link:hover {
    border-left-color: var(--accent);
}

.community-link-icon {
    color: var(--accent);
    margin-right: 0.5rem;
    font-size: 1rem;
    width: 1.2rem;
    display: inline-block;
    text-align: center;
}

/* ================================================
   SPONSORSHIP PAGE VISUAL ENHANCEMENTS
   ================================================ */

/* --- Hero Banner --- */
.sponsor-hero-banner {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border-strong);
    box-shadow: 0 8px 24px rgba(31, 122, 128, 0.2);
}

.sponsor-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sponsor-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(42, 28, 24, 0.85));
    display: flex;
    align-items: flex-end;
}

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

.sponsor-hero-tagline {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

/* --- Stats Strip --- */
.sponsor-stats-strip {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--surface-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.sponsor-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    min-width: 120px;
}

.sponsor-stat-icon {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(31, 122, 128, 0.1);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.sponsor-stat:hover .sponsor-stat-icon {
    background: var(--accent);
    color: var(--on-accent);
    transform: scale(1.1);
}

.sponsor-stat-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: center;
}

.sponsor-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* --- Sponsor Options (two side-by-side choices) --- */
.sponsor-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-top: 2rem;
}

.sponsor-option {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.sponsor-option:hover {
    transform: none;
}

.sponsor-option h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.sponsor-option img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.sponsor-option ul {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.sponsor-option li {
    margin-bottom: 0.4rem;
}

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

.sponsor-option-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0.75rem 0 0;
}

.sponsor-give-form {
    display: block;
    border: 0;
}

/* --- Get Started Steps --- */
.start-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2rem 0 3rem;
}

.start-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.start-step:hover {
    transform: none;
}

.start-step-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.start-step h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.start-step p {
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
}

.start-step .btn {
    margin-top: auto;
}

@media (max-width: 768px) {
    .sponsor-options,
    .start-steps {
        grid-template-columns: 1fr;
    }
}

/* --- Photo Grid --- */
.sponsor-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

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

.sponsor-photo-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 4 / 3;
    transition: all 0.3s ease;
}

.sponsor-photo-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(31, 122, 128, 0.2);
}

.sponsor-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.sponsor-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(transparent, rgba(42, 28, 24, 0.8));
    color: white;
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- Tab Icons --- */
.sponsorship-tab-btn .tab-icon {
    font-family: var(--font-mono);
    font-weight: 700;
    margin-right: 0.25rem;
}

/* --- Benefit Cards Grid --- */
.sponsor-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.sponsor-benefit-card {
    background: var(--accent-soft);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.sponsor-benefit-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 122, 128, 0.12);
}

.sponsor-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    margin-bottom: 0.75rem;
}

.sponsor-benefit-card strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.sponsor-benefit-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* --- Community Banner --- */
.sponsor-community-banner {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 2.5rem;
    border: 1px solid var(--border-strong);
}

.sponsor-community-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sponsor-community-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 122, 128, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.sponsor-community-overlay span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

/* --- Sponsorship Page Responsive --- */
@media (max-width: 768px) {
    .sponsor-hero-banner {
        height: 200px;
    }

    .sponsor-hero-tagline {
        font-size: 1.3rem;
    }

    .sponsor-stats-strip {
        gap: 1rem;
        padding: 1rem;
    }

    .sponsor-stat {
        min-width: 100px;
        padding: 0.5rem 0.75rem;
    }

    .sponsor-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .sponsor-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

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

    .sponsor-photo-grid-3 .sponsor-photo-item:last-child {
        grid-column: 1 / -1;
    }

    .sponsor-benefits-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-community-banner {
        height: 150px;
    }

    .sponsor-community-overlay span {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .sponsor-hero-banner {
        height: 160px;
    }

    .sponsor-hero-tagline {
        font-size: 1.1rem;
    }

    .sponsor-stats-strip {
        gap: 0.5rem;
    }

    .sponsor-stat {
        min-width: 80px;
    }

    .sponsor-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .sponsor-stat-label {
        font-size: 0.75rem;
    }

    .sponsor-photo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ================================================
   MOBILE REFINEMENTS
   ================================================ */

/* The sticky header must not cover the section an in-page link jumps to */
section[id] {
    scroll-margin-top: var(--header-height);
}

/* Wrapper for plain content pages (Get Started, Sponsor, About, Links) */
.page-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.page-container > .blog-post:hover {
    transform: none;
}

.mobile-nav-content {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.mobile-menu-btn {
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 768px) {
    .page-container {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }

    /* Drop the outer card on content pages so the text gets the full width */
    .page-container > .blog-post {
        background: none;
        border: 0;
        box-shadow: none;
        padding: 0;
        backdrop-filter: none;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        display: inline-block;
        padding: 0.4rem 0;
    }
}

@media (max-width: 480px) {
    .events-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .events-gallery-tile figcaption {
        font-size: 0.8rem;
        padding: 1.75rem 0.6rem 0.5rem;
    }

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

    .sponsor-card {
        min-height: 104px;
        padding: 0.75rem;
    }

    .blog-title {
        font-size: 1.6rem;
    }

    .blog-header-content {
        padding: 1.25rem;
    }
}
