/* =========================================================
   Frugal Innovations — Home Page Styles (consolidated)
   - Variables defined once
   - Components grouped together
   ========================================================= */

/* ---------- Design tokens ---------- */
:root{
    /* Brand / Wix colors */
    --bg: #FFFAF6;
    --panel: #08344E;
    --accent: #E65925;

    /* Typography */
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;

    /* Supporting colors */
    --text: #08344E;
    --muted: rgba(8, 52, 78, 0.78);
    --muted2: rgba(8, 52, 78, 0.65);
    --border: rgba(8, 52, 78, 0.14);

    /* Layout */
    --header-h: 92px;
    --max: 1200px;
    --pad: 24px;

    /* Full-bleed split sizing (Wix-ish) */
    --gutter: clamp(28px, 7vw, 140px);
    --split-pad: clamp(88px, 7.5vw, 140px);
    --split-min-h: clamp(700px, 78vh, 900px);

    /* Cards / mats */
    --card-bg: #C7D1D5;
    --mat: rgba(127, 182, 204, 0.65);
}

/* ---------- Base reset ---------- */
*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
}

button, input, textarea, select{ font: inherit; }
a{ color: inherit; text-decoration: none; }
img{ display: block; max-width: 100%; height: auto; }

p{ margin: 0; line-height: 1.65; }
strong{ font-weight: 800; }

/* ---------- Layout helpers ---------- */
.container{
    width: min(var(--max), 100% - 2*var(--pad));
    margin: 0 auto;
}

.page{ padding-top: var(--header-h); }

.sr-only{
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Shared typography helpers ---------- */
.title-xl{
    margin: 0 0 34px;
    font-size: clamp(54px, 5.3vw, 84px);
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--text);
}
.title-xl--light{ color: #fff; }

.title-lg{
    margin: 0 0 18px;
    font-size: clamp(34px, 3.1vw, 44px);
    letter-spacing: -0.01em;
    font-weight: 800;
    color: var(--text);
}
.title-lg--light{ color: #fff; }

.accent{ color: var(--accent); font-weight: 650; }

/* ---------- Buttons ---------- */
.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 750;
    border: 1px solid transparent;
}
.btn.primary{
    background: var(--panel);
    color: #fff;
}

/* =========================================================
   Header + Nav
   ========================================================= */
.site-header{
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--bg);
    z-index: 1000;
}

