:root {
    --primary-color: #D60C3E; 
    --secondary-color: #1F1F44; 
    --background-color: #FFFFFF;
    --surface-color: #f8f9fa; 
    --border-color: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: #a50a31; 
}

img {
    max-width: 100%;
    height: auto;
}

.main-header {
    background-color: var(--background-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; 
}

.header-logo {
    max-height: 45px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    padding-bottom: 5px;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 50px 0;
    margin-top: 50px;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #fff;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}
.page-title h1 {
    font-size: 36px;
    color: var(--secondary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.news-card .card-image-link img {
    width: 100%;
    height: 200px;
    object-fit: cover; 
}

.news-card .card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-card h3 a {
    color: var(--text-primary);
}
.news-card h3 a:hover {
    color: var(--primary-color);
}

.news-card .card-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto; 
}

.news-card .read-more {
    color: var(--primary-color);
    font-weight: 600;
}
.news-card .read-more i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}
.news-card .read-more:hover i {
    transform: translateX(5px);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}
.article-hero {
    margin-bottom: 30px;
}
.article-hero img {
    width: 100%;
    border-radius: 8px;
}
.article-content h1 {
    font-size: 42px;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 15px;
}
.article-meta {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.article-body {
    font-size: 18px;
    line-height: 1.8;
}
.article-body p { margin-bottom: 20px; }
.article-body h2, .article-body h3 { margin-top: 40px; margin-bottom: 15px; color: var(--secondary-color); }
.article-body a { text-decoration: underline; }

.hero-section {
    text-align: center;
    padding: 60px 0;
}
.hero-section h1 {
    font-size: 48px;
    color: var(--secondary-color);
    line-height: 1.2;
}
.hero-section .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 15px auto 0;
}
.live-scores-section {
    background-color: var(--surface-color);
    padding: 40px 0;
    text-align: center;
}
.live-scores-section h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.scores-placeholder {
    background: var(--background-color);
    padding: 50px;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}
.features-section {
    padding: 60px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.feature-item h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.latest-news-section {
    padding: 60px 0;
    background-color: var(--surface-color);
}
.faq-section {
    padding: 60px 0;
}
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.faq-item summary {
    font-size: 18px;
    font-weight: 600;
    padding: 20px;
    cursor: pointer;
    position: relative;
    list-style: none; 
}
.faq-item summary::after {
    content: '\f078'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    transform: rotate(180deg);
}
.faq-item p {
    padding: 0 20px 20px;
    font-size: 16px;
    color: var(--text-secondary);
}
@media(max-width: 767px) {
    .hero-section h1, .article-content h1 {
        font-size: 32px;
    }
}
.league-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.league-header img {
    height: 30px;
    width: 30px;
}
.league-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.match-card {
    display: grid;
    grid-template-columns: 80px 1fr 50px; 
    align-items: center;
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: background-color 0.2s;
}
.match-card:hover {
    background-color: #f1f1f1;
}

.match-status {
    text-align: center;
}
.match-status .status-live {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    display: block;
}
.match-status .status-minute {
    font-size: 16px;
    font-weight: 600;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr 80px 1fr; 
    align-items: center;
    text-align: center;
}
.match-teams .team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}
.match-teams .team:last-child {
    flex-direction: row-reverse; 
}
.match-teams .team img {
    height: 24px;
    width: 24px;
}
.match-teams .score {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.match-details-link a {
    font-size: 20px;
    color: var(--text-secondary);
    text-align: center;
    display: block;
}

.error-message {
    color: var(--primary-color);
    font-weight: 500;
}
@media(max-width: 600px) {
    .match-teams {
        grid-template-columns: 1fr 50px 1fr;
    }
    .match-teams .team span {
        display: none; 
    }
}
.date-selector {
    background-color: var(--surface-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.date-selector label {
    font-weight: 600;
    font-size: 18px;
}
.date-selector input[type="date"] {
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 16px;
    cursor: pointer;
}

#fixtures-container .loading-message,
#fixtures-container .error-message {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    font-weight: 500;
}
.match-card .status-short {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.match-card .match-time {
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-color);
}
.league-selector-wrapper {
    background-color: var(--surface-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.league-selector-wrapper label {
    font-weight: 600;
    font-size: 18px;
}
.league-selector-wrapper select {
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 16px;
    min-width: 250px;
    cursor: pointer;
}

#standings-table-container .placeholder-message,
#standings-table-container .loading-message,
#standings-table-container .error-message {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    font-weight: 500;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    overflow-x: auto;
    display: block;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.standings-table thead tr {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
}
.standings-table th, .standings-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.standings-table th.team-col, .standings-table td.team-col {
    text-align: left;
}
.standings-table td.team-col {
    display: flex;
    align-items: center;
    gap: 10px;
}
.standings-table td.team-col img {
    width: 24px;
    height: 24px;
}
.standings-table td.points-col {
    font-weight: 700;
}
.standings-table .rank-col {
    width: 5%;
}
.standings-table .team-col {
    width: 45%;
}
#top-scorers-container .placeholder-message,
#top-scorers-container .loading-message,
#top-scorers-container .error-message {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    font-weight: 500;
}

.scorers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scorer-card {
    display: grid;
    grid-template-columns: 40px 60px 1fr auto;
    align-items: center;
    gap: 15px;
    background-color: var(--surface-color);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.scorer-rank {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.scorer-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.scorer-info .scorer-name {
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.scorer-info .scorer-team {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.scorer-info .scorer-team img {
    width: 16px;
    height: 16px;
}

.scorer-stats {
    display: flex;
    gap: 20px;
}

.scorer-stats .stat-item {
    text-align: center;
}

.scorer-stats .stat-item strong {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.scorer-stats .stat-item span {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
}
@media(max-width: 600px) {
    .scorer-card {
        grid-template-columns: 30px 50px 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }
    .scorer-rank { grid-row: 1 / 3; }
    .scorer-photo { grid-row: 1 / 3; }
    .scorer-info { grid-column: 3 / 4; }
    .scorer-stats {
        grid-column: 3 / 4;
        justify-content: space-around;
        padding-top: 10px;
    }
}
.main-header .cta-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}
.btn-secondary:hover {
    background-color: var(--surface-color);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(214, 12, 62, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 12, 62, 0.3);
}
@media(max-width: 991.98px) {
    .main-nav {
        display: none; 
    }
}
@media(max-width: 480px) {
    .main-header .cta-buttons {
        width: 100%;
        margin-top: 10px;
        justify-content: space-between;
    }
    .main-header .cta-buttons .btn {
        flex-grow: 1;
        text-align: center;
    }
    .main-header .container {
        flex-wrap: wrap;
    }
}
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}
@media (max-width: 991.98px) {
    .main-nav {
        display: none; 
        position: absolute;
        top: 75px; 
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .main-nav.is-active {
        display: block; 
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
        width: 100%;
    }

    .main-nav ul li {
        text-align: center;
    }

    .main-nav ul li a {
        padding: 15px;
        display: block; 
        width: 100%;
    }

    .nav-toggle-btn {
        display: block; 
    }
}

@media (max-width: 480px) {
    .cta-buttons .btn-secondary {
        display: none;
    }
}
.hero-cta {
    margin-top: 20px;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 600;
}
.live-content-section {
    background-color: var(--surface-color);
    padding: 40px 0;
}
.homepage-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.section-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.standings-widget-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.standings-widget-table th, .standings-widget-table td {
    padding: 8px 5px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.standings-widget-table th.team-col, .standings-widget-table td.team-col { text-align: left; }
.standings-widget-table td.team-col { display: flex; align-items: center; gap: 8px; }
.standings-widget-table td.team-col img { width: 20px; height: 20px; }
.standings-widget-table td.points-col { font-weight: 700; }
.widget-full-link { display: block; text-align: center; margin-top: 15px; font-weight: 600; }

@media (max-width: 991.98px) {
    .homepage-layout { grid-template-columns: 1fr; }
}
.filters-bar {
    background-color: var(--surface-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.filter-item { display: flex; align-items: center; gap: 10px; }
.filter-item label { font-weight: 600; }
.filter-item input[type="date"],
.filter-item select {
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 16px;
    cursor: pointer;
}
.standings-table .form-col { width: 15%; white-space: nowrap; }
.form-indicator { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; margin: 0 1px; }
.form-indicator.form-w { background-color: #28a745; }
.form-indicator.form-d { background-color: #6c757d; }
.form-indicator.form-l { background-color: #dc3545; }
tr.zone-ucl td { background-color: rgba(0, 123, 255, 0.05); }
tr.zone-uel td { background-color: rgba(255, 193, 7, 0.05); }
tr.zone-relegation td { background-color: rgba(220, 53, 69, 0.05); }

.match-teams .team-name { display: inline-flex; align-items: center; gap: 8px; }
.match-teams .team-form { font-size: 12px; color: var(--text-secondary); font-weight: 400; }

.scorer-card {
    grid-template-columns: 40px 60px 1.5fr 1fr auto; 
}
.scorer-nationality {
    font-size: 14px;
    color: var(--text-secondary);
    display: block;
}
.scorer-team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}
.scorer-team-info img {
    width: 24px;
    height: 24px;
}
.scorer-stats {
    gap: 15px;
    justify-content: flex-end;
}
.scorer-stats .stat-item strong { font-size: 20px; }
.upcoming-matches-section {
    padding: 60px 0;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 2px; 
}

.upcoming-fixture-item {
    display: grid;
    grid-template-columns: 100px 1fr 250px; 
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background-color: var(--surface-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

.upcoming-fixture-item:hover {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transform: scale(1.02);
}

.fixture-time {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.fixture-teams .team-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}

.fixture-teams .team-line:first-child {
    margin-bottom: 8px;
}

.fixture-teams .team-line img {
    width: 24px;
    height: 24px;
}

.fixture-league {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    justify-content: flex-end;
}

.fixture-league img {
    width: 20px;
    height: 20px;
}
@media (max-width: 767px) {
    .upcoming-fixture-item {
        grid-template-columns: 80px 1fr; 
        grid-template-rows: auto auto;
        padding: 15px;
    }
    .fixture-time {
        grid-row: 1 / 3;
        text-align: center;
    }
    .fixture-teams {
        grid-column: 2 / 3;
    }
    .fixture-league {
        grid-column: 2 / 3;
        justify-content: flex-start;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed var(--border-color);
    }
}