/* Styles for Impact Chapters Page */

:root {
    --navy-dark: #071324;
    --navy-deep: #0b192c;
    --navy-card: #112644;
    --navy-light: #1e3e62;
    --blue-accent: #21b3e5;
    --blue-primary: #1c7ed6;
    --gold: #f5b123;
    --gold-warm: #eba728;
    --orange-accent: #e85d25;
    --text-light: #ffffff;
    --text-muted: #9aa8be;
    --text-dark: #151c28;
    --bg-cream: #faf7f2;
    --bg-cream-card: #ffffff;
    --border-dark: rgba(255, 255, 255, 0.12);
    --border-light: #e5e9f0;
    --gutter: clamp(16px, 4vw, 56px);
    --sans: Helvetica, 'Helvetica Neue', Arial, sans-serif;
    --display: 'DM Serif Display', Georgia, serif;
}

/* Header sits on the same 80px edge as the other pages and the Figma frame */
@media (min-width: 768px) {
    .site-header {
        left: max(var(--gutter), calc((100% - 1279px) / 2));
        width: calc(100% - 2 * max(var(--gutter), calc((100% - 1279px) / 2)));
    }
}

/* Navbar Logo style matching chapters page */
.site-header a:first-child img {
    border-radius: 0 0 12px 12px;
    height: 120px;
    width: 110px;
    object-fit: cover;
    object-position: bottom;
}

/* ---------------- HERO SECTION ---------------- */
.impact-hero {
    position: relative;
    min-height: 560px;
    padding: 130px max(var(--gutter), calc((100% - 1279px) / 2)) 70px;
    background: linear-gradient(180deg, rgba(8, 20, 38, 0.85) 0%, rgba(11, 25, 44, 0.96) 100%),
                url('../assets/chapters/impact-hero.jpg') center 65% / cover no-repeat;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-back-link {
    margin-bottom: 24px;
}

.hero-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-back-link a:hover {
    color: var(--gold);
    transform: translateX(-3px);
}

.hero-category-tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-warm);
    margin-bottom: 18px;
}

.impact-hero h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(32px, 4.2vw, 54px);
    line-height: 1.22;
    max-width: 980px;
    margin: 0 0 32px;
    color: #ffffff;
}

.impact-hero h1 .highlight-gold {
    color: var(--gold-warm);
}

.impact-hero h1:has(+ .hero-subline:not([hidden])) {
    margin-bottom: 16px;
}

.hero-subline {
    font-family: var(--sans);
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.5;
    max-width: 760px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.85);
}

/* Hero Carousel Controls */
.hero-carousel-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.hero-ctrl-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.hero-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: scale(1.05);
}

.hero-ctrl-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.hero-dashes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dash {
    height: 4px;
    width: 24px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dash.active {
    width: 42px;
    background: var(--gold-warm);
}

.hero-category-tag[hidden],
.hero-subline[hidden],
.hero-presidents-grid[hidden],
.hero-ctrl-icon {
    display: none;
}

/* ---------------- HERO SLIDE 2: CHAPTER PRESIDENTS (Figma 2307:6701) ---------------- */
.impact-hero.is-presidents {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 810px;
    /* Figma centres a 1279px content block (80.5px sides at 1440px) */
    padding: 66px max(var(--gutter), calc((100% - 1279px) / 2));
    background: #ffffff;
    color: var(--text-dark);
    border-bottom: 0;
    overflow: hidden;
}

/* Curved line background — image 666 at 60% opacity */
.impact-hero.is-presidents::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/chapters/presidents/presidents-bg-curves.png') left top / 100% 187.3% no-repeat;
    opacity: 0.6;
    pointer-events: none;
}

.impact-hero.is-presidents > * {
    position: relative;
}

.impact-hero.is-presidents .hero-back-link {
    display: none;
}

.impact-hero.is-presidents .hero-copy {
    flex: 0 1 665px;
    /* offsets the controls so the title block stays centred against the grid */
    padding-top: 69px;
}

.impact-hero.is-presidents h1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: none;
    margin: 0;
    font-size: clamp(34px, 3.82vw, 55px);
    line-height: 1.1;
    color: #151c28;
}

.impact-hero.is-presidents .hero-year {
    margin-top: 16px;
    font-size: inherit;
    line-height: 1;
    color: #3f6ba8;
}

.impact-hero.is-presidents .hero-carousel-controls {
    gap: 15px;
    margin-top: 31px;
}