/* Targets your .container.header-inner element */
.site-header .header-inner{
    width: calc(100% - 2*var(--pad));
    max-width: none;
    margin: 0 auto;

    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Brand */
.brand{
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark{ height: 70px; width: auto; }

.brand-name{
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-meta--inline{
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-tagline--inline{
    margin-top: 0;
    line-height: 1.1;
}

/* Nav */
.site-nav{
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link{
    padding: 10px 4px;
    font-weight: 650;
    color: var(--muted);
}

.nav-link.active{ color: var(--accent); }
.nav-link:hover{ color: var(--text); }

/* Dropdown */
.nav-dropdown{ position: relative; }

.dropdown-panel{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    min-width: 180px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    z-index: 2000;
}

.dropdown-panel::before{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel{
    display: block;
}

.dropdown-link{
    display: block;
    padding: 10px 10px;
    border-radius: 10px;
    font-weight: 650;
    color: var(--muted);
}
.dropdown-link:hover{ background: rgba(8,52,78,0.05); }

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

.nav-dropdown--right .dropdown-panel{
    left: auto;
    right: 0;
}

/* Mobile menu button */
.nav-toggle{
    display: none;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 18px;
}

/* =========================================================
   Hero (full-bleed 50/50 like Wix)
   ========================================================= */
.hero{ padding: 0; }

.hero .hero-inner{
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.hero-left{
    position: relative;
    max-width: 720px;

    padding-top: clamp(200px, 10vh, 200px);
    padding-right: clamp(28px, 4vw, 90px);
    padding-left: clamp(140px, 7vw, 2000px);
}

.hero-title{
    margin: 0 0 16px;
    font-size: clamp(58px, 5.2vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.01em;
    font-weight: 500;
}

.hero-subtitle{
    margin: 0 0 18px;
    color: var(--muted);
    font-weight: 650;
}

.hero-right{
    background: var(--panel);
    min-height: clamp(860px, 72vh, 860px);
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-illustration{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-decor{
    position: absolute;
    pointer-events: none;
}

/* =========================================================
   Our Mission
   ========================================================= */
.mission{
    padding-top: clamp(90px, 8vw, 140px);
    padding-bottom: clamp(70px, 7vw, 120px);
}

.mission-title-row{
    width: min(var(--max), 100% - 2*var(--pad));
    margin: 0 auto 52px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
}

.mission-title{
    margin: 0;
    font-size: clamp(54px, 5.3vw, 84px);
    letter-spacing: -0.02em;
    font-weight: 800;
}

.mission-body{
    width: min(var(--max), 100% - 2*var(--pad));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 5fr 0.5fr;
    gap: clamp(40px, 7vw, 140px);
    align-items: center;
}

.mission-text{
    width: 100%;
    max-width: 1000px;
    min-width: 0;      /* <-- important inside CSS grid so it can shrink/wrap */
    justify-self: start;
    color: var(--muted);
}

.mission-body > *{ min-width: 0; }

.mission-text p{ font-size: 20px; }
.mission-text p + p{ margin-top: 22px; }

.mission-art{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* (Optional placeholders if you uncomment them in HTML) */
.mission-art-circle{
    width: 230px;
    height: 230px;
    border-radius: 999px;
    background: rgba(127, 182, 204, 0.45);
    border: 2px dashed rgba(8, 52, 78, 0.16);
}

.mission-squiggle{
    width: 90px;
    height: 34px;
    display: inline-block;
    border-radius: 999px;
    border: 3px solid rgba(8,52,78,0.85);
    border-left-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(10deg);
    opacity: 0.9;
}

/* =========================================================
   Full-bleed split system (50/50 sections)
   ========================================================= */
.split{
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: var(--split-min-h);
}

.split-side{
    padding: var(--split-pad) var(--gutter);
    display: flex;
    align-items: center;
}

.split-content{ width: min(640px, 100%); }

.split--right-dark .split-right{
    background: var(--panel);
    color: #fff;
}
.split--right-dark .split-right p{ color: rgba(255,255,255,0.86); }

.split--left-dark .split-left{
    background: var(--panel);
    color: #fff;
}
.split--left-dark .split-left p{ color: rgba(255,255,255,0.86); }

/* =========================================================
   What Drives Us
   ========================================================= */
.drives .split-side{ align-items: flex-start; }

.drives-left .drives-copy{
    display: grid;
    gap: 36px;
    max-width: 560px;
    margin-top: clamp(60px, 8vh, 160px);
}

.drives-left .drives-copy p{
    color: var(--muted);
    text-align: center;
    font-size: 24px;
    line-height: 1.7;
}

.photo-stack{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    justify-content: center;
}

.photo-frame{
    width: min(420px, 100%);
    padding: 14px;
    background: var(--mat);
    border-radius: 16px;
}

.photo-inner{
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.16);
}

.photo-inner img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   How It Works
   ========================================================= */
.how .split-left,
.how .split-right{
    align-items: center;
}

.how-left{
    text-align: center;
}
.how-left .title-xl{ margin-bottom: 0; }

.how-paragraph{
    margin-top: clamp(40px, 6vh, 110px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 430px;
    font-size: 20px;
}

.card-stack{
    display: grid;
    gap: 28px;
    width: min(620px, 100%);
}

.phase-card{
    background: var(--card-bg);
    border-radius: 12px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    color: var(--text);
}

.phase-icon{
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(8,52,78,0.9);
}

.phase-title{
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.phase-bold{
    margin: 0 0 6px;
    font-weight: 800;
    color: rgba(8,52,78,0.88);
}

.phase-card p{ color: rgba(8,52,78,0.82); }

/* =========================================================
   Feature sections (Workshops / Guest / Competition / Social)
   ========================================================= */
.feature{ min-height: var(--split-min-h); }

.split--right-dark.feature .split-left{
    padding: 0;
    align-items: stretch;
}

.split-right--photo{
    padding: 0;
    display: flex;
    align-items: stretch;
}

.feature-photo-wrap{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.feature-photo-box{
    width: 100%;
    height: 100%;
    background: rgba(8,52,78,0.06);
    overflow: hidden;
}

.feature-photo-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature .split-right,
.feature--reverse .split-left{
    align-items: flex-start;
}

.feature-panel{
    width: min(560px, 100%);
    margin-top: clamp(10px, 5vh, 85px);
}

.feature-text{
    color: rgba(255,255,255,0.86);
    max-width: 520px;
    font-size: 24px;
    line-height: 1.7;
}

.feature-panel--light .feature-text--dark{
    color: var(--muted);
    max-width: 520px;
}

/* =========================================================
   Join Us band
   ========================================================= */
.cta{
    background: var(--panel);
    padding: clamp(40px, 9vw, 70px) var(--pad);
    text-align: center;
    color: #fff;
}

.cta-inner{
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.cta-title{
    margin: 0 0 8px;
    font-size: clamp(56px, 5vw, 80px);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.cta-subtitle{
    margin: 0 0 26px;
    color: rgba(255,255,255,0.88);
    font-weight: 650;
}

.cta-desc{
    margin: 0 auto 26px;
    max-width: 720px;
    color: rgba(255,255,255,0.86);
}

.btn.cta-btn{
    background: #fff;
    color: var(--panel);
    border-radius: 999px;
    padding: 12px 34px;
    font-weight: 800;
}

/* =========================================================
   Contact section (strip)
   ========================================================= */
.contact-section{
    background: var(--panel);
    padding: clamp(50px, 9vw, 90px) 0;
}

.contact-strip{
    width: min(var(--max), 100% - 2*var(--pad));
    margin: 0 auto;
    background: var(--bg);
    border-radius: 18px;
    padding: clamp(26px, 3.2vw, 44px) clamp(22px, 3vw, 46px);

    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 22px;
}

.contact-strip-left{
    display: grid;
    gap: 10px;
}

.contact-line{
    color: rgba(8,52,78,0.82);
    font-weight: 650;
}

.contact-link:hover{
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-strip-right{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-left: 22px;
    border-left: 1px solid rgba(8,52,78,0.18);
}

.social-icon{
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(8,52,78,0.06);
    border: 1px solid rgba(8,52,78,0.14);
    transition: transform 120ms ease, background 120ms ease;
    padding: 0;
    overflow: hidden;
}

.social-icon:hover{
    transform: translateY(-1px);
    background: rgba(8,52,78,0.10);
}

.social-icon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(2);
    display: block;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{padding: 28px 0 34px; }

.footer-inner{
    display: grid;
    gap: 10px;                     /* tighter spacing between lines */
    justify-items: center;
    text-align: center;
    padding: 0 var(--pad);         /* small side padding */
}

.footer-copy{
    color: rgba(0,0,0,1);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
}

.footer-disclaimer{
    margin: 0;
    max-width: 2000px;
    color: rgba(0,0,0,1);
    font-size: 14px;               /* readable but not huge */
    line-height: 1.65;
}

/* =========================================================
   Projects page — force 50/50 full-bleed rows (override .split)
   Paste at the VERY BOTTOM of styles.css
   ========================================================= */

.projects-hero{
    padding: clamp(36px, 5vw, 70px) 0 clamp(18px, 3vw, 34px);
    text-align: center;
}
.projects-hero__inner{ max-width: 980px; }
.projects-hero__title{ margin: 0; }
.projects-hero__sub{
    margin: 10px auto 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 16px;
}

/* Force these sections to be GRID even if .split sets flex */
.projects-page section.split.proj-row{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text media";
    gap: 0 !important;
    margin: 0;
    padding: 0;
    min-height: clamp(520px, 64vh, 720px);
    align-items: stretch; /* important */
}

/* Reverse (image left, text right) */
.projects-page section.split.proj-row.proj-row--reverse{
    grid-template-areas: "media text";
}

/* Make the halves fill the row height */
.projects-page section.split.proj-row > .split-side{
    padding: 0 !important;
    margin: 0 !important;
    min-height: inherit;
    align-self: stretch;
}

/* Text half */
.projects-page .proj-text{
    grid-area: text;
    background: var(--bg);
    display: flex;
    align-items: center;
}

.projects-page .proj-copy{
    width: min(640px, 100%);
    margin: 0 auto;
    text-align: center;
}

.projects-page .proj-title{
    margin: 0;
    line-height: 1.12;
    font-size: 70px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.projects-page .proj-paragraph{
    margin: 18px auto 0;
    max-width: 460px;
    text-align: left;
    color: var(--muted);
    line-height: 1.85;
    font-size: 18px;
}

/* Image half — full bleed ALWAYS */
.projects-page .proj-media{
    grid-area: media;
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: inherit;      /* key */
    height: 100%;             /* key */
    align-self: stretch;       /* key */
}

/* Absolutely fill the cell */
.projects-page .proj-media > img{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}


@media (max-width: 900px){
    .projects-page section.split.proj-row{
        grid-template-columns: 1fr;
        grid-template-areas:
      "media"
      "text";
        min-height: auto;
    }

    /* Override the desktop reverse layout on mobile */
    .projects-page section.split.proj-row.proj-row--reverse{
        grid-template-areas:
      "media"
      "text";
    }

    .projects-page .proj-media{
        height: clamp(280px, 42vh, 420px);
        min-height: 0;
    }
}


/* =========================================================
   Timeline section (embedded)
   ========================================================= */

.projects-timeline{
    background: var(--bg);
    padding: clamp(44px, 6vw, 90px) 0 clamp(44px, 6vw, 90px);
    text-align: center;
}

.projects-timeline__inner{
    max-width: 1100px;
}

.projects-timeline__title{
    margin: 0 0 clamp(18px, 3vw, 34px);
    color: var(--text);
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: clamp(44px, 6vw, 78px);
    line-height: 1.05;
}

/* frame similar to screenshot: thin border + subtle shadow */
.timeline-frame{
    width: min(980px, 100%);
    margin: 0 auto;
    background: #fff;
    border: 3px solid var(--text);
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
    overflow: hidden;
}

/* responsive image */
.timeline-img{
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================================
   Make-A-Thon Pages
   ========================================================= */

.makeathon-page{
    background: var(--bg);
}

.makeathon-section{
    padding: clamp(64px, 8vw, 108px) 0;
}

.makeathon-section--tint{
    background: rgba(8, 52, 78, 0.04);
}

.makeathon-section--dark{
    background: var(--panel);
    color: #fff;
}

.makeathon-eyebrow{
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.makeathon-eyebrow--light{
    color: rgba(255,255,255,0.76);
}

.makeathon-copy{
    max-width: 860px;
}

.makeathon-copy p{
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.makeathon-copy--light p{
    color: rgba(255,255,255,0.86);
}

.makeathon-btn-light,
.makeathon-btn-accent,
.makeathon-btn-outline{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 750;
    transition: transform 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.makeathon-btn-light:hover,
.makeathon-btn-accent:hover,
.makeathon-btn-outline:hover{
    transform: translateY(-1px);
}

.makeathon-btn-light{
    background: #fff;
    color: var(--panel);
    border: 1px solid #fff;
}

.makeathon-btn-accent{
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.makeathon-btn-outline{
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.82);
}

/* ---------- Landing hero ---------- */

.makeathon-hero{
    background:
            var(--panel);
            /* linear-gradient(rgba(8, 52, 78, 0.88), rgba(8, 52, 78, 0.88)),
            url("/assets/make-a-thon/makeathon-main.jpg") center / cover no-repeat; */
    color: #fff;
    text-align: center;
    padding: clamp(84px, 11vw, 146px) 0;
}

.makeathon-hero__inner{
    max-width: 900px;
}

.makeathon-hero__title{
    margin: 0;
    font-size: clamp(42px, 6vw, 84px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.makeathon-hero__subtitle{
    margin: 16px auto 0;
    max-width: 760px;
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
}

.makeathon-hero__actions{
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.makeathon-facts{
    background: var(--accent);
    color: #fff;
}

.makeathon-facts__row{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 18px 0;
    font-weight: 800;
    text-align: center;
}

.makeathon-facts__row span:not(:last-child)::after{
    content: "|";
    margin-left: 18px;
    color: rgba(255,255,255,0.6);
}

/* ---------- Overview ---------- */

.makeathon-overview{
    padding: clamp(64px, 8vw, 108px) 0;
}

.makeathon-overview__grid{
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.makeathon-overview__copy p{
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.makeathon-overview__copy p + p{
    margin-top: 18px;
}

.makeathon-overview__media img{
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
    object-fit: cover;
}

.makeathon-callout{
    margin-top: 24px;
    padding: 18px 20px;
    background: rgba(8, 52, 78, 0.05);
    border-left: 4px solid var(--accent);
    border-radius: 0 14px 14px 0;
    color: var(--text);
    font-weight: 750;
    line-height: 1.6;
}

/* ---------- Shared card ---------- */

.makeathon-card{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 22px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.makeathon-card h3{
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.makeathon-card p{
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
}

/* ---------- How it works ---------- */

.makeathon-how{
    background: rgba(8, 52, 78, 0.04);
    padding: clamp(64px, 8vw, 108px) 0;
}

.makeathon-how__grid{
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* ---------- Audience ---------- */

.makeathon-audience{
    padding: clamp(64px, 8vw, 108px) 0;
}

.makeathon-audience__grid{
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.makeathon-audience__card{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.makeathon-audience__card h3{
    margin: 0 0 12px;
    font-size: 30px;
    color: var(--text);
}

.makeathon-audience__card ul{
    margin: 0 0 18px 20px;
    padding: 0;
    color: var(--muted);
    line-height: 1.85;
    font-size: 17px;
}

.makeathon-audience__card a{
    color: var(--accent);
    font-weight: 800;
}

/* ---------- Timeline + inline split ---------- */

.makeathon-timeline{
    background: var(--panel);
    color: #fff;
    padding: clamp(64px, 8vw, 108px) 0;
}

.makeathon-timeline__grid,
.makeathon-process,
.makeathon-inline{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.makeathon-timeline__copy p,
.makeathon-inline__copy p{
    color: rgba(255,255,255,0.86);
    line-height: 1.75;
    font-size: 18px;
}

.makeathon-inline__copy p{
    color: var(--muted);
}

.makeathon-timeline__media img,
.makeathon-process__media img,
.makeathon-inline__media img{
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.makeathon-mission{
    padding: clamp(64px, 8vw, 108px) 0;
}

.makeathon-mission__copy{
    max-width: 900px;
}

.makeathon-mission__copy p{
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.makeathon-mission__copy p + p{
    margin-top: 18px;
}

/* ---------- CTA ---------- */

.makeathon-cta{
    background: var(--accent);
    color: #fff;
    padding: clamp(54px, 7vw, 84px) 0;
    text-align: center;
}

.makeathon-cta__title{
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.makeathon-cta__actions{
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------- Subhero ---------- */

.makeathon-subhero{
    background: var(--panel);
    color: #fff;
    text-align: center;
    padding: clamp(82px, 11vw, 136px) 0;
}

.makeathon-subhero--sponsor{
    /* background: linear-gradient(180deg, var(--panel) 0%, #0d4668 100%); */
    background: var(--panel);
}

.makeathon-subhero__inner{
    max-width: 860px;
}

.makeathon-subhero__title{
    margin: 0;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.makeathon-subhero__subtitle{
    margin: 16px auto 0;
    max-width: 760px;
    font-size: 20px;
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
}

.makeathon-subhero .makeathon-btn-accent{
    margin-top: 26px;
}

/* ---------- Student page ---------- */

.makeathon-join__grid{
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.makeathon-process__list{
    margin: 24px 0 0;
    padding-left: 22px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.9;
}

.makeathon-feature-list{
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 34px;
}

.makeathon-feature-item{
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.16);
}

.makeathon-feature-item h3{
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.makeathon-feature-item p{
    margin: 0;
    color: rgba(255,255,255,0.84);
    line-height: 1.72;
    font-size: 16px;
}

/* ---------- Sponsor page ---------- */

.makeathon-metrics{
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.makeathon-metrics__card{
    background: var(--accent);
    color: #fff;
    border-radius: 18px;
    padding: 26px 22px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.makeathon-metrics__card h3{
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.makeathon-metrics__card p{
    margin: 0;
    line-height: 1.72;
    font-size: 16px;
}

.makeathon-sponsor-list{
    margin-top: 32px;
    display: grid;
    gap: 18px;
}

.makeathon-sponsor-list__item{
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 22px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.makeathon-sponsor-list__item h3{
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.makeathon-sponsor-list__item p{
    margin: 0;
    color: rgba(255,255,255,0.84);
    line-height: 1.74;
    font-size: 16px;
}

.makeathon-involvement{
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.makeathon-partners{
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
}

.makeathon-partner{
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 28px 24px;
    border-radius: 18px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.12);
}

.makeathon-partner__logo{
    width: 100%;
    max-width: 220px;
    max-height: 150px;
    object-fit: contain;
}

.makeathon-partner__name{
    margin: 0;
    color: rgba(255,255,255,0.84);
    font-size: 24px;
    font-weight: 750;
    line-height: 1.4;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1100px){
    .makeathon-how__grid,
    .makeathon-join__grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .makeathon-metrics{
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px){
    .makeathon-overview__grid,
    .makeathon-timeline__grid,
    .makeathon-process,
    .makeathon-inline,
    .makeathon-feature-list,
    .makeathon-involvement,
    .makeathon-audience__grid{
        grid-template-columns: 1fr;
    }

    .makeathon-sponsor-list__item{
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 700px){
    .makeathon-how__grid,
    .makeathon-join__grid,
    .makeathon-involvement,
    .makeathon-partners{
        grid-template-columns: 1fr;
    }

    .makeathon-facts__row{
        gap: 10px;
    }

    .makeathon-facts__row span:not(:last-child)::after{
        display: none;
    }

    .makeathon-hero__actions,
    .makeathon-cta__actions{
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   Collaborations Page
   ========================================================= */

.collabs-hero{
    /* blue-left + blue-right with orange glow in the middle */
    background:
            radial-gradient(ellipse at 50% 18%, rgba(230, 89, 37, 0.85) 0%, rgba(230, 89, 37, 0) 62%),
            linear-gradient(90deg, rgba(134, 187, 216, 1) 0%, rgba(134, 187, 216, 1) 42%, rgba(9, 71, 167, 1) 100%);
    padding: clamp(44px, 6vw, 78px) 0 clamp(34px, 4.5vw, 64px);
}

.collabs-hero__inner{
    display: flex;
    justify-content: center;
}

.collabs-hero__card{
    width: 100%;
    max-width: 860px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: clamp(26px, 4vw, 44px);
    text-align: center;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.collabs-hero__title{
    margin: 0 0 12px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(32px, 4vw, 46px);
}

.collabs-hero__lead{
    margin: 0 auto;
    max-width: 560px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.collabs-partners{
    background: var(--bg);
    padding: clamp(22px, 3vw, 34px) 0 clamp(44px, 6vw, 78px);
}

.partners{
    max-width: 980px;
    margin: 0 auto;
    border-top: 2px solid rgba(8, 52, 78, 0.25);
}

.partner{
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    grid-template-areas: "media body";
    gap: clamp(18px, 4vw, 48px);
    align-items: center;
    padding: clamp(26px, 3.5vw, 44px) 0;
    border-bottom: 2px solid rgba(8, 52, 78, 0.25);
}

.partner__media{ grid-area: media; }
.partner__body{ grid-area: body; }

.partner--reverse{
    grid-template-columns: 1fr minmax(220px, 360px);
    grid-template-areas: "body media";
}

.partner__img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 240px;
}

.partner__title{
    margin: 0 0 10px;
    color: var(--text);
    font-weight: 800;
    font-size: 30px;
}

.partner__text{
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 18px;
    max-width: 620px;
}

@media (max-width: 820px){
    .partner,
    .partner--reverse{
        grid-template-columns: 1fr;
        grid-template-areas:
      "media"
      "body";
        gap: 18px;
    }

    .partner__img{
        max-height: 220px;
    }
}

/* =========================================================
   Events Page — Dark vertical card + ONE light image frame
   ========================================================= */

.events-hero{
    background: var(--panel);
    color: #fff;
    padding: clamp(42px, 6vw, 78px) 0;
    text-align: center;
}
.events-hero__inner{ max-width: 920px; }
.events-hero__title{
    margin: 0;
    font-size: 56px;
    letter-spacing: 0.2px;
}
.events-hero__sub{
    margin: 14px auto 0;
    max-width: 760px;
    line-height: 1.65;
    opacity: 0.92;
    font-size: 18px;
}
.events-hero__cta{
    display: inline-block;
    margin-top: 18px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* =========================================================
   Events Page — fixed-height card + overlay details
   ========================================================= */

.events-section{
    padding: clamp(28px, 4vw, 54px) 0 clamp(36px, 5vw, 70px);
}
.events-section__title{
    margin: 0 0 18px;
    text-align: center;
    font-size: 44px;
    color: var(--text);
}

/* =========================================================
    Google Calendar embed
   ========================================================= */
.events-calendar{
    margin: 18px 0 34px;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;          /* rounds the iframe corners */
    background: #fff;
}

.events-calendar__iframe{
    display: block;
    width: 100%;
    height: 650px;             /* desktop height */
    border: 0;
}

@media (max-width: 700px){
    .events-calendar__iframe{
        height: 520px;           /* mobile height */
    }
}

/* Grid */
.events-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 28px);
    align-items: start;
}
@media (max-width: 980px){
    .events-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
    .events-grid{ grid-template-columns: 1fr; }
}

/* Card (dark orange rectangle behind everything) */
.event-card{
    --pad: 22px;
    --pad-bottom: 20px;

    position: relative;
    background: rgba(127, 182, 204, 0.5);
    border-radius: 18px;
    padding: var(--pad) var(--pad) var(--pad-bottom);
    box-shadow: 0 14px 34px rgba(0,0,0,0.10);
}

/* Front defines the height */
.event-front{
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
}

/* ONE image frame */
.event-image{
    width: min(100%, 320px);
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: rgba(127, 182, 204, 0.5);
    padding: 14px;
    box-sizing: border-box;
    display: grid;
    place-items: center;
}

/* The actual crop box (clips the image) */
.event-image__viewport{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;      /* <-- THIS is the real crop */
    background: #fff;      /* optional “mat” behind images */
}

/* Image fills the crop box */
.event-image__viewport img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;     /* <-- forces fill + crop */
    object-position: 50% 20%;
}

/* Text */
.event-title{
    margin: 6px 0 0;
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
}
.event-meta{
    margin: 0;
    color: rgba(8, 52, 78, 0.78);
    font-size: 18px;
    line-height: 1.35;
    max-width: 92%;
}

/* Button */
.event-btn{
    margin-top: 8px;
    border: 0;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
}

/* DETAILS overlay: covers the same space as the front */
.event-details{
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    top: var(--pad);
    bottom: var(--pad-bottom);

    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* if details text is longer than the card height, it scrolls */
    overflow: auto;
}

/* open state: show details overlay, hide front visually (but keep its size) */
.event-card.is-open .event-details{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.event-card.is-open .event-front{
    visibility: hidden;
    pointer-events: none;
}

/* Close button inside the card */
.event-close{
    position: absolute;
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(8,52,78,0.16);
    background: rgba(255,255,255,0.40);
    color: rgba(8,52,78,0.78);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

/* Details paragraph */
.event-desc{
    margin: 10px auto 0;
    max-width: 44ch;
    color: rgba(8,52,78,0.86);
    line-height: 1.6;
    font-size: 22px;
}


/* =========================================================
   Competitions Page
   ========================================================= */

.competitions-page .competitions-hero{
    background: #9bbbd0;
    padding: clamp(100px, 10vw, 160px) 0 clamp(50px, 8vw, 120px);
}

.competitions-page .competitions-hero__inner{
    display: flex;
    justify-content: center;
}

.competitions-page .competitions-hero__card{
    width: min(980px, 100%);
    background: var(--bg);
    box-shadow: 0 18px 46px rgba(0,0,0,0.14);
    padding: clamp(44px, 5vw, 90px) clamp(28px, 4vw, 80px);
    text-align: center;
    border-radius: 14px;
}

.competitions-page .competitions-hero__card h1{
    margin: 0 0 14px;
    font-size: clamp(32px, 3.6vw, 54px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

.competitions-page .competitions-hero__card p{
    margin: 0 auto;
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.65;
    font-size: 18px;
}

/* -------------------------
   POTENTIAL COMPETITIONS
   ------------------------- */
.competitions-page .competitions-list{
    background: var(--bg);
    padding: clamp(54px, 6vw, 86px) 0 clamp(70px, 7vw, 110px);
}

.competitions-page .competitions-list__inner{
    text-align: center;
}

.competitions-page .competitions-list h2{
    margin: 0;
    font-size: clamp(50px, 3vw, 46px);
    font-weight: 500;
    color: var(--text);
}

.competitions-page .competitions-list__text{
    margin: 14px auto 0;
    max-width: 70ch;
    color: var(--muted);
    line-height: 1.75;
    font-size: 18px;
}

.competitions-page .competitions-list__text p{
    margin: 8px 0 0;
}

/* Grid of competition cards */
.competitions-page .competitions-grid{
    margin-top: clamp(34px, 4vw, 54px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 5vw, 78px);
    align-items: start;
}

/* Card */
.competitions-page .competition-card{
    display: grid;
    justify-items: center;
    text-align: center;
}

.competitions-page .competition-card__logo{
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 14px;
}

.competitions-page .competition-card__title{
    margin: 20px 0 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
}

.competitions-page .competition-card__desc{
    margin: 20px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 34ch;
}

.competitions-page .competition-card__link{
    margin-top: 16px;
    font-size: 12px;
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.competitions-page .competition-card__link:hover{
    color: var(--accent);
}

/* -------------------------
   Responsive
   ------------------------- */
@media (max-width: 900px){
    .competitions-page .competitions-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px;
    }

    .competitions-page .competition-card__desc{
        max-width: 46ch;
    }
}

@media (max-width: 640px){
    .competitions-page .competitions-grid{
        grid-template-columns: 1fr;
    }

    .competitions-page .competitions-hero__card{
        padding: 30px 22px;
    }

    .competitions-page .competition-card__desc{
        max-width: 52ch;
    }
}

/* =========================================================
   Blog — Index + Post pages
   Paste at the VERY BOTTOM of styles.css
   ========================================================= */

/* --- Blog hero (matches Events vibe) --- */
.blog-hero{
    background: var(--panel);
    color: #fff;
    padding: clamp(42px, 6vw, 78px) 0;
    text-align: center;
}
.blog-hero__inner{ max-width: 920px; }
.blog-hero__title{
    margin: 0 0 10px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
}
.blog-hero__sub{
    margin: 0 auto;
    max-width: 820px;
    opacity: 0.92;
    line-height: 1.6;
}

/* Blog hero CTA button */
.blog-hero__cta{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;

    padding: 12px 18px;
    border-radius: 999px;

    background: var(--accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0,0,0,0.18);

    transition: transform 160ms ease, filter 160ms ease;
}

.blog-hero__cta:hover{
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.blog-hero__cta:active{
    transform: translateY(0px);
}

.blog-hero__cta:focus-visible{
    outline: 3px solid rgba(255,255,255,0.7);
    outline-offset: 3px;
}

/* --- Index layout --- */
.blog-index{ padding: clamp(26px, 4vw, 46px) 0 clamp(60px, 6vw, 86px); }
.blog-index__top{
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.blog-index__heading{ margin: 0; }

/* Responsive grid */
.blog-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
@media (max-width: 980px){
    .blog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
    .blog-grid{ grid-template-columns: 1fr; }
}

/* --- Cards --- */
.blog-card{
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;

    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 26px rgba(0,0,0,0.10);
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.blog-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

/* media stays same size whether or not there's a cover */
.blog-card__media{
    position: relative;
    aspect-ratio: 16 / 9;
    background: rgba(8, 52, 78, 0.06);
}
.blog-card__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* placeholder look when no image */
.blog-card__media--placeholder{
    background: linear-gradient(135deg, rgba(8,52,78,0.10), rgba(230,89,37,0.10));
}
.blog-card__placeholder{
    height: 100%;
    display: grid;
    place-items: center;
}
.blog-card__placeholderMark{
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(8, 52, 78, 0.55);
    border: 1px solid rgba(8, 52, 78, 0.18);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
}

/* body */
.blog-card__body{
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 190px; /* helps align grid visually */
}
.blog-card__meta{
    font-size: 13px;
    color: var(--muted2);
    font-weight: 650;
}
.blog-card__title{
    margin: 0;
    line-height: 1.15;
    font-size: 18px;

    /* clamp title too */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.blog-card__excerpt{
    margin: 0;
    color: var(--muted);
    line-height: 1.6;

    /* REQUIRED: automatic truncation + ellipsis */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}
.blog-card__cta{
    margin-top: auto;
    font-weight: 750;
    color: var(--accent);
}

/* empty state */
.blog-empty__card{
    margin-top: 12px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 18px 18px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

/* --- Post page --- */
.blog-back{
    display: inline-block;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 650;
    margin-bottom: 10px;
}
.blog-back:hover{ text-decoration: underline; }

.blog-post-hero{
    position: relative;
    background: var(--panel);
    color: #fff;
    padding: clamp(42px, 6vw, 78px) 0;
    background-size: cover;
    background-position: center;
}
.blog-post-hero--hasCover{ background-color: #062a3f; }
.blog-post-hero__overlay{
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,52,78,0.55), rgba(8,52,78,0.92));
}
.blog-post-hero__inner{
    position: relative;
    z-index: 1;
    max-width: 920px;
}
.blog-post-title{
    margin: 0 0 10px;
    font-size: clamp(30px, 3.8vw, 52px);
    line-height: 1.06;
}
.blog-post-meta{
    margin: 0;
    opacity: 0.92;
    font-weight: 650;
}

.blog-post{
    padding: clamp(22px, 4vw, 38px) 0 clamp(70px, 7vw, 100px);
}
.blog-post-body{
    max-width: 860px;
    margin: 0 auto;
    padding: 0 var(--pad);
}
.blog-post-body p{
    line-height: 1.75;
    color: var(--text);
    text-indent: 1.5em;
}

.blog-post-body h2, .blog-post-body h3{
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}
.blog-post-body img{
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--border);
}
.blog-post-body blockquote{
    margin: 18px 0;
    padding: 12px 14px;
    border-left: 4px solid var(--accent);
    background: rgba(8,52,78,0.06);
    border-radius: 12px;
}
.blog-post-body pre{
    overflow: auto;
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(8,52,78,0.06);
    border: 1px solid var(--border);
}
.blog-post-body code{
    background: rgba(8,52,78,0.06);
    padding: 0.12em 0.32em;
    border-radius: 8px;
}

/* Blog references (Wix-like) */
.blog-post-body .blog-refs{
    margin-top: 14px;
    padding-left: 1.35em;     /* space for numbers */
    font-size: 12.5px;        /* smaller text */
    line-height: 1.65;
    color: var(--muted2);
}

.blog-post-body .blog-refs li{
    margin: 10px 0;
    padding-left: 0.35em;

    /* hanging indent so wrapped lines align under text */
    text-indent: -0.35em;
}

.blog-post-body .blog-refs a{
    color: inherit;
    text-decoration: underline;
    overflow-wrap: anywhere;  /* wraps long URLs nicely */
    word-break: break-word;
}

/* =========================================================
   About Page
   ========================================================= */

.aboutpage{
    padding-top: var(--header-h);
    background: var(--bg);
    color: var(--text);
}

.aboutpage-container{
    width: min(var(--max), calc(100% - 2 * var(--pad)));
    margin: 0 auto;
}

.aboutpage-section{
    padding: clamp(72px, 8vw, 120px) 0;
}

.aboutpage-section--light{
    background: var(--bg);
}

.aboutpage-section--tint{
    background: rgba(8, 52, 78, 0.04);
}

.aboutpage-section--dark{
    background: var(--panel);
    color: #fff;
}

.aboutpage-section--accent{
    background: var(--accent);
    color: #fff;
}

.aboutpage-section__heading{
    margin-bottom: 38px;
}

.aboutpage-section__heading--center{
    max-width: 780px;
    margin: 0 auto 38px;
    text-align: center;
}

.aboutpage-section__label{
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.aboutpage-section__label--light{
    color: rgba(255,255,255,0.78);
}

.aboutpage-section__title{
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--text);
}

.aboutpage-section__title--light{
    color: #fff;
}

.aboutpage-section__intro{
    margin: 14px auto 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

/* Hero */

.aboutpage-hero{
    background: var(--panel);
    color: #fff;
    text-align: center;
    padding: clamp(88px, 11vw, 148px) 0;
}

.aboutpage-hero__eyebrow{
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.76);
}

.aboutpage-hero__title{
    max-width: 1000px;
    margin: 0 auto;
    font-size: clamp(42px, 6vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.aboutpage-hero__text{
    max-width: 760px;
    margin: 18px auto 0;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
    color: rgba(255,255,255,0.88);
}

.aboutpage-hero__actions{
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.aboutpage-hero__button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 750;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.aboutpage-hero__button:hover{
    transform: translateY(-1px);
}

.aboutpage-hero__button--accent{
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.aboutpage-hero__button--outline{
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.82);
}

/* Who We Are */

.aboutpage-who{
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.aboutpage-who__text p{
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.aboutpage-who__text p + p{
    margin-top: 18px;
}

.aboutpage-who__stats{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.aboutpage-mini-card{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(8, 52, 78, 0.06);
}

.aboutpage-mini-card__title{
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.aboutpage-mini-card__text{
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

/* Cards */

.aboutpage-cards{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.aboutpage-card{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(8, 52, 78, 0.06);
    display: flex;
    flex-direction: column;
}

.aboutpage-card__title{
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text);
}

.aboutpage-card__text{
    color: var(--muted);
    line-height: 1.75;
}

.aboutpage-card__link{
    margin-top: 20px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Approach */

.aboutpage-approach{
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.aboutpage-approach__text{
    color: rgba(255,255,255,0.86);
    font-size: 18px;
    line-height: 1.8;
}

.aboutpage-approach__text + .aboutpage-approach__text{
    margin-top: 18px;
}

.aboutpage-approach__points{
    display: grid;
    gap: 20px;
}

.aboutpage-principle{
    border-bottom: 1px solid rgba(255,255,255,0.16);
    padding-bottom: 18px;
}

.aboutpage-principle:last-child{
    border-bottom: 0;
    padding-bottom: 0;
}

.aboutpage-principle__title{
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.aboutpage-principle__text{
    margin: 0;
    color: rgba(255,255,255,0.84);
    line-height: 1.75;
}

/* Team CTA */

.aboutpage-team{
    background: rgba(8, 52, 78, 0.04);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 44px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.aboutpage-team__text{
    margin: 14px 0 0;
    max-width: 700px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 18px;
}

.aboutpage-team__button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--panel);
    color: #fff;
    border: 1px solid var(--panel);
    font-weight: 750;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.aboutpage-team__button:hover{
    transform: translateY(-1px);
}

/* Timeline */

.aboutpage-timeline{
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 26px;
}

.aboutpage-timeline__item{
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 18px;
    align-items: start;
}

.aboutpage-timeline__marker{
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 8px;
    box-shadow: 0 0 0 6px rgba(230, 89, 37, 0.14);
}

.aboutpage-timeline__content{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(8, 52, 78, 0.05);
}

.aboutpage-timeline__eyebrow{
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.aboutpage-timeline__title{
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.aboutpage-timeline__text{
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

/* Founders */

.aboutpage-founders{
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.aboutpage-founders__imagewrap{
    position: relative;
}

.aboutpage-founders__image{
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 8 / 7;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 36px rgba(8, 52, 78, 0.08);
    background: rgba(8, 52, 78, 0.06);
}

.aboutpage-founders__content{
    max-width: 680px;
}

.aboutpage-founders__text{
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
    margin: 16px 0 0;
}

.aboutpage-founders__meta{
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(8, 52, 78, 0.04);
}

.aboutpage-founders__meta-label{
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.aboutpage-founders__meta-text{
    margin: 0;
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
}

@media (max-width: 960px){
    .aboutpage-founders{
        grid-template-columns: 1fr;
    }

    .aboutpage-founders__content{
        max-width: none;
    }
}

/* Get involved */

.aboutpage-involved{
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.aboutpage-involved__text{
    margin: 16px auto 0;
    max-width: 720px;
    color: rgba(255,255,255,0.90);
    font-size: 18px;
    line-height: 1.75;
}

.aboutpage-involved__actions{
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.aboutpage-involved__button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 750;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.aboutpage-involved__button:hover{
    transform: translateY(-1px);
}

.aboutpage-involved__button--light{
    background: #fff;
    color: var(--panel);
    border-color: #fff;
}

.aboutpage-involved__button--outline{
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.82);
}

/* Responsive */

@media (max-width: 1100px){
    .aboutpage-cards{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px){
    .aboutpage-who,
    .aboutpage-approach,
    .aboutpage-team{
        grid-template-columns: 1fr;
    }

    .aboutpage-team__action{
        justify-self: start;
    }
}

@media (max-width: 760px){
    .aboutpage-who__stats,
    .aboutpage-cards{
        grid-template-columns: 1fr;
    }

    .aboutpage-hero__actions,
    .aboutpage-involved__actions{
        flex-direction: column;
        align-items: stretch;
    }

    .aboutpage-timeline__item{
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .aboutpage-timeline__marker{
        margin-top: 0;
    }
}


/* =========================================================
   About Officers / Team (Wix About Us replication)
   ========================================================= */

.about-officers{
    /* .page already clears the fixed header */
    padding: clamp(32px, 4vw, 70px) 0 clamp(70px, 7vw, 110px);
}

/* "Meet The Team" heading + underline */
.about-officers__section-title{
    text-align: center;
    margin: 0 0 clamp(34px, 4.5vw, 56px);
    font-size: clamp(64px, 3.2vw, 44px);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--text);
    position: relative;
}

.about-officers__section-title::after{
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: var(--text);
}

/* Two-column grid like Wix */
.team-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(54px, 7vw, 120px);
    row-gap: clamp(54px, 6vw, 100px);
    justify-items: center;
    align-items: start;
}

.team-card{
    width: min(440px, 100%);
    text-align: left;
}

.team-card__img{
    width: 100%;
    aspect-ratio: 1 / 1;   /* square crops */
    object-fit: cover;
    display: block;
    background: rgba(8,52,78,0.06);
}

.team-card__name{
    margin: 14px 0 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--text);
}

.team-card__role{
    margin: 8px 0 4px;
    font-size: 22px;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.team-card__meta{
    margin: 6px 0 0;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.team-card__pronouns-year{
    white-space: nowrap;
}

.team-card__details{
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.team-card__detail{
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45;
}

.team-card__label{
    font-weight: 800;
    color: rgba(8, 52, 78, 0.88);
}

/* If you use <article class="team-card team-card--center"> for an odd last card */
.team-card--center{
    grid-column: 1 / -1;
    justify-self: center;
}

/* ===== Responsive behavior ===== */

/* Keep 2 columns for a while, but tighten spacing */
@media (max-width: 980px){
    .team-grid{
        column-gap: 40px;
        row-gap: 56px;
    }
}

/* Stack to 1 column on smaller screens */
@media (max-width: 860px){
    .team-grid{
        grid-template-columns: 1fr;
    }

    .team-card--center{
        grid-column: auto;
    }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
    .hero .hero-inner{
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-left{
        padding-top: 24px;
        padding-left: var(--pad);
        padding-right: var(--pad);
        max-width: none;
        padding-bottom: 8px;
    }

    .hero-right{ min-height: 420px; }

    .mission-body{ grid-template-columns: 1fr; }
    .split{ grid-template-columns: 1fr; }
    .split-side{ padding: 56px var(--pad); }
}

@media (max-width: 1360px){
    .nav-toggle{ display: inline-flex; }

    .site-nav{
        position: absolute;
        top: var(--header-h);
        left: var(--pad);
        right: var(--pad);

        display: none;
        flex-direction: column;

        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 10px;
    }

    .site-nav.open{ display: flex; }

    .dropdown-panel{
        position: static;
        display: none;
        margin-top: 0;
        min-width: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        z-index: auto;
    }

    .dropdown-panel::before{ content: none; }
    .nav-dropdown.open .dropdown-panel{ display: block; }
}

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

    .contact-strip-right{
        justify-content: flex-start;
        padding-left: 0;
        border-left: 0;
    }
}
