/* --- 1. BRAND DESIGN SYSTEM TOKENS --- */
:root {
    --fcb-red: #ED0037;
    --fcb-deep-red: #461023;
    --fcb-blue: #286cfc;
    --fcb-white: #FFFFFF;
    --fcb-near-black: #050505;
    --fcb-off-black: #050505;
    --fcb-charcoal: #050505;
    --fcb-dark-gray: #33373D;
    --fcb-muted-gray: #69727D;
    --fcb-blush-tint: rgba(245, 115, 145, 0.15);
    --font-poster: "FC Bayern Sans Compressed", "FC Bayern Sans Poster", Impact, sans-serif;
    --font-main: "FC Bayern Sans", Arial, Helvetica, sans-serif;
}

/* --- 2. GLOBAL RESET & BASE ARCHITECTURE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--font-main);
    background-color: var(--fcb-white);
    color: var(--fcb-charcoal);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- 3. FIXED HEADER PLATFORM --- */
.main-header {
    background-color: var(--fcb-red);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 84px;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 42px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--fcb-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: normal;
    padding: 30px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.nav-cta {
    padding: 30px 0;
}

.center-crest-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    position: relative;
}

.center-crest-item::before {
    content: '';
    position: absolute;
    width: 96px;
    height: 96px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -42%);
    background-color: var(--fcb-red);
    border-radius: 50%;
    z-index: -1;
}

.header-crest-img {
    width: 220px;
    height: auto;
    object-fit: contain;
    transform: translateY(18px);
    z-index: 1010;
}

/* Interactive Hover Dropdown Box Layout */
.dropdown-pane {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--fcb-white);
    min-width: 240px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-radius: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    padding: 10px 0;
}

.dropdown-pane::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--fcb-white);
}

.nav-item:hover .dropdown-pane {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-pane a {
    display: block;
    padding: 12px 24px;
    color: var(--fcb-charcoal);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-pane a:hover {
    background-color: var(--fcb-red);
    color: var(--fcb-white);
}

/* --- 4. ENGINE FOR MULTI-PAGE LAYOUT SPACING --- */
.view-section {
    flex: 1;
    padding-top: 84px;
}

/* --- 5. REPEATED PAGE FRAMEWORK SCALERS --- */
.hero-banner-inner {
    min-height: 46vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.42)), 
                url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    padding: 64px 40px;
    color: var(--fcb-white);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero-banner-inner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--fcb-red), var(--fcb-blue), var(--fcb-white));
}

.hero-banner-inner h1 {
    font-family: var(--font-poster);
    max-width: 1100px;
    font-size: 55px;
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
    line-height: 57px;
    letter-spacing: normal;
    margin: 0 auto;
    width: 100%;
}

.badge-tagline {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: normal;
    text-transform: uppercase;
    color: var(--fcb-red);
    margin-bottom: 12px;
    display: block;
}

.hero-banner-inner .badge-tagline {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    color: #ffff87 !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.page-content-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    padding: 80px 0;
    align-items: start;
}

.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    padding: 80px 0;
}

/* 4-Column Pillar Layout Architecture for Mission Blocks */
.pillars-4-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.pill-card-96 {
    background-color: var(--fcb-white);
    padding: 64px 48px;
    border-radius: 8px;
    box-shadow: 0 15px 45px rgba(5, 5, 5, 0.05);
    transition: transform 0.3s ease;
    border-top: 6px solid var(--fcb-red);
}

.pill-card-96:hover {
    transform: translateY(-8px);
}

.pill-card-96.blush-style {
    background-color: var(--fcb-blush-tint);
    border-top-color: var(--fcb-charcoal);
}

.diagonal-slash-motif {
    width: 60px;
    height: 6px;
    background-color: var(--fcb-red);
    transform: skewX(-25deg);
    margin-bottom: 24px;
}

.pill-card-96.blush-style .diagonal-slash-motif {
    background-color: var(--fcb-charcoal);
}

h2 {
    font-family: var(--font-poster);
    font-size: 64px;
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
    line-height: 64px;
    color: var(--fcb-near-black);
    margin-bottom: 24px;
}

.pill-card-96 h3 {
    font-family: var(--font-poster);
    font-size: 30px;
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
    line-height: 34px;
    margin-bottom: 20px;
}

/* Premium Brand Callout Block for Mission Statement Quotes */
.mission-quote-statement {
    background-color: var(--fcb-near-black);
    color: var(--fcb-white);
    padding: 64px;
    border-radius: 8px;
    text-align: center;
    margin: 64px 0;
    position: relative;
    border: 2px solid var(--fcb-red);
}

