/**
 * HTS John Vorster — Stylesheet v9
 * Colors: Navy #253f80, Gold #94774B, Dark #313131
 * Fonts: Cardo (headings), Montserrat (nav), Raleway (body)
 */

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #253f80;
    --navy-dark: #202448;
    --gold: #94774B;
    --dark: #313131;
    --text: #444;
    --text-light: #777;
    --border: #e0ddd8;
    --cream: #f9f7f4;
    --white: #fff;
    --radius: 8px;
    --radius-xl: 16px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --transition: 0.3s ease;
    --font-heading: 'Cardo', serif;
    --font-nav: 'Montserrat', sans-serif;
    --font-body: 'Raleway', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: #c5d4e8 url('../images/page-background.png') center top / 100% auto repeat-y fixed;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
/* Sections with their own bg keep it; transparent sections show the body bg through.
   Most content sections use white cards on top of the bg pattern. */
.section { background: transparent; }
.section-no-card { background: transparent; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* White card on inner pages */
body:not(.page-home) .section > .container {
    background: rgba(255,255,255,0.97);
    padding: 70px 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.section-no-card > .container { background: transparent !important; box-shadow: none !important; padding: 0 24px !important; }

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    padding: 6px 0;
    font-family: var(--font-nav);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 20px; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-right { display: flex; gap: 12px; }
.top-bar-right a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.top-bar-right a:hover { color: var(--gold); }

/* ========== HEADER ========== */
.site-header {
    background: var(--white);
    border-bottom: 6px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: border-width var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { border-bottom-width: 3px; box-shadow: var(--shadow); }

.header-inner { display: flex; align-items: center; justify-content: center; height: 72px; }

.header-left { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 55px; width: auto; }

/* Hanging crest banner — centred badge below the gold line */
.site-header--hangbanner { overflow: visible; }
.header-crest-banner {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -22%);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: auto;
}
.header-crest-banner__bg {
    position: absolute;
    inset: 0;
    background: var(--white);
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.header-crest-banner__img {
    position: relative;
    width: 88%;
    height: 88%;
    object-fit: contain;
    z-index: 1;
}

/* Inner pages only: push the page-hero title down a little so medallion doesn't overlap it.
   Homepage hero slider is NOT pushed — medallion floats decoratively over its top edge. */
.site-header--hangbanner + main > .page-hero:first-child { padding-top: 80px; }
.school-name-full { font-family: var(--font-nav); font-size: 1rem; font-weight: 700; letter-spacing: 2px; color: var(--navy); text-transform: uppercase; }
.header-badge { height: 50px; width: auto; margin-left: 8px; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; font-family: var(--font-nav); }
.main-nav > a, .dropdown-toggle {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    color: var(--dark);
    transition: color var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.main-nav > a:hover, .dropdown-toggle:hover { color: var(--navy); }
.dropdown-toggle i { font-size: 0.6rem; margin-left: 3px; }

.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 50;
    padding: 8px 0;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-family: var(--font-nav);
    color: var(--dark);
    transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover { background: var(--cream); color: var(--navy); }
.dropdown-menu .nav-dropdown-sub { position: relative; }
.dropdown-menu .nav-dropdown-sub > .dropdown-toggle { display: flex; justify-content: space-between; align-items: center; }
.dropdown-menu .nav-dropdown-sub > .dropdown-toggle i { font-size: 0.55rem; margin-left: 8px; }
.dropdown-menu .dropdown-submenu { position: absolute; top: -8px; left: 100%; margin-left: 2px; }
.dropdown-menu .nav-dropdown-sub:hover > .dropdown-submenu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Mobile Toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--dark); transition: var(--transition); }

/* Mobile Panel */
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; z-index: 200; transition: all var(--transition); }
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-panel { position: fixed; top: 0; right: -320px; width: 320px; height: 100%; background: var(--white); z-index: 201; transition: right var(--transition); padding: 24px; overflow-y: auto; }
.mobile-panel.active { right: 0; }
.mobile-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-close { background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--dark); }
.mobile-nav a { display: block; padding: 10px 0; font-family: var(--font-nav); font-size: 0.9rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-dropdown-toggle { display: flex; justify-content: space-between; width: 100%; padding: 10px 0; font-family: var(--font-nav); font-size: 0.9rem; font-weight: 600; border: none; border-bottom: 1px solid var(--border); background: none; cursor: pointer; color: var(--dark); }
.mobile-dropdown-toggle i { transition: transform var(--transition); }
.mobile-dropdown-toggle.open i { transform: rotate(180deg); }
.mobile-dropdown-menu { display: none; padding-left: 16px; }
.mobile-dropdown-menu.open { display: block; }
.mobile-dropdown-menu a { font-size: 0.85rem; font-weight: 400; color: var(--text); }

/* ========== FLASH ========== */
.flash { position: fixed; top: 100px; left: 50%; transform: translateX(-50%); padding: 14px 28px; border-radius: var(--radius); font-size: 0.9rem; z-index: 150; box-shadow: var(--shadow-md); transition: opacity 0.3s; }
.flash-success { background: #2d6a2e; color: #fff; }
.flash-error { background: #c62828; color: #fff; }

/* ========== BUTTONS ========== */
.btn { display: inline-block; padding: 12px 28px; font-size: 0.8rem; font-family: var(--font-nav); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border: none; cursor: pointer; border-radius: var(--radius); transition: all var(--transition); text-align: center; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #7d6340; }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.75rem; }

/* ========== HERO SLIDER ========== */
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 720;
    max-height: 720px;
    overflow: hidden;
    background: var(--navy-dark);
}
.slider-track { position: relative; width: 100%; height: 100%; }
/* Shift all slide layers down a bit so hanging crest medallion doesn't cover them.
   Tema 2026 slide opts out via .slide--keep-top (its top area is already empty).
   Slaagsyfer + Welkom use a smaller shift (.slide--small-shift) since their hero text
   already sits in the lower half of the design. */
.slide:not(.slide--keep-top):not(.slide--small-shift) .slide-layers { transform: translateY(9%); }
.slide--small-shift .slide-layers { transform: translateY(4%); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.slide.active { opacity: 1; z-index: 1; pointer-events: auto; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide.active .slide-bg { animation: kenBurns 12s ease forwards; }
/* Reset animations when slide loses active */
.slide:not(.active) .slide-bg { animation: none; }
.slide:not(.active) .slide-layer { animation: none !important; opacity: 0; }

@keyframes kenBurns { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }

.slide-layers { position: absolute; inset: 0; z-index: 2; }
.slide-layer { position: absolute; opacity: 0; will-change: transform, opacity; }
.slide.active .slide-layer { animation: layerFadeIn 0.8s ease forwards; }
.slide.active .slide-layer.from-left { animation: layerFromLeft 0.8s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.slide.active .slide-layer.from-right { animation: layerFromRight 0.8s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.slide.active .slide-layer.zoom-in { animation: layerZoomIn 0.8s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.slide.active .slide-layer.delay-1 { animation-delay: 0.2s; }
.slide.active .slide-layer.delay-2 { animation-delay: 0.5s; }
.slide.active .slide-layer.delay-3 { animation-delay: 0.8s; }
.slide.active .slide-layer.delay-4 { animation-delay: 1.1s; }
.slide.active .slide-layer.delay-5 { animation-delay: 1.4s; }
.slide.active .slide-layer.delay-6 { animation-delay: 1.7s; }
@keyframes layerFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes layerFromLeft { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: translateX(0); } }
@keyframes layerFromRight { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: translateX(0); } }
@keyframes layerZoomIn { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
.slide-layer img { max-width: 100%; height: auto; }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-50%) scale(1.1); box-shadow: 0 6px 24px rgba(148,119,75,0.4); }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,0.15); z-index: 10; }
.slider-progress-bar { height: 100%; background: linear-gradient(90deg, var(--gold), #c9a94e); width: 0; border-radius: 0 2px 2px 0; }
.slider-progress-bar.animate { animation: progressFill 10s linear forwards; }
@keyframes progressFill { from { width: 0; } to { width: 100%; } }

/* ========== STATS SECTION ========== */
.stats-section { position: relative; padding: 100px 0; text-align: center; background-size: cover; background-attachment: fixed; }
.stats-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,43,92,0.3) 0%, rgba(26,43,92,0.65) 40%, rgba(26,43,92,0.8) 100%); }
.stats-text { margin-bottom: 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.stat-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 28px 16px; }
.stat-number { display: block; font-family: var(--font-nav); font-size: 2.5rem; font-weight: 700; color: var(--gold); }
.stat-label { display: block; font-family: var(--font-nav); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* ========== SECTIONS ========== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { color: var(--dark); }
.section-underline { width: 80px; height: 3px; background: linear-gradient(90deg, var(--gold), #c9a94e); margin: 12px auto 0; border-radius: 2px; }

/* ========== PAGE HERO ========== */
.page-hero { background: var(--navy); color: #fff; padding: 80px 0 60px; position: relative; overflow: hidden; }
.page-hero-inner { display: flex; align-items: center; justify-content: space-between; }
.page-hero-text h1 { color: #fff; margin-bottom: 8px; }
.page-hero-sub { color: rgba(255,255,255,0.7); font-size: 1rem; }
.page-hero-badge { flex-shrink: 0; }

/* ========== CARD GRID ========== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; transition: transform var(--transition), box-shadow var(--transition); }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card-icon { font-size: 2rem; color: var(--navy); margin-bottom: 12px; }
.info-card h3 { margin-bottom: 8px; }
.info-card p { font-size: 0.9rem; color: var(--text-light); }

/* ========== DOC GRID ========== */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.doc-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; transition: all var(--transition); }
.doc-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }
.doc-icon { font-size: 2rem; color: var(--navy); }
.doc-card h3 { font-size: 1rem; }
.doc-card p { font-size: 0.8rem; color: var(--text-light); }

/* ========== STAFF ========== */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.staff-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-align: center; transition: transform var(--transition); }
.staff-card:hover { transform: translateY(-2px); }
.staff-photo { aspect-ratio: 3/4; overflow: hidden; background: #e8e5e0; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.staff-info { padding: 12px 8px; }
.staff-info h4 { font-size: 0.85rem; font-family: var(--font-nav); margin-bottom: 2px; }
.staff-info p { font-size: 0.75rem; color: var(--text-light); }

/* Staff Tabs */
.staff-tabs { }
.staff-tab-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; justify-content: center; }
.staff-tab-btn { padding: 8px 16px; font-family: var(--font-nav); font-size: 0.75rem; font-weight: 600; border: 1px solid var(--border); background: var(--white); border-radius: 20px; cursor: pointer; transition: all var(--transition); text-transform: uppercase; letter-spacing: 0.5px; }
.staff-tab-btn.active, .staff-tab-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.staff-tab-content { display: none; }
.staff-tab-content.active { display: block; }

/* ========== SPORT ========== */
.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.sport-grid-hex { grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* Raw hexagon PNG grid — no borders, no extra labels (labels baked into PNGs) */
.sport-hex-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: center; justify-items: center; }
.sport-hex { display: block; width: 100%; transition: transform var(--transition); }
.sport-hex img { display: block; width: 100%; height: auto; }
.sport-hex:hover { transform: translateY(-4px) scale(1.03); }
.sport-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-align: center; transition: all var(--transition); }
.sport-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sport-card-image { height: 120px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold); font-size: 2.5rem; position: relative; }
.sport-card-image.has-image { background-size: cover; background-position: center; }
.sport-card-overlay { position: absolute; inset: 0; background: rgba(37,63,128,0.5); }
.sport-card h3 { padding: 14px 8px; font-size: 0.95rem; }

/* Sport Detail */
.sport-hexagon-banner { min-height: 200px; background-size: cover; background-position: center; display: flex; align-items: center; }
.sport-hexagon-banner h1 { color: #fff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }

/* Sport PDF poster hero (rendered from the live-site sport PDFs) */
.sport-pdf-hero { padding-bottom: 0; }
.sport-pdf-poster {
    max-width: 760px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0,0,0,0.25);
    background: var(--white);
}
.sport-pdf-poster img {
    display: block;
    width: 100%;
    height: auto;
}

/* ========== SPORT PDF-STYLED PAGE ========== */
/* Rebuilt from live PDFs with real imagery + text. Navy/gold/white heraldic look. */
.sport-pdf-page { position: relative; color: #fff; }
.sport-pdf-page__hero {
    position: relative;
    background: linear-gradient(145deg, #0c1a33 0%, #132440 60%, #1a2e55 100%);
    padding: 70px 0 100px;
    overflow: hidden;
    margin-bottom: -60px;
}
.sport-pdf-page__hex-bg {
    position: absolute;
    inset: 0;
    background: url('../images/page-background.png') center / cover;
    opacity: 0.12;
    pointer-events: none;
}
.sport-pdf-page__hero-decor {
    position: absolute;
    top: 20px;
    right: 3vw;
    width: clamp(140px, 18vw, 260px);
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.25));
}
.sport-pdf-page__body-decor {
    position: absolute;
    bottom: -40px;
    right: 0;
    width: clamp(180px, 22vw, 320px);
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
}
@media (max-width: 820px) {
    .sport-pdf-page__hero-decor {
        top: 16px;
        right: 16px;
        width: 110px;
        opacity: 0.7;
    }
    .sport-pdf-page__body-decor { display: none; }
}
.sport-pdf-page__hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}
.sport-pdf-page__title-col { position: relative; z-index: 2; }
.sport-pdf-page__title {
    font-family: 'Caveat', 'Brush Script MT', cursive;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 0.9;
    margin: 0;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
    text-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
/* Ghost = shadow-style clone sitting behind the gold title to add depth */
.sport-pdf-page__title-ghost {
    font-family: 'Caveat', 'Brush Script MT', cursive;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: rgba(0, 0, 0, 0.28);
    line-height: 0.9;
    letter-spacing: -1px;
    position: absolute;
    top: 8px;
    left: 10px;
    margin: 0;
    z-index: 1;
    pointer-events: none;
    filter: blur(1px);
}
.sport-pdf-page__hero-photo {
    position: relative;
    z-index: 1;
    max-width: 360px;
    margin-left: auto;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
    transform: rotate(2deg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.sport-pdf-page__hero-photo:hover {
    transform: rotate(2deg) translateY(-4px) scale(1.03);
    box-shadow: 0 28px 60px rgba(0,0,0,0.5);
}
.sport-pdf-page__hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Frameless hero — for transparent mascots/logos that should float */
.sport-pdf-page__hero-photo.is-floating {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    aspect-ratio: auto;
    transform: none;
    max-width: 420px;
}
.sport-pdf-page__hero-photo.is-floating:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: none;
}
.sport-pdf-page__hero-photo.is-floating img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45));
}

