/* ============================================================
   ST. JOHN'S AMATEUR BASEBALL — Global Stylesheet
   Design System v3.0 — Accessibility & Performance Edition
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800;900&display=swap');

/* --------------------------------
   1. Design Tokens
-------------------------------- */
:root {
    --navy:          #191919;
    --navy-mid:      #2a2a2a;
    --navy-light:    #3d3d3d;
    --red:           #e1282a;
    --red-dark:      #b32021;
    --red-light:     #fce9ea;
    --gold:          #f5a623;
    --gold-dark:     #d4891a;
    --bg:            #f4f6f9;
    --bg-white:      #ffffff;
    --text:          #1e293b;
    --text-muted:    #64748b;
    --border:        rgba(0,0,0,0.07);
    --radius-sm:     8px;
    --radius:        14px;
    --radius-lg:     22px;
    --shadow-sm:     0 2px 8px rgba(25,25,25,0.07);
    --shadow:        0 6px 24px rgba(25,25,25,0.1);
    --shadow-lg:     0 16px 48px rgba(25,25,25,0.14);
    --transition:    0.25s cubic-bezier(0.4,0,0.2,1);
    /* Focus ring */
    --focus-ring:    0 0 0 3px rgba(225,40,42,0.35);
    --focus-ring-navy: 0 0 0 3px rgba(25,25,25,0.4);
}

/* --------------------------------
   2. Accessibility — Skip Link
-------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--navy);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none;
    z-index: 10000;
    transition: top 0.2s ease;
    box-shadow: var(--shadow);
}
.skip-link:focus {
    top: 0;
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* --------------------------------
   3. Base Reset & Body
-------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

a {
    transition: color var(--transition);
    /* Minimum 4.5:1 contrast ensured via specific selectors */
}
img { max-width: 100%; height: auto; }

/* --------------------------------
   4. Global Focus States (Accessibility)
-------------------------------- */
:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
    box-shadow: var(--focus-ring);
    border-radius: 4px;
}

/* Remove outline only when not needed */
:focus:not(:focus-visible) {
    outline: none;
}

/* --------------------------------
   5. Scroll Progress Indicator
-------------------------------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* --------------------------------
   6. Header & Navbar (CoreBiz Style)
-------------------------------- */
#top-bar {
    background: var(--navy);
    height: 40px;
    font-size: 14px;
    transition: all 0.3s;
    color: #fff;
    z-index: 1060;
}
#top-bar .contact-info a {
    line-height: 0;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
}
#top-bar .contact-info a:hover { color: #fff; }
#top-bar .contact-info i { color: var(--gold); line-height: 0; }
#top-bar .social-links a {
    color: rgba(255,255,255,0.6);
    padding-left: 15px;
    display: inline-block;
    line-height: 1px;
    transition: 0.3s;
}
#top-bar .social-links a:hover { color: #fff; }

#header {
    background: #fff;
    transition: all 0.3s;
    z-index: 1050;
    top: 40px;
    padding: 0;
}
#header.header-scrolled {
    top: 0;
    box-shadow: 0px 2px 15px rgba(0,0,0,0.08);
}

.topbar-scrolled {
    top: -40px !important;
}

.navbar-brand {
    padding: 0;
}
.brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--navy);
    letter-spacing: -0.5px;
}
.brand-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--navy) !important;
    padding: 24px 15px !important;
    transition: 0.3s;
    position: relative;
    opacity: 0.8;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 18px;
    left: 15px;
    background-color: var(--red);
    visibility: hidden;
    transition: all 0.3s ease-in-out 0s;
}
.nav-link:hover, .nav-link.active {
    color: var(--red) !important;
    opacity: 1;
}
.nav-link:hover::after, .nav-link.active::after {
    visibility: visible;
    width: 25px;
}

.navbar-toggler {
    background: var(--navy);
    padding: 8px;
    border-radius: 4px;
}
.navbar-toggler-icon {
    filter: invert(1);
    width: 20px;
    height: 20px;
}

.dropdown-menu {
    margin: 0;
    border: none;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    padding: 10px 0;
    border-radius: 8px;
    animation: fadeInDown 0.2s ease;
}
.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
}
.dropdown-item:hover {
    background: var(--red-light);
    color: var(--red);
}