.mission-quote-statement p {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 28px;
    line-height: 44px;
    font-style: normal;
}

.metrics-card-pill {
    background-color: var(--fcb-blush-tint);
    border-left: 6px solid var(--fcb-red);
    padding: 40px;
    border-radius: 24px;
    margin-top: 32px;
}

.metrics-card-pill h3 {
    font-family: var(--font-poster);
    font-style: normal;
    text-transform: uppercase;
    font-size: 28px;
    color: var(--fcb-charcoal);
    margin-bottom: 16px;
}

.metrics-table-list {
    list-style: none;
    margin-top: 16px;
}

.metrics-table-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(5,5,5,0.1);
    font-size: 16px;
    display: flex;
    justify-content: space-between;
}

.metrics-table-list strong {
    color: var(--fcb-red);
}

.sidebar-graphic-box {
    background-color: var(--fcb-off-black);
    color: var(--fcb-white);
    padding: 48px;
    border-radius: 40px;
    position: sticky;
    top: 160px;
}

.sidebar-graphic-box h3 {
    font-family: var(--font-poster);
    font-style: normal;
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.btn {
    display: inline-block;
    background-color: var(--fcb-red);
    color: var(--fcb-white);
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: normal;
    transition: background-color 0.2s, transform 0.2s;
}

.btn:hover {
    background-color: #ed0037;
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--fcb-white);
    color: var(--fcb-red);
}

.btn-light:hover {
    background-color: #e6e6e6;
}

.btn-ghost {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- 6. FOCUSED ACADEMY HOMEPAGE --- */
.home-page {
    background-color: var(--fcb-white);
}

.home-template .main-header {
    top: 0;
    height: 84px;
    background-color: var(--fcb-red);
    color: var(--fcb-white);
    border-bottom: 0;
}

.home-template .header-container {
    max-width: 1440px;
    padding: 0 48px;
    justify-content: center;
}

.academy-nav-shell {
    justify-content: space-between;
    position: relative;
}

.home-template .academy-nav-shell {
    justify-content: space-between;
}

.academy-nav-logo {
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 50%;
    align-self: flex-start;
    background-color: var(--fcb-red);
    border-radius: 0 0 56px 56px;
    text-decoration: none;
    transform: translateX(-50%);
    z-index: 2;
}

.academy-nav-logo .header-crest-img {
    width: 210px;
    height: auto;
    max-width: none;
    transform: translateY(5px);
}

.academy-nav-shell .nav-menu {
    gap: 52px;
}

.home-template .nav-menu {
    gap: 42px;
}

.home-template .nav-link,
.home-template .nav-cta {
    color: var(--fcb-white);
    padding: 30px 0;
    font-size: 16px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
}

.home-template .header-crest-img {
    width: 210px;
    height: auto;
    transform: translateY(8px);
}

.cinematic-hero {
    min-height: calc(100vh - 84px);
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: var(--fcb-white);
    padding-top: 84px;
    background-color: var(--fcb-near-black);
}

.hero-video,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-shade {
    z-index: 1;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.48) 40%, rgba(0, 0, 0, 0.18) 72%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px 88px;
    animation: heroRise 0.8s ease both;
}

.hero-content span,
.eyebrow {
    display: block;
    color: currentColor;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-content h1 {
    max-width: 780px;
    font-family: var(--font-main);
    font-size: clamp(48px, 7vw, 86px);
    line-height: 1.05;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: normal;
}

.hero-link,
.home-assessment-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 26px;
    padding: 0 24px;
    background-color: var(--fcb-white);
    color: var(--fcb-near-black);
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease;
}

.hero-link:hover,
.home-assessment-cta a:hover {
    transform: translateY(-2px);
}

.home-assessment-cta a,
.home-assessment-cta a:hover {
    background-color: var(--fcb-red);
    color: var(--fcb-white);
}

.home-editorial,
.home-statement {
    padding: 110px 0;
}

.editorial-intro {
    max-width: 980px;
}

.editorial-intro h2,
.statement-grid h2,
.home-assessment-cta h2 {
    font-family: var(--font-main);
    font-size: 32px;
    line-height: 1.1;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0;
}

.home-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 8px;
    background-color: var(--fcb-near-black);
}

.visual-tile {
    min-height: 680px;
    position: relative;
    overflow: hidden;
    background-color: var(--fcb-near-black);
    color: var(--fcb-white);
}

.visual-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.15) brightness(0.58) contrast(1.12);
    transform: scale(1.01);
    transition: transform 0.55s ease, filter 0.55s ease;
}