/* Body: two-column text + coach aside */
.sport-pdf-page__body {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 48px;
    position: relative;
    padding: 60px 15px 40px;
    background: linear-gradient(180deg, #132440 0%, #0c1a33 100%);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    z-index: 3;
}
.sport-pdf-page__text-col p {
    color: rgba(255,255,255,0.92);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 18px;
}
.sport-pdf-page__text-col p strong { color: var(--gold); }

.sport-pdf-page__coach {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px;
}
.sport-pdf-page__coach-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gold);
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
    margin-bottom: 14px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.sport-pdf-page__coach-photo:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 36px rgba(0,0,0,0.5);
}
.sport-pdf-page__coach-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.sport-pdf-page__coach-caption strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2px;
}
.sport-pdf-page__coach-caption span {
    display: block;
    font-size: 0.85rem;
    color: var(--gold);
    font-style: italic;
}

/* Gallery: compact two-column collage — team photo left, extras stacked right. Height capped so the page doesn't scroll forever. */
/* Gallery — flex of image-sized tiles. Each container shrink-wraps its image (no crop, no letterbox, no forced column widths). */
.sport-pdf-page__gallery {
    margin: 36px auto 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 900px;
    padding: 0 20px;
    justify-content: center;
    align-items: flex-start;
}

/* These two intermediate wrappers just group their children — they pass through to the flex layout. */
.sport-pdf-page__team-row,
.sport-pdf-page__extra-grid { display: contents; }