/* Hover Dropdowns for Desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .nav-item.dropdown .dropdown-menu {
        display: block;
        top: 100%;
        margin-top: 10px; /* Offset to prevent overlay */
        visibility: hidden;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 1000;
    }

    /* Bridge to prevent hover gap */
    .nav-item.dropdown .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 15px;
        background: transparent;
    }

    .nav-link {
        z-index: 1050;
    }
}

.navbar .btn-primary {
    background: var(--red);
    border-color: var(--red);
    font-size: 0.85rem;
    padding: 8px 25px;
    margin-left: 15px;
    border-radius: 50px;
    font-weight: 600;
}
.navbar .btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(225,40,42,0.3);
}

/* Mobile Dropdown & Navigation Fixes */
.nav-link-wrapper {
    width: 100%;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        margin: 0 -1.5rem;
        padding: 0 1.5rem 1.5rem;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        max-height: 80vh;
        overflow-y: auto;
        border-bottom: 3px solid var(--red);
    }
    .navbar-nav {
        padding-top: 1rem;
    }
    .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }
    .nav-item:last-child {
        border-bottom: none;
    }
    .nav-link {
        padding: 18px 0 !important;
        font-size: 0.95rem;
    }
    .nav-item.dropdown .nav-link {
        padding-right: 0 !important;
    }
    
    .dropdown-toggle-mob {
        padding: 18px 20px !important;
        color: var(--navy) !important;
        text-decoration: none !important;
        border: 0 !important;
        background: none !important;
        font-size: 1rem;
        transition: transform 0.3s;
        opacity: 0.6;
    }
    .dropdown-toggle-mob:focus {
        box-shadow: none !important;
    }
    .dropdown-toggle-mob[aria-expanded="true"] {
        transform: rotate(180deg);
        opacity: 1;
        color: var(--red) !important;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: #f8f9fa !important;
        box-shadow: none !important;
        padding: 0 0 1rem 1rem !important;
        border-radius: 0 !important;
        border-left: 3px solid var(--red-light) !important;
        display: none;
    }
    .dropdown-menu.show {
        display: block;
    }
    .dropdown-item {
        padding: 12px 1rem !important;
        font-weight: 600;
        opacity: 0.8;
    }
    .dropdown-item:active {
        background: var(--red-light);
        color: var(--red);
    }
}

.dropdown-menu {
    border: none !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.5rem !important;
    min-width: 200px;
    animation: fadeInDown 0.15s ease;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}
.dropdown-item:hover { background: rgba(25,25,25,0.06); color: var(--navy); }
.dropdown-item:focus-visible {
    background: rgba(25,25,25,0.06);
    color: var(--navy);
    outline: 2px solid var(--red);
    outline-offset: -2px;
}

/* Mobile nav toggler - larger tap target */
.navbar-toggler {
    border: 0 !important;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}
.navbar-toggler:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------
   7. Hero Section
-------------------------------- */
.hero-section {
    position: relative;
    background:
        linear-gradient(160deg, rgba(25,25,25,0.92) 0%, rgba(25,25,25,0.65) 60%, rgba(225,40,42,0.4) 100%),
        url('/assets/img/hero-bg.webp') center 40% / cover no-repeat;
    color: #fff;
    padding: 8rem 0 7rem;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 60%, rgba(225,40,42,0.15) 0%, transparent 65%);
    pointer-events: none;
}

/* Animated shimmer overlay */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-section h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    margin-bottom: 1.25rem;
}

.hero-section .hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.72);
    font-size: 0.85rem;
    font-weight: 500;
}
.hero-badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.3); }
}

/* Hero action buttons */
.hero-section .btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}
.hero-section .btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(225,40,42,0.4);
}
.hero-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-2px);
}
/* Ensure btn-lg meets 44px min height for touch */
.btn-lg {
    min-height: 44px;
}

/* --------------------------------
   8. Stats Bar
-------------------------------- */
.stats-bar {
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-family: 'Outfit', sans-serif;
}
.stats-bar-item {
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}
.stats-bar-item .stat-value {
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: -0.5px;
    display: block;
}
.stats-bar-item .stat-label {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-top: 4px;
    display: block;
}

