/* Barlow, self-hosted (no Google Fonts request) */
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/barlow-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/barlow-latin-ext-500-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/barlow-latin-ext-600-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/barlow-latin-ext-700-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/barlow-latin-ext-400-italic.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/barlow-latin-ext-700-italic.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/barlow-latin-400-normal.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: 'Barlow';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/barlow-latin-500-normal.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: 'Barlow';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/barlow-latin-600-normal.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: 'Barlow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/barlow-latin-700-normal.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: 'Barlow';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/barlow-latin-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: 'Barlow';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/barlow-latin-700-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;
}

/* Custom Styles */
:root {
    --custom-primary: #051b92;
    --custom-secondary: #e6eaf4;
    --custom-tertiary: #030f57;
    --custom-primary-transparent: rgba(5, 27, 146, 0.8);
}

/* Global Styles */
body {
    font-family: 'Barlow', sans-serif;
    margin: 0;
    padding: 0;
}

a,
a:visited {
    color: var(--custom-primary);
}

a:hover,
a:focus,
a:active {
    color: var(--custom-tertiary);
}

:root {
    --bs-focus-ring-color: transparent;
    --bs-focus-ring-shadow: none;    
}

.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.form-range:focus,
.input-group-text:focus {
    outline: 0 !important;
    box-shadow: none !important;
    border-color: var(--bs-border-color) !important;
}

.grecaptcha-badge { visibility: hidden !important; }

/* Cookie Banner */
.cookie-banner {
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-banner.show {
    display: flex !important;
}

/* Header Styles */
.navbar {
    background-color: white;
    padding: 1rem 0;
}

.navbar-brand {
    margin-top: -10px;
}

.navbar-brand img {
    height: 45px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 600;
    margin: 0 1rem;
    text-transform: uppercase;
    font-size: 14px;
}

.navbar-nav .nav-link:hover {
    color: var(--custom-primary);
}

.navbar-nav .nav-link.active {
    color: var(--custom-primary);
    font-weight: 600;
}

/* Navbar dropdowns — match site dropdown language (primary bg, secondary text). */
.navbar-nav .dropdown-toggle::after {
    margin-left: 0.4em;
    vertical-align: 0.15em;
    opacity: 0.7;
}

.navbar-nav .dropdown-toggle:hover::after,
.navbar-nav .dropdown-toggle.show::after {
    opacity: 1;
}

.navbar-nav .dropdown-menu {
    background-color: var(--custom-primary);
    border: 0;
    border-radius: 12px;
    margin-top: 0.5rem;
    padding: 0.35rem 0;
    min-width: 12rem;
    box-shadow: 0 8px 24px rgba(5, 27, 146, 0.18);
}

.navbar-nav .dropdown-item {
    color: var(--custom-secondary);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: var(--custom-tertiary);
    color: #fff;
}

.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active {
    background-color: var(--custom-tertiary);
    color: #fff;
    font-weight: 600;
}

/* Collapsed mobile view — let the dropdown panel sit inline like a submenu. */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        box-shadow: none;
        margin: 0.25rem 0 0.5rem;
        padding: 0.25rem 0;
    }
    .navbar-nav .dropdown-item {
        padding-left: 2rem;
    }
}

.search-icon {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    background-color: #f5f5fa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon:hover {
    background-color: #e9e9ef;
}

.navbar button.navbar-toggler {
    border: 0 !important;
}

.navbar button.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar button.navbar-toggler:hover {
    color: var(--custom-primary) !important;
    box-shadow: none !important;
}

.navbar button.navbar-toggler span {
    width: 30px;
    height: 30px;
    padding: 1px 0 0 0;
    margin: 0;
}

.navbar button.navbar-toggler span.menu-close {
    display: inline-block;
}

.navbar button.navbar-toggler span.menu-open {
    display: none;
}    

.navbar button.navbar-toggler.open span.menu-close {
    display: none;
}

.navbar button.navbar-toggler.open span.menu-open {
    display: inline-block;
} 


/* Hero Section */
.hero-section {
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--custom-primary-transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-buttons .btn {
    margin: 0 0.5rem;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 25px;
    border: 2px solid var(--custom-secondary);
    background-color: transparent;
    color: var(--custom-secondary);
    text-decoration: none;
    display: inline-block;
}

.hero-buttons .btn:hover {
    background-color: var(--custom-secondary);
    color: var(--custom-primary);
}

/* Custom button colors */
.btn-primary {
    background-color: var(--custom-primary) !important;
    border-color: var(--custom-primary) !important;
    color: var(--custom-secondary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--custom-secondary) !important;
    border-color: var(--custom-secondary) !important;
    color: var(--custom-primary) !important;
}

.bg-primary {
    background-color: var(--custom-primary) !important;
}

.text-primary {
    color: var(--custom-primary);
}

.bg-secondary {
    background-color: var(--custom-secondary) !important;
}

.text-secondary {
    color: var(--custom-secondary) !important;
}

.btn-outline-primary {
    border: 2px solid var(--custom-primary) !important;
    background-color: transparent !important;
    color: var(--custom-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    border: 2px solid var(--custom-primary) !important;
    background-color: var(--custom-primary) !important;
    color: var(--custom-secondary) !important;
}

.btn-outline-secondary {
    border: 2px solid var(--custom-secondary) !important;
    background-color: transparent !important;
    color: var(--custom-secondary) !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    border: 2px solid var(--custom-secondary) !important;
    background-color: var(--custom-secondary) !important;
    color: var(--custom-primary) !important;
}

/* Custom button group */
.btn-group button.btn,
.btn-group button.btn.dropdown-toggle {
    background-color: var(--custom-primary);
    color: var(--custom-secondary);
    border-color: var(--custom-primary);
    border-radius: 50px;
}

.btn-group button.btn:hover,
.btn-group button.btn:focus,
.btn-group button.btn:active,
.btn-group button.btn.dropdown-toggle:hover,
.btn-group button.btn.dropdown-toggle:focus {
    background-color: var(--custom-tertiary);
    color: var(--custom-secondary);
    border-color: var(--custom-tertiary);
}

.btn-group ul {
    background-color: var(--custom-primary);
}

.btn-group ul li a {
    background-color: var(--custom-primary);
    color: var(--custom-secondary);
}

.btn-group ul li a:hover,
.btn-group ul li a:focus {
    background-color: var(--custom-tertiary);
    color: var(--custom-secondary);
}

/* Sub navbar */
.sub-navbar.nav-pills .nav-link {
    color: var(--custom-primary);
    border-radius: 30px;
    border: 2px solid var(--custom-primary);
    padding: 0.25rem 0.75rem 0.35rem 0.75rem;
    font-weight: 600 !important;
}

.sub-navbar.nav-pills .nav-link:hover {
    color: var(--custom-secondary);
    background-color: var(--custom-primary);
}

.sub-navbar.nav-pills .nav-link.active {
    color: var(--custom-secondary);
    background-color: var(--custom-primary);
}

/* Table */
table thead tr.table-custom,
table thead tr.table-custom th {
    background-color: var(--custom-primary) !important;
    color: var(--custom-secondary) !important;
}

/* Home Articles */
.articles .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Article */
.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
    font-weight: 700;
}

.article strong {
    font-weight: 600;
}

.img-thumb {
    object-fit: cover;
    aspect-ratio: 1/1;
    border-bottom-left-radius: var(--bs-card-border-radius);
    border-top-left-radius: var(--bs-card-border-radius);
}

/* Main Article */
.main-article img {
    border-top-left-radius: var(--bs-card-border-radius);
    border-bottom-left-radius: var(--bs-card-border-radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Standings */
.standings.nav-pills .nav-link {
    color: var(--custom-primary);
    border-radius: 30px;
    border: 2px solid var(--custom-primary);
    padding: 0.25rem 0.75rem 0.35rem 0.75rem;
    font-weight: 600 !important;
}

.standings.nav-pills .nav-link:hover {
    color: var(--custom-secondary);
    background-color: var(--custom-primary);
}

.standings.nav-pills .nav-link.active {
    color: var(--custom-secondary);
    background-color: var(--custom-primary);
}

/* Fixtures */
.fixtures.nav-pills .nav-link {
    color: var(--custom-primary);
    border-radius: 30px;
    border: 2px solid var(--custom-primary);
    padding: 0.25rem 0.75rem 0.35rem 0.75rem;
    font-weight: 600 !important;
}

.fixtures.nav-pills .nav-link:hover {
    color: var(--custom-secondary);
    background-color: var(--custom-primary);
}

.fixtures.nav-pills .nav-link.active {
    color: var(--custom-secondary);
    background-color: var(--custom-primary);
}


/* Fixtures */
table.table-matches { width: 100%; }
table.table-matches tr td.kickoff { width: 16%; }
table.table-matches tr td.home-team,
table.table-matches tr td.away-team { width: 36%; }
table.table-matches tr td.result { width: 12%; }

/* Accordion */
.custom-accordion .accordion-item h3 button {
    font-weight: 600 !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--custom-secondary) !important;
    background-color: var(--custom-primary) !important;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FECB00'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6.253 6.253a.5.5 0 0 1-.708 0L1.646 5.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Footer */
footer {
    background-color: #f5f5Fa;
    border-top: 1px solid #e1e0e7;
}

footer .logo {
    height: 35px;
}

footer .disclaimer {
    width: 75%;
    margin: 0 auto;
}

/* Media Queries */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
    }

    footer .disclaimer {
        width: 100%;
    }    
}

@media (max-width: 767.98px) {
    .articles .card-img-top {
        height: 300px;
        object-fit: cover;
    }
    .main-article img {
        border-top-left-radius: var(--bs-card-border-radius);
        border-bottom-left-radius: 0;
        border-top-right-radius: var(--bs-card-border-radius);
        border-bottom-right-radius: 0;
    }
    .img-thumb {
        object-fit: cover;
        aspect-ratio: 1/1;
        border-top-right-radius: var(--bs-card-border-radius);
        border-top-left-radius: var(--bs-card-border-radius);; 
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }    
}

@media (max-width: 575.98px) {
    .articles .card-img-top {
        height: 200px;
        object-fit: cover;
    }
}

/* Match cards (home + league landing) */
.match-card {
    border-color: var(--bs-border-color-translucent);
}
.match-card .card-body {
    padding: 1.125rem 1.25rem;
}
.match-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: .875rem;
    font-size: .875rem;
    color: #5c6370;
}
.match-card__time,
.match-card__status {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--custom-primary);
}
.match-card__status {
    color: #5c6370;
}
.match-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .3125rem 0;
}
.match-card__team {
    display: flex;
    align-items: center;
    gap: .625rem;
    min-width: 0;
}
.match-card__crest {
    flex: 0 0 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.match-card__crest img {
    max-width: 24px;
    max-height: 22px;
    width: auto;
    height: auto;
}
.match-card__name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-card__score {
    font-size: 1.125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #212529;
    min-width: 1.25rem;
    text-align: right;
}
.match-card__row.is-loser .match-card__name,
.match-card__row.is-loser .match-card__score {
    color: #6c757d;
    font-weight: 500;
}
.match-card__venue {
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--bs-border-color-translucent);
    font-size: .8125rem;
    color: #5c6370;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-card__row:last-child {
    margin-bottom: .75rem;
}