.visual-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.08) 58%);
    pointer-events: none;
}

.visual-tile:hover img {
    transform: scale(1.055);
    filter: grayscale(0.05) brightness(0.5) contrast(1.16);
}

.visual-tile div {
    position: absolute;
    left: 38px;
    right: 38px;
    bottom: 38px;
    z-index: 2;
}

.visual-tile span {
    display: block;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.visual-tile h3 {
    font-family: var(--font-main);
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
}

.statement-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
}

.statement-line {
    min-height: 50vh;
    margin-top: 44px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.42)),
        url('https://img.fcbayern.com/image/upload/f_auto/q_auto/ar_2:1,c_fill,g_custom,w_1280,dpr_2/v1780927056/cms/public/images/fcbayern-com/homepage/Saison-25-26/FCB-Frauen/Training/05/260608-sommerfahrplan-fcb.jpg') center/cover;
    color: var(--fcb-white);
}

.statement-line div {
    min-height: 50vh;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 1px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
}

.statement-line span {
    min-height: 68px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    background-color: rgba(5, 5, 5, 0.72);
    font-size: 16px;
    line-height: 1.1;
    font-weight: 600;
    text-transform: uppercase;
}

.home-assessment-cta {
    background-color: var(--fcb-near-black);
    color: var(--fcb-white);
    text-align: center;
    padding: 78px 24px;
    border-top: 10px solid var(--fcb-red);
}

.home-assessment-cta h2 {
    margin: 0 auto;
    color: var(--fcb-white);
}

.home-assessment-cta p {
    max-width: 620px;
    margin: 18px auto 0;
    color: var(--fcb-white);
    font-size: 16px;
    line-height: 1.5;
}

.academy-page {
    background-color: var(--fcb-white);
}

.academy-page .hero-banner-inner,
.academy-page .academies-hero {
    min-height: 62vh !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    padding: 84px max(40px, calc((100vw - 1180px) / 2)) 76px !important;
    text-align: left !important;
    background:
        linear-gradient(0deg, rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0.2) 62%),
        url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=1950&q=80') center/cover;
}

.academy-page .hero-banner-inner::after,
.academy-page .academies-hero::after {
    height: 0 !important;
}

.academy-page .hero-banner-inner h1,
.academy-page .academies-hero h1 {
    max-width: 780px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-main) !important;
    font-size: clamp(36px, 4.2vw, 58px) !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    text-transform: uppercase !important;
    color: var(--fcb-white) !important;
}

.academy-page .hero-banner-inner .badge-tagline {
    max-width: 780px;
    margin-left: 0;
    margin-right: 0;
}

.academy-page .sub-nav-bar {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--fcb-red) !important;
}

.academy-page .section-diamond-pattern {
    background: var(--fcb-white);
    padding: 96px 0;
}

.academy-page .section-solid-dark-block {
    background-color: var(--fcb-near-black);
}

.academy-page .scholarship-grid {
    gap: 8px;
    padding: 96px 0;
}

.academy-page .pill-card-96,
.academy-page .pill-card-96.blush-style {
    border-radius: 0;
    border-top: 0;
    background-color: var(--fcb-white);
    box-shadow: none;
    border-bottom: 8px solid var(--fcb-red);
}

.academy-visual-hero {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: flex-end;
    padding: 84px max(40px, calc((100vw - 1180px) / 2)) 86px;
    background:
        linear-gradient(0deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.2) 62%),
        url('https://i.pinimg.com/1200x/04/46/d1/0446d1103d3fc89aa2d54f25e415eddf.jpg') center/cover;
    color: var(--fcb-white);
}

.scholarship-hero-page {
    background:
        linear-gradient(0deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.2) 62%),
        url('https://i.pinimg.com/1200x/76/a7/62/76a762c198d84c05edac50045aa85e70.jpg') center/cover;
}

.camps-hero-page {
    background:
        linear-gradient(0deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.2) 62%),
        url('https://i.pinimg.com/736x/40/16/52/4016529417b61da78611ed43054f0326.jpg') center/cover;
}

.academy-visual-content {
    width: min(820px, calc(100vw - 80px));
    max-width: 820px;
}

.academy-visual-content h1 {
    font-size: clamp(54px, 8vw, 96px);
    line-height: 1.02;
    font-weight: 700;
    text-transform: uppercase;
}

.academy-visual-content p {
    max-width: 620px;
    margin-top: 18px;
    font-size: 20px;
    line-height: 1.5;
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 6. CORRECTED ALIGNED BRAND FOOTER --- */
.main-footer {
    background-color: var(--fcb-red);
    color: var(--fcb-white);
    padding: 90px 0 30px 0;
    font-size: 16px;
    line-height: 26px;
    margin-top: auto;
}

.footer-container {
    width: 100%;
    max-width: 1160px; 
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 10px;
}

.footer-column h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: normal;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 14px;
}

