/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

.header .container {
    padding-left: 0;
    margin-left: 0;
    padding-right: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #666;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #F03134 0%, #d32f2f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 49, 52, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 49, 52, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
}

.btn-outline:hover {
    background: #dc3545;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ===== HEADER ===== */
.header {
    background: #177BF1;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1600;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo-container {
    position: absolute;
    left: 0;
    top: 0;
    padding: 0 0 0 20px;
    z-index: 10;
    background: #177BF1;
    width: 400px;
    height: 75px;
    display: flex;
    align-items: center;
}

.nav-container {
    position: absolute;
    left: 400px;
    top: 0;
    padding: 0;
    z-index: 10;
    background: #177BF1;
    width: calc(100vw - 400px);
    max-width: calc(100% - 400px);
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 40px;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 0;
    padding-left: 0;
}

.logo-img {
    width: 80.75px; /* 15% reduction (80.75 = 85% of 95) */
    height: 80.75px; /* 15% reduction (80.75 = 85% of 95) */
    object-fit: contain;
}

.logo-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: #FFFFFF;
    margin: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-right: 0;
    padding-right: 0;
}

.nav-link {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.9375rem; /* 25% reduction (0.9375 = 75% of 1.25) */
}

.nav-link:hover {
    color: #F03134;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc3545;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== DROPDOWN MENU ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFFFFF !important;
}

.nav-dropdown .nav-link:hover {
    color: #F03134 !important;
}

.nav-dropdown .nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #FFFFFF;
}


.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
    color: #F03134;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #177BF1;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    max-height: none;
    overflow: visible;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #F03134;
}

.btn-portal {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.125rem;
    margin-right: 0;
}

.btn-portal:hover {
    background: #c82333;
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 75px;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    overflow: hidden;
}

.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.hero-carousel img.active {
    display: block;
}

.hero-carousel img.fade-in {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 18px 36px;
    font-size: 1.5rem;
    min-width: 200px;
}

.hero-buttons .btn[data-disabled="true"] {
    display: none !important;
    visibility: hidden !important;
}

.hero-button-wide {
    flex: 1 1 100%;
    max-width: 520px;
    text-align: center;
}

.hero-button-wide.btn {
    font-size: 1.35rem;
}

/* ===== SUBPAGE HERO ===== */
.hero--subpage {
    height: 60vh;
    margin-top: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(23, 123, 241, 0.85), rgba(240, 49, 52, 0.85));
}

.hero--subpage .hero-overlay {
    background: linear-gradient(135deg, rgba(23, 123, 241, 0.7), rgba(240, 49, 52, 0.7));
}

.page-content {
    padding-top: 75px;
}

.page-placeholder {
    padding: 4rem 20px 6rem;
}

.placeholder-card {
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.placeholder-icon {
    font-size: 3rem;
    color: #177BF1;
    margin-bottom: 1.5rem;
}

.placeholder-card h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.placeholder-card p {
    color: #555;
    font-size: 1.1rem;
}

/* ===== FIXTURES PAGE ===== */
.fixtures-section {
    padding: 6rem 0 6rem;
    background: #f8fafc;
}

.fixtures-section .container {
    max-width: 1380px;
    padding: 0 32px;
}

.fixtures-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.fixtures-header h2 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    color: #0f172a;
}

.fixtures-header p {
    margin: 0;
    color: #475569;
    max-width: 520px;
}

.fixtures-tabs {
    display: inline-flex;
    background: white;
    border-radius: 999px;
    padding: 0.4rem;
    box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.fixtures-tab {
    border: none;
    background: transparent;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

.fixtures-tab i {
    font-size: 1rem;
}

.fixtures-tab.active {
    background: linear-gradient(135deg, #177BF1 0%, #3a46f0 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px -8px rgba(23, 123, 241, 0.45);
}

.fixtures-tab:not(.active):hover {
    background: rgba(148, 163, 184, 0.12);
    color: #1f2937;
}

.fixtures-view {
    display: none;
    width: 100%;
}

.fixtures-view.active {
    display: block;
}

.fixtures-empty {
    margin-top: 2rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(260px, 1fr));
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.division-column {
    border-right: 1px solid #e2e8f0;
    background: white;
    display: flex;
    flex-direction: column;
}

.division-column:last-child {
    border-right: none;
}

.division-header {
    background: #f8fafc;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.division-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f172a;
}

.division-games {
    padding: 1.5rem;
    flex: 1;
}

.division-empty {
    margin: 0;
    padding: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
    font-style: italic;
}

.fixture-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.fixture-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -20px rgba(15, 23, 42, 0.55);
    background: #ffffff;
    border-color: #cbd5f5;
}

.fixture-card__team {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.fixture-card__vs {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: #94a3b8;
    text-transform: uppercase;
}

.fixture-card__opponent {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
}

.fixture-card__meta,
.fixture-card__date,
.fixture-card__round {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

.fixture-card__meta {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.fixture-card__round {
    font-weight: 600;
    color: #1d4ed8;
}

.fixture-card__score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    width: 100%;
    padding-top: 0.65rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.fixture-card__score--tbd .score-home,
.fixture-card__score--tbd .score-away {
    color: #94a3b8;
    font-weight: 600;
}

.score-home {
    color: #16a34a;
}

.score-away {
    color: #475569;
}

.score-vs {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

@media (max-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(4, minmax(240px, 1fr));
    }
}

@media (max-width: 1200px) {
    .fixtures-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fixtures-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .games-grid {
        grid-template-columns: repeat(3, minmax(240px, 1fr));
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .fixtures-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .fixtures-tab {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .fixtures-section {
        padding: 3rem 0 4rem;
    }

    .fixtures-header h2 {
        font-size: 2rem;
    }

    .fixtures-header p {
        max-width: 100%;
    }

    .games-grid {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .division-column {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .division-column:last-child {
        border-bottom: none;
    }
}

/* ===== CAROUSEL NAVIGATION ===== */
.carousel-navigation {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.carousel-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===== QUICK STATS ===== */
.quick-stats {
    background: #f8f9fa;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-weight: 500;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== TEAMS SECTION ===== */
.teams {
    padding: 5rem 0;
    background: white;
}

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

.team-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.team-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.team-icon i {
    font-size: 2rem;
    color: white;
}

.team-icon.team-image {
    background: none;
    border: 2px solid #e5e7eb;
}

/* Square image wrapper for team cards */
.team-image-wrapper {
    width: 100% !important;
    padding-top: 100% !important; /* Creates 1:1 square aspect ratio */
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 0 auto 1.5rem !important;
    background: #f3f4f6 !important;
    display: block !important;
}

.team-image-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px !important;
}

/* Hide team-icon when image wrapper exists - using multiple selectors for browser compatibility */
.team-card .team-image-wrapper ~ .team-icon,
.team-card .team-image-wrapper + .team-icon,
.team-card:has(.team-image-wrapper) .team-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.team-card[data-disabled="true"] {
    display: none !important;
    visibility: hidden !important;
}

.team-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.team-age {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ===== NEWS SECTION ===== */
.news {
    padding: 5rem 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.news-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Creates 16:9 aspect ratio (900/1600 = 56.25%) */
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #dc3545;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.news-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-content h3 {
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.news-date {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-excerpt {
    display: none; /* Hide excerpt - only show heading and read more */
}

.read-more {
    color: #1f2937;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.read-more::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #dc3545;
}

.read-more:hover::after {
    transform: rotate(90deg);
}

/* News Modal */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.news-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.news-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10002;
    transition: background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.news-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.news-modal-body {
    padding: 30px;
}

.news-modal-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    background: #f3f4f6;
}

.news-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-modal-header {
    margin-bottom: 20px;
}

.news-modal-header h2 {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-modal-date {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.news-modal-text {
    color: #374151;
    line-height: 1.8;
    font-size: 16px;
}

.news-modal-text p {
    margin-bottom: 18px;
}

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

.news-modal-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-modal-text h1,
.news-modal-text h2,
.news-modal-text h3,
.news-modal-text h4 {
    color: #1f2937;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.news-modal-text h2 {
    font-size: 1.5rem;
}

.news-modal-text h3 {
    font-size: 1.25rem;
}

.news-modal-text ul,
.news-modal-text ol {
    margin-left: 24px;
    margin-bottom: 18px;
}

.news-modal-text li {
    margin-bottom: 8px;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .news-card {
        border-radius: 10px;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .news-content h3 {
        font-size: 1.1rem;
    }
    
    .news-modal-content {
        max-width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .news-modal-body {
        padding: 20px;
    }
    
    .news-modal-image {
        height: 250px;
        border-radius: 0;
        margin-bottom: 15px;
    }
    
    .news-modal-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .news-modal-text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .news-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .fixtures-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .filter-btn {
        flex-shrink: 0;
        padding: 10px 20px;
        font-size: 14px;
    }
}

.news-cta {
    text-align: center;
}

/* ===== FIXTURES SECTION ===== */
.fixtures {
    padding: 5rem 0;
    background: white;
}

.fixtures-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: #f8f9fa;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: #dc3545;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.fixtures-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    padding: 0.5rem;
}

.filter-btn {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.filter-btn.active {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
}

.filter-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.fixtures-list {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.fixture-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    gap: 1.5rem;
}

.fixture-date {
    text-align: center;
    min-width: 80px;
}

.fixture-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
}

.fixture-date .month {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.fixture-details h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.fixture-details p {
    color: #666;
    margin-bottom: 0.25rem;
}

.fixture-time {
    color: #dc3545;
    font-weight: 500;
}

.fixtures-cta {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SPONSORSHIP SECTION ===== */
.sponsorship {
    padding: 2rem 0 5rem 0;
    background: #f8f9fa;
    margin-top: 0;
}

.sponsorship-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.package-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.package-card.platinum::before { background: linear-gradient(90deg, #FFD700, #FFA500); }
.package-card.gold::before { background: linear-gradient(90deg, #FFD700, #DAA520); }
.package-card.silver::before { background: linear-gradient(90deg, #C0C0C0, #A9A9A9); }

.package-card:hover {
    transform: translateY(-5px);
}

.package-header {
    margin-bottom: 1.5rem;
}

.package-header h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.package-features li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.current-sponsors {
    padding: 4rem 0 2rem 0;
    background: #f8fafc;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 0;
}

.sponsors-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.sponsor-tier-wrapper {
    margin-bottom: 2rem;
}

.sponsor-tier-header {
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.sponsor-tier-header i {
    font-size: 1.75rem;
}

.sponsor-tier-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.sponsor-tier-header.platinum-header {
    color: #6366f1;
}

.sponsor-tier-header.platinum-header i {
    color: #6366f1;
}

.sponsor-tier-header.gold-header {
    color: #f59e0b;
}

.sponsor-tier-header.gold-header i {
    color: #f59e0b;
}

.sponsor-tier-header.silver-header {
    color: #6b7280;
}

.sponsor-tier-header.silver-header i {
    color: #6b7280;
}

.sponsors-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 2rem;
    padding: 2rem 0;
    background: white;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.sponsors-row:empty {
    display: none;
}

.sponsors-row.platinum-row {
    min-height: 200px;
    padding: 3rem 2rem;
}

.sponsors-row.gold-row {
    min-height: 150px;
    padding: 2.5rem 2rem;
}

.sponsors-row.silver-row {
    min-height: 100px;
    padding: 2rem 2rem;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.sponsor-item:hover {
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}

/* Platinum sponsors - LARGEST */
.platinum-row .sponsor-item {
    max-width: 300px;
}

.platinum-row .sponsor-logo {
    max-width: 300px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Gold sponsors - MIDDLE */
.gold-row .sponsor-item {
    max-width: 200px;
}

.gold-row .sponsor-logo {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Silver sponsors - SMALLEST */
.silver-row .sponsor-item {
    max-width: 150px;
}

.silver-row .sponsor-logo {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.sponsor-logo {
    filter: grayscale(0%);
    opacity: 0.9;
}

.sponsor-item:hover .sponsor-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Auto-scrolling animation - continuous carousel */
.sponsors-row.auto-scroll {
    display: flex;
    flex-wrap: nowrap;
    animation: scrollSponsors 60s linear infinite;
    will-change: transform;
}

/* For rows without auto-scroll, center the sponsors */
.sponsors-row:not(.auto-scroll) {
    justify-content: center;
    flex-wrap: wrap;
}

.sponsors-row.auto-scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollSponsors {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Ensure sponsor items don't shrink */
.sponsors-row .sponsor-item {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sponsors-row {
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .platinum-row .sponsor-logo {
        max-width: 200px;
        max-height: 100px;
    }
    
    .gold-row .sponsor-logo {
        max-width: 150px;
        max-height: 80px;
    }
    
    .silver-row .sponsor-logo {
        max-width: 120px;
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .sponsors-row {
        gap: 0.75rem;
        padding: 1rem 0.5rem;
    }
    
    .platinum-row .sponsor-logo {
        max-width: 150px;
        max-height: 80px;
    }
    
    .gold-row .sponsor-logo {
        max-width: 120px;
        max-height: 60px;
    }
    
    .silver-row .sponsor-logo {
        max-width: 100px;
        max-height: 50px;
    }
    
    .sponsor-logo {
        max-height: 50px;
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature i {
    font-size: 1.5rem;
    color: #dc3545;
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 24px;
}

.feature-content {
    flex: 1;
}

.feature h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
    margin-top: 0;
}

.feature p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.about-image {
    text-align: center;
}

.about-img-placeholder {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 2px dashed #dee2e6;
}

.about-img-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-team-photo {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-map {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #dc3545;
    margin-top: 0.25rem;
    min-width: 20px;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: #333;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc3545;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== FOOTER ===== */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo h3 {
    color: white;
    margin: 0;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #dc3545;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #dc3545;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
}

.newsletter-form .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

.footer-bottom a {
    color: #dc3545;
    text-decoration: none;
}

/* ===== PAGE TEMPLATES ===== */
.page-hero {
    background: linear-gradient(135deg, #177BF1 0%, #0d5bb8 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.page-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-content {
    padding: 0 2rem;
}

.content-section {
    padding: 5rem 0;
    background: white;
}

.content-placeholder {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.content-placeholder h2 {
    color: #177BF1;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.content-placeholder p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== BARRY MCMANUS ===== */
.barry-mcmanus-content {
    max-width: 800px;
    margin: 0 auto;
}

.biography-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #177BF1;
}

.biography-section h3 {
    color: #177BF1;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legacy-section {
    margin-top: 2rem;
    padding: 2rem;
    background: #e3f2fd;
    border-radius: 15px;
    border-left: 4px solid #dc3545;
}

.legacy-section h3 {
    color: #dc3545;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== CLUB PREMIERSHIPS ===== */
.club-premierships-content {
    max-width: 1000px;
    margin: 0 auto;
}

.premierships-list {
    margin: 2rem 0;
}

.premierships-list h3 {
    color: #177BF1;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.premiership-years {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.year-group {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid #177BF1;
}

.year-group h4 {
    color: #177BF1;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #177BF1;
    padding-bottom: 0.5rem;
}

.year-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.year-item:last-child {
    border-bottom: none;
}

.year-item .year {
    font-weight: 600;
    color: #177BF1;
    font-size: 1.1rem;
    min-width: 60px;
}

.year-item .team {
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive design for club premierships */
@media (max-width: 768px) {
    .premiership-years {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .year-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .year-item .year {
        min-width: auto;
        font-size: 1rem;
    }
    
    .year-item .team {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .page-content h1 {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
}

/* ===== CLUB PREMIERSHIPS (NEW STRUCTURE) ===== */
section.premierships-hero {
    background: linear-gradient(135deg, #177BF1 0%, #0d5bb8 100%) !important;
    color: white !important;
    padding: 4rem 0 3rem !important;
    text-align: center !important;
    margin: 0 !important;
    border: none !important;
}

.premierships-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.premierships-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* This rule was conflicting with dashboard pages - removed */

.premierships-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.premierships-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.premierships-container h2 {
    color: #177BF1;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.premierships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.decade-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    border-left: 4px solid #177BF1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.decade-card h3 {
    color: #177BF1;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #177BF1;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.year-entries {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.year-entry {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #177BF1;
    transition: background-color 0.3s ease;
}

.year-entry:hover {
    background: #f0f8ff;
}

.year-entry .year {
    font-weight: 700;
    color: #177BF1;
    font-size: 1.1rem;
}

.year-entry .details {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Responsive design for premierships */
@media (max-width: 768px) {
    .premierships-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .premierships-hero h1 {
        font-size: 2.2rem;
    }
    
    .premierships-hero p {
        font-size: 1rem;
    }
    
    .decade-card {
        padding: 1.5rem;
    }
    
    .year-entry {
        padding: 0.8rem;
    }
    
    .year-entry .year {
        font-size: 1rem;
    }
    
    .year-entry .details {
        font-size: 0.9rem;
    }
}

/* ===== PAST EXECUTIVE ===== */
.past-executive-content {
    max-width: 1200px;
    margin: 0 auto;
}

.executive-table {
    margin: 2rem 0;
}

.executive-table h3 {
    color: #177BF1;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.executive-table-data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.executive-table-data th {
    background: #177BF1;
    color: white;
    padding: 1rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.executive-table-data td {
    padding: 0.8rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.executive-table-data tr:nth-child(even) {
    background: #f8f9fa;
}

.executive-table-data tr:hover {
    background: #e3f2fd;
}

.executive-table-data td:first-child {
    font-weight: 600;
    color: #177BF1;
    min-width: 60px;
}

.executive-table-data td:nth-child(2),
.executive-table-data td:nth-child(3),
.executive-table-data td:nth-child(4) {
    color: #333;
    font-weight: 500;
    min-width: 150px;
}

.executive-table-data td:nth-child(3),
.executive-table-data td:nth-child(4),
.executive-table-data td:nth-child(5) {
    min-width: 150px;
}

@media (max-width: 768px) {
    .executive-table-data {
        font-size: 0.8rem;
    }
    
    .executive-table-data th,
    .executive-table-data td {
        padding: 0.6rem 0.4rem;
    }
}

/* ===== YEARLY TEAM AWARDS ===== */
.yearly-awards-content {
    max-width: 800px;
    margin: 0 auto;
}

.awards-note {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.awards-note h3 {
    color: #177BF1;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.award-year {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.award-year:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.award-year h4 {
    color: #177BF1;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.awards-info {
    background: #e3f2fd;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.awards-info h3 {
    color: #177BF1;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== MATCH AWARDS ===== */
.match-awards-content {
    max-width: 1200px;
    margin: 0 auto;
}

.awards-category {
    margin-bottom: 3rem;
}

.awards-category h3 {
    color: #177BF1;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #177BF1;
    padding-bottom: 0.5rem;
}

.award-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.award-item {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #177BF1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.award-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.player-name {
    font-weight: 600;
    color: #333;
}

.year {
    color: #666;
    font-style: italic;
}

/* ===== REPRESENTATIVE PLAYERS ===== */
.rep-players-content {
    max-width: 1200px;
    margin: 0 auto;
}

.rep-category {
    margin-bottom: 3rem;
}

.rep-category h3 {
    color: #177BF1;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #177BF1;
    padding-bottom: 0.5rem;
}

.player-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.player-item {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #177BF1;
    font-weight: 500;
    transition: all 0.3s ease;
}

.player-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.note {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.competition-notes {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.competition-notes h3 {
    color: #177BF1;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.note-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.note-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.note-item strong {
    color: #177BF1;
    display: block;
    margin-bottom: 0.5rem;
}

/* ===== HISTORY PAGE ===== */
.history-hero {
    background: linear-gradient(135deg, #177BF1 0%, #0d5bb8 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.history-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.history-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #177BF1;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: #177BF1;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(23, 123, 241, 0.3);
}

.timeline-item:nth-child(odd) .timeline-year {
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-year {
    margin-left: 2rem;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex: 1;
    position: relative;
}

.timeline-content h3 {
    color: #177BF1;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.achievements-section {
    padding: 5rem 0;
    background: white;
}

.achievements-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.achievement-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.achievement-item i {
    font-size: 3rem;
    color: #177BF1;
    margin-bottom: 1rem;
}

.achievement-item h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.achievement-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}


/* ===== COACHING FORM STYLES ===== */
.coaching-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.coaching-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkbox-group, .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkmark, .radio-mark {
    margin-left: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.form-actions .btn {
    min-width: 150px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header spans full device width without overflow */
    .header {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        overflow-x: hidden;
        box-sizing: border-box;
        padding-right: 0; /* remove right padding to avoid pushing hamburger off-screen */
    }

    /* Mobile logo container */
    .logo-container {
        width: 100%;
        max-width: 100%;
        position: relative;
        left: 0;
        height: 75px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        box-sizing: border-box;
        padding-right: 72px; /* Space for hamburger menu */
    }
    
    .logo-title {
        font-size: 1.08rem; /* 10% reduction from 1.2rem */
    }
    
    .logo-subtitle {
        font-size: 0.63rem; /* 10% reduction from 0.7rem */
    }

    /* Mobile dropdown nav panel */
    .nav {
        position: fixed;
        top: 75px;
        right: 0;
        left: 0;
        background: #177BF1;
        display: none;
        flex-direction: column;
        padding: 12px 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        z-index: 1700;
        transition: transform 0.2s ease, opacity 0.2s ease;
        transform: translateY(-10px);
        opacity: 0;
    }
    .nav.active { display: flex !important; transform: translateY(0); opacity: 1; }

    /* Mobile overlay base (created via JS) */
    #mobileNavOverlay { display: none; z-index: 1000; }

    .nav .nav-list { width: 100%; max-width: 520px; margin: 0 auto; }
    
    /* Show all menu items on mobile - match desktop */
    .nav .nav-list > li { display: block !important; }

    /* Mobile link styles (align right) */
    .nav .nav-link { 
        display: block; 
        color: #fff; 
        padding: 14px 16px; 
        text-align: right; 
        font-size: 16px;
        font-weight: 500;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }
    .nav .nav-link:hover,
    .nav .nav-link:active {
        background: rgba(255,255,255,0.1);
    }
    .nav .nav-link.btn-portal { 
        background: #dc3545; 
        border-radius: 8px; 
        margin-top: 8px; 
        text-align: center;
        font-weight: 600;
    }
    .nav .nav-link.btn-portal:hover,
    .nav .nav-link.btn-portal:active {
        background: #c82333;
    }
    
    /* Improve mobile menu spacing and touch targets */
    .nav-list li {
        margin-bottom: 4px;
    }
    
    .nav-dropdown .dropdown-menu li {
        margin-bottom: 2px;
    }

    /* Dropdowns inside mobile panel - only apply when mobile menu is active */
    .nav.active .nav-dropdown .dropdown-menu { 
        display: none !important; 
        position: static !important; 
        transform: none !important; 
        opacity: 1 !important; 
        visibility: visible !important; 
        background: transparent !important; 
        box-shadow: none !important; 
        padding: 0 !important; 
        margin: 4px 0 8px !important;
        max-height: 300px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        top: auto !important;
        left: auto !important;
    }
    .nav.active .dropdown-menu li a { 
        display: block; 
        color: #fff; 
        padding: 10px 12px; 
        font-size: 16px; 
        border-radius: 6px; 
        text-align: center; 
    }
    .nav.active .dropdown-menu li a:hover { 
        background: rgba(255,255,255,0.12); 
    }
    .nav.active .nav-dropdown.open > .dropdown-menu { 
        display: block !important; 
    }
    .nav .nav-dropdown > .nav-link i { 
        transition: transform 0.2s ease; 
        margin-left: 6px; 
    }
    .nav .nav-dropdown.open > .nav-link i { 
        transform: rotate(180deg); 
    }

    /* Hide full nav list outside of active panel */
    .nav-list { display: none !important; }
    .nav.active .nav-list { display: flex !important; flex-direction: column; gap: 6px; }

    /* Right anchor for hamburger */
    .nav-container {
        position: absolute;
        top: 0;
        left: auto !important; /* reset desktop left:400px */
        right: 32px !important; /* stronger left nudge */
        width: 48px; /* tighter anchor */
        height: 75px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: transparent;
        z-index: 1400; /* higher than overlay */
    }

    .mobile-menu-toggle { 
        display: flex !important; 
        position: static; 
        top: auto; 
        right: auto; 
        transform: none; 
        z-index: 1800;
        padding: 8px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-menu-toggle span { 
        width: 24px; 
        height: 3px; 
        background: #FFFFFF;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* About section mobile styles */
    .about-content { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
        text-align: center; 
    }
    .about-text { 
        order: 2; 
    }
    .about-image { 
        order: 1; 
    }
    .about-team-photo { 
        max-width: 100%; 
        height: 250px; 
    }
    .feature { 
        flex-direction: column; 
        text-align: center; 
        align-items: center;
        gap: 1rem; 
        margin-bottom: 1.5rem; 
    }
    .feature i { 
        margin-top: 0;
        align-self: center;
        width: auto;
    }
    
    /* Contact section mobile styles */
    .contact-content { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }
    .contact-map { 
        height: 300px; 
    }
    .contact-form { 
        padding: 1.5rem; 
    }
    
    .form-row { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item { flex-direction: column !important; padding-left: 3rem; }
    .timeline-year { position: absolute; left: 0; top: 0; margin: 0 !important; transform: translateX(-50%); }
    .timeline-content { margin-top: 1rem; }
    .news-card { 
        flex-direction: column; 
    }
    .news-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }
    .fixtures-tabs { flex-direction: column; align-items: center; }
    .fixture-item { flex-direction: column; text-align: center; gap: 1rem; }
    .sponsorship-packages { grid-template-columns: 1fr; }

    /* Remove 100vw sections on mobile to avoid right-side white line */
    .hero-text-container { 
        display: none !important; /* Hide hero text container on mobile */
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .hero-text-container * {
        display: none !important;
    }
    
    /* Hero section positioning for mobile */
    .hero {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
    }
    
    .hero .container {
        position: relative !important;
        width: 100% !important;
        padding: 0 20px !important;
        margin: 0 !important;
    }
    
    .hero-content {
        position: relative !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Hero buttons - properly sized and positioned at bottom */
    .hero-buttons {
        position: absolute !important;
        bottom: 4.5rem !important; /* Position above carousel navigation (which is at ~3rem) */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        z-index: 10 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: stretch !important;
        justify-content: center !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .hero-buttons .btn {
        padding: 14px 24px !important;
        font-size: 1rem !important;
        min-width: 100% !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        max-width: 100% !important;
        line-height: 1.4 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    .hero-button-wide.btn {
        font-size: 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 14px 24px !important;
    }
    
    /* Adjust carousel navigation position */
    .carousel-navigation {
        bottom: 1rem !important;
        z-index: 5 !important;
    }
    
    /* Teams Section Mobile Optimization */
    .teams {
        padding: 3rem 0 !important;
    }
    
    .teams .section-header {
        padding: 0 20px !important;
        margin-bottom: 2rem !important;
    }
    
    .teams .section-header h2 {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .teams .section-header p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    .teams-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 20px !important;
    }
    
    .team-card {
        padding: 1.5rem !important;
        border-radius: 12px !important;
        margin: 0 !important;
    }
    
    .team-image-wrapper {
        margin-bottom: 1.25rem !important;
        border-radius: 10px !important;
    }
    
    .team-card h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .team-age {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .team-description {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.25rem !important;
    }
    
    .team-card .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .current-sponsors { 
        width: 100% !important; 
        margin-left: 0 !important; 
        margin-right: 0 !important; 
    }
    /* ensure nav list shows when active */
    .nav.active .nav-list { display: flex !important; }
}