/* --------------------------------
   9. Utility Classes
-------------------------------- */
.text-navy   { color: var(--navy) !important; }
.text-red    { color: var(--red) !important; }
.bg-navy     { background-color: var(--navy) !important; }
.bg-red      { background-color: var(--red) !important; }
.bg-primary-red  { background-color: var(--red) !important; }
.bg-navy-dark    { background-color: var(--navy) !important; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 20px; height: 2px;
    background: var(--red);
    border-radius: 2px;
}

/* --------------------------------
   10. Cards
-------------------------------- */
.card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
    background: var(--bg-white);
}

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

.card-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 1.4rem;
}
.card-header h5 { margin: 0; font-size: 0.95rem; }

/* --------------------------------
   11. Buttons — Accessibility Enhanced
-------------------------------- */
.btn {
    border-radius: 30px;
    padding: 0.6rem 1.6rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    border-width: 2px;
    /* Minimum touch target */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-sm {
    min-height: 36px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: var(--red);
    border-color: var(--red);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225,40,42,0.35);
}
.btn-primary:focus-visible {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    box-shadow: var(--focus-ring);
    outline: none;
}

.btn-navy {
    background-color: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.btn-navy:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25,25,25,0.25);
}

.btn-outline-navy {
    border: 2px solid var(--navy);
    color: var(--navy);
    background: transparent;
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px);
}
.btn-outline-navy:focus-visible {
    box-shadow: var(--focus-ring-navy);
    outline: none;
}

/* --------------------------------
   12. Form Controls — Accessibility
-------------------------------- */
.form-control,
.form-select {
    min-height: 44px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(0,0,0,0.12);
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(225,40,42,0.18);
    outline: none;
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

/* --------------------------------
   13. Tables — Accessibility Enhanced
-------------------------------- */
.table {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
}

.table th {
    background-color: #f1f4f8;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    padding: 0.9rem 1rem;
}

.table td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    border-color: #f1f4f8;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(25,25,25,0.025);
}

/* Sortable column header affordance */
.table th[aria-sort] {
    cursor: pointer;
    user-select: none;
}
.table th[aria-sort]:hover {
    background-color: #e6eaf0;
}

/* --------------------------------
   14. Badges & Chips
-------------------------------- */
.badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 6px;
}
.badge.rounded-pill { border-radius: 30px; }

/* WCAG: ensure sufficient contrast for badges */
.badge.bg-warning { color: #1e293b !important; }
.badge.bg-light   { color: var(--navy) !important; }

/* --------------------------------
   15. Main Content — Fix Header Occlusion
-------------------------------- */
#main-content {
    flex: 1;
    padding-top: 80px; /* Mobile height */
}

@media (min-width: 992px) {
    #main-content {
        padding-top: 100px; /* Topbar (40px) + Header (approx 80px) + spacing */
    }
}

#main-content.no-padding {
    padding-top: 0 !important;
}

/* --------------------------------
   16. Footer — Enhanced Accessibility
-------------------------------- */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.65);
    padding: 4.5rem 0 2rem;
    margin-top: auto;
    border-top: 4px solid var(--red);
}

.footer h5 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* Ensure footer links meet 4.5:1 contrast on dark bg */
.footer a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
    display: inline-block;
}
.footer a:hover { color: #fff; text-decoration: underline; }
.footer a:focus-visible {
    color: var(--gold);
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 3px;
    text-decoration: none;
}

.footer .footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2.5rem 0;
}

/* Social icons in footer */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: all var(--transition);
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}
.footer-social a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* --------------------------------
   17. Sidebar Widgets
-------------------------------- */
.widget {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    background: var(--bg-white);
    margin-bottom: 1.5rem;
}

.widget-header {
    background: var(--navy);
    color: #fff;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-header h6 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.widget-header.red { background: var(--red); }

.widget-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    background: #fafbfc;
    text-align: center;
}
.widget-footer a {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.widget-footer a:hover { color: var(--red); }
.widget-footer a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 3px;
}

/* --------------------------------
   18. News Cards
-------------------------------- */
.news-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-white);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(225,40,42,0.15);
}
.news-card .news-category {
    display: inline-block;
    background: rgba(225,40,42,0.09);
    color: #b32021; /* Darker for WCAG contrast */
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    margin-bottom: 0.75rem;
}
.news-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}
.news-card .news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.news-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* News card read more link */
.news-card .btn-outline-navy {
    align-self: flex-start;
}

