﻿@font-face {
    font-family: 'Alfa Slab One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/alfa-slab-one-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Crimson Text';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/crimson-text-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Crimson Text';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/crimson-text-400-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Crimson Text';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/crimson-text-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('fonts/montserrat.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/oswald.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ISC Website Styles */
:root {
    /* 1. Backgrounds */
    --bg-main: #f0f4f8;
    --bg-surface: #ffffff;
    --bg-hover: #e8edf5;

    /* 2. Primary Accents */
    --primary: #0e1a3c;
    --primary-light: #3a57a7;
    --primary-glow: rgba(65, 105, 225, 0.2);

    /* 3. Text */
    --text-main: #121a36;
    --text-muted: #4a5872;

    /* 4. Borders */
    --border: #c8d2e4;

    /* 5. Shared tokens */
    --radius: 0px;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Dark-background sections restore white text */
header,
.hero,
.quote,
.panel,
.page-banner,
.page-banner-nav,
.leaderboard-table thead {
    --text-main: #e5eaef;
    --text-muted: #cbd5e1;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    position: relative;
}

/* Background ring decorations */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border: 80px solid var(--primary-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -300px;
    left: -200px;
    width: 800px;
    height: 800px;
    border: 100px solid rgba(40, 68, 152, 0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* ══════════════════════════════════════
   Header & Navigation
══════════════════════════════════════ */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2d5c 50%, var(--primary) 100%);
    color: var(--text-main);
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 -3px 0 var(--primary-light);
    text-transform: uppercase;
}

.header-live {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    background: rgba(229, 62, 62, 0.08);
    border: 1px solid rgba(229, 62, 62, 0.3);
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #e53e3e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: live-pulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7);
}

@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(229, 62, 62, 0.7); }
    70%  { box-shadow: 0 0 0 6px rgba(229, 62, 62, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(229, 62, 62, 0);   }
}

.live-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #e53e3e;
    letter-spacing: 1.5px;
}

.live-event-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-badge {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.logo {
    font-family: 'Alfa Slab One', cursive;
    color: var(--text-main);
    font-size: 3.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo-divider {
    display: inline-block;
    width: 1px;
    height: 2rem;
    background: rgba(241, 245, 249, 0.3);
    flex-shrink: 0;
}

.logo-tagline {
    font-family: 'Crimson Text', serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.4;
    max-width: 120px;
}

.logo:hover {
    color: var(--primary-light);
    text-shadow: 0 0 20px var(--primary-glow);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.125rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0rem;
    padding: 1rem 1.0rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    letter-spacing: 1px;
    white-space: nowrap;
}

nav a:hover, nav a.active {
    background-color: var(--primary-light);
    color: var(--bg-main);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-switch a {
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--text-main);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-switch a:hover,
.lang-switch a.active {
    background-color: var(--text-main);
    color: var(--primary);
}

/* Dropdown */
nav > ul > li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    background: var(--primary);
    width: 200px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    padding: 0.5rem 0;
}

nav > ul > li:last-child .dropdown {
    left: auto;
    right: 0;
}

nav > ul > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li { padding: 0; }

.dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown a:hover {
    background: var(--primary-light);
    color: var(--text-main);
}

.has-dropdown > a::after {
    content: ' ▾';
    font-size: 0.7em;
}

.hamburger { display: none; }

.header-search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(241, 245, 249, 0.2);
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    gap: 0.5rem;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.header-search-bar:focus-within {
    border-color: var(--primary-light);
    background: rgba(96, 133, 240, 0.08);
}

.header-search-bar svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.header-search-bar input {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    width: 150px;
}

.header-search-bar input::placeholder {
    color: var(--text-muted);
}

/* ══════════════════════════════════════
   Hero Section (page-top banners)
══════════════════════════════════════ */
.hero {
    position: relative;
    color: var(--text-main);
    text-align: center;
    padding: 8rem 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(40, 68, 152, 0.95) 0%, rgba(11, 14, 20, 0.9) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 200%;
    background: repeating-linear-gradient(
        -45deg,
        transparent, transparent 20px,
        rgba(96, 133, 240, 0.1) 20px, rgba(96, 133, 240, 0.1) 40px
    );
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

.hero .tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--primary-light);
    font-weight: 500;
    letter-spacing: 2px;
}

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

.stat-item { text-align: center; }

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
}

/* ══════════════════════════════════════
   Page Banner (index hero image)
══════════════════════════════════════ */
.page-banner {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
    color: var(--text-main);
    text-align: center;
    background-image: url('media/positioned/general/banner.jpg');
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: center;
    background-attachment: local;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11,14,20,0.15) 0%, rgba(11,14,20,0.35) 100%);
    pointer-events: none;
}

.page-banner-overlay {
    position: relative;
    z-index: 1;
}

.page-banner-title {
    font-family: 'Crimson Text', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #f5f5f5;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    margin: 0;
}

.page-banner-sub {
    font-family: 'Crimson Text', sans-serif;
    font-size: 1.7rem;
    color: #e0e0e0;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0;
}

.page-banner-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1a2d5c 50%, var(--primary) 100%);
    flex-wrap: wrap;
    color: var(--text-main);
}


/* ══════════════════════════════════════
   Main Content
══════════════════════════════════════ */
main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 2rem;
    position: relative;
}

main::before {
    content: '';
    position: absolute;
    top: 200px;
    left: -100px;
    width: 300px;
    height: 300px;
    border: 40px solid rgba(40, 68, 152, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

section { margin-bottom: 3rem; }

/* ══════════════════════════════════════
   Typography
══════════════════════════════════════ */
h2 {
    font-family: 'Crimson Text', sans-serif;
    font-weight: 500;
    font-size: 3rem;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 4px solid var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--primary-light);
}

h3 {
    font-family: 'Crimson Text', sans-serif;
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: 0px;
}

h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════
   Button
══════════════════════════════════════ */
.btn {
    display: inline-block;
    background: transparent;
    color: inherit;
    border: 3px solid currentColor;
    border-radius: 0;
    padding: 1rem 1rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--primary-light)}

/* ══════════════════════════════════════
   Box — universal surface
══════════════════════════════════════ */
.box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Accent stripe — default on text-only boxes */
.box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(96, 133, 240, 0.25);
}

.box-body { padding: 1.5rem 1.5rem 1rem; }

.box-body h3 { line-height: 1.2; margin-bottom: 0.5rem; }

.box-body p:last-child { margin-bottom: 0; }

/* Base image inside any box — grid decides width */
.box > img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Suppress accent stripe on any box that directly contains an image */
.box:has(> img)::before { display: none; }

/* Aspect ratios set by grid modifier; combined with width, image area is fully defined */
.box--portrait .box > img { aspect-ratio: 2 / 3; }
.box--landscape .box > img { aspect-ratio: 3 / 2; }
.box--square .box > img   { aspect-ratio: 1 / 1; }

/* Side: image beside content */
.box--side {
    display: grid;
    grid-template-columns: 2fr 3fr;
    overflow: hidden;
}

.box--side > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.box--side:nth-child(even) {
    grid-template-columns: 3fr 2fr;
}

.box--side:nth-child(even) > img          { order: 2; }
.box--side:nth-child(even) .box-side-body { order: 1; }

.box--side + .box--side { margin-top: 2.5rem; }

/* ══════════════════════════════════════
   Photo credit — optional photographer overlay
   credits.js wraps an <img>/<video> in .photo-credit only when a
   credit is defined for it, so the rules below only ever apply then.
══════════════════════════════════════ */
.photo-credit {
    position: relative;
    display: block;
}

