/* ===========================================
   REDUCED MOTION SUPPORT
   =========================================== */
@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;
    }
}

/* ===========================================
   SOMERTON RFC THEME VARIABLES
   =========================================== */
:root {
    /* Color scheme for browser dark mode support */
    color-scheme: dark light;

    /* Brand Colors - Supplement MudBlazor's --mud-palette-* variables */
    --srfc-navy-primary: #00274a;
    --srfc-navy-surface: #002546;
    --srfc-navy-darker: #001f3a;
    --srfc-gold: #ffde00;
    --srfc-blue-accent: #0072d0; /* Blue accent for headings on light backgrounds */
    --srfc-white: #ffffff;

    /* Text opacity variants */
    --srfc-text-muted-light: rgba(255, 255, 255, 0.7);
    --srfc-text-muted-dark: rgba(0, 0, 0, 0.8);
    --srfc-text-subtle-light: rgba(255, 255, 255, 0.6);

    /* Gradients */
    --srfc-gradient-navy: linear-gradient(135deg, #00274a 0%, #001f3a 100%);
    --srfc-gradient-hero-left: linear-gradient(to right, rgba(0,37,70,0.95), rgba(0,37,70,0.8), rgba(0,37,70,0.6));
    --srfc-gradient-hero-bottom: linear-gradient(to top, rgba(0,37,70,1), transparent, transparent);

    /* Section backgrounds */
    --srfc-bg-light-section: #f8f8f8;
    --srfc-bg-card-light: #ffffff;

    /* Border Radius Scale */
    --srfc-radius-sm: 8px;   /* Small: buttons, chips */
    --srfc-radius-md: 12px;  /* Medium: cards, standard components */
    --srfc-radius-lg: 16px;  /* Large: hero sections, modals */
}

/* ===========================================
   THEME UTILITY CLASSES
   =========================================== */

/* Background Classes */
.bg-navy-primary { background-color: var(--mud-palette-primary) !important; }
.bg-navy-surface { background-color: var(--mud-palette-surface) !important; }
.bg-navy-gradient { background: var(--srfc-gradient-navy) !important; }
.bg-light-section { background-color: var(--srfc-bg-light-section) !important; }
.bg-card-light { background-color: var(--srfc-bg-card-light) !important; }

/* Text Color Classes */
.text-gold { color: var(--mud-palette-secondary) !important; } /* Use on dark backgrounds */
.text-accent { color: var(--srfc-blue-accent) !important; } /* Blue accent for headings on light backgrounds */
.text-navy { color: var(--mud-palette-primary) !important; }
.text-white { color: var(--srfc-white) !important; }
.text-muted-light { color: var(--srfc-text-muted-light) !important; }
.text-muted-dark { color: var(--srfc-text-muted-dark) !important; }
.text-subtle-light { color: var(--srfc-text-subtle-light) !important; }

/* Icon Color Classes */
.icon-gold { color: var(--mud-palette-secondary) !important; }
.icon-navy { color: var(--mud-palette-primary) !important; }
.icon-white { color: var(--srfc-white) !important; }

/* Card Styles */
.card-header-navy {
    background: var(--srfc-gradient-navy);
    color: var(--srfc-white);
}

.card-team {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.card-header-content {
    position: relative;
    height: 100%;
}

.card-circle-decor {
    top: -115px;
    right: -265px;
    width: 200px;
    height: 200px;
}

.card-content-light {
    background: var(--srfc-bg-card-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Section Backgrounds */
.section-light {
    background-color: var(--srfc-bg-light-section);
}

.section-white {
    background-color: var(--srfc-bg-card-light) !important;
}

/* Footer Specific */
.footer-section {
    background-color: var(--mud-palette-surface);
    color: var(--srfc-white);
}

/* Hero Gradients */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
}

.hero-gradient-left {
    background: var(--srfc-gradient-hero-left);
}

.hero-gradient-bottom {
    background: var(--srfc-gradient-hero-bottom);
}

.hero-solid {
    background-color: rgba(0, 30, 70, 1);
}

/* Decorative Elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

/* Chip Variants - for when Color enum isn't enough */
.chip-gold-on-navy {
    background-color: var(--mud-palette-secondary) !important;
    color: var(--mud-palette-primary) !important;
}

/* Divider accent */
.divider-gold {
    width: 40px;
    height: 3px;
    background-color: var(--srfc-gold);
    border-radius: 2px;
    border: none;
}

/* Donor Card Styles */
.donor-card {
    height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 5px solid #002546;
    background-color: var(--srfc-bg-card-light) !important;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.donor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 39, 74, 0.12) !important;
    border-left-color: var(--srfc-gold);
}

.donor-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 39, 74, 0.12) !important;
    border-left-color: var(--srfc-gold);
    outline: 2px solid var(--srfc-gold);
    outline-offset: 2px;
}