.footer-links-list a {
    color: var(--fcb-white);
    text-decoration: none;
    font-weight: 500;
}

.footer-text-block p {
    margin-bottom: 14px;
    font-weight: 500;
}

.contact-row-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.contact-row-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.contact-row-item a {
    color: var(--fcb-white);
    text-decoration: none;
    font-weight: 500;
}

.footer-mid-crest-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px 0 35px 0;
}

.footer-white-crest {
    width: 260px;
    height: auto;
    margin-bottom: 28px;
    opacity: 1;
}

.footer-social-row {
    display: flex;
    gap: 36px;
    align-items: center;
    justify-content: center;
}

.footer-social-row svg {
    width: 22px;
    height: 22px;
    fill: var(--fcb-white);
    transition: opacity 0.2s ease;
}

.footer-social-row a:hover svg {
    opacity: 0.8;
}

.footer-divider-line {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 40px 0 25px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    letter-spacing: normal;
}

.legal-policies-links {
    display: flex;
    gap: 16px;
}

.legal-policies-links a {
    color: var(--fcb-white);
    text-decoration: none;
}

@media (max-width: 980px) {
    html, body {
        font-size: 17px;
        line-height: 28px;
    }

    .main-header {
        height: auto;
        min-height: 92px;
    }

    .header-container {
        padding: 10px 18px;
    }

    .nav-menu {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 8px 0;
        font-size: 14px;
    }

    .nav-cta {
        padding: 8px 14px;
    }

    .header-crest-img {
        width: 160px;
        height: auto;
        transform: none;
    }

    .cinematic-hero {
        min-height: 760px;
        padding-top: 160px;
    }

    .hero-content {
        padding: 0 28px 58px;
    }

    .hero-content h1,
    .hero-banner-inner h1,
    .academies-hero h1 {
        font-size: 41px;
        line-height: 43px;
    }

    h2 {
        font-size: 44px;
        line-height: 46px;
    }

    .home-visual-grid,
    .statement-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-editorial,
    .home-statement,
    .home-assessment-cta {
        padding: 64px 0;
    }

    .editorial-intro h2,
    .statement-grid h2,
    .home-assessment-cta h2 {
        font-size: 42px;
        line-height: 46px;
    }

    .visual-tile {
        min-height: 620px;
    }

    .footer-bottom-flex,
    .legal-policies-links {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .footer-bottom-flex {
        gap: 16px;
    }
}

@media (max-width: 980px) {
    .home-template .main-header {
        top: 0;
        min-height: 112px;
    }

    .academy-page .main-header {
        min-height: 112px;
    }

    .home-template .header-container,
    .academy-page .header-container {
        justify-content: center;
        gap: 12px;
    }

    .home-template .cinematic-hero {
        min-height: 660px;
        padding-top: 112px;
    }

    .home-template .hero-content {
        padding-bottom: 70px;
    }

    .academy-page .academies-hero,
    .academy-page .hero-banner-inner {
        padding-top: 140px !important;
    }

    .academy-visual-hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .academy-visual-content {
        width: calc(100vw - 40px);
    }

    .academy-page .scholarship-grid,
    .academy-page .three-pill-showcase-row,
    .academy-page .split-dark-grid-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 20px;
    }

    .center-crest-item {
        order: -1;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 44px;
        line-height: 44px;
    }

    .hero-banner-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-banner-inner h1 {
        font-size: 34px;
        line-height: 36px;
        overflow-wrap: anywhere;
    }

    .story-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px !important;
    }

    .story-layout > div {
        min-width: 0;
    }

    .story-layout > div:last-child {
        margin-top: 0 !important;
        padding: 28px !important;
        border-radius: 24px !important;
    }

    .pillars-4-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .pill-card-96,
    .mission-quote-statement {
        padding: 32px 24px;
    }

    h2 {
        font-size: 36px;
        line-height: 38px;
    }

    .hero-link,
    .home-assessment-cta a {
        width: 100%;
        justify-content: center;
    }

    .visual-tile div {
        left: 24px;
        right: 24px;
        bottom: 28px;
    }

    .visual-tile h3 {
        font-size: 40px;
        line-height: 42px;
    }

    .statement-line div {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .statement-line span {
        min-height: 58px;
    }

    .home-assessment-cta h2 {
        font-size: 28px;
        line-height: 32px;
    }
}