.impact-hero.is-presidents .hero-ctrl-btn {
    border-color: #5a657f;
    background: transparent;
    backdrop-filter: none;
}

.impact-hero.is-presidents .hero-ctrl-btn:hover {
    background: rgba(90, 101, 127, 0.08);
    border-color: #303030;
}

.impact-hero.is-presidents .hero-ctrl-btn svg {
    display: none;
}

.impact-hero.is-presidents .hero-ctrl-icon {
    display: block;
}

.hero-ctrl-icon--next {
    transform: rotate(180deg);
}

.impact-hero.is-presidents .hero-dashes {
    gap: 7px;
}

.impact-hero.is-presidents .hero-dash {
    width: 16px;
    background: #9ba3b1;
    border-radius: 1000px;
}

.impact-hero.is-presidents .hero-dash.active {
    width: 31px;
    background: #f5b123;
}

.hero-presidents-grid {
    /* 734.5 = Figma's 614px grid plus the column of two headshots that sits
       120.5px into the title column */
    /* 51vw scales with the 3.82vw title, so the overlap never covers it */
    --grid-w: min(734.5px, 51vw);
    flex: 0 0 auto;
    width: var(--grid-w);
    margin-left: calc(var(--grid-w) * -120.5 / 734.5);
    aspect-ratio: 734.5 / 680;
    animation: presidents-fade-in 0.5s ease both;
}

.president-headshot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 16.338%;
    height: 17.647%;
    margin: 0;
}

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

/* Black 4px corner markers */
.president-headshot::before,
.president-headshot::after {
    content: '';
    position: absolute;
    inset: -2px;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(#000, #000) left top / 4px 4px no-repeat,
        linear-gradient(#000, #000) right top / 4px 4px no-repeat;
}

.president-headshot::after {
    background:
        linear-gradient(#000, #000) left bottom / 4px 4px no-repeat,
        linear-gradient(#000, #000) right bottom / 4px 4px no-repeat;
}

@keyframes presidents-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-presidents-grid { animation: none; }
}

/* Header on the light slide */
@media (min-width: 768px) {
    .site-header.is-on-light #main-nav > a:not(.contact-button),
    .site-header.is-on-light .work-toggle {
        color: #303030;
    }
}

@media (max-width: 767px) {
    .site-header.is-on-light .menu-toggle {
        color: #303030;
        border-color: #30303070;
    }
}

.site-header.is-on-light .contact-button {
    position: relative;
    padding: 10px 18.5px;
    line-height: 17px;
    letter-spacing: 0.3px;
    color: #ffffff;
    background: linear-gradient(180deg, #86c5ff 0%, #2e5aa7 50%, #073763 100%);
    box-shadow:
        0 2px 12px rgba(46, 90, 167, 0.45),
        inset -3px 0 4px rgba(7, 55, 99, 0.35),
        inset 3px 0 4px rgba(7, 55, 99, 0.35),
        inset 0 -3px 4px rgba(7, 55, 99, 0.5),
        inset 0 2px 3px rgba(134, 197, 255, 0.7);
}

@media (max-width: 900px) {
    .impact-hero.is-presidents {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        min-height: 0;
        padding: 120px var(--gutter) 60px;
    }

    .impact-hero.is-presidents .hero-copy {
        flex: none;
        padding-top: 0;
    }

    .hero-presidents-grid {
        --grid-w: min(734.5px, 100%);
        margin-left: 0;
        align-self: center;
    }
}

/* ---------------- 2. INSTITUTIONS SECTION (Figma 2307:6074) ---------------- */
#institutions {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #00123a 0%, #01284d 50%, #002a54 100%);
    padding: 80px 0;
}

#institutions h2 {
    position: relative;
    font: 400 clamp(30px, 3.125vw, 45px)/1.2 'DM Serif Text', Georgia, serif;
    color: #ffffff;
    text-align: center;
    margin: 0 0 42px;
    padding: 0 var(--gutter);
}

/* Blurred navy ellipses that fade the strip out at both edges */
.inst-edge {
    position: absolute;
    top: 13px;
    z-index: 2;
    width: 397px;
    height: 458px;
    max-width: none;
    pointer-events: none;
}

.inst-edge--left { left: -206px; }
.inst-edge--right { right: -142px; }

.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-carousel 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.college-card {
    flex-shrink: 0;
    width: 240px;
}

.college-card .card-inner {
    width: 240px;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px 0;
    background: #2b334e;
    border: 1px solid #354564;
    border-radius: 14px;
    text-align: center;
}

.college-card .card-inner img {
    display: block;
    height: 70px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    margin-bottom: 16px;
}

/* Logos supplied on a solid background sit in a round white badge */
.college-card .card-inner img.logo-badge {
    width: 70px;
    padding: 6px;
    border-radius: 50%;
    background: #ffffff;
}

#institutions .college-card h3 {
    max-width: 100%;
    font: 400 16px/1.2 'DM Serif Text', Georgia, serif;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

#institutions .college-card p {
    font: 400 14px/1.48 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.14px;
    color: #a0a8b6;
    margin: 4px 0 0;
}

/* ---------------- 3. WHY OPEN AN IMPACT CHAPTER SECTION (Figma 2307:6110) ---------------- */
.why-open-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(128.66deg, #fdf8f6 0.96%, #d6e4f2 98.42%);
    padding: 80px var(--gutter);
}

/* Bubble pattern (Figma image 665 / 667), shared by Why Open and Roadmap */
.why-open-section::before,
.roadmap-section::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 531px;
    height: 662px;
    background: url('../assets/chapters/bubbles-bg.png') center / cover no-repeat;
    opacity: 0.05;
    pointer-events: none;
}