/* Team photo — its container matches the image's aspect exactly (no fixed height, no bg). */
.sport-pdf-page__team {
    display: block;
    width: max-content;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sport-pdf-page__team:hover {
    transform: translateY(-2px) scale(1.008);
    box-shadow: 0 16px 34px rgba(0,0,0,0.38);
}
.sport-pdf-page__team img {
    display: block;
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
}

/* Extras — same treatment. Each tile matches its image. */
.sport-pdf-page__extra-item {
    display: block;
    width: max-content;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}
.sport-pdf-page__extra-item:hover { transform: translateY(-3px) scale(1.03); }
.sport-pdf-page__extra-item img {
    display: block;
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
}

/* Frameless mode for transparent-bg cut-outs — no box, just drop-shadow on the image */
.sport-pdf-page__extra-item.is-floating {
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.sport-pdf-page__extra-item.is-floating img {
    filter: drop-shadow(0 12px 22px rgba(0,0,0,0.45));
}

@media (max-width: 820px) {
    .sport-pdf-page__gallery { max-width: 560px; gap: 10px; }
    .sport-pdf-page__team img { max-height: 260px; }
    .sport-pdf-page__extra-item img { max-height: 180px; }
}

@media (max-width: 820px) {
    .sport-pdf-page__hero-inner { grid-template-columns: 1fr; }
    .sport-pdf-page__hero-photo { margin: 0 auto; max-width: 280px; transform: none; }
    .sport-pdf-page__body { grid-template-columns: 1fr; gap: 30px; padding: 40px 20px 30px; }
    .sport-pdf-page__coach { order: -1; }
    .sport-pdf-page__title-ghost { display: none; }
}
.sport-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.sport-detail-main h2 { margin: 24px 0 12px; }
.sport-detail-main h3 { margin: 24px 0 12px; color: var(--navy); }
.sport-detail-main p { color: var(--text); line-height: 1.7; }

.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.sidebar-card h4 { font-family: var(--font-nav); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); margin-bottom: 8px; }
.sidebar-card a { color: var(--navy); text-decoration: underline; }
.sport-sidebar-icon { text-align: center; margin-bottom: 16px; }
.sport-sidebar-icon img { max-width: 150px; margin: 0 auto; }
.sport-qr-code { text-align: center; margin-bottom: 16px; }
.sport-qr-code img { max-width: 200px; margin: 0 auto; border-radius: var(--radius); }

.data-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.data-table th { font-family: var(--font-nav); font-size: 0.8rem; text-transform: uppercase; color: var(--navy); background: var(--cream); }
.coach-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); display: inline-block; vertical-align: middle; margin-right: 8px; }