.donor-chip {
    background-color: #002546 !important;
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* News Card Styles */
.news-card-content {
    background-color: var(--srfc-white);
    color: var(--srfc-navy-primary);
    padding: 0px;
}

.clickable-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.clickable-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    outline: 2px solid var(--srfc-gold);
    outline-offset: 2px;
}

/* View All Button */
.view-all-btn {
    border: 2px solid var(--mud-palette-primary) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    margin-top: 16px;
    padding: 12px 32px !important;
}

/* Value Cards */
.value-card {
    height: 100%;
    text-align: center;
    border-radius: 12px;
    background-color: var(--srfc-white) !important;
    color: var(--srfc-navy-primary) !important;
}

.value-card .mud-typography {
    color: inherit;
}

.value-card .mud-typography-h5 {
    color: var(--srfc-navy-primary) !important;
}

.value-card .mud-typography-body2 {
    color: #666 !important;}

.value-icon-container {
    width: 64px;
    height: 64px;
    background-color: var(--srfc-navy-surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon-container .mud-icon-root {
    color: var(--srfc-white) !important;
}

.values-chip {
    width: fit-content;
    text-transform: uppercase;
    font-weight: 600;
    background-color: #e8e8e8 !important;
    color: #666 !important;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-lift:focus-visible {
    transform: translateY(-2px);
    outline: 2px solid var(--srfc-gold);
    outline-offset: 2px;
}

/* ===========================================
   BASE STYLES
   =========================================== */

html, body {
    font-family: 'Inter', sans-serif !important;
}

/* Oswald for headings and display text */
h1, h2, h3, h4, h5, h6,
.mud-typography-h1, .mud-typography-h2, .mud-typography-h3,
.mud-typography-h4, .mud-typography-h5, .mud-typography-h6 {
    font-family: 'Oswald', sans-serif !important;
}

/* Focus styles for accessibility - removed outline: none without replacement */

a, .btn-link {
    color: var(--mud-palette-primary, #00274a);
}

.btn-primary {
    color: #fff;
    background-color: var(--mud-palette-primary, #00274a);
    border-color: var(--srfc-navy-darker, #001f3a);
}

.btn:focus-visible, .btn:active:focus-visible, .btn-link.nav-link:focus-visible, .form-control:focus-visible, .form-check-input:focus-visible {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--mud-palette-secondary, #ffde00);
}

/* Focus-visible styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--mud-palette-secondary, #ffde00);
    outline-offset: 2px;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg 6Ni4wNTQ3IDI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--srfc-gold, #ffde00);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading…");
    }

code {
    color: #c02d76;
}

.enable-vertical-swipe {
    touch-action: pan-y !important;
}

.navbar-header {
    background-color: var(--mud-palette-surface);
    border-bottom: solid 2px var(--mud-palette-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero {
    min-height: 55vh;
}

.latest-news {
    min-height: 75vh;
}

.latest-news-container {
}

.news-grid {
    width: 100%;
}

.latest-news-card {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.latest-event-card {
    height: 100%;
    max-width: 100%;
    min-width: 18%;
}

.equal-width {
    flex: 1;
    text-align: center;
}

.border-bottom {
    border-bottom: 1px solid #80808028 !important;
}

.border-left {
    border-left: 1px solid #80808028;
}

.border-right {
    border-right: 1px solid #80808028;
}

/* ===========================================
   MOBILE-FIRST RESPONSIVE IMPROVEMENTS
   =========================================== */

/* Mobile: Base styles (< 768px) */
@media (max-width: 767px) {
    /* Touch Target Minimum - 44px for all interactive elements */
    .mud-button-root,
    .mud-icon-button,
    button,
    a.mud-button-root {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
    }

    /* Specific button adjustments */
    .mud-button-root.mud-button-size-large {
        min-height: 48px;
        padding: 14px 24px;
    }

    .mud-button-root.mud-button-size-small,
    .mud-icon-button.mud-button-size-small {
        min-height: 40px;
        min-width: 40px;
        padding: 10px 16px;
    }

    /* Menu icon button in navigation */
    .mud-icon-button.mud-button-size-large {
        min-height: 48px;
        min-width: 48px;
    }

    /* Typography - Readable Font Sizes */
    body,
    .mud-typography-body1 {
        font-size: 16px !important;
        line-height: 1.5;
    }

    .mud-typography-body2 {
        font-size: 14px !important;
    }

    .mud-typography-caption {
        font-size: 12px !important;
    }

    /* Headings on Mobile */
    h1, .mud-typography-h1 {
        font-size: 32px !important;
        line-height: 1.2;
    }

    h2, .mud-typography-h2 {
        font-size: 28px !important;
        line-height: 1.25;
    }

    h3, .mud-typography-h3 {
        font-size: 24px !important;
    }

    h4, .mud-typography-h4 {
        font-size: 20px !important;
    }

    h5, .mud-typography-h5 {
        font-size: 18px !important;
    }

    h6, .mud-typography-h6 {
        font-size: 16px !important;
    }

    /* Hero CTA Buttons - Stack Vertically */
    .hero-cta-container,
    .mud-stack.hero-buttons {
        flex-direction: column !important;
        gap: 12px;
        width: 100%;
    }

    .hero-cta-container .mud-button-root,
    .hero-buttons .mud-button-root {
        width: 100%;
        max-width: 100%;
    }

    /* News Cards - Already handled by grid, ensure proper spacing */
    .news-grid .mud-grid-item {
        padding: 8px;
    }

    .latest-news-card {
        margin-bottom: 16px;
    }

    /* Card Spacing */
    .mud-card {
        margin-bottom: 16px;
    }

    /* Fixture Cards - Increase Touch Targets */
    .fixture-card-enhanced {
        min-height: 88px;
        padding: 16px;
    }

    .team-logo-large {
        width: 48px;
        height: 48px;
    }

    .team-logo-featured {
        width: 64px;
        height: 64px;
    }

    /* Match Badges - Larger Touch Targets */
    .match-badge-home,
    .match-badge-away {
        font-size: 11px;
        padding: 6px 14px;
        min-height: 32px;
    }

    /* Navigation Menu Items */
    .mud-nav-link {
        min-height: 48px !important;
        padding: 14px 16px !important;
        font-size: 16px !important;
    }

    /* Icon Sizes */
    .mud-icon-root.mud-icon-size-small {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }

    .mud-icon-root.mud-icon-size-medium {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

    /* Header/Logo */
    .navbar-header img {
        min-height: 56px;
    }

    /* Sponsor Grid - 3 Columns on Mobile (handled by xs="4" breakpoint) */
    .sponsors-grid {
        width: 100%;
    }

    .sponsors-grid .mud-grid-item {
        min-height: 100px;
    }

    /* Content Section Padding */
    .py-12 {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    .py-6 {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    /* Form Controls */
    .mud-input-root {
        min-height: 44px;
    }

    /* Tab Navigation */
    .mud-tabs .mud-tab-root {
        min-height: 44px;
        min-width: 120px;
        padding: 10px 16px;
    }

    /* Ensure adequate tap targets for links */
    a:not(.mud-button-root) {
        padding: 8px 0;
        display: inline-block;
    }

    /* Footer links */
    .footer-link,
    .footer-link-subtle {
        padding: 8px 0;
        font-size: 14px;
    }

    /* Value Cards */
    .value-card {
        padding: 24px 16px !important;
    }

    /* Featured Match - Reduce Padding */
    .featured-match {
        padding: 24px 16px;
    }

    /* Month Headers */
    .month-header {
        padding: 12px 0;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    /* View All Buttons */
    .view-all-btn {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
    }
}

@media (min-width: 768px) {
    .latest-news {
        height: 90vh;
    }

    .hero {
        min-height: 25vh;
    }

    .latest-news-card {
        width: 100%;
        height: 100%;
        max-width: 100%;
    }

    .latest-event-card {
        max-width: 18%;
        min-width: 18%;
        height: 230px;
    }
}

.latest-news-text {
    color: white;
    font-weight: 500;
}

@media (min-width: 768px) {
    .latest-news-text {
    }
}

.next-match-widget {
    position: absolute;
    bottom: 10%;
    right: 0px;
    width: 90%;
    max-width: 500px;
    z-index: 10;
    background: linear-gradient(135deg, rgba(0,37,70,0.95) 0%, rgba(0,31,58,0.95) 100%) !important;
    border-top: 4px solid var(--srfc-gold);
    border-radius: 12px;
    padding: 24px 20px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
}

@media (max-width: 767px) {
    .next-match-widget {
        width: 95%;
        max-width: 100%;
        padding: 20px 16px !important;
    }
}

.active-button {
    color: rgba(255,222,0,1) !important;
}

.active-button .nav-underline {
    width: 100% !important;
}

.active-button span {
    color: rgba(255,222,0,1) !important;
}

.active-button div {
    color: rgba(255,222,0,1) !important;
}

.not-active-button {
    color: white !important;

}
.not-active-button span {
    color: white !important;
}

.sticky {
    position: sticky !important;
    top: 0; /* Ensure the element sticks to the top */
    z-index: 1000; /* Ensure it stays above other elements */
}

.btn-secondary-light {
    background-color: rgba(255,222,0,1) !important;
    color: rgba(0,37,70,1) !important;
}

.footer-link:hover {
    color: #ffde00 !important;
}

/* Footer Styles */
.footer-link,
.footer-link.mud-link,
.footer-section .mud-link,
.footer-section a.mud-link {
    color: var(--srfc-white) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.footer-link:hover,
.footer-link.mud-link:hover,
.footer-section .mud-link:hover,
.footer-section a.mud-link:hover {
    color: var(--srfc-gold) !important;
}

.footer-link:focus-visible,
.footer-link.mud-link:focus-visible,
.footer-section .mud-link:focus-visible,
.footer-section a.mud-link:focus-visible {
    color: var(--srfc-gold) !important;
    outline: 2px solid var(--srfc-gold);
    outline-offset: 2px;
}

.footer-link-subtle {
    color: var(--srfc-text-subtle-light) !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link-subtle:hover {
    color: var(--srfc-gold) !important;
}

.footer-link-subtle:focus-visible {
    color: var(--srfc-gold) !important;
    outline: 2px solid var(--srfc-gold);
    outline-offset: 2px;
}

.footer-social-btn {
    color: var(--srfc-white) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-social-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.footer-social-btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.2) !important;
    outline: 2px solid var(--srfc-gold);
    outline-offset: 2px;
}

.footer-divider {
    margin: 32px 0 24px 0;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===========================================
   ADMIN LOGIN STYLES
   =========================================== */

.admin-login-card {
    --mud-palette-text-primary: #1a1a1a;
    --mud-palette-text-secondary: #666666;
    --mud-palette-lines-default: #e0e0e0;
    --mud-palette-surface: #ffffff;
    --mud-palette-background: #ffffff;
    background-color: #ffffff !important;
}

.admin-login-card .mud-input-outlined-border {
    border-color: #e0e0e0 !important;
}

.admin-login-card .mud-input-label {
    color: #666666 !important;
}

.admin-login-card .mud-input {
    color: #1a1a1a !important;
}

.admin-login-card .mud-input-slot input {
    color: #1a1a1a !important;
}

.admin-login-card .mud-input-slot input::placeholder {
    color: #999999 !important;
}

.admin-login-card .mud-input-outlined:hover .mud-input-outlined-border {
    border-color: #002546 !important;
}

.admin-login-card .mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: #002546 !important;
}
/*
MUDBLAZOR OVERRIDES
*/

.mud-tabs-tabbar-primary .mud-tab.mud-tab-active {
    background: var(--srfc-blue-accent) !important;
    color: var(--srfc-gold) !important;
}

.mud-tabs-tabbar-primary .mud-tab {
    color: var(--srfc-navy-primary) !important;
}

    .mud-tabs-tabbar-primary .mud-tab:hover {
        color: var(--srfc-gold) !important;
        background: var(--srfc-blue-accent) !important;
    }

/* ===========================================
   FIXTURES PAGE REDESIGN
   =========================================== */

/* Featured Match Section */
.featured-match {
    background: linear-gradient(135deg, var(--srfc-navy-primary) 0%, var(--srfc-navy-surface) 100%);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.featured-match::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--srfc-gold);
}

.featured-match-badge {
    background-color: var(--srfc-gold) !important;
    color: var(--srfc-navy-primary) !important;
    font-weight: 700;
    text-transform: uppercase;
}

/* Enhanced Fixture Cards */
.fixture-card-enhanced {
    background-color: var(--srfc-white);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.2s ease;
    background-color: var(--srfc-white) !important;
    border-left: 4px solid transparent;
}

.fixture-card-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.fixture-card-enhanced:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    outline: 2px solid var(--srfc-gold);
    outline-offset: 2px;
}

.fixture-card-enhanced.home-game {
    border-left-color: var(--srfc-gold);
}

.fixture-card-enhanced.away-game {
    border-left-color: var(--srfc-blue-accent);
}

/* Team Logos */
.team-logo-large {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f8f8;
    padding: 4px;
}

.team-logo-featured {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* HOME/AWAY Badges */
.match-badge-home {
    background: var(--srfc-gold) !important;
    color: var(--srfc-navy-primary) !important;
    font-weight: 700 !important;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-badge-away {
    background: var(--srfc-blue-accent) !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Month Headers */
.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 2px solid var(--srfc-navy-primary);
    margin-bottom: 16px;
    margin-top: 24px;
}

.month-header:first-of-type {
    margin-top: 0;
}

.month-header-text {
    color: var(--srfc-navy-primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.month-header-count {
    color: #666;
    font-size: 0.875rem;
}

/* Score Display */
.score-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--srfc-navy-primary);
}

.result-badge-win {
    background: #4caf50 !important;
    color: white !important;
    font-weight: 700 !important;
}

.result-badge-loss {
    background: #f44336 !important;
    color: white !important;
    font-weight: 700 !important;
}

.result-badge-draw {
    background: #ff9800 !important;
    color: white !important;
    font-weight: 700 !important;
}

/* Match Result Type Badges */
.result-badge-hwo,
.result-badge-awo {
    background: #ff9800 !important;
    color: white !important;
    font-weight: 700 !important;
}

.result-badge-cancelled {
    background: #f44336 !important;
    color: white !important;
    font-weight: 700 !important;
}

.result-badge-postponed {
    background: #9c27b0 !important;
    color: white !important;
    font-weight: 700 !important;
}

/* ===========================================
   SPONSOR GRID RESPONSIVE STYLES
   =========================================== */

/* Sponsor Grid - Ensures proper layout at all breakpoints */
.sponsors-grid {
    width: 100%;
    max-width: 100%;
}

.sponsors-grid .mud-grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
}

/* Mobile: 3 columns (xs="4" = 12/4 = 3 columns) */
@media (max-width: 599px) {
    .sponsors-grid .mud-grid-item {
        flex: 0 0 33.333333%; /* Force 3 columns */
        max-width: 33.333333%;
        padding: 8px;
    }

    .sponsor-logo,
    .sponsor-logo-no-link {
        height: 70px !important;
        max-width: 100% !important;
    }
}

/* Tablet: 4 columns (sm="3" = 12/3 = 4 columns) */
@media (min-width: 600px) and (max-width: 959px) {
    .sponsors-grid .mud-grid-item {
        padding: 12px;
    }

    .sponsor-logo,
    .sponsor-logo-no-link {
        height: 90px !important;
    }
}

/* Desktop: 6 columns (md="2" = 12/2 = 6 columns) */
@media (min-width: 960px) {
    .sponsors-grid .mud-grid-item {
        padding: 16px;
    }

    .sponsor-logo,
    .sponsor-logo-no-link {
        height: 100px !important;
    }
}

/* Hover states for sponsor links */
.sponsors-grid .hover-lift {
    display: block;
    width: 100%;
    text-align: center;
}

.sponsors-grid .hover-lift:hover {
    transform: translateY(-4px);
}

.sponsors-grid .hover-lift:focus-visible {
    transform: translateY(-4px);
    outline: 2px solid var(--srfc-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Ensure sponsor images are properly sized */
.sponsor-logo,
.sponsor-logo-no-link {
    display: inline-block;
    margin: 0 auto;
}

/* Responsive Adjustments for Fixtures */
@media (max-width: 599px) {
    .featured-match {
        padding: 20px;
    }

    .team-logo-featured {
        width: 60px;
        height: 60px;
    }

    .team-logo-large {
        width: 40px;
        height: 40px;
    }

    .fixture-card-enhanced {
        padding: 12px 16px;
    }

    .match-badge-home,
    .match-badge-away {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
}