/* 
 * Maroons FC Website - Main Stylesheet
 * Color Scheme: Maroons Red (#800020), Gold (#C9A227), White (#FFFFFF), Dark (#111111)
 */

:root {
    --primary-color: #800020;
    --secondary-color: #C9A227;
    --accent-color: #FFFFFF;
    --dark-bg: #111111;
    --light-gray: #f8f9fa;
    --border-color: #333333;
    --text-muted: #757575;
    --yellow: #C9A227;
    --darkblue: #800020;
    --dark: #101010;
    --light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #555;
    line-height: 1.6;
    background-color: var(--light-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #111;
}

p {
    color: #555;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

/* HEADER & NAVIGATION */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s;
}

.main-header.sticky {
    position: fixed;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.main-header.sticky .logo-link {
    color: var(--dark);
}

.logo-img {
    max-height: 55px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.club-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.main-header.sticky .club-name {
    color: var(--dark);
}

.club-tagline {
    font-size: 0.65rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Main Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.main-header.sticky .main-nav a {
    color: var(--dark);
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--secondary-color) !important;
}

/* HERO SECTION */
.hero {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(128, 0, 32, 0.5), rgba(128, 0, 32, 0.3)), url('../images/hero1.webp') center/cover;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(50px, 9vw, 110px);
    margin-bottom: 20px;
    line-height: 0.9;
    font-weight: 900;
    color: white;
}

.hero .highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    max-width: 700px;
    color: white;
    font-weight: 400;
}

.btn-hero {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--dark);
    padding: 16px 40px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-hero:hover {
    background: #ea950b;
    color: white;
}

/* Navigation */
.navbar {
    background-color: var(--dark-bg) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--secondary-color) !important;
    font-weight: 700;
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    color: #ccc !important;
    margin: 0 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2rem;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-custom:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 162, 39, 0.3);
}