.roadmap-section::before {
    left: -15px;
    width: 495px;
    height: 617px;
}

.why-open-section > *,
.roadmap-section > * {
    position: relative;
}

.section-head-center {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 40px;
}

.section-head-center h2 {
    font-family: var(--display);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 400;
    line-height: 1.22;
    color: var(--text-dark);
    margin: 0 0 16px;
}

.section-head-center p {
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.6;
    color: #556275;
    margin: 0;
}

.why-open-section .section-head-center,
.difference-section .section-head-center {
    max-width: 1280px;
}

.why-open-section .section-head-center h2,
.difference-section .section-head-center h2 {
    font: 400 clamp(30px, 3.125vw, 45px)/1.2 'DM Serif Text', Georgia, serif;
}

.why-open-section .section-head-center p,
.difference-section .section-head-center p {
    font: 500 clamp(15px, 1.25vw, 18px)/1.48 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.18px;
}

.why-open-section .section-head-center h2 { color: #151c28; }
.why-open-section .section-head-center p { color: #4a5462; }

.why-cards-grid {
    display: flex;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.why-card {
    flex: 1 0 0;
    min-width: 0;
    min-height: 211px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 0 18px rgba(18, 37, 73, 0.06);
}

.why-check {
    flex: none;
    width: 22px;
    height: 22px;
}

.why-card h3 {
    font: 400 16px/1.2 'DM Serif Text', Georgia, serif;
    color: #00488c;
    margin: 0 0 8px;
}

.why-card p {
    font: 400 16px/1.48 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.16px;
    color: #6a7181;
    margin: 0;
}

/* ---------------- 4. HOW IS THIS DIFFERENT (Figma 2307:6144) ---------------- */
.difference-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #00123a 0%, #073763 100%);
    padding: 80px var(--gutter);
    color: #ffffff;
}

/* Soft glows: teal 700px at (870, 55), orange 600px at (-117, 0) on the 1440 frame */
.diff-glow {
    position: absolute;
    max-width: none;
    pointer-events: none;
}

.diff-glow--teal {
    left: 50%;
    top: -95px;
    width: 1000px;
    height: 1000px;
}

.diff-glow--orange {
    left: calc(50% - 957px);
    top: -120px;
    width: 840px;
    height: 840px;
}

.difference-section > :not(.diff-glow) {
    position: relative;
}

.difference-section .section-head-center {
    margin-bottom: 42px;
}

.difference-section .section-head-center h2 { color: #ffffff; }
.difference-section .section-head-center p { color: #a0a8b6; }

.diff-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 42px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.diff-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: rgba(46, 90, 167, 0.5);
    border: 1px solid rgba(210, 226, 255, 0.4);
    border-radius: 20px;
}

.diff-card--wide-gap { gap: 20px; }
.diff-card--tight { gap: 8px; }
.diff-card--narrow > * { max-width: 467px; }

.diff-card h3 {
    font: 400 18px/1.2 'DM Serif Text', Georgia, serif;
    color: #ffffff;
    margin: 0;
}

.diff-card p {
    font: 400 18px/1.48 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.18px;
    color: #a0a8b6;
    margin: 0;
}

/* Figma line breaks only hold at desktop widths */
@media (max-width: 1100px) {
    .why-open-section p br,
    .difference-section p br {
        display: none;
    }
}

/* ---------------- 5. A YEAR-LONG ROADMAP SECTION ---------------- */
.roadmap-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125.05deg, #fdf8f6 0.96%, #d6e4f2 98.42%);
    padding: 64px var(--gutter);
}

.roadmap-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.roadmap-card {
    border-radius: 18px;
    padding: 44px 34px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.roadmap-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.roadmap-card.card-blue {
    background: linear-gradient(145deg, #1877f2 0%, #115dc4 100%);
}

.roadmap-card.card-navy {
    background: linear-gradient(145deg, #12335c 0%, #0d2545 100%);
}

.roadmap-card.card-midnight {
    background: linear-gradient(145deg, #0c1e36 0%, #081527 100%);
}

.roadmap-card h3 {
    font-family: var(--sans);
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.roadmap-card p {
    font-size: 15px;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

/* ---------------- 6. GALLERY: SAME AS CONCLAVE PAGE ---------------- */
.snapshots {
    text-align: center;
    background: linear-gradient(110deg, #00123a, #073763);
    padding: 80px 0;
    color: #ffffff;
}

.snapshots > .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.snapshots h2 {
    font: 400 40px/1.2 'DM Serif Text', Georgia, serif;
    color: #ffffff;
    margin: 12px 0;
}

.snapshots h2 + p {
    font: 16px/24px Helvetica, 'Helvetica Neue', Arial, sans-serif;
    color: #a0aec0;
    margin: 0;
}

/* Two equal groups let the photo carousel loop without a jump. */
.snapshots .gallery {
    display: block;
    overflow: hidden;
    margin-top: 40px;
}

.gallery-track {
    display: flex;
    width: max-content;
    animation: gallery-drift 40s linear infinite;
}

.gallery-group {
    display: flex;
    flex: none;
    gap: 4px;
    padding-right: 4px;
}

.snapshots .gallery .snapshot-frame {
    flex: none;
    width: 28.5vw;
    height: 320px;
    overflow: hidden;
    border-radius: 0;
}

.snapshots .gallery .snapshot-frame:first-child {
    width: 42.5vw;
}

.snapshots .gallery .snapshot-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
    .snapshots .gallery .snapshot-frame:hover img {
        transform: scale(1.06);
    }
}

.gallery:hover .gallery-track,
.gallery:focus-within .gallery-track {
    animation-play-state: paused;
}

@keyframes gallery-drift {
    to { transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .snapshots {
        padding: 56px 0;
    }

    .snapshots h2 {
        font-size: 34px;
    }

    .snapshots h2 + p {
        padding: 0 20px;
    }

    .snapshots .gallery {
        margin-top: 28px;
    }

    .snapshots .gallery .snapshot-frame,
    .snapshots .gallery .snapshot-frame:first-child {
        width: 80vw;
        height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .snapshots .gallery { overflow-x: auto; }
    .gallery-track { animation: none; }
    .gallery-group[aria-hidden="true"] { display: none; }
}

/* ---------------- 7. VOICES OF IMPACT (Figma 2307:6211) ---------------- */
.testimonials {
    min-height: 759px;
    padding: 80px 24px;
    background: #fee7b6;
    text-align: center;
    overflow: hidden;
}

.testimonials h2 {
    font: 400 50px/1.2 'DM Serif Text', Georgia, serif;
    color: #151c28;
    margin: 19px auto 40px;
}

.testimonial-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.testimonial-card {
    width: 680px;
    height: 480px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38.229%, #000000 97.717%), #00123a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.testimonial-quote-mark {
    flex: none;
    width: 42px;
    height: 42px;
    transform: rotate(180deg);
}

.testimonial-card blockquote {
    width: 100%;
    max-height: 100%;
    margin: 0;
    overflow-y: auto;
    white-space: pre-line;
    font: 500 16px/1.6 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #ffffff;
    opacity: 0.9;
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.testimonial-author {
    flex: none;
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 22px;
    text-align: left;
}

.testimonial-avatar {
    flex: none;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #b7cbf0;
    border-radius: 67px;
    background: #2e5aa7;
    font: 400 18px/1 'DM Serif Text', Georgia, serif;
    color: #ffffff;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card h3 {
    font: 400 22px/normal 'DM Serif Text', Georgia, serif;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.testimonial-card small {
    display: block;
    font: 700 13px/normal 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #ffffff;
    opacity: 0.9;
    text-transform: uppercase;
}

.testimonial-side {
    position: relative;
    flex: none;
    width: 72px;
    height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 32px 12px 24px;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: rgba(8, 8, 8, 0.8) url('../assets/chapters/voices/chart-network.svg') center / 100% 100% no-repeat;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.testimonial-side:hover {
    filter: brightness(1.25);
}

.testimonial-side-name {
    height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font: 800 20px/normal 'Geist', Helvetica, Arial, sans-serif;
}

.testimonial-side-name > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Figma's arrow-down, turned to point left / right */
.testimonial-side-arrow {
    width: 16px;
    height: 20px;
    margin: 2px 4px;
}

.testimonial-side.is-next .testimonial-side-arrow {
    transform: rotate(-90deg);
}

.testimonial-side.is-prev .testimonial-side-arrow {
    transform: rotate(90deg);
}

.testimonials > .slider-controls {
    display: none;
}

/* ---------------- RESPONSIVE BREAKPOINTS ---------------- */
@media (max-width: 1024px) {
    .roadmap-cards-grid {
        grid-template-columns: 1fr;
        max-width: 580px;
    }
}

@media (max-width: 768px) {
    .impact-hero {
        padding: 110px var(--gutter) 60px;
    }

    .diff-cards-grid {
        grid-template-columns: 1fr;
    }

    .college-card,
    .college-card .card-inner {
        width: 190px;
    }

    .college-card .card-inner {
        height: 144px;
        padding-top: 14px;
    }

    .college-card .card-inner img {
        height: 56px;
        margin-bottom: 12px;
    }

    .college-card .card-inner img.logo-badge {
        width: 56px;
    }

    #institutions .college-card h3 {
        font-size: 14px;
    }

    #institutions {
        padding: 48px 0;
    }

    #institutions h2 {
        margin-bottom: 28px;
    }

    .inst-edge {
        top: 40px;
        width: 160px;
        height: 240px;
    }

    .inst-edge--left { left: -110px; }
    .inst-edge--right { right: -110px; }

    .carousel-track {
        gap: 12px;
        animation-duration: 30s;
    }


    .testimonials {
        min-height: 0;
        padding: 56px 16px;
    }

    .testimonials h2 {
        font-size: 34px;
        margin: 0 auto 28px;
    }

    .testimonial-track {
        gap: 8px;
    }

    .testimonial-card {
        width: auto;
        flex: 1;
        min-width: 0;
        height: 520px;
        padding: 24px 16px;
    }

    .testimonial-card blockquote {
        font-size: 14px;
    }

    .testimonial-author {
        gap: 12px;
    }

    .testimonial-card h3 {
        font-size: 18px;
    }

    .testimonial-side {
        width: 32px;
        height: 400px;
        padding: 16px 4px 14px;
    }

    .testimonial-side-name {
        height: auto;
        gap: 8px;
        font-size: 12px;
    }

    .testimonial-side-name > span {
        gap: 1px;
    }
}

/* Mobile: tighter sections, and card groups become swipeable carousels */
@media (max-width: 768px) {
    .why-open-section,
    .difference-section,
    .roadmap-section {
        padding: 44px var(--gutter);
    }

    .section-head-center {
        margin-bottom: 28px;
    }

    .why-cards-grid,
    .diff-cards-grid,
    .roadmap-cards-grid {
        display: flex;
        flex-direction: row;
        gap: 14px;
        max-width: none;
        margin: 0 calc(-1 * var(--gutter));
        padding: 4px var(--gutter) 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        scrollbar-width: none;
    }

    .why-cards-grid::-webkit-scrollbar,
    .diff-cards-grid::-webkit-scrollbar,
    .roadmap-cards-grid::-webkit-scrollbar {
        display: none;
    }

    .why-card,
    .diff-card,
    .roadmap-card {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }

    .why-card:hover,
    .diff-card:hover,
    .roadmap-card:hover {
        transform: none;
    }
}

@media (max-width: 767px) {
    .site-header a:first-child img {
        width: 85px;
        height: 93px;
        border-radius: 0 0 10px 10px;
    }
}
