footer {
    bottom: 0;
    position: relative;
    width: 100%;
}

.site-footer {
    background: #070b10;
    color: #d4dbe2;
    padding: 3.2rem 0 1.4rem;
    margin-top: 2rem;
}

.site-footer a {
    color: #f5f7fa;
    text-decoration: none;
}

.site-footer a:hover {
    color: #1abc9c;
}

.site-footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 2rem;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}

.site-footer-brand img {
    width: 190px;
    max-width: 100%;
    height: auto;
}

.site-footer-intro {
    color: #9ba9b9;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.site-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #c8d1db;
}

.site-footer-contact-item i {
    width: 16px;
    height: 16px;
    color: #1abc9c;
}

.site-footer-title {
    color: #8d9bab;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.site-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer-links li + li {
    margin-top: 0.62rem;
}

.site-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #f8fafc;
    font-weight: 600;
    line-height: 1.3;
}

.site-footer-links a i {
    width: 15px;
    height: 15px;
    color: #7f8c99;
    transition: transform 0.2s ease, color 0.2s ease;
}

.site-footer-links a:hover i {
    color: #1abc9c;
    transform: translateX(2px);
}

.site-footer-bottom {
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer-meta {
    color: #95a4b4;
    font-size: 0.9rem;
}

.site-footer-meta a {
    color: #f5f7fa;
}

.site-footer-top-link {
    border: 1px solid rgba(26, 188, 156, 0.55);
    color: #1abc9c;
    background: transparent;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.site-footer-top-link i {
    width: 15px;
    height: 15px;
}

.site-footer-top-link:hover {
    background: rgba(26, 188, 156, 0.12);
    border-color: #1abc9c;
}

@media (max-width: 991px) {
    .site-footer {
        padding: 2.6rem 0 1.25rem;
    }

    .site-footer-title {
        margin-top: 0.5rem;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .site-footer {
        margin-top: 1.4rem;
        padding-top: 2.2rem;
    }

    .site-footer-brand img {
        width: 165px;
    }

    .site-footer-links a {
        font-size: 0.95rem;
    }
}

a {
    color: #535c68;
    font-weight: bolder;
    text-decoration: underline;
}


.content-area {
    min-height: 75vh;
    padding: 80px 20px 100px 20px;
}

.navbar-home ~ .content-area {
    padding-top: 150px;
}

@media (max-width: 991px) {
    .content-area {
        padding-top: 70px;
    }
    .navbar-home ~ .content-area {
        padding-top: 70px;
    }
}

.content-pane {
    background-color: white;
    border-radius: 12px;
    margin-bottom: 30px;
}

table {
    font-size: .8em;
}


h4, h4 a {
    text-decoration: none;
    color: #535c68;
    font-size: 1.1em;
}

.page-header {
    position: sticky;
    top: 80px;
    z-index: 100;
    margin: 0;
    padding: 2.5rem 0 1.5rem 0;
    color: #1e272e;
    height: auto;
    background-color: white;
    width: 100%;
}

.page-header-season {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.page-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.page-header-meta a {
    color: #ffc107 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.page-header-meta a:hover {
    color: #e6ac00 !important;
}

.meta-separator {
    color: #ccc;
    font-weight: 400;
    margin: 0 2px;
}

.page-header-breadcrumb {
    display: none; /* Deprecated in favor of page-header-meta */
}

.page-header h1, .page-header h2, .page-header h3, .page-header h4, .page-header h5 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.2;
}

.page-header a {
    text-decoration: none;
    color: #ffc107;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header a.btn {
    text-decoration: none;
    color: #1e272e;
    font-size: .9em;
}

.page-header a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.padding-20 {
    padding: 20px;
}

.gameweek {
    margin: 8px 0;
}

.list-group-item.active {

    background-color: #ffc107;
    color: #1e272e;
    border-color: #ffc107;
}

#schedule .nav-link {
    color: #95a5a6;
    border-bottom: 2px solid #e6e6e6;
    transition: all 0.3s;
    border-radius: 0;
}

#schedule .nav-link.active {
    color: #535c68;
    background-color: transparent;
    border-bottom: 2px solid #ffdd00;
}

#schedule .schedule-light-tabs {
    gap: 0.35rem;
}

#schedule .schedule-light-tabs .nav-item {
    flex: 0 0 auto;
}

#schedule .schedule-light-tabs .schedule-light-nav-center {
    flex: 1 1 auto;
    min-width: 0;
}

#schedule .schedule-light-tabs .nav-link {
    padding: 0.45rem 0.55rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

#schedule .schedule-light-tabs .schedule-light-nav-prev .nav-link,
#schedule .schedule-light-tabs .schedule-light-nav-next .nav-link {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#schedule .schedule-light-tabs .schedule-light-nav-prev .nav-link i,
#schedule .schedule-light-tabs .schedule-light-nav-next .nav-link i {
    width: 16px;
    height: 16px;
}

.dashboard-league-pane {
    padding: 1.1rem 1.15rem 1.2rem;
}

.dashboard-league-grid {
    align-items: start;
}

.dashboard-table-wrap {
    overflow-x: auto;
}

#schedule .schedule-light-latest-header {
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
}

#schedule .schedule-light-latest-header h5 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #1e272e;
}

#schedule .schedule-light-latest-list {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

#schedule .schedule-light-latest-list .schedule-item {
    margin: 0;
    padding: 0.55rem 0.1rem;
    border-bottom: 1px solid #f1f4f7;
}

#schedule .schedule-light-latest-list .schedule-item:last-child {
    border-bottom: none;
}

a.schedule-item {
    text-decoration: none;
    display: block;
    border-radius: 4px;
}

.schedule-item {
    padding: 10px 15px 15px 0px;
    font-size: .9em;
    color: #1e272e;
    margin: 5px 0;
}

/* Unified hover effect for all schedule items */
.schedule-item:hover,
a.schedule-item:hover {
    background-color: #f8f8f8 !important;
    border-radius: 10px;
    transition: 0.3s all;
}

.schedule-item div[class^="col-"] {
    padding: 5px;
}

.win {
    color: #1abc9c;
}

.draw {
    color: #95a5a6;
}

.lose {
    color: #e74c3c;
}

.schedule .date {
    font-size: .9em;
}

.bg-win {
    background-color: #1abc9c !important;
}

.bg-lose {
    background-color: #e74c3c !important;
}

.text-win {
    color: #1abc9c !important;
    font-weight: bolder;
}

.text-lose {
    color: #e74c3c !important;
    font-weight: normal;
}

hr {
    color: #95a5a6;
}

.score {
    border-radius: 3px;
    padding: 10px 20px;
    color: white;
    font-weight: bolder;
    width: 100%;
    font-size: 1em;
    background-color: rgba(127, 140, 141, 0.3) !important;
    border: 1px solid rgba(127, 140, 141, 1.0) !important;
    color: rgba(127, 140, 141, 1.0);
}

.score.bg-win {
    background-color: rgba(22, 160, 133, 0.3) !important;
    border: 1px solid rgba(22, 160, 133, 1.0) !important;
    color: rgba(22, 160, 133, 1.0);
}

.score.bg-lose {
    background-color: rgba(231, 76, 60, 0.2) !important;
    border: 1px solid rgba(231, 76, 60, 1.0) !important;
    color: rgba(231, 76, 60, 1.0)
}


.score.outline-win {
    background-color: white !important;
    border: 1px solid rgba(22, 160, 133, 1.0) !important;
    color: rgba(22, 160, 133, 1.0);
}

.score.outline-lose {
    background-color: white !important;
    border: 1px solid rgba(231, 76, 60, 1.0) !important;
    color: rgba(231, 76, 60, 1.0)
}

.score.outline-draw {
    background-color: white !important;
    border: 1px solid rgba(127, 140, 141, 1.0) !important;
    color: rgba(127, 140, 141, 1.0)
}

.single {
    padding: 10px 0px;
}

.double {
    margin: 10px 0px;
    padding: 10px 0px;
    background-color: #f8f8f8;
}

.check180 label {
    display: block;
    clear: both;
    color: #aaa;
}

.check180 input {
    margin: 0 auto !important;
}

.form-label {
    color: #95a5a6;
}

/* News section */
.news-section {
    margin: 64px 0;
}

.news-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #37352f;
    margin-bottom: 24px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.news-card {
    background: white;
    /*border: 1px solid #e9e9e7;*/
    border-radius: 3px;
    padding: 24px;
    transition: background-color 0.15s ease;
}

.news-card:hover {
    background-color: #fafaf9;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #37352f;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.news-content {
    color: #37352f;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-content p {
    margin-bottom: 12px;
}

.news-content p:last-child {
    margin-bottom: 0;
}

.news-content ul,
.news-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.news-content li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.news-content a {
    color: #37352f;
    text-decoration: underline;
    font-weight: 500;
}

.news-content a:hover {
    color: #787774;
}

.news-content strong,
.news-content b {
    font-weight: 600;
    color: #37352f;
}

.news-date {
    display: block;
    font-size: 0.8125rem;
    color: #9b9a97;
    font-style: normal;
    padding-bottom: 12px;
}

/* Single column on mobile */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-section {
        margin: 48px 0;
    }
}

#navbar-about .nav-link.active {
    background-color: #1e272e;
    color: white;
    font-weight: bolder;
}

#navbar-about .nav-link {
    color: #1e272e;
}

.alert-danger {
    border: 2px solid #e74c3c;
    background: white;
}

.alert-danger h5 {
    color: #e74c3c;
}

.alert-compact p {
    padding: 0;
    margin: 0;
}

.alert:hover {
    color: #1e272e;
}

.penalty-text {
    padding: 5px;
    color: #e74c3c;
}

.text-red {
    color: #e74c3c;
    font-weight: normal;
    font-size: .8em;
}

.text-penalty {
    color: #e74c3c;
    font-weight: bolder;
}

.text-capitalize {
    text-transform: capitalize;
}

.cup {
    padding: 6px 12px;
    background-color: white;
    border-radius: 5px;
    margin: 2px;
}

.cups-overview-page {
    margin-top: 0.25rem;
}

.cups-overview-pane {
    padding: 1.2rem 1.25rem 1.4rem;
}

.cups-overview-grid {
    margin-top: 0.25rem;
}

.cups-section-pane {
    padding: 1.05rem 1.1rem 1.2rem;
    border: 1px solid #edf2f7;
    background: #fbfcfd;
}

.cups-section-header {
    margin-bottom: 0.9rem;
}

.cups-section-header h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e272e;
}

.cups-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    background: #eef2f7;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
}

.cups-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.cup.cup-card {
    margin: 0;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    padding: 0.68rem 0.85rem 0.72rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cup.cup-card:hover {
    border-color: #d8e2ec;
    box-shadow: 0 8px 22px rgba(30, 39, 46, 0.08);
}

.cup a {
    margin: 10px 0;
    font-weight: normal;
    color: #2f3640;
    transition: 0.3s all;
    font-size: 1.2em;
}

.cup a:hover {
    font-weight: normal;
    color: #95a5a6;
}

.cup span {
    color: #ffc107;
    display: block;
    font-size: .8em;
    font-weight: bolder;
}

.cup.selected a {
    font-weight: bold;
}

.cup.cup-card.selected {
    border-color: #1f3f6b;
    background: #f5f8fc;
}

.cup.cup-card a {
    display: inline-block;
    margin: 0;
}

.cups-admin-actions {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #edf2f7;
}

.cups-admin-actions .btn {
    width: 100%;
    font-weight: 600;
}

@media (max-width: 991px) {
    .cups-overview-pane {
        padding: 1rem;
    }

    .cups-section-pane {
        padding: 0.95rem 1rem 1.05rem;
    }
}

.round-info {
    padding-top: 10px;
}

.player-subscription {
    padding: 7px;
    margin: 5px;
}

.player-subscription.active-row {
    background-color: #f5f5f5;
    padding: 7px;
    border-radius: 5px;
    margin: 5px;
}

#header-image {
    padding: 20px
}


.home-header {
    border-radius: 10px;
    background-color: #f8f8f8 !important;
    background: url('../images/hero-image.svg') no-repeat right center;
    background-size: 60vh;
    min-height: 300px;
}

.home-header div {
    padding: 50px;
}

/* Redesigned Hero Section */
.hero-section {
    position: relative;
    background-color: white;
    color: #1e272e;
    padding: 210px 0 80px 0;
    overflow: hidden;
    margin-top: -150px;
    margin-bottom: 60px;
    width: 100%;
}

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

.hero-eyebrow {
    display: inline-block;
    color: #ffdd00;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.hero-title .team-name {
    display: inline-block;
}

.hero-title .vs {
    display: inline-block;
    font-size: 1.5rem;
    color: #ffdd00;
    margin: 0 1rem;
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #4b5e6d;
    max-width: 700px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.match-meta {
    font-size: 1.25rem;
    color: #4b5e6d;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Match Countdown */
.match-countdown {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    z-index: 2;
    position: relative;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    min-width: 110px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.countdown-value {
    font-size: 3rem;
    font-weight: 800;
    color: #ffdd00;
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #95a5a6;
    margin-top: 0.75rem;
    font-weight: 600;
}

/* Hero Sidebar & League Cards */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-sidebar-title {
    color: #1e272e;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    opacity: 0.6;
}

.hero-league-card {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    color: #1e272e;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hero-league-card:hover {
    background: #f8f9fa;
    border-color: #ffdd00;
    color: #1e272e;
    text-decoration: none;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero-league-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hero-league-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hero-league-stats {
    font-size: 0.85rem;
    color: #95a5a6;
    font-weight: 500;
}

.hero-league-arrow {
    color: #ffdd00;
    font-size: 1.2rem;
    opacity: 0.5;
    transition: all 0.3s;
}

.hero-league-card:hover .hero-league-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Redesigned News Section */
.news-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.news-featured {
    background: #f8fafc;
    color: #1e272e;
    padding: 60px 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 450px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 22px rgba(30, 39, 46, 0.08);
}

.news-featured::before {
    content: none;
}

.news-featured-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}


.news-badge {
    display: inline-block;
    background: #1e272e;
    color: white;
    padding: 5px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.news-featured .news-title {
    font-size: 2.75rem;
    color: #1e272e;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
}

.news-featured .news-excerpt {
    color: #475569;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    color: #1e272e;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.btn-read-more:hover {
    color: #0f172a;
    text-decoration: none;
    transform: translateX(8px);
}

.news-sub-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-card-simple {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    display: flex;
    flex-direction: column;
}

.news-card-simple:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #ffdd00;
    transform: translateY(-4px);
}

.news-card-simple .news-date {
    margin-bottom: 1rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.news-card-simple .news-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1e272e;
    font-weight: 700;
    line-height: 1.3;
}

.news-card-simple .news-excerpt {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.news-link {
    font-size: 0.9rem;
    color: #1e272e;
    text-decoration: none;
    font-weight: 700;
    align-self: flex-start;
    position: relative;
    margin-top: auto;
}

.news-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffdd00;
    transition: height 0.2s;
}

.news-link:hover::after {
    height: 4px;
}

/* News Detail Page */
.news-detail-page .content-pane {
    border-radius: 16px;
}

.news-detail-pane {
    padding: 2rem 2rem 2.2rem;
}

.news-detail-topbar {
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 1rem;
}

.news-detail-meta-inline .news-date {
    margin: 0;
    color: #5b6774;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
}

.news-detail-content {
    font-size: 1.08rem;
    color: #34465a;
    line-height: 1.8;
}

.news-detail-content p:last-child {
    margin-bottom: 0;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    color: #1e272e;
    font-weight: 800;
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
}

.news-related-pane .section-header {
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 0.7rem;
    margin-bottom: 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-related-card {
    padding: 1.1rem 1.15rem;
    border-radius: 12px;
    margin-bottom: 0.75rem !important;
}

.news-related-card .news-title {
    font-size: 1.02rem;
    margin-bottom: 0.55rem !important;
    line-height: 1.35;
}

@media (max-width: 991px) {
    .news-detail-pane {
        padding: 1.5rem 1.25rem 1.65rem;
    }

    .news-detail-content {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Fixtures Scroller */
.fixtures-scroller-section {
    margin: 40px 0 60px 0;
}

.fixtures-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.fixtures-wrapper::-webkit-scrollbar {
    height: 6px;
}

.fixtures-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.fixture-card {
    flex: 0 0 350px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    scroll-snap-align: start;
    transition: all 0.2s;
}

.fixture-card:hover {
    border-color: #ffdd00;
    background: #f8fafc;
}

.fixture-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.fixture-teams {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fixture-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.fixture-score {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
}

.fixture-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        margin-bottom: 2.5rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }
    .match-meta {
        justify-content: center;
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .match-countdown {
        justify-content: center;
    }
    .hero-sidebar {
        margin-top: 2.5rem;
    }
    .page-header {
        top: 70px;
        padding-top: 2rem;
        padding-bottom: 1rem;
    }
    .news-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        margin-bottom: 2rem;
    }
    .fixtures-scroller-section {
        margin: 2.5rem 0;
    }
    .hero-eyebrow {
        margin-bottom: 1rem;
    }
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    .hero-subtitle {
        margin-bottom: 1.75rem;
    }
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }
    .match-meta {
        justify-content: center;
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .match-countdown {
        justify-content: center;
    }
    .hero-sidebar {
        margin-top: 2rem;
    }
    .hero-sidebar-title {
        margin-bottom: 1rem;
    }
    .hero-league-card {
        text-align: left;
        padding: 1rem;
    }
    .countdown-item {
        min-width: 80px;
        padding: 1rem;
    }
    .countdown-value {
        font-size: 2rem;
    }
    .home-header {
        border-radius: 10px;
        background-color: #f8f8f8 !important;
        background: none;
        height: auto;
    }
}

.tournament-bracket {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    overflow-x: auto;
    padding: 20px;
}

.round {
    display: flex;
    flex-direction: column;
    margin: 0 10px;
}

.round-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.match {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    overflow: hidden;
    width: 225px;
    border-radius: 6px;
}

.match-date {
    font-size: .8em;
    color: #95a5a6;
}

.strikethrough {
    text-decoration: line-through;
}

.add-match-container {
    padding: 45px 27px;
    text-align: center;
    font-weight: bolder;
    background-color: whitesmoke;

    transition: 0.3s all;
}

.add-match {
    cursor: pointer;
}

.add-match:hover {
    background-color: #ffdd00;
    color: #2f3640;
}

.border-light {
    border: 1px solid #bdc3c7 !important;
    border-radius: 4px;
}

.player-container {
    padding: 10px;
    background-color: whitesmoke;
    border-radius: 6px;
    margin: 5px;
}

.player {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
    background-color: white;
    height: 40px;
}

.player-double {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

.player-name {
    font-size: .8em;
    max-width: 70%;
    overflow-x: hidden;
    margin-right: 3px;
}

.player:last-child {
    border-bottom: none;
}

.cup-match-view-link {
    padding: 3px 10px;
    text-align: left;
    align-content: start;
    font-size: .8em;
    text-decoration: underline;
    cursor: pointer;
    color: grey;
}

.cup-match-view-link:hover {
    font-weight: bolder;
    color: grey;
}

.result {
    margin-left: auto;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.player-id {
    font-size: .8em;
    color: #535c68;
    padding: 0 4px;
}

.player-wrapper {
    display: flex;
    align-items: center;
}

.match-win {
    background-color: #d1e7dd;
    font-weight: bolder;
}

.match-lose {
    background-color: #f8d7da;
}

.final-results {
    border: 1px solid #dc3545;
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
}

.final-title {
    text-align: center;
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 10px;
}

.signature {
    text-align: right;
    font-style: italic;
    margin-top: 30px;
}

.search-container {
    position: relative;
    width: 100%;
}

.match-score {
    padding: 10.5px;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: .375rem;
}

.dropdown-menu {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    background-color: #fff;
    padding: 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #f8f9fa;
}

.dropdown-item:hover, .dropdown-item.active {
    background-color: #f8f9fa;
}

.match .badge {
    font-size: .6em;
}

.no-results {
    padding: 8px 16px;
    color: #6c757d;
    font-style: italic;
}

/* Make scrollbars prettier */
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.font-weight-bolder {
    font-weight: bolder;
}

.font-weight-lighter {
    font-weight: lighter;
}

.nav-search {
    cursor: pointer;
}

.search-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-input-shell {
    position: relative;
}

.search-input-shell .form-control {
    padding-left: 2.55rem;
    border-radius: 12px;
    border: 1px solid #dbe4ee;
    min-height: 48px;
}

.search-input-shell .form-control:focus {
    border-color: #8aa4bf;
    box-shadow: 0 0 0 0.2rem rgba(58, 91, 124, 0.12);
}

.search-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.05rem;
    height: 1.05rem;
    color: #64748b;
    pointer-events: none;
}

.search-shortcuts {
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 0.75rem;
    background: #fbfdff;
}

.search-shortcuts-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.search-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.search-shortcut-card {
    border: 1px solid #e6edf5;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    padding: 0.65rem 0.7rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.search-shortcut-card i {
    width: 0.95rem;
    height: 0.95rem;
    color: #3b82f6;
}

.search-shortcut-card:hover {
    border-color: #cdd9e6;
    background: #f8fbff;
    transform: translateY(-1px);
    color: #0f172a;
}

.search-results-wrap {
    min-height: 170px;
    margin-top: 0.2rem;
}

.search-empty-state {
    border: 1px dashed #d9e3ef;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: #475569;
    background: #fcfdff;
}

.search-empty-state i {
    width: 1.2rem;
    height: 1.2rem;
    margin-bottom: 0.45rem;
    color: #64748b;
}

.search-group + .search-group {
    margin-top: 0.8rem;
}

.search-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.search-group-header h6 {
    margin: 0;
    font-weight: 700;
    color: #1e293b;
}

.search-group-count {
    font-size: 0.72rem;
    background: #eef2f7;
    color: #475569;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-weight: 700;
}

.search-group-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.search-result-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #e7edf5;
    border-radius: 11px;
    padding: 0.6rem 0.7rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: all 0.2s ease;
}

.search-result-card:hover {
    border-color: #d2dceb;
    background: #f9fbfd;
}

.search-result-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-result-icon i {
    width: 0.9rem;
    height: 0.9rem;
}

.search-result-icon-player {
    background: #e0f2fe;
    color: #0369a1;
}

.search-result-icon-team {
    background: #ede9fe;
    color: #5b21b6;
}

.search-result-icon-document {
    background: #fef3c7;
    color: #92400e;
}

.search-result-body {
    min-width: 0;
}

.search-result-title {
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.1rem;
}

@media (max-width: 767.98px) {
    .search-shortcuts-grid {
        grid-template-columns: 1fr;
    }
}

/* Gameweek Carousel Styles */
.gameweek-carousel-container {
    margin-bottom: 15px;
    background-color: white;
    border-radius: 6px;
    padding: 15px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gameweek-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-behavior: smooth;
}

.gameweek-carousel::-webkit-scrollbar {
    height: 4px;
}

.gameweek-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.gameweek-carousel::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.gameweek-nav-item {
    flex: 0 0 auto;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 70px;
    border: 2px solid transparent;
}

.gameweek-nav-item:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.gameweek-nav-item.active {
    background-color: #ffdd00;
    border-color: #1e272e;
    color: #1e272e;
    font-weight: bold;
}

.gameweek-title {
    font-size: 0.8em;
    font-weight: bold;
    color: #535c68;
}

.gameweek-nav-item.active .gameweek-title {
    color: #1e272e;
}

.gameweek-date {
    font-size: 0.7em;
    color: #95a5a6;
    margin-top: 2px;
}

.gameweek-nav-item.active .gameweek-date {
    color: #1e272e;
}

/* Schedule Content with Fixed Height */
.schedule-content {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.schedule-content::-webkit-scrollbar {
    width: 6px;
}

.schedule-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.schedule-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.schedule-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.page-content {
    margin-top: 30px;
}

.text-muted {
    --bs-text-opacity: 1;
    color: #aaaaaa !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .schedule-content {
        max-height: calc(100vh - 250px);
    }

    .gameweek-nav-item {
        min-width: 60px;
        padding: 6px 8px;
    }

    .gameweek-title {
        font-size: 0.75em;
    }

    .gameweek-date {
        font-size: 0.65em;
    }

    .page-header {
        top: 70px;
        padding-top: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .page-header h5 {
        font-size: 2rem;
    }

    .page-content {
        margin-top: 20px;
    }
    .content-pane {
        margin-bottom: 20px;
    }

    #schedule .schedule-light-tabs .nav-link {
        font-size: 0.84rem;
    }
}

.section-header {
    margin: 0 0 20px 0;
    padding: 12px 15px;
    font-weight: 600;
    color: #aaa;
    text-align: center;
    text-align: center;
}

/* Match result page styles */
.match-row {
    margin-bottom: 0;
    padding: 10px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.match-row-doubles {
    margin-bottom: 0;
    padding: 12px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.match-player-col {
    padding-right: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.match-player-col-left {
    padding-left: 15px;
    display: flex;
    align-items: center;
}

.match-player-col-doubles {
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.match-player-col-doubles-left {
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.match-player-badge {
    margin-right: 8px;
}

.match-player-name {
    font-weight: 500;
    color: #8b95a5;
}

.match-player-name-winner {
    font-weight: 800;
    color: #1f2937;
}

.overall-result-hero {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.2rem 0 1rem;
}

.overall-result-headline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.overall-result-team-name a {
    color: #0f172a;
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    font-weight: 800;
    text-decoration: none;
}

.overall-result-team-id {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    color: #64748b;
}

.overall-result-team-name a:hover {
    text-decoration: underline;
}

.overall-result-score-wrap {
    min-width: 210px;
}

.overall-result-scoreline {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1;
}

.overall-score-home,
.overall-score-away {
    font-size: clamp(2.4rem, 6vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.overall-score-win {
    color: #0f9f6e;
}

.overall-score-lose {
    color: #ef4444;
}

.overall-score-draw {
    color: #0f172a;
}

.overall-score-separator {
    font-size: clamp(1.75rem, 4.4vw, 2.4rem);
    color: #94a3b8;
    font-weight: 700;
}

.overall-result-text {
    margin-top: 0.45rem;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #334155;
}

.match-score-pill {
    background: #eef2f7;
    color: #1f2937;
    font-weight: 800;
    min-width: 2rem;
}

.overall-penalties {
    margin-top: 0.75rem;
    border-top: 1px dashed #d5dfeb;
    padding-top: 0.85rem;
    text-align: center;
}

.overall-penalties .penalty-text {
    display: inline-block;
    margin: 0;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.overall-penalties .penalty-text strong {
    color: #991b1b;
}

.match-stat-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-stat-col-doubles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.match-stat-spacer {
    height: 4px;
}

.match-score-badge {
    font-size: 0.95em;
    padding: 5px 8px;
    min-width: 35px;
}

.match-player-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0px;
}

.match-player-container:not(:last-child) {
    margin-bottom: 6px;
}

.match-player-container-left {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.match-player-container-left:not(:last-child) {
    margin-bottom: 6px;
}


.match-header-row {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
}

.match-header-col-end {
    padding-right: 15px;
}

.match-header-col-start {
    padding-left: 15px;
}

#match-entry-form.hidden {
    display: none;
}

.match-player-stats {
    /* margin-top: 8px; */
    /* display: flex; */
    /* flex-wrap: wrap; */
    /* gap: 6px; */
    margin-left: 10px;
    /* justify-content: flex-end; */
}

.match-player-col-left .match-player-stats {
    justify-content: flex-start;
}

.match-stat-badge {
    font-size: 10px;
    padding: 4px 8px;
    font-weight: 500;
}

.match-score-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.match-score-home,
.match-score-away {
    font-size: 1em;
    padding: 6px 12px;
    min-width: 40px;
    text-align: center;
}

.match-score-separator {
    font-size: 1.1em;
    color: #999;
    font-weight: 500;
}

/* Match information pane styles */
.match-info-pane {
    position: sticky;
    top: 180px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 20px;
    font-size: 0.875em;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.match-status-strip {
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #fbfdff;
    padding: 1rem 1rem 0.95rem;
}

.status-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.status-meta-item {
    border: 1px solid #e9eef5;
    border-radius: 10px;
    background: #fff;
    padding: 0.7rem 0.8rem;
}

.status-meta-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.status-meta-value {
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
}

.status-meta-time {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.match-info-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.match-info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.match-info-title {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #495057;
    padding-bottom: 8px;
    border-bottom: 2px solid #aaa;
    display: inline-block;
    width: 100%;
}

.match-info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    padding: 8px;
    background: #ffffff;
}

.match-info-label {
    font-size: 0.75em;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.match-info-value {
    font-size: 0.9em;
    font-weight: 500;
    color: #212529;
    margin-bottom: 2px;
}

.match-info-time {
    font-size: 0.7em;
    color: #868e96;
    font-style: italic;
}

/* Insights styling */
.match-insight {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    margin-bottom: 8px;
    background: #ffffff;
}

.insight-icon {
    font-size: 1.2em;
    flex-shrink: 0;
    line-height: 1.2;
}

.insight-text {
    font-size: 0.85em;
    line-height: 1.4;
    color: #212529;
    font-weight: 500;
}

.match-insights-row .match-insight {
    justify-content: center;
    text-align: center;
}

/* Team statistics styling */
.team-stat-group {
    margin-bottom: 16px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Team page hierarchy */
.team-page .content-pane {
    border: 1px solid #edf0f2;
    box-shadow: 0 6px 20px rgba(30, 39, 46, 0.04);
}

.team-page .team-overview-grid {
    margin-bottom: 0.55rem;
}

.team-page .team-top-pane {
    padding: 1.2rem 1.25rem 1.45rem;
}

.team-page .content-pane h4,
.team-page .content-pane h5 {
    color: #1f2b37;
    font-weight: 700;
}

.team-page .section-block-header h4,
.team-page .section-block-header h5 {
    margin: 0;
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.2;
}

.team-page .content-pane.team-data-pane {
    padding: 1.2rem 1.25rem 1.45rem;
}

.team-contact-item {
    padding-bottom: 1.15rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid #f0f2f4;
}

.team-actions-pane {
    display: flex;
    flex-direction: column;
}

.team-sheet-btn {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.team-sheet-btn .section-icon {
    color: #1f2937;
    margin-right: 0.45rem;
}

.section-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 0.72rem;
    margin-bottom: 1.05rem;
}

.section-block-header-lg {
    margin-bottom: 1.15rem;
    padding-bottom: 0.9rem;
}

.section-block-header-sub {
    margin-bottom: 0.65rem;
}

.section-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
    color: #64748b;
    margin-right: 0.42rem;
    vertical-align: -2px;
}

.team-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e272e;
    margin-bottom: 0;
}

.team-detail-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #95a5a6;
}

.team-detail-value {
    font-size: 1.15rem;
    color: #1e272e;
    line-height: 1.3;
}

.team-contact-row {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f2f4;
}

.team-contact-row:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.team-venue-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e272e;
    margin-bottom: 0.35rem;
}

/* Player page */
.player-page .player-pane {
    border: 1px solid #edf0f2;
    box-shadow: 0 6px 20px rgba(30, 39, 46, 0.04);
    padding: 1.2rem 1.25rem 1.3rem;
}

.player-page .player-pane .section-block-header h4 {
    margin: 0;
    font-size: 1.24rem;
    font-weight: 700;
    line-height: 1.2;
}

.player-page .player-pane-body > dl dt {
    color: #7a8794 !important;
    letter-spacing: 0.6px;
}

.player-page .player-pane-body > dl dd {
    margin-bottom: 0.7rem;
}

.player-page .player-subscription {
    margin: 0;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.player-page .player-subscription:hover {
    background: #f8fafc;
}

.player-page .player-subscription.active-row {
    background: #f8fafc;
    border: 1px solid #e6ecf2;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.player-kpi-card {
    border: 1px solid #e8edf2;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem 0.75rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-kpi-label {
    color: #64748b;
    font-size: 0.74rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.player-kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.player-kpi-value-success {
    color: #15803d;
}

.player-match-card {
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 1rem 1rem 0.7rem;
    background: #fff;
}

.player-match-meta {
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.player-match-title {
    font-size: 1.32rem;
    line-height: 1.2;
}

.player-match-title a:hover {
    color: #0f172a !important;
}

@media (max-width: 767.98px) {
    .player-page .player-pane {
        padding: 1rem;
    }

    .player-page .player-pane .section-block-header h4 {
        font-size: 1.14rem;
    }

    .player-kpi-card {
        min-height: 108px;
    }

    .player-kpi-value {
        font-size: 1.7rem;
    }

    .player-match-title {
        font-size: 1.1rem;
    }
}

/* League page */
.league-page .content-pane {
    border: 1px solid #edf0f2;
    box-shadow: 0 6px 20px rgba(30, 39, 46, 0.04);
}

.league-page .league-pane {
    padding: 1.2rem 1.25rem 1.35rem;
}

.league-page .league-table-pane {
    margin-bottom: 0.2rem;
}

.league-page .league-pane-body > table {
    margin-bottom: 0;
}

.league-page .league-pane-body > .table-responsive,
.league-page .league-pane-body > .ranking-table,
.league-page .league-pane-body > .gameweek {
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    background: #fff;
}

.league-page .league-pane-body > p.text-muted {
    margin-bottom: 0.9rem;
}

.league-page .league-pane .section-block-header h4,
.league-page .league-pane .section-block-header h5 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.2;
}

.league-page .league-schedule-pane {
    padding-bottom: 1rem;
}

.league-page .league-schedule-pane .gameweek {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

@media (max-width: 1199px) {
    .league-page .league-schedule-pane {
        margin-top: 0.1rem;
    }
}

@media (max-width: 767.98px) {
    .league-page .league-pane {
        padding: 1rem;
    }

    .league-page .league-pane .section-block-header h4,
    .league-page .league-pane .section-block-header h5 {
        font-size: 1.16rem;
    }
}

/* Team schedule horizontal presentation */
.team-schedule-pane .gameweek {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.team-schedule-pane {
    padding: 1.2rem 1.25rem;
}

.team-page .team-schedule-pane {
    margin-top: 0.35rem;
    width: 100%;
}

.team-page .team-data-pane table {
    margin-bottom: 0;
}

.team-activity-calendar {
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: #fbfdff;
}

.schedule-content-horizontal {
    max-height: none;
    overflow-y: visible;
}

.team-gameweek-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0 0.8rem;
    padding: 0 0.25rem;
}

.team-gameweek-title {
    font-weight: 800;
    color: #1e272e;
}

.team-gameweek-date {
    font-size: 0.82rem;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-fixture-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0.25rem 0.15rem 1rem;
    scroll-snap-type: x mandatory;
    align-items: stretch;
}

.team-activity-calendar {
    background: #fff;
}

.activity-calendar-svg {
    display: block;
    width: 100%;
    max-width: 100%;
}

.activity-month-labels text,
.activity-day-label {
    font-size: 0.78rem;
    color: #64748b;
    letter-spacing: 0.5px;
    font-weight: 600;
    fill: #64748b;
}

.activity-cell {
    transition: transform 0.15s ease, stroke-color 0.15s ease;
    background: #edf2f7;
    stroke: rgba(0, 0, 0, 0.06);
    stroke-width: 1px;
}

.activity-cell:hover {
    stroke: rgba(0, 0, 0, 0.2);
}

.activity-win {
    background-color: rgba(22, 160, 133, 0.45);
}

.activity-draw {
    background-color: rgba(127, 140, 141, 0.45);
}

.activity-lose {
    background-color: rgba(231, 76, 60, 0.45);
}

.activity-upcoming {
    background-color: rgba(148, 163, 184, 0.18);
}

.activity-note {
    background-color: rgba(241, 245, 249, 0.8);
}

.activity-event {
    background-color: rgba(255, 193, 7, 0.28);
}

.activity-empty {
    fill: #edf2f7;
}

rect.activity-upcoming,
span.activity-upcoming {
    fill: rgba(148, 163, 184, 0.18);
    background-color: rgba(148, 163, 184, 0.18);
}

rect.activity-draw,
span.activity-draw {
    fill: rgba(127, 140, 141, 0.45);
    background-color: rgba(127, 140, 141, 0.45);
}

rect.activity-win,
span.activity-win {
    fill: rgba(22, 160, 133, 0.45);
    background-color: rgba(22, 160, 133, 0.45);
}

rect.activity-lose,
span.activity-lose {
    fill: rgba(231, 76, 60, 0.45);
    background-color: rgba(231, 76, 60, 0.45);
}

rect.activity-event,
span.activity-event {
    fill: rgba(255, 193, 7, 0.28);
    background-color: rgba(255, 193, 7, 0.28);
}

.activity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
}

.activity-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    cursor: pointer;
}

.activity-toggle input {
    accent-color: #64748b;
}

.activity-legend {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 600;
    flex-wrap: wrap;
}

.activity-legend .activity-cell {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.06);
    stroke: none;
}

.schedule-item-horizontal {
    flex: 0 0 280px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 16px;
    margin: 0;
    background: #fff;
    scroll-snap-align: start;
    min-height: 270px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.schedule-item-horizontal:hover {
    border-color: #ffdd00;
}

.schedule-item-horizontal .fixture-header span:first-child {
    color: #95a5a6;
}

.fixture-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.55rem;
}

.fixture-week-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.55px;
}

.fixture-date-label {
    font-size: 0.9rem;
    color: #111827;
    font-weight: 700;
    line-height: 1.3;
}

.fixture-top-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1.05rem;
}

.fixture-location-label {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.35;
}

.fixture-matchup-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.78rem;
    margin-top: 0.55rem;
}

.fixture-side {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.fixture-side:last-child {
    text-align: right;
}

.fixture-side-name {
    font-size: 1.1rem;
    line-height: 1.35;
}

.fixture-side-code {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1f2937;
    line-height: 1;
}

.fixture-scoreline-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 0.32rem;
}

.fixture-scoreline-number {
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #111827;
}

.fixture-scoreline-separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4b5563;
}

.schedule-item-note {
    display: flex;
    flex-direction: column;
}

.schedule-item-note .fixture-header {
    margin-bottom: 0.5rem;
}

.fixture-note {
    font-size: 1.05rem;
    line-height: 1.35;
    color: #1e272e;
    word-break: break-word;
    margin-top: auto;
    margin-bottom: auto;
}

.schedule-item-horizontal .fixture-footer {
    margin-top: auto;
}

.fixture-footer-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    border-top: 1px solid #edf2f7;
    padding-top: 0.9rem;
    margin-top: 1.25rem;
}

.fixture-venue {
    font-size: 0.74rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fixture-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #0f172a;
    padding: 0.42rem 0.8rem;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.38px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.fixture-action-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.schedule-item-note .fixture-note {
    font-size: 0.96rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.schedule-item-horizontal .alert.alert-compact {
    font-size: 0.73rem;
    line-height: 1.3;
    padding: 0.35rem 0.45rem;
}

.schedule-item-horizontal.event-hidden {
    display: none;
}

.schedule-card-active {
    border-color: #ffdd00;
    box-shadow: 0 0 0 2px rgba(255, 221, 0, 0.18);
}

.activity-cell-active {
    stroke: #1e272e;
    stroke-width: 1.5px;
}

@media (max-width: 991px) {
    .team-detail-value {
        font-size: 1.05rem;
    }

    .schedule-item-horizontal {
        flex-basis: 245px;
        min-height: 245px;
    }

    .team-schedule-pane {
        padding: 1rem;
    }

    .fixture-side-code {
        font-size: 1.45rem;
    }

    .fixture-scoreline-number {
        font-size: 1.7rem;
    }

    .activity-controls {
        justify-content: flex-start;
    }
}

.team-stat-label {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #dee2e6;
}

.team-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.team-stat-row:last-child {
    border-bottom: none;
}

.team-name-small {
    font-size: 0.8em;
    color: #495057;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-stat {
    font-size: 0.85em;
    padding: 4px 8px;
    font-weight: 600;
    border-radius: 4px;
}

.badge-primary {
    background-color: #007bff;
    color: #ffffff;
}

.badge-success {
    background-color: #28a745;
    color: #ffffff;
}

/* Notes styling */
.match-notes-box {
    padding: 12px;
    background: #fff9e6;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.match-notes-text {
    font-size: 0.85em;
    color: #495057;
    line-height: 1.6;
    white-space: pre-wrap;
    margin: 0;
}

/* Approval box styling */
.approval-box {
    padding: 12px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.approval-title {
    font-size: 0.8em;
    font-weight: 700;
    color: #856404;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.approval-text {
    font-size: 0.8em;
    color: #856404;
    line-height: 1.5;
    margin-bottom: 12px;
}

.btn-approval {
    width: 100%;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75em;
    padding: 8px;
}

.btn-approval:last-child {
    margin-bottom: 0;
}

.approval-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.btn-approval-inline {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    font-size: 0.72rem;
    padding: 0.45rem 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .match-info-pane {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 20px;
    }

    .match-status-strip {
        padding: 0.85rem;
    }

    .overall-result-headline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 0.75rem;
    }

    .overall-result-score-wrap {
        min-width: 0;
        grid-column: 1 / -1;
        order: -1;
    }

    .overall-result-team {
        min-width: 0;
    }

    .overall-result-team-name a {
        font-size: 1.08rem;
        line-height: 1.2;
    }

    .overall-result-team-id {
        font-size: 0.68rem;
    }

    .overall-result-hero {
        padding: 0.1rem 0 0.9rem;
    }

    .match-info-item,
    .match-insight,
    .team-stat-group {
        padding: 12px;
    }
}

.section-header-decorated {
    margin: 3rem 0 2rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #1e272e;
}

.section-header-decorated h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e272e;
}

.section-header-decorated .trophy-icon {
    font-size: 2rem;
}

.cups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.cup-card {
    display: block;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}


.cup-card:hover::before {
    transform: scaleX(1);
}

.cup-card:hover {
    border-color: #ffdd00;
    box-shadow: 0 4px 12px rgba(255, 221, 0, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.cup-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.cup-type {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #95a5a6;
    margin-bottom: 0.5rem;
}

.cup-name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e272e;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cups-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }

    .section-header-decorated h2 {
        font-size: 1.5rem;
    }

    .section-header-decorated {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .cups-grid {
        grid-template-columns: 1fr;
    }
}

table td, table th {
    border: none;
}

.bg-light.content-area {
    background-color: white !important;
}

.season-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*gap: 2rem;*/
    background: #f8f8f8;
    border-radius: 10px;
    padding: 2.5rem 3rem;
    margin-top: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.season-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /*background: linear-gradient(90deg, #ffdd00 0%, #ffc107 100%);*/
}

.season-summary-content {
    flex: 1;
}

.season-summary-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.season-summary-card h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: black;
}

.season-summary-card p {
    margin: 0 0 1.5rem 0;
    color: black;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 560px;
}

.season-summary-card .btn-summary {
    background-color: #ffc107;
    color: #1e272e;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.season-summary-card .btn-summary:hover {
    background-color: #ffc107;
    transform: translateY(-1px);
    color: #1e272e;
}

.season-summary-visual {
    font-size: 5rem;
    opacity: 0.85;
    line-height: 1;
}

@media (max-width: 768px) {
    .season-summary-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        text-align: left;
    }

    .season-summary-visual {
        display: none;
    }

    .season-summary-card h2 {
        font-size: 1.5rem;
    }
}
/* Newcastle United Style Navbar Animation */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
}

.navbar:not(.navbar-home) {
    height: 80px;
    background-color: white !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.navbar:not(.navbar-home) .nav-link {
    color: rgba(0, 0, 0, 0.7) !important;
}

.navbar:not(.navbar-home) .nav-link:hover {
    color: #000 !important;
}

.navbar:not(.navbar-home) .nav-icon-btn {
    color: rgba(0, 0, 0, 0.8);
}

.navbar:not(.navbar-home) .nav-icon-btn:hover {
    color: #000;
}

.navbar-home {
    height: 150px;
    background-color: transparent !important;
    border-bottom: none !important;
}

.navbar-home .logo-mark { display: block; }
.navbar-home .logo-full { display: none; }

.navbar-home.scrolled .logo-mark { display: none; }
.navbar-home.scrolled .logo-full { display: block; }

/* For non-home pages */
.navbar:not(.navbar-home) .logo-mark { display: none; }
.navbar:not(.navbar-home) .logo-full { display: block; }

.navbar-home .navbar-brand {
    position: absolute;
    left: 50% !important;
    transform: translateX(-50%);
    top: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0;
    z-index: 10;
}

.navbar-home .navbar-brand img.logo-mark {
    width: 60px !important;
    height: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-home .navbar-collapse {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-home .navbar-nav {
    margin-top: 95px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-home .nav-link {
    color: rgba(0, 0, 0, 0.7) !important;
    font-weight: 500;
}

.navbar-home .nav-link:hover {
    color: #ffdd00 !important;
}

/* Scrolled state for home navbar */
.navbar-home.scrolled {
    height: 80px;
    background-color: white !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-home.scrolled .navbar-brand {
    left: 1rem !important;
    transform: translateX(0);
    top: 0px;
}

.navbar-home.scrolled .navbar-brand img.logo-full {
    width: 180px !important;
    filter: none;
}

@media (min-width: 992px) {
    .navbar-home.scrolled .navbar-collapse {
        justify-content: center !important;
        margin-left: 0;
    }
}

.navbar-home.scrolled .navbar-nav {
    margin-top: 0;
}

.navbar-home.scrolled .nav-link {
    color: rgba(0, 0, 0, 0.7) !important;
    text-shadow: none;
}

.navbar-home.scrolled .nav-link:hover {
    color: #000 !important;
}

.navbar-home.scrolled .navbar-toggler {
    color: rgba(0,0,0,0.5);
    border-color: rgba(0,0,0,0.1);
}

.navbar-home.scrolled .nav-icon-btn {
    color: rgba(0, 0, 0, 0.8);
}

.navbar-home.scrolled .nav-icon-btn:hover {
    color: #000;
}


/* Additional styles for buttons and icons in the transparent navbar */
.navbar-home .btn-light {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.navbar-home .btn-light img {
    filter: invert(1) brightness(100);
}

.navbar-home.scrolled .btn-light {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #212529 !important;
}

.navbar-home.scrolled .btn-light img {
    filter: none;
}

/* Language switcher colors */
.language-switcher .nav-icon-btn {
    color: rgba(0, 0, 0, 0.8);
    width: auto !important;
    min-width: 44px;
    padding: 0 12px;
    border-radius: 22px;
    gap: 4px;
}

.navbar-home .language-switcher .nav-icon-btn {
    color: rgba(0, 0, 0, 0.8);
}

.mobile-sidebar .language-switcher .nav-icon-btn {
    color: white;
    justify-content: flex-start;
    width: auto;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.mobile-sidebar .language-switcher .dropdown-menu {
    background-color: #2d3436;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-sidebar .language-switcher .dropdown-item {
    color: white;
}

.mobile-sidebar .language-switcher .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-switcher .dropdown-item.active {
    background-color: #f8f9fa;
    color: #212529;
    font-weight: 600;
}

/* Navbar Actions & Icon Buttons */
.navbar-actions {
    z-index: 1051;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
    .navbar-home .navbar-actions {
        margin-top: 95px;
    }
    
    .navbar-home.scrolled .navbar-actions {
        margin-top: 0;
    }
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: transparent;
}

.navbar-home .nav-icon-btn {
    color: rgba(0, 0, 0, 0.8);
}

.navbar-home.scrolled .nav-icon-btn {
    color: rgba(0, 0, 0, 0.8);
}

.nav-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.navbar-home .nav-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #ffdd00;
}

.nav-icon-btn i {
    width: 20px;
    height: 20px;
}

.no-caret::after {
    display: none !important;
}

/* Mobile Sidebar (Newcastle Style) */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #1e272e;
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-content {
    padding: 2rem;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.sidebar-nav li {
    margin-bottom: 1.5rem;
}

.sidebar-nav li a {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.sidebar-nav li a:hover {
    color: #ffdd00;
    transform: translateX(5px);
}

.sidebar-nav li a i {
    opacity: 0.3;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991px) {
    .navbar {
        height: 70px !important;
        background-color: white !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    }
    
    .navbar .logo-mark {
        display: none !important;
    }
    
    .navbar .logo-full {
        display: block !important;
    }
    
    .navbar .navbar-brand {
        position: relative !important;
        left: 0 !important;
        transform: none !important;
        top: 0 !important;
        margin: 0 !important;
        z-index: 1052;
        padding-top: 5px !important;
    }
    
    .navbar .navbar-brand img.logo-full {
        width: 140px !important;
    }
    
    .navbar .navbar-toggler,
    .navbar .nav-icon-btn {
        color: #1e272e !important;
        margin-top: 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
    }

    .hero-section {
        padding-top: 40px !important;
        margin-top: 0 !important;
    }
    
    .navbar-home.scrolled .navbar-brand img.logo-full {
        width: 140px !important;
    }
    
    .navbar-home .navbar-collapse {
        background: white !important;
        margin-top: 0 !important;
        padding: 1rem !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    }
}

/* Documents page */
.documents-categories-pane {
    padding: 1.25rem;
}

.documents-categories-pane .list-group-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 0.78rem 0.85rem;
    font-weight: 600;
    color: #334155;
    background: transparent;
}

.documents-categories-pane .list-group-item:first-child {
    border-top: 0;
}

.documents-categories-pane .list-group-item.active {
    background: #ffdd00;
    color: #1e272e;
    border-color: #f4c400;
}

.documents-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.documents-toolbar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.documents-count {
    min-width: 38px;
    height: 32px;
    padding: 0 0.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    background: #e2e8f0;
}

.documents-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    height: 100%;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.documents-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.documents-card-body {
    padding: 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.documents-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.documents-category-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 221, 0, 0.22);
    color: #7a5a00;
    padding: 0.24rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.documents-updated {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

.documents-card-title {
    font-size: 1.16rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.45rem;
}

.documents-card-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.documents-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.documents-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
}

@media (max-width: 991px) {
    .documents-categories-pane {
        margin-bottom: 1rem;
    }

    .documents-toolbar {
        margin-top: 0.35rem;
    }
}

@media (max-width: 767.98px) {
    .documents-card-body {
        padding: 1rem;
    }

    .documents-card-top {
        align-items: flex-start;
    }

    .documents-card-footer {
        justify-content: flex-start;
    }
}