.team-logos-grid { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.team-logo-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.team-logo-card img { max-height: 80px; }

.sport-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 12px 0; }
.sport-gallery-item { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); }
.sport-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.sport-gallery-item:hover img { transform: scale(1.05); }

.achievements-list { list-style: none; margin: 12px 0; }
.achievements-list li { padding: 8px 0 8px 28px; position: relative; color: var(--text); font-size: 0.9rem; }
.achievements-list li::before { content: '\f5a2'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--gold); }

/* ========== ADMIN LINKS ========== */
.admin-links-list { max-width: 600px; margin: 0 auto; }
.admin-link-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); transition: background var(--transition); font-size: 0.95rem; }
.admin-link-item:hover { background: var(--cream); }
.admin-link-item i:first-child { color: var(--navy); width: 20px; }
.admin-link-item span { flex: 1; }
.admin-link-item i:last-child { color: var(--text-light); font-size: 0.8rem; }

/* ========== QUICK LINKS ========== */
.quick-links-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.quick-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--white); border: 1px solid var(--border); border-radius: 20px; font-size: 0.85rem; font-family: var(--font-nav); transition: all var(--transition); }
.quick-link:hover { border-color: var(--navy); color: var(--navy); }
.quick-link i { color: var(--navy); }

/* ========== SKOOLFONDS ========== */
/* Poster (HTML re-creation of the SKOOLGELD-2026.jpg) */
.skoolgeld-poster {
    margin: 32px auto 48px;
    padding: 36px 32px;
    max-width: 760px;
    background: linear-gradient(180deg, #c9a94e 0%, #b8973f 100%);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.18);
    color: var(--navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.skoolgeld-poster::before {
    content: '100%\AGENUINE JV\ASEDERT 1962';
    white-space: pre;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 4rem);
    color: rgba(255,255,255,0.10);
    line-height: 0.95;
    letter-spacing: 6px;
    text-align: center;
    pointer-events: none;
    z-index: 0;
}
.skoolgeld-poster > * { position: relative; z-index: 1; }
.skoolgeld-poster__title {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: clamp(1.6rem, 4.2vw, 2.4rem);
    letter-spacing: 2px;
    margin-bottom: 22px;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.4);
}
.skoolgeld-grades { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.skoolgeld-grade-card { background: rgba(255,255,255,0.55); border-radius: 10px; padding: 14px 18px; }
.skoolgeld-grade-card h3 { font-size: 1.1rem; color: var(--navy); margin: 0 0 12px; font-family: var(--font-heading); }
.skoolgeld-grade-card h3 span { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-light); text-transform: none; letter-spacing: 0; }
.skoolgeld-row { background: var(--white); padding: 10px 14px; border-radius: 6px; margin-bottom: 8px; font-size: 0.95rem; color: var(--navy); }
.skoolgeld-row strong { color: var(--navy); font-weight: 700; }
.skoolgeld-row:last-child { margin-bottom: 0; }
.skoolgeld-extras { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.skoolgeld-row--wide { background: var(--white); }
.skoolgeld-row--callout { background: var(--navy); color: #fff; font-weight: 600; padding: 14px 18px; }
.skoolgeld-row--callout strong { color: var(--gold); }
.skoolgeld-banking {
    background: rgba(255,255,255,0.92);
    border-radius: 10px;
    padding: 18px 22px;
    text-align: left;
    max-width: 540px;
    margin: 0 auto;
}
.skoolgeld-banking h4 { color: var(--navy); margin: 0 0 12px; font-size: 0.9rem; letter-spacing: 1.5px; text-transform: uppercase; }
.skoolgeld-banking dl { display: grid; grid-template-columns: 130px 1fr; gap: 4px 10px; margin: 0 0 10px; font-size: 0.88rem; }
.skoolgeld-banking dt { font-weight: 600; color: var(--text-light); }
.skoolgeld-banking dd { margin: 0; color: var(--navy); font-weight: 600; }
.skoolgeld-banking__note { font-size: 0.78rem; color: var(--text-light); font-style: italic; margin: 0; line-height: 1.4; }
.skoolgeld-cta { margin-top: 22px; }
@media (max-width: 540px) {
    .skoolgeld-grades { grid-template-columns: 1fr; }
    .skoolgeld-banking dl { grid-template-columns: 1fr; gap: 0; }
    .skoolgeld-banking dd { margin-bottom: 8px; }
}

/* Compact finance-staff cards (smaller photos, side-by-side layout) */
.finance-staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 20px; }
.finance-staff-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: row;
    transition: transform var(--transition), box-shadow var(--transition);
    align-items: stretch;
}
.finance-staff-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.12); }
.finance-staff-photo { flex: 0 0 110px; width: 110px; aspect-ratio: 1; overflow: hidden; background: var(--cream); }
.finance-staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.finance-staff-body { padding: 14px 18px; flex: 1; min-width: 0; }
.finance-staff-body h3 { color: var(--navy); font-size: 1rem; margin: 0 0 2px; }
.finance-staff-role { color: var(--gold); font-weight: 600; font-size: 0.72rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1.2px; }
.finance-staff-body p { font-size: 0.82rem; color: var(--text); margin-bottom: 3px; line-height: 1.5; word-break: break-word; }
.finance-staff-body p i { color: var(--gold); margin-right: 5px; width: 12px; font-size: 0.75rem; }
.finance-staff-body a { color: var(--navy); }
@media (max-width: 540px) {
    .finance-staff-card { flex-direction: column; }
    .finance-staff-photo { width: 100%; flex-basis: auto; aspect-ratio: 4/3; }
}

/* ========== CONTACT ========== */
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
/* Department contact grid (Fakulteit) — list of cards by team */
.dept-section h2 { display: flex; align-items: center; color: var(--navy); }
.dept-section h2 i { color: var(--gold); }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.dept-card {
    background: var(--white);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}
.dept-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.1); }
.dept-card__title { font-size: 0.95rem; color: var(--navy); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.dept-card__people { list-style: none; padding: 0; margin: 0; }
.dept-card__people li { padding: 8px 0; border-bottom: 1px dashed rgba(0,0,0,0.06); }
.dept-card__people li:last-child { border-bottom: 0; }
.dept-card__people strong { display: block; color: var(--dark); font-size: 0.95rem; margin-bottom: 3px; }
.dept-card__phone, .dept-card__email {
    display: block;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 2px;
    text-decoration: none;
    transition: color var(--transition);
}
.dept-card__email:hover { color: var(--navy); }
.dept-card__phone i, .dept-card__email i { color: var(--gold); margin-right: 6px; font-size: 0.75rem; width: 12px; }
.contact-form-wrap h2 { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem; transition: border-color var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); }

.contact-sidebar { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.contact-info-card h3 { font-family: var(--font-nav); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.contact-info-card p { font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }
.contact-info-card a { color: var(--navy); }

.contact-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-home-card { text-align: center; padding: 24px; }
.contact-home-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 12px; }
.contact-home-card h3 { margin-bottom: 6px; }
.contact-home-card p { font-size: 0.9rem; color: var(--text); }
.contact-home-card a { color: var(--navy); }

.contact-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ========== TABS ========== */
.tab-nav { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn { padding: 10px 20px; font-family: var(--font-nav); font-size: 0.8rem; font-weight: 600; border: 1px solid var(--border); background: var(--white); border-radius: var(--radius); cursor: pointer; transition: all var(--transition); text-transform: uppercase; }
.tab-btn.active, .tab-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.uniform-list { list-style: disc; padding-left: 24px; }
.uniform-list li { padding: 4px 0; color: var(--text); }

/* ========== YEARBOOK / JAARBLAD ========== */
.jaarblad-tabs-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    justify-content: center;
    flex-wrap: wrap;
}
.jaarblad-tab-btn {
    padding: 12px 28px;
    font-family: var(--font-nav);
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.35s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    position: relative;
}
.jaarblad-tab-btn:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.jaarblad-tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 4px 16px rgba(37,63,128,0.3); transform: translateY(-2px); }
.jaarblad-tab-btn .tab-badge { display: inline-block; background: var(--gold); color: #fff; font-size: 0.6rem; padding: 2px 6px; border-radius: 8px; margin-left: 6px; vertical-align: middle; }

.jaarblad-panel { display: none; }
.jaarblad-panel.active { display: block; animation: fadeInUp 0.4s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.jaarblad-viewer {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}
.jaarblad-viewer iframe,
.jaarblad-viewer embed,
.jaarblad-viewer object {
    width: 100%;
    height: 82vh;
    min-height: 600px;
    border: none;
    display: block;
}
.jaarblad-download {
    text-align: center;
    padding: 20px;
    background: var(--cream);
    border-top: 1px solid var(--border);
}
.jaarblad-download .btn { border-radius: 20px; }

/* Legacy yearbook cover cards (kept for compatibility) */
.yearbook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.yearbook-cover-card { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); border-radius: var(--radius); cursor: pointer; transition: all var(--transition); padding: 24px 16px; text-align: center; border: 2px solid transparent; }
.yearbook-cover-card:hover, .yearbook-cover-card.active { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.yearbook-cover-card.featured { border-color: var(--gold); }
.yearbook-year { display: block; font-family: var(--font-nav); font-size: 2rem; font-weight: 700; color: var(--gold); }
.yearbook-label { font-family: var(--font-nav); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.yearbook-viewer { min-height: 200px; }
.yearbook-embed { background: var(--white); border-radius: var(--radius); overflow: hidden; }

/* ========== FLIPBOOK (shared by Jaarblad + Stoepstories) ========== */
.book-viewer {
    max-width: 1000px; margin: 0 auto;
    background: #2c1810;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
}
.book-inner {
    background: #f5f0e8;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.flipbook-host {
    position: relative;
    min-height: 600px;
    padding: 24px 16px 60px;
    background: #f5f0e8;
    border-radius: 6px;
}
.flipbook-status {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #2c1810; font-family: var(--font-nav); font-size: 0.95rem;
    text-align: center; padding: 20px;
}
.flipbook-stage {
    display: flex; justify-content: center; align-items: center;
    min-height: 520px;
}
.flipbook-controls {
    position: absolute; bottom: 14px; left: 50%;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 16px;
    background: rgba(44,24,16,0.85); color: #fff;
    padding: 8px 18px; border-radius: 30px;
    font-family: var(--font-nav); font-size: 0.9rem;
}
.flipbook-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}
.flipbook-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.flipbook-page { min-width: 60px; text-align: center; font-weight: 600; }
.book-toolbar {
    display: flex; justify-content: center; align-items: center;
    gap: 12px; padding: 16px 0 4px; flex-wrap: wrap;
}
.book-toolbar a, .book-toolbar button {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 8px; font-size: 0.85rem;
    font-weight: 600; text-decoration: none; transition: all 0.3s;
    border: none; cursor: pointer; font-family: inherit;
}
.btn-book-download { background: var(--gold); color: var(--navy); }
.btn-book-download:hover { background: #c9a94e; transform: translateY(-2px); }
.btn-book-open {
    background: rgba(255,255,255,0.1); color: #d4c4a8; border: 1px solid rgba(255,255,255,0.15);
}
.btn-book-open:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-book-fullscreen { background: var(--navy); color: #fff; }
.btn-book-fullscreen:hover { background: #243b7a; transform: translateY(-2px); }
@media (max-width: 768px) {
    .book-viewer { padding: 8px; border-radius: 8px; }
    .flipbook-host { min-height: 500px; }
    .flipbook-stage { min-height: 420px; }
    .book-toolbar { flex-direction: column; gap: 8px; }
}

/* ========== VACANCY ========== */
.vacancy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.vacancy-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.vacancy-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.vacancy-card-image-full { overflow: hidden; }
.vacancy-card-image-full img { width: 100%; transition: transform 0.6s ease; }
.vacancy-card:hover .vacancy-card-image-full img { transform: scale(1.03); }
.vacancy-card-content { padding: 24px 28px; }
.vacancy-card-content h3 { margin-bottom: 8px; font-size: 1.15rem; }
.vacancy-badge { display: inline-block; padding: 4px 12px; background: var(--navy); color: #fff; font-family: var(--font-nav); font-size: 0.65rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border-radius: 20px; margin-bottom: 10px; }
.vacancy-date { font-size: 0.82rem; color: var(--text-light); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.vacancy-date i { color: var(--gold); }
.vacancy-excerpt { font-size: 0.9rem; color: var(--text); line-height: 1.6; margin-bottom: 16px; }
.vacancy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vacancy-actions .btn { border-radius: 20px; }

/* ========== INSTAGRAM ========== */
.instagram-grid-section { padding: 48px 0; text-align: center; background: var(--white); }
.instagram-grid-section h2 { margin-bottom: 4px; }
.instagram-grid-section > .container > p { margin-bottom: 20px; color: var(--text-light); }
.instagram-grid-section a { color: var(--navy); }
.instagram-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.instagram-item { position: relative; aspect-ratio: 1; overflow: hidden; }
.instagram-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.instagram-item:hover img { transform: scale(1.05); }
.instagram-overlay { position: absolute; inset: 0; background: rgba(37,63,128,0.5); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; opacity: 0; transition: opacity var(--transition); }
.instagram-item:hover .instagram-overlay { opacity: 1; }

/* ========== SPONSORS ========== */
.sponsors-bar { background: var(--white); padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.sponsors-title { font-family: var(--font-nav); font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-light); margin-bottom: 16px; }
.sponsors-marquee { position: relative; overflow: hidden; width: 100%; mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.sponsors-track { display: flex; align-items: center; gap: 70px; width: max-content; animation: sponsorsScroll 40s linear infinite; }
.sponsors-marquee:hover .sponsors-track { animation-play-state: paused; }
.sponsor-logo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.sponsor-logo img { height: 70px; width: auto; filter: grayscale(0.3); transition: filter var(--transition); }
.sponsor-logo:hover img { filter: grayscale(0); }
@keyframes sponsorsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sponsors-track { animation: none; } }

/* ========== FOOTER ========== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo-img { height: 64px; margin-bottom: 12px; }
.footer-school-name { font-family: var(--font-nav); font-weight: 700; color: #fff; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-col h4 { font-family: var(--font-nav); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer-col p { font-size: 0.85rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.footer-col a { display: block; font-size: 0.85rem; padding: 3px 0; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding: 16px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.gde-logo { height: 48px; background: #fff; padding: 4px 8px; border-radius: 4px; }

/* ========== BACK TO TOP ========== */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; border: none; cursor: pointer; font-size: 1rem; opacity: 0; visibility: hidden; transition: all var(--transition); z-index: 50; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); }

/* ========== CONTENT BLOCKS ========== */
.content-block h2 { margin-bottom: 16px; }
.content-block p { color: var(--text); line-height: 1.7; margin-bottom: 12px; }

/* ========== PREMIUM POLISH ========== */
/* Enhanced card transitions */
.info-card, .doc-card, .sport-card, .contact-home-card {
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s ease;
}
.info-card:hover, .doc-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.sport-card:hover .sport-card-overlay { background: rgba(37,63,128,0.35); }

/* Section dividers */
.section + .section { border-top: 1px solid rgba(0,0,0,0.04); }

/* Enhanced section headers */
.section-header h2 { letter-spacing: 0.5px; }
.section-underline { width: 80px; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 14px auto 0; border-radius: 2px; }

/* Contact home cards hover */
.contact-home-card { transition: transform 0.3s ease, box-shadow 0.3s ease; border-radius: var(--radius-xl); }
.contact-home-card:hover { transform: translateY(-4px); }
.contact-home-icon { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.contact-home-card:hover .contact-home-icon { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,63,128,0.3); }

/* Admin links enhancement */
.admin-link-item { border-radius: var(--radius); margin-bottom: 4px; }
.admin-link-item:hover { background: var(--cream); transform: translateX(4px); }
.admin-link-item i:first-child { font-size: 1.1rem; }

/* Stats section glassmorphism upgrade */
.stat-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ========== SCROLL REVEAL ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== PAGE HERO ENHANCED ========== */
.page-hero {
    background-image: url('../images/hero/title-background.jpg');
    background-size: cover;
    background-position: center;
    padding: 90px 0 70px;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,63,128,0.92) 0%, rgba(32,36,72,0.95) 100%);
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), #c9a94e, var(--gold));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-text h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 1px; }
.page-hero-badge img { max-width: 200px; opacity: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }
.page-hero .breadcrumbs { display: none; }

/* ========== UNIFORM IMAGES ========== */
.uniform-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.uniform-image-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.uniform-image-card img { max-height: 300px; margin: 0 auto; }
.uniform-image-card p { font-size: 0.85rem; color: var(--text-light); margin-top: 8px; font-family: var(--font-nav); }

/* ========== DFLIP CONTAINER ========== */
._df_book { min-height: 80vh; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .mobile-toggle { display: flex; order: -1; } /* hamburger lives LEFT on mobile */
    .header-inner { justify-content: space-between; }
    .header-crest-banner { width: 84px; height: 84px; transform: translate(-50%, -28%); }
    .header-crest-banner__bg { border-width: 3px; }
    /* Push page-hero further down so the hanging crest doesn't overlap title text */
    .site-header--hangbanner + main > .page-hero:first-child { padding-top: 110px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sport-detail-layout { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .instagram-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .top-bar-left { display: none; }
    body:not(.page-home) .section > .container { padding: 32px 20px; }
    .page-hero-badge { display: none; }
    .page-hero { padding: 60px 0 50px; }
    .hero-slider { aspect-ratio: 1920 / 780; max-height: 560px; }
    .slider-arrow { width: 40px; height: 40px; font-size: 0.9rem; }
    .slider-prev { left: 12px; }
    .slider-next { right: 12px; }
    .jaarblad-tab-btn { padding: 10px 18px; font-size: 0.75rem; }
    .jaarblad-viewer iframe, .jaarblad-viewer embed, .jaarblad-viewer object { height: 60vh; min-height: 400px; }
    .vacancy-grid { grid-template-columns: 1fr; }
    .contact-home-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-slider { aspect-ratio: 1920 / 880; max-height: 480px; }
    .slider-arrow { width: 36px; height: 36px; font-size: 0.85rem; }
    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-number { font-size: 1.8rem; }
    .card-grid { grid-template-columns: 1fr; }
    .sport-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sport-grid-hex { grid-template-columns: repeat(5, 1fr); gap: 10px; }
    .sport-hex-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sponsors-track { gap: 36px; animation-duration: 30s; }
    .sponsor-logo img { height: 44px; }
}