.btn-secondary-custom {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary-custom:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    background-color: var(--secondary-color) !important;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: var(--secondary-color) !important;
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    width: 50px;
    height: 50px;
    background-color: rgba(128, 0, 32, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(201, 162, 39, 0.8);
    color: #800020 !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

/* Main Content */
.container-fluid {
    padding: 0;
}

.section-padding {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Next Match Section */
.next-match {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5c0015 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.next-match h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.team {
    text-align: center;
    min-width: 150px;
}

.team-logo {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
}

.team h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.vs {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 800;
    align-self: center;
}

.match-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.match-info-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 4px;
}

.match-info-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.match-info-item strong {
    color: var(--secondary-color);
    display: block;
    font-size: 1.25rem;
}

/* Latest Results */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.result-card {
    background: white;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left-color: var(--secondary-color);
}

.result-card-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.result-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
}

.result-teams {
    color: #555;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.result-competition {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* League Table */
.league-table-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.league-table th {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.league-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.league-table tbody tr {
    transition: all 0.2s ease;
}

.league-table tbody tr:hover {
    background-color: #f9f9f9;
}

.league-table tbody tr.maroons-row {
    background: linear-gradient(90deg, rgba(128, 0, 32, 0.1), rgba(201, 162, 39, 0.05));
    font-weight: 600;
}

.league-table tbody tr.maroons-row {
    border-left: 4px solid var(--primary-color);
    border-right: 4px solid var(--secondary-color);
}

.position {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.club-name {
    text-align: left;
    font-weight: 600;
}

.club-name i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.player-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(128, 0, 32, 0.2);
}

.player-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    padding: 1.5rem;
    text-align: center;
}

.player-number {
    background-color: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.player-name {
    font-size: 1.25rem;
    color: #111;
    margin-bottom: 0.5rem;
}

.player-position {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(128, 0, 32, 0.2);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.news-card:hover .news-image::after {
    background: rgba(128, 0, 32, 0.4);
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    color: var(--secondary-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.25rem;
    color: #111;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 0, 32, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-icon {
    color: white;
    font-size: 2.5rem;
}

/* Sponsors Section */
.sponsors-carousel {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5c0015 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.newsletter-section h2 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: white;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--dark-bg) !important;
    border-top: 3px solid var(--primary-color);
    margin-top: 5rem;
}

footer h5 {
    color: var(--secondary-color);
}

footer a {
    color: #ccc;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

footer p {
    color: #999;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg) !important;
    transform: translateY(-3px);
}

/* Shop Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(128, 0, 32, 0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    color: #111;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-price::before {
    content: 'UGX ';
    font-size: 0.8rem;
    margin-right: 0.25rem;
}

.btn-add-cart {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-add-cart:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .match-details {
        gap: 1rem;
    }

    .team {
        min-width: 100px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .team-grid,
    .news-grid,
    .gallery-grid,
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .league-table {
        font-size: 0.8rem;
    }

    .league-table th,
    .league-table td {
        padding: 0.5rem;
    }

    .vs {
        font-size: 1.5rem;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Alert Styles */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* ================================================
   NEW DESIGN STYLES (UPPC-INSPIRED)
   ================================================ */

/* Hero Banner */
.hero-banner {
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero-banner .slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 20px;
}

.hero-banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-banner p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Dark Background Sections */
.bg-dark-maroons {
    background-color: #600018;
    color: white;
}

.bg-dark-maroons .section-title {
    color: white;
}

.bg-dark-maroons .section-title::after {
    background-color: var(--secondary-color);
}

/* Match Details Card */
.match-details {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.team-logo {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.team h4, .team h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.match-details .vs {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 800;
    margin: 20px 0;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: none;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
}

.news-card-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.news-card-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-card-link:hover {
    color: var(--primary-color);
}

/* Footer Styling */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
}

footer h5 {
    color: var(--secondary-color);
    font-weight: 700;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

footer .footer-bottom {
    border-top: 2px solid var(--secondary-color);
    padding-top: 20px;
    margin-top: 30px;
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background-color: white;
    transform: translateY(-3px);
}

/* Button Styling */
.btn-primary-custom {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background-color: #b8901f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Section Padding */
.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: #f5f5f5 !important;
}

.main-container {
    min-height: calc(100vh - 1000px);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header & Navigation */
    .nav-container {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .logo-link {
        gap: 10px;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .main-nav a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.6rem;
    }

    .section-padding {
        padding: 30px 15px;
    }

    /* Cards & Grid */
    .card {
        margin-bottom: 1.5rem;
    }

    .row [class*="col-"] {
        margin-bottom: 15px;
    }

    /* Tables */
    table {
        font-size: 0.85rem;
    }

    table td,
    table th {
        padding: 8px 4px;
    }

    /* Match Details */
    .match-details {
        padding: 15px;
    }

    /* News Cards */
    .news-card {
        margin-bottom: 1.5rem;
    }

    /* Players Grid */
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    /* Forms */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    /* Container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .main-container {
        padding-top: 60px;
    }

    /* Buttons */
    .btn-hero,
    .btn-primary-custom {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Header */
    .nav-container {
        padding: 10px 15px;
    }

    .logo-link {
        gap: 8px;
    }

    .logo-img {
        width: 35px;
    }

    .logo-text h2 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.65rem;
    }

    .main-nav {
        gap: 5px;
    }

    .main-nav a {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    /* Hero */
    .hero {
        height: 40vh;
        min-height: 280px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .btn-hero {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Typography */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-padding {
        padding: 20px 10px;
    }

    /* Layout */
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }

    .row [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 15px;
    }

    /* Table - Responsive scrolling */
    table {
        font-size: 0.75rem;
    }

    table td,
    table th {
        padding: 6px 3px;
    }

    /* League Table Logo */
    table img {
        max-height: 35px;
        max-width: 35px;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }

    .player-card {
        padding: 10px;
    }

    .player-image {
        height: 120px;
    }

    /* Match Details */
    .match-details {
        padding: 10px;
    }

    .match-details .row {
        margin: 0;
    }

    .match-details .col-4 {
        padding: 0 5px;
    }

    /* News Cards */
    .news-card-image {
        height: 150px;
    }

    /* Players Grid */
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.8rem;
    }

    /* Buttons */
    .btn-primary-custom,
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Container */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-container {
        padding-top: 50px;
    }

    /* Forms */
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        padding: 10px;
    }

    /* Remove floating elements on mobile */
    .float-left,
    .float-right {
        float: none;
        margin-bottom: 15px;
    }

    /* Flexbox adjustments */
    .d-flex {
        flex-direction: column;
    }

    /* Spacing */
    .mb-4 {
        margin-bottom: 1rem;
    }

    .mt-4 {
        margin-top: 1rem;
    }

    /* Override container-fluid padding */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}
/* Hide checkbox */
.nav-toggle {
    display: none;
}

/* Hamburger default: hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    background-color: white;
    border-radius: 1.5px;
    transition: all 0.35s ease;
}

.main-header.sticky .hamburger span {
    background-color: #111;
}

/* ─── Mobile ─── */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
        margin-left: auto;           /* pushes to right */
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #111;            /* or var(--dark-bg) */
        padding: 1.5rem 1rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
        z-index: 999;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .main-nav a {
        display: block;
        padding: 14px 20px;
        color: white;
        font-size: 1.05rem;
        text-align: center;
    }

    /* Open menu */
    #nav-toggle:checked ~ .main-nav {
        display: block;
    }

    /* X animation */
    #nav-toggle:checked + .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    #nav-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }

    #nav-toggle:checked + .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}