/* RaceHub — Modern Dark Theme */

:root {
    /* core dark palette */
    --rh-bg:            #070a11;
    --rh-bg-2:          #0b111c;
    --rh-panel:         rgba(18, 24, 36, 0.78);
    --rh-panel-solid:   #121826;
    --rh-elev:          rgba(28, 36, 52, 0.92);
    --rh-border:        rgba(255, 255, 255, 0.09);
    --rh-border-strong: rgba(255, 255, 255, 0.16);

    /* text */
    --rh-text:          #e8edf6;
    --rh-text-dim:      #9aa6b8;
    --rh-text-faint:    #6b7689;

    /* accents */
    --rh-accent:        #3b82f6;  /* electric blue */
    --rh-accent-2:      #f97316;  /* race orange  */
    --rh-success:       #22c55e;
    --rh-warning:       #f59e0b;
    --rh-danger:        #ef4444;

    --rh-accent-grad:   linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --rh-fire-grad:     linear-gradient(135deg, #f97316 0%, #ef4444 100%);

    --rh-shadow:        0 24px 60px rgba(0, 0, 0, 0.55);
    --rh-shadow-sm:     0 8px 24px rgba(0, 0, 0, 0.4);
    --rh-radius:        16px;

    /* legacy aliases kept so older rules/markup keep resolving */
    --racehub-primary:   #0f141e;
    --racehub-secondary: #1a2332;
    --racehub-accent:    var(--rh-accent);
    --racehub-success:   var(--rh-success);
    --racehub-warning:   var(--rh-warning);
    --racehub-danger:    var(--rh-danger);
}

* { scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }

html { scroll-behavior: smooth; }

body {
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--rh-bg);
    color: var(--rh-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Site-wide background image seen through a transparent dark wash */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(165deg, rgba(7, 10, 17, 0.93) 0%, rgba(11, 17, 28, 0.84) 45%, rgba(7, 10, 17, 0.96) 100%),
        url("/assets/img/bg/10168171.jpg");
    background-size: cover;
    background-position: center 20%;
    background-attachment: fixed;
}

/* faint accent glows for depth */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 500px at 12% -5%, rgba(59, 130, 246, 0.16), transparent 60%),
        radial-gradient(800px 500px at 100% 0%, rgba(249, 115, 22, 0.12), transparent 55%);
}

a { color: var(--rh-accent); }
a:hover { color: #6ea8fe; }

::selection { background: rgba(59, 130, 246, 0.4); color: #fff; }

/* ===========================================================
   Header / Navbar
   =========================================================== */
.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid var(--rh-border);
}

.modern-header .navbar {
    padding: 0.75rem 0;
    background: linear-gradient(135deg, rgba(10, 14, 22, 0.92), rgba(16, 22, 35, 0.92)) !important;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.brand-wrapper { display: flex; align-items: center; gap: 1rem; }

.brand-logo {
    height: 56px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.brand-tagline {
    font-family: "Oswald", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--rh-text-dim);
    text-transform: uppercase;
}

.navbar-brand:hover .brand-logo { transform: scale(1.05); }
.navbar-brand:hover .brand-tagline { color: var(--rh-accent); }

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    position: relative;
    color: rgba(232, 237, 246, 0.82) !important;
    border-radius: 10px;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.07);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--rh-accent-grad);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 55%; }

.nav-link-cta {
    background: var(--rh-accent-grad);
    border-radius: 10px;
    padding: 0.5rem 1.25rem !important;
    margin-left: 0.5rem;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.5);
    color: #fff !important;
}

.nav-link-cta::after { display: none; }

.navbar-toggler { color: var(--rh-text); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(232,237,246,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .brand-logo { height: 46px; }
    .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--rh-border);
    }
    .nav-item { margin: 0.25rem 0; }
    .nav-link { padding: 0.75rem 1rem !important; }
    .nav-link-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
}

/* ===========================================================
   Typography & headings
   =========================================================== */
main { flex: 1; }

h1, h2, h3, .page-header h1, .hero-section h1 {
    color: #fff;
    letter-spacing: -0.01em;
}

h1, h2 { font-family: "Oswald", sans-serif; font-weight: 600; }

/* ===========================================================
   Hero
   =========================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 5.5rem 0;
    margin-bottom: 3rem;
    border-radius: 22px;
    border: 1px solid var(--rh-border);
    box-shadow: var(--rh-shadow);
    background:
        linear-gradient(120deg, rgba(7, 10, 17, 0.88) 0%, rgba(7, 10, 17, 0.55) 55%, rgba(249, 115, 22, 0.25) 100%),
        url("/assets/img/bg/10313672.jpg");
    background-size: cover;
    background-position: center 35%;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 10, 17, 0.85), transparent 45%);
    pointer-events: none;
}

.hero-section .container { position: relative; z-index: 2; }

.hero-section .hero-eyebrow {
    display: inline-block;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffd9b8;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(255, 217, 184, 0.4);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
}

.hero-section h1 {
    font-family: "Oswald", sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 1.02;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-section h1 .accent {
    background: var(--rh-fire-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p,
.hero-section .lead {
    font-size: 1.2rem;
    color: rgba(232, 237, 246, 0.9);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* small stat strip under hero */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat .num {
    font-family: "Oswald", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.hero-stats .stat .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rh-text-dim);
}

/* ===========================================================
   Page headers
   =========================================================== */
.page-header { margin-bottom: 2rem; }

.page-header h1 {
    font-family: "Oswald", sans-serif;
    font-size: 2.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
}

.page-header h1 i { color: var(--rh-accent); }

.page-header p { color: var(--rh-text-dim); font-size: 1.05rem; }

/* ===========================================================
   Cards & surfaces (the "image through transparent dark" panels)
   =========================================================== */
.card {
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
    background: var(--rh-panel);
    color: var(--rh-text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--rh-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rh-shadow);
    border-color: var(--rh-border-strong);
}

.card-body { color: var(--rh-text); }

/* Bootstrap light utilities would blast a white block on the dark theme —
   retint them so any page using bg-light/bg-white/text-dark stays consistent. */
.bg-light, .bg-white {
    background-color: var(--rh-panel-solid) !important;
    color: var(--rh-text) !important;
}
.text-dark { color: var(--rh-text) !important; }
.text-muted { color: var(--rh-text-dim) !important; }

/* highlight panel (e.g. the howTo CTA) — subtle accent instead of a white block */
.cta-panel {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

/* ===========================================================
   Tables (plain Bootstrap tables + contributte datagrid)
   Functionality unchanged — only colours are themed.
   =========================================================== */
.table-responsive {
    border-radius: var(--rh-radius);
    overflow: hidden;
    box-shadow: var(--rh-shadow-sm);
    background: var(--rh-panel);
    border: 1px solid var(--rh-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.table {
    margin-bottom: 0;
    color: var(--rh-text);
    --bs-table-bg: transparent;
    --bs-table-color: var(--rh-text);
    --bs-table-border-color: var(--rh-border);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-striped-color: var(--rh-text);
    --bs-table-hover-bg: rgba(59, 130, 246, 0.12);
    --bs-table-hover-color: #fff;
    --bs-table-accent-bg: transparent;
}

.table thead,
.table thead.table-dark,
.table .datagrid-row-filters,
table.datagrid thead {
    background: linear-gradient(135deg, #0f1626 0%, #182338 100%);
    --bs-table-bg: transparent;
    color: #fff;
}

.table thead th,
table.datagrid thead th {
    border: none;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    padding: 0.95rem 1rem;
}

.table tbody tr {
    border-bottom: 1px solid var(--rh-border);
}

.table tbody tr:last-child { border-bottom: none; }

.table tbody td,
table.datagrid tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    color: var(--rh-text);
    border-color: var(--rh-border);
}

.table a { color: #6ea8fe; }
.table a:hover { color: #9ec5fe; }

/* Bootstrap contextual row classes (used in datagrid detail tables: league point
   types, lap locations, hall-of-fame years) ship light backgrounds that are
   illegible on the dark theme — retint them as translucent semantic overlays. */
.table-primary { --bs-table-bg: rgba(59, 130, 246, 0.20); --bs-table-color: #e6efff; --bs-table-border-color: var(--rh-border); }
.table-info    { --bs-table-bg: rgba(59, 130, 246, 0.14); --bs-table-color: #d6e4fb; --bs-table-border-color: var(--rh-border); }
.table-success { --bs-table-bg: rgba(34, 197, 94, 0.16);  --bs-table-color: #d9f5e3; --bs-table-border-color: var(--rh-border); }
.table-warning { --bs-table-bg: rgba(234, 179, 8, 0.16);  --bs-table-color: #f7ecc9; --bs-table-border-color: var(--rh-border); }
.table-danger  { --bs-table-bg: rgba(239, 68, 68, 0.16);  --bs-table-color: #f6d5d5; --bs-table-border-color: var(--rh-border); }

/* women / highlighted rows — brightened for dark bg */
.tr-red td {
    font-weight: 700;
    color: #ff7a7a !important;
}

/* ===========================================================
   Contributte datagrid chrome
   =========================================================== */
.datagrid {
    background: var(--rh-panel);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
    padding: 1rem 1rem 0.5rem;
    box-shadow: var(--rh-shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--rh-text);
}

.datagrid .table-responsive {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.datagrid table.table { background: transparent; }

.datagrid .row-grid-top,
.datagrid .datagrid-toolbar,
.datagrid .col-per-page,
.datagrid .datagrid-per-page,
.datagrid label,
.datagrid .text-muted,
.datagrid small {
    color: var(--rh-text-dim) !important;
}

.datagrid .pagination .page-link {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--rh-border);
    color: var(--rh-text);
}
.datagrid .pagination .page-item.active .page-link {
    background: var(--rh-accent);
    border-color: var(--rh-accent);
    color: #fff;
}
.datagrid .pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.02);
    color: var(--rh-text-faint);
}

/* grid footer (pagination / per-page / reset-filter row) — was rendering as a
   bright white bar because Bootstrap's default table bg leaks into the tfoot */
.table tfoot,
table.datagrid tfoot,
table.datagrid tfoot td,
.datagrid .row-grid-bottom {
    background: transparent !important;
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    color: var(--rh-text-dim);
    border-color: var(--rh-border);
}
.datagrid .row-grid-bottom { padding-top: 0.75rem; }
.datagrid .col-items { color: var(--rh-text-dim); }

/* ===========================================================
   Form controls (filters, register form) — dark
   =========================================================== */
.form-control,
.form-select,
.input-group-text {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--rh-border-strong);
    color: var(--rh-text);
}

.form-control::placeholder { color: var(--rh-text-faint); }

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: var(--rh-accent);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-select { color: var(--rh-text); }
.form-select option { background: var(--rh-panel-solid); color: var(--rh-text); }

.form-label, label { color: var(--rh-text-dim); }

.input-group-text { color: var(--rh-text-dim); }

/* select2 (datagrid filter dropdowns) */
.select2-container--bootstrap-5 .select2-selection {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--rh-border-strong) !important;
    color: var(--rh-text) !important;
}
.select2-container--bootstrap-5 .select2-selection__rendered,
.select2-container--bootstrap-5 .select2-selection__placeholder {
    color: var(--rh-text) !important;
}
.select2-dropdown {
    background: var(--rh-panel-solid) !important;
    border-color: var(--rh-border-strong) !important;
    color: var(--rh-text) !important;
}
.select2-container--bootstrap-5 .select2-results__option { color: var(--rh-text) !important; }
.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--rh-accent) !important;
    color: #fff !important;
}
.select2-search__field {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--rh-text) !important;
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

.btn-primary {
    background: var(--rh-accent-grad);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(59, 130, 246, 0.45); }

.btn-cta {
    background: var(--rh-fire-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}
.btn-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(249, 115, 22, 0.5); }

.btn-outline-primary { border-color: var(--rh-accent); color: #8bb6ff; }
.btn-outline-primary:hover {
    background-color: var(--rh-accent); border-color: var(--rh-accent); color: #fff;
    transform: translateY(-2px); box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.btn-outline-success { border-color: var(--rh-success); color: #6ee7a8; }
.btn-outline-success:hover {
    background-color: var(--rh-success); border-color: var(--rh-success); color: #06231a;
    transform: translateY(-2px); box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}

.btn-outline-warning { border-color: var(--rh-warning); color: #fbbf5a; }
.btn-outline-warning:hover {
    background-color: var(--rh-warning); border-color: var(--rh-warning); color: #2a1d00;
    transform: translateY(-2px); box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

/* outline-dark is illegible on a dark bg — flip to a light outline */
.btn-outline-dark,
.btn-outline-secondary {
    border-color: var(--rh-border-strong);
    color: var(--rh-text);
}
.btn-outline-dark:hover,
.btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--rh-text-dim);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--rh-border-strong);
    color: #fff;
}
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.18); color: #fff; }

.btn-dark {
    background: var(--rh-accent-grad);
    border-color: transparent;
    color: #fff;
}

.btn .fa { margin-right: 0.4rem; }

/* ===========================================================
   Dropdown menus (league/race filters)
   =========================================================== */
.dropdown-menu {
    background: var(--rh-panel-solid);
    border: 1px solid var(--rh-border-strong);
    border-radius: 12px;
    box-shadow: var(--rh-shadow);
    padding: 0.4rem;
}
.dropdown-item { color: var(--rh-text); border-radius: 8px; }
.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(59, 130, 246, 0.18);
    color: #fff;
}
.dropdown-divider { border-color: var(--rh-border); }
/* our filter dropdowns are toggled manually (see @layout.latte) without Popper,
   so pin the menu directly under its toggle */
.dropdown-menu.rh-open { position: absolute; inset: 100% auto auto 0; margin-top: 0.25rem; }

/* league header filter toolbar — vertical rule between scope & category groups */
.league-toolbar-divider {
    align-self: stretch;
    width: 1px;
    min-height: 1.75rem;
    margin: 0 0.35rem;
    background: var(--rh-border-strong);
}
.league-nav-break { display: none; }

@media (max-width: 991px) {
    .league-toolbar-divider { display: none; }      /* hide vertical rule when stacked */
    .league-nav-break { display: block; flex-basis: 100%; height: 0; }  /* force two rows */
}

/* ===========================================================
   Bootstrap nav-tabs (the race/league tab bar in @race_tabs.latte)
   Inline styles in the template still drive the active state; we
   just make the inactive chrome readable on dark.
   =========================================================== */
.nav-tabs {
    border-bottom: 1px solid var(--rh-border) !important;
}
.nav-tabs .nav-link {
    color: var(--rh-text-dim) !important;
    border: none;
}
.nav-tabs .nav-link:hover { color: #fff !important; }
/* @race_tabs.latte sets an inline white active background that is too harsh on
   the dark theme; override it with a dark panel + blue accent border (kept inline). */
.nav-tabs .nav-link.active {
    color: #fff !important;
    background-color: var(--rh-panel-solid) !important;
}

/* the @race_tabs card uses inline light styles; tint its body dark */
.card .nav-tabs { background-color: rgba(255, 255, 255, 0.02) !important; }

/* ===========================================================
   Badges, alerts, misc
   =========================================================== */
.badge { border-radius: 7px; padding: 0.45rem 0.7rem; font-weight: 600; }

.alert { border: 1px solid var(--rh-border); border-radius: 12px; }
.alert-success { background: rgba(34, 197, 94, 0.14); color: #b7f3cf; }
.alert-danger  { background: rgba(239, 68, 68, 0.14); color: #ffc4c4; }
.alert-warning { background: rgba(245, 158, 11, 0.14); color: #ffe0a8; }
.alert-info    { background: rgba(59, 130, 246, 0.14); color: #c5dbff; }

.text-muted { color: var(--rh-text-dim) !important; }
hr { border-color: var(--rh-border); }

/* ===========================================================
   Footer
   =========================================================== */
.footer {
    position: relative;
    color: var(--rh-text-dim);
    padding: 3.5rem 0 1.25rem;
    margin-top: 4rem;
    border-top: 1px solid var(--rh-border);
    background:
        linear-gradient(180deg, rgba(7, 10, 17, 0.94), rgba(7, 10, 17, 0.98)),
        url("/assets/img/bg/10313668.jpg");
    background-size: cover;
    background-position: center 30%;
}

.footer h5 {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}
.footer h5 i { color: var(--rh-accent); }

.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.5rem; }

.footer a { color: var(--rh-text-dim); text-decoration: none; transition: color 0.25s ease; }
.footer a:hover { color: #fff; }

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rh-border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--rh-text-faint);
}

/* ===========================================================
   Animations
   =========================================================== */
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.flash-message { animation: slideInDown 0.5s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.7s ease; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 768px) {
    .hero-section { padding: 3.5rem 0; }
    .hero-section p, .hero-section .lead { font-size: 1rem; }
    .hero-stats { gap: 1.5rem; }
    .navbar-brand img { height: 44px !important; }
    .btn-sm { font-size: 0.78rem; padding: 0.35rem 0.7rem; }
    .page-header h1 { font-size: 1.6rem; }
}