/* --------------------------------
   19. Game Schedule Items
-------------------------------- */
.game-item {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #f1f4f8;
    transition: background var(--transition);
}
.game-item:last-child { border-bottom: none; }
.game-item:hover { background: rgba(25,25,25,0.025); }
.game-item .game-date-badge {
    font-size: 0.72rem;
    font-weight: 700;
    background: #f1f4f8;
    color: var(--navy);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.3px;
}
.game-item .game-teams {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.35rem;
}
.game-item .game-vs {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0 0.35rem;
}

/* --------------------------------
   20. Game Cards (Schedule Page)
-------------------------------- */
.game-card {
    border-radius: 16px;
    background: white;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all var(--transition);
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1) !important;
    border-color: rgba(225,40,42,0.2) !important;
}

/* --------------------------------
   21. Breadcrumbs
-------------------------------- */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    line-height: 1;
}
.breadcrumb-item a {
    color: var(--navy);
    text-decoration: none;
    transition: 0.3s;
}
.breadcrumb-item a:hover { color: var(--red); text-decoration: underline; }
.breadcrumb-item.active { color: var(--text-muted); font-weight: 700; }
.breadcrumb-item + .breadcrumb-item::before { 
    padding: 0 8px;
    color: rgba(0,0,0,0.25);
    content: "/";
    font-size: 0.75rem;
    vertical-align: middle;
}

/* --------------------------------
   22. Animations & Micro-interactions
-------------------------------- */
.translate-hover { transition: transform var(--transition), box-shadow var(--transition); }
.translate-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg) !important; }

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in for lists */
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }

/* Loading shimmer for dynamic content */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* --------------------------------
   23. Team Branding Components
-------------------------------- */
.team-logo-chip {
    width: 28px; height: 28px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.team-chip-link {
    display: inline-flex;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.team-chip-link:hover { transform: scale(1.15); }
.team-chip-link:active { transform: scale(0.95); }

/* --------------------------------
   24. Responsive Tweaks
-------------------------------- */
@media (max-width: 991.98px) {
    #header {
        top: 0 !important;
    }

    /* Mobile nav collapse area */
    .navbar-collapse {
        background: #fff;
        border-top: 1px solid rgba(0,0,0,0.06);
        padding: 1rem 0;
        margin-top: 0.5rem;
        border-radius: 0 0 var(--radius) var(--radius);
    }
    .nav-link {
        padding: 0.65rem 1.2rem !important;
    }
    .nav-link::after { display: none; }
}

@media (max-width: 768px) {
    .hero-section { padding: 5rem 0 4rem; }
    .hero-section h1 { font-size: 2.2rem; letter-spacing: -0.5px; }
    .hero-section .btn { width: 100%; max-width: 280px; }
    .hero-badges { gap: 0.75rem; }
    /* Simplify hero buttons on mobile */
    .hero-section .d-flex.justify-content-center {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-section { padding: 4rem 0 3rem; }
    .news-card { padding: 1.25rem; }
    .widget-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* --------------------------------
   24. High Contrast Mode Support
-------------------------------- */
@media (prefers-contrast: high) {
    :root {
        --border: rgba(0,0,0,0.25);
        --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-link { opacity: 1 !important; }
    .hero-badge { color: #fff; }
    .news-card { border: 2px solid rgba(0,0,0,0.2) !important; }
    .footer a { color: #fff; }
}

/* --------------------------------
   25. Dark Mode (Prefers)
-------------------------------- */
@media (prefers-color-scheme: dark) {
    /* Intentionally not fully dark - site uses a light theme.
       Add specific overrides only for system UI elements if required. */
}

/* --------------------------------
   26. Print Styles
-------------------------------- */
@media print {
    .navbar, .footer, .skip-link, #scroll-progress,
    .widget-footer, .btn, .hero-section {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }
    h1, h2, h3 { page-break-after: avoid; }
    table { border-collapse: collapse; }
    table th, table td { border: 1px solid #999; }
}

/* --------------------------------
   27. Logo Adjustments
-------------------------------- */
.logo-crop-container {
    height: 85px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.logo-crop-container img {
    height: 85px;
    width: auto;
    /* This allows the image to overflow vertically but stay centered */
}

@media (max-width: 768px) {
    .logo-crop-container { height: 75px; }
    .logo-crop-container img { height: 75px; }
}