.photo-credit__tag {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.15rem 0.55rem;
    background: rgba(14, 26, 60, 0.72);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    line-height: 1.4;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.photo-credit:hover .photo-credit__tag,
.photo-credit:focus-within .photo-credit__tag {
    opacity: 1;
}

/* .box and .box--side size their image via a direct-child selector;
   re-apply the same sizing one level down once credits.js wraps the img. */
.box > .photo-credit > img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.box:has(> .photo-credit)::before { display: none; }
.box--portrait .box > .photo-credit > img { aspect-ratio: 2 / 3; }
.box--landscape .box > .photo-credit > img { aspect-ratio: 3 / 2; }
.box--square .box > .photo-credit > img   { aspect-ratio: 1 / 1; }

.box--side > .photo-credit {
    width: 100%;
    height: 100%;
}
.box--side > .photo-credit > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.box--side:nth-child(even) > .photo-credit { order: 2; }

/* Timeline vertical accent stripe */
.section--timeline {
    position: relative;
    padding-left: 1.5rem;
}
.section--timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background: var(--primary-light);
}

.box-side-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Flex: horizontal icon + content layout (pillar cards) */
.box--flex {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    overflow: visible;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.box--flex::before { display: none; }

.box--flex:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pillar-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a2d5c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(96, 133, 240, 0.3);
}

.pillar-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-light);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ══════════════════════════════════════
   Grid System
══════════════════════════════════════ */
.grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

/* ══════════════════════════════════════
   Section Header
══════════════════════════════════════ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-header h2::after { display: none; }

.section-header .view-all-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.section-header .view-all-link:hover { color: var(--text-main); }

/* ══════════════════════════════════════
   Panel — dark accent block
   (replaces .quote and .history-teaser)
══════════════════════════════════════ */
.panel {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2d5c 50%, var(--primary) 100%);
    border-radius: var(--radius);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
    color: var(--text-main);
}

.panel::after {
    content: '';
    position: absolute;
    top: -50%; right: -5%;
    width: 200px;
    height: 200%;
    background: repeating-linear-gradient(
        -45deg,
        transparent, transparent 15px,
        rgba(255, 255, 255, 0.05) 15px, rgba(255, 255, 255, 0.05) 30px
    );
    pointer-events: none;
}

.panel-quote-mark {
    position: absolute;
    top: 10px;
    left: 30px;
    font-size: 8rem;
    font-family: 'Crimson Text', sans-serif;
    color: rgba(96, 133, 240, 0.2);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Direct-child paragraphs are quote text */
.panel > p {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    font-style: italic;
    text-align: center;
    color: var(--text-main);
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.panel cite {
    font-family: 'Crimson Text', serif;
    color: var(--primary-light);
    font-size: 1.3rem;
    font-style: normal;
    font-weight: 600;
    display: block;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Split modifier: 2-column layout with image */
.panel--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.panel--split img {
    width: 70%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.panel-content { position: relative; z-index: 1; }

.panel-content h3 {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 1px;
    color: var(--text-main);
    text-transform: none;
}

.panel-content p {
    color: var(--text-main);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* ══════════════════════════════════════
   News Cards
══════════════════════════════════════ */
.news-card,
.box--news {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

/* No accent stripe on news cards */
.news-card::before,
.box--news::before { display: none; }

.news-card:hover,
.box--news:hover { transform: translateY(-5px); }

.news-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 38%;
}

.news-card-content { padding: 1.5rem 1.5rem 1rem; }

.news-card-date {
    font-family: 'Crimson Text', serif;
    color: var(--primary-light);
    font-size: 1.05rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    line-height: 1.35;
    min-height: calc(3 * 1.35em);
    color: var(--text-main);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    overflow: hidden;
}

.news-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: calc(4 * 1.6em);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

/* Hero / featured news card */
.news-featured {
    grid-column: 1 / -1;
    position: relative;
    min-height: 400px;
}

.news-featured .news-card-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 38%;
    z-index: 0;
    aspect-ratio: unset;
}

.news-featured::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(14, 26, 60, 0.85) 0%, rgba(11, 14, 20, 0.7) 100%);
    z-index: 1;
}

.news-featured .news-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    height: 100%;
    min-height: 600px;
}

.news-featured .news-card-title {
    font-size: 2.2rem;
    color: #f1f5f9;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.news-featured .news-card-excerpt {
    color: #f1f5f9;
    opacity: 0.9;
}

/* ══════════════════════════════════════
   Rules List
══════════════════════════════════════ */
.rules-list {
    counter-reset: rule-counter;
    list-style: none;
}

.rules-list li {
    counter-increment: rule-counter;
    margin-bottom: 1.5rem;
    padding-left: 3.5rem;
    position: relative;
    color: var(--text-muted);
}

.rules-list li::before {
    content: counter(rule-counter);
    position: absolute;
    left: 0; top: -0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
}

/* ══════════════════════════════════════
   Leaderboard Table
══════════════════════════════════════ */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.leaderboard-table th {
    background: var(--primary);
    color: var(--text-main);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.leaderboard-table tr:last-child td { border-bottom: none; }
.leaderboard-table tr:hover { background: var(--bg-hover); }

.leaderboard-table .rank {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-light);
    width: 48px;
    white-space: nowrap;
}

.leaderboard-table .strokes {
    width: 90px;
    white-space: nowrap;
}

.leaderboard-table .rank-1 { color: #ffd700; text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.leaderboard-table .rank-2 { color: #c0c0c0; text-shadow: 0 0 10px rgba(192,192,192,0.5); }
.leaderboard-table .rank-3 { color: #cd7f32; text-shadow: 0 0 10px rgba(205,127,50,0.5); }

.leaderboard-table .country-flag {
    width: 28px;
    height: 20px;
    margin-right: 0.75rem;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.leaderboard-table .country-name { font-weight: 600; color: var(--text-main); }

.leaderboard-table .points {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-light);
    width: 72px;
    white-space: nowrap;
}

/* ══════════════════════════════════════
   Events Calendar
══════════════════════════════════════ */
.events-continent { margin-bottom: 3rem; }

.events-continent h3 {
    color: var(--primary-light);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: translateX(8px);
    background: var(--bg-hover);
    border-left-color: var(--primary-light);
}

.event-item--real {
    background: var(--bg-main);
    border-left: 3px solid var(--text-muted);
}
.event-item--real:hover {
    border-left-color: var(--text-muted);
}

.event-name { font-weight: 600; color: var(--text-main); }
.event-location { color: var(--text-muted); font-size: 0.9rem; }

.event-date {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-light);
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 1px;
}

.role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* ══════════════════════════════════════
   About Section
══════════════════════════════════════ */
.about-intro {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.about-intro img {
    width: 40%;
    flex-shrink: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ══════════════════════════════════════
   Footer
══════════════════════════════════════ */
footer {
    background: var(--bg-surface);
    color: var(--text-main);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 4px solid var(--primary-light);
    border-bottom: 4px solid var(--primary-light);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(400px, 100%);
    aspect-ratio: 1 / 1;
    border: 60px solid rgba(40, 68, 152, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

footer p {
    font-family: 'Crimson Text', serif;
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════
   Responsive
══════════════════════════════════════ */
@media (max-width: 1440px) {
    .panel--split { grid-template-columns: 1fr; }
    .panel--split img { order: -1; width: 100%; margin: 0 auto; display: block; }
}

@media (max-width: 1300px) {
    nav ul { gap: 0.75rem; }
    .page-banner-title { font-size: 3.2rem; }
    .page-banner-sub { font-size: 1.4rem; }
    .header-search-bar { display: none; }
}

@media (max-width: 1200px) {
    .panel::after { display: none; }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .header-live { display: none; }
}

@media (max-width: 900px) {
    html { font-size: 14px; }
    /* Page banner */
    .page-banner { height: 400px; background-image: url('media/positioned/general/banner-mobile.jpg'); }
    .page-banner-title { font-size: 2.4rem; letter-spacing: 2px; }
    .page-banner-sub { font-size: 1.1rem; letter-spacing: 1px; }

    /* Headings */
    h2 { line-height: 1.1; }
    h3 { line-height: 1.1; }

    /* Grid */
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .box--side,
    .box--side:nth-child(even) { grid-template-columns: 1fr; }
    .box--side > img,
    .box--side:nth-child(even) > img          { order: 0; aspect-ratio: 1 / 1; }
    .box--side:nth-child(even) .box-side-body { order: 1; }
    .box--side > .photo-credit,
    .box--side:nth-child(even) > .photo-credit { order: 0; }
    .box--side > .photo-credit > img,
    .box--side:nth-child(even) > .photo-credit > img { aspect-ratio: 1 / 1; }

    /* Content layout */
    .hero { padding: 1.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero .stats { flex-direction: column; gap: 2rem; }
    .box--split,
    .box--split:nth-child(even) { grid-template-columns: 1fr; }
    .box--split:nth-child(even) .box-split-img,
    .box--split:nth-child(even) .box-split-body { grid-column: 1; grid-row: unset; }
    .box-split-img { width: 100%; height: 280px; }
    body::before, body::after { display: none; }
    .about-intro { flex-direction: column; }
    .about-intro img { width: 100%; }
    .news-featured { min-height: 300px; }
    .news-featured .news-card-content { min-height: 300px; padding: 2rem; }
    .news-featured .news-card-title { font-size: 1.5rem; }

    /* Leaderboard: hide game summary column */
    .leaderboard-table .game-summary { display: none; }

    /* Header: single row, shrunk */
    .header-container { padding: 0.5rem 1rem; }
    .logo { font-size: 1.5rem; letter-spacing: 1px; }
    .logo-badge { width: 42px; height: 42px; }

    /* Hamburger button */
    nav { display: none; }
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-main);
        border-radius: 1px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    header.nav-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    header.nav-open .hamburger span:nth-child(2) { opacity: 0; }
    header.nav-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* Open nav panel */
    header.nav-open nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        box-shadow: 0 8px 30px rgba(0,0,0,0.5);
        z-index: 999;
    }
    header.nav-open nav ul { flex-direction: column; gap: 0; }
    header.nav-open nav a {
        display: block;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    /* Sub-menus */
    header.nav-open .dropdown {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        padding: 0;
        background: rgba(0,0,0,0.25);
    }
    header.nav-open .has-dropdown.open .dropdown { display: block; }
    header.nav-open .dropdown a {
        padding-left: 2.5rem;
        font-size: 0.85rem;
    }
}

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

    /* Section header: stack link below heading */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .section-header .view-all-link { margin-top: 0.4rem; }

    /* Buttons */
    .btn { font-size: 0.8rem; letter-spacing: 1px; padding: 0.75rem 1rem; }
    .page-banner-nav .btn { width: 100%; }

    /* Footer */
    .footer-links { gap: 1rem; }

    /* Event items: stack date below name/location */
    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    .event-item > div:first-child { display: contents; }

    /* Leaderboard: tighter narrow columns */
    .leaderboard-table th,
    .leaderboard-table td { padding: 0.9rem 0.6rem; }
    .leaderboard-table .rank { width: 32px; font-size: 1rem; }
    .leaderboard-table .points { width: 52px; font-size: 0.95rem; }
    .leaderboard-table .strokes { width: 68px; font-size: 0.95rem; }

}

@media (max-width: 400px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .page-banner-title { font-size: 1.8rem; letter-spacing: 1px; }
    .page-banner-sub { font-size: 0.95rem; letter-spacing: 0.5px; }

    .page-banner-nav { flex-direction: column; padding: 1rem; gap: 0.75rem; }

}

/* =========================================================
   Community Gallery
   ========================================================= */

.community-masonry {
    column-count: 4;
    column-gap: 0.5rem;
    padding: 0.5rem 0;
}

.community-item {
    break-inside: avoid;
    margin-bottom: 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    overflow: hidden;
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.community-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(14, 26, 60, 0.18);
    z-index: 1;
    position: relative;
}

.community-item img,
.community-item video {
    display: block;
    width: 100%;
    height: auto;
}

.community-item figcaption {
    padding: 0.5rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .community-masonry { column-count: 3; }
}

@media (max-width: 760px) {
    .community-masonry { column-count: 2; }
}

@media (max-width: 400px) {
    .community-masonry { column-count: 1; }
}

