/* /home/ubuntu/assets/css/main.css */

/* Base styles for the England Over 40s Cricket website */

/* 1. Custom Properties (CSS Variables) for Colors */
:root {
    --color-navy: #001489;
    --color-navy-deep: #000d5c;
    --color-sky-blue: #00A3E0;
    --color-white: #FFFFFF;
    --color-charcoal: #333333;
    --color-imc-orange: #FF6600;
    --color-light-grey: #F5F5F5;
    --color-warm-grey: #EAEAEA;
    --color-border: #E0E0E0;
    --color-cream: #FAF8F5;
}

/* 2. Typography */
body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    color: var(--color-charcoal);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Montserrat', sans-serif;
    color: var(--color-navy);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }

a {
    color: var(--color-sky-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-navy);
}

/* 3. Base Layout & Responsiveness */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-cream);
    overflow-x: hidden;
}

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

/* Mobile responsiveness rules */
@media (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.75em; }
    h3 { font-size: 1.5em; }
    h4 { font-size: 1.25em; }
    .container {
        padding: 0 10px;
    }
    
    /* Section padding for mobile */
    .section { padding: 40px 0; }
    .section-title { font-size: 1.75em; margin-bottom: 32px; }
    
    /* Hero section mobile */
    .hero-section { padding: 60px 0; min-height: auto; }
    .hero-section h1 { font-size: 1.75em; }
    .hero-section p { font-size: 0.95em; }
    .hero-section::after { width: 120px; height: 175px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.13; }
    
    /* Buttons mobile */
    .btn {
        padding: 12px 16px;
        font-size: 0.9em;
        min-height: 44px;
    }
    
    /* Cards mobile */
    .card { padding: 16px; margin-bottom: 16px; }
    
    /* Match card mobile */
    .match-teams { flex-direction: column; gap: 12px; }
    .match-footer { flex-direction: column; gap: 8px; }
    .match-footer .btn { width: 100%; }
    .team-logo { width: 50px; height: 50px; }
    .team-name { font-size: 1em; }
    
    /* Filter bar mobile */
    .filter-bar { gap: 8px; }
    .filter-btn { padding: 8px 16px; font-size: 0.85em; }
    
    /* Footer mobile */
    .footer { padding: 30px 0; }
    .footer .social-links { font-size: 0.9em; flex-wrap: wrap; }
    .footer .social-links a { margin: 5px 8px; }
    .footer .footer-nav { font-size: 0.85em; }
    .footer .footer-nav a { margin: 0 5px; }
    .footer .logo-row { flex-wrap: wrap; gap: 10px; }
    .footer .logo-row img { height: 30px; margin: 5px; }
}

/* 4. Shared Component Styles */

/* Header */
.header {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header .container {
    display: flex;
    align-items: center;
    min-height: 56px;
}

/* Logo zone — fixed width, left-anchored */
.header .logo {
    flex: 0 0 auto;
    margin-right: 24px;
}

.header .logo a {
    text-decoration: none;
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
}

.header .logo a:hover {
    color: var(--color-white);
    opacity: 0.9;
}

.logo-text {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.15em;
    color: var(--color-white);
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-accent {
    color: var(--color-sky-blue);
    font-weight: 600;
}

/* Nav zone — fills remaining space, links centred */
.nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav ul li a {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95em;
    position: relative;
    padding: 16px 10px;
    display: inline-block;
    white-space: nowrap;
}

.nav ul li a.nav-cta {
    background-color: var(--color-sky-blue);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-left: 6px;
}

.nav ul li a.nav-cta:hover {
    background-color: var(--color-imc-orange);
    color: var(--color-white);
}

.nav ul li a.nav-cta::after {
    display: none;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    bottom: 10px;
    right: 10px;
    background: var(--color-sky-blue);
    transition: width 0.3s ease;
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: calc(100% - 20px);
    left: 10px;
    background: var(--color-sky-blue);
}

/* Mobile Navigation */
.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 2em;
    color: var(--color-white);
}

@media (max-width: 768px) {
    .header .container {
        min-height: 52px;
        padding: 0 10px;
    }

    .header .logo {
        margin-right: 0;
    }

    .logo-text {
        font-size: 1em;
    }

    .nav {
        position: static;
    }

    .nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-navy);
        position: absolute;
        top: 52px;
        left: 0;
        padding: 12px 0;
        text-align: center;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .nav ul.open {
        display: flex;
    }

    .nav ul li a {
        padding: 12px 20px;
        font-size: 1em;
        display: block;
    }

    .nav ul li a::after {
        display: none;
    }

    .nav ul li a.nav-cta {
        margin: 8px 20px;
        text-align: center;
    }

    .hamburger-menu {
        display: block;
        padding: 10px;
        margin-left: auto;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 100%);
    color: var(--color-white);
    padding: 40px 0;
    text-align: center;
    margin-top: 0;
}

.footer .social-links {
    margin-bottom: 15px;
}

.footer .social-links a {
    color: var(--color-white);
    margin: 0 12px;
    font-size: 1.6em;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer .social-links a:hover {
    color: var(--color-sky-blue);
    transform: translateY(-2px);
}

.footer .footer-nav {
    margin: 15px 0;
    font-size: 0.95em;
}

.footer .footer-nav a {
    color: var(--color-white);
    margin: 0 8px;
    font-weight: 500;
}

.footer .footer-nav a:hover {
    color: var(--color-sky-blue);
}

.footer .logo-row {
    margin: 15px 0;
}

.footer .logo-row img {
    height: 40px;
    margin: 0 15px;
    filter: brightness(0) invert(1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-sky-blue);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,163,224,0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-secondary:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.btn-orange {
    background-color: var(--color-imc-orange);
    color: var(--color-white);
}

.btn-orange:hover {
    background-color: #e65c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,102,0,0.3);
}

/* Cards */
.card {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

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

/* Match Card Specifics */
.match-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
}

.match-date {
    font-weight: 700;
    color: var(--color-charcoal);
    font-size: 0.9em;
}

.match-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-odi { background-color: var(--color-navy); color: var(--color-white); }
.badge-wc { background-color: var(--color-imc-orange); color: var(--color-white); }

.match-teams {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

.team-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team-logo {
    width: 60px;
    height: 60px;
    background-color: var(--color-light-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: var(--color-navy);
    overflow: hidden;
}

.team-name {
    font-weight: 700;
    font-size: 1.1em;
}

.match-vs {
    font-weight: 800;
    color: var(--color-sky-blue);
    font-size: 1.2em;
}

.match-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-footer {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.match-footer .btn {
    flex: 1;
    font-size: 0.85em;
    padding: 8px 12px;
}

/* Result Card Specifics */
.result-card {
    border-left: 6px solid var(--color-navy);
}

.result-score {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--color-navy);
}

.result-outcome {
    font-weight: 700;
    color: var(--color-imc-orange);
    margin-top: 4px;
}

/* Filters */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 25px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

/* Section Styles */
.section { padding: 60px 0; }
.section-light { background-color: var(--color-cream); }
.section-title { text-align: center; margin-bottom: 48px; font-size: 2.5em; }

/* ============================================
   HERO SECTION - Photo-backed with layered gradients
   ============================================ */
.hero-section {
    background:
        linear-gradient(
            180deg,
            rgba(0, 13, 92, 0.85) 0%,
            rgba(0, 20, 137, 0.75) 40%,
            rgba(0, 20, 137, 0.9) 100%
        ),
        url("../img/photos/hero-table-mountain.jpg") center/cover no-repeat;
    color: var(--color-white);
    text-align: center;
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(0, 163, 224, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 102, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    width: 220px;
    height: 320px;
    background: url("../img/logos/eng40s-watermark-white.png") center/contain no-repeat;
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
}

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

.hero-section h1 {
    color: var(--color-white);
    margin: 0 0 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 2.8em;
    letter-spacing: -0.02em;
}

.hero-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15em;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-section .btn {
    margin: 0 8px 8px;
}

/* ============================================
   HOMEPAGE CARDS SECTION - Photographic background treatment
   Uses cricket-ground-panorama.webp (IMG_8656)
   Warm stone base + visible photographic presence
   ============================================ */
.homepage-cards-section {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    background-color: #e8e4de; /* warm stone / parchment base */
}

/* Photographic backdrop layer — wide cricket ground panorama */
.homepage-cards-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url('../img/photos/cricket-ground-panorama.webp') center 35% / cover no-repeat;
    opacity: 0.18;
    filter: saturate(0.5) contrast(1.08);
    z-index: 0;
}

/* Readability scrim: soft warm gradient that lets the image breathe
   while keeping text areas clear */
.homepage-cards-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(232, 228, 222, 0.55) 0%,
            rgba(232, 228, 222, 0.35) 25%,
            rgba(225, 230, 238, 0.30) 55%,
            rgba(20, 40, 120, 0.10) 100%
        );
    z-index: 0;
}

/* Ensure content sits above the backdrop layers */
.homepage-cards-section > .container {
    position: relative;
    z-index: 1;
}

.homepage-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
    max-width: 100%;
}

.homepage-preview-card {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 24px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.homepage-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.homepage-preview-card h3 {
    color: var(--color-navy);
    margin-top: 0;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.homepage-preview-card p {
    font-size: 1em;
    line-height: 1.6;
    flex-grow: 1;
}

.homepage-preview-card .btn {
    margin-top: 20px;
    align-self: flex-start;
}

/* World Cup Card - logo header */
.wc-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.wc-card-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.wc-card-header h3 {
    margin: 0;
}

@media (max-width: 768px) {
    .wc-card-logo {
        width: 60px;
        height: 60px;
    }
}

/* World Cup Card - atmospheric photo backdrop */
.homepage-preview-card.world-cup-preview {
    background:
        linear-gradient(
            135deg,
            rgba(0, 13, 92, 0.88) 0%,
            rgba(0, 20, 137, 0.82) 50%,
            rgba(255, 102, 0, 0.15) 100%
        ),
        url("../img/photos/atmosphere-match.jpg") center/cover no-repeat;
    color: var(--color-white);
    border: none;
}

.homepage-preview-card.world-cup-preview h3,
.homepage-preview-card.world-cup-preview p {
    color: var(--color-white);
}

.homepage-preview-card.world-cup-preview .btn {
    background-color: var(--color-imc-orange);
    color: var(--color-white);
}

.homepage-preview-card.world-cup-preview .btn:hover {
    background-color: #e65c00;
}

/* Fixtures & Results Card - action photo accent */
.homepage-preview-card.fixtures-results-preview {
    background:
        linear-gradient(
            to bottom,
            var(--color-white) 0%,
            var(--color-white) 55%,
            rgba(0, 20, 137, 0.03) 100%
        );
    border-top: 4px solid var(--color-sky-blue);
    position: relative;
}

.homepage-preview-card.fixtures-results-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: url("../img/photos/action-bowling.jpg") center/cover no-repeat;
    opacity: 0.12;
    border-radius: 0 0 12px 0;
    mask-image: radial-gradient(ellipse at bottom right, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at bottom right, black 30%, transparent 70%);
    pointer-events: none;
}

/* About Us Card */
.homepage-preview-card.about-us-preview {
    border-left: 5px solid var(--color-sky-blue);
}

/* Sponsorship CTA Card */
.homepage-preview-card.sponsorship-cta {
    background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.homepage-preview-card.sponsorship-cta::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.homepage-preview-card.sponsorship-cta::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 30px;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.homepage-preview-card.sponsorship-cta h3,
.homepage-preview-card.sponsorship-cta p {
    color: var(--color-white);
}

.homepage-preview-card.sponsorship-cta .btn {
    background-color: var(--color-imc-orange);
    color: var(--color-white);
}

.homepage-preview-card.sponsorship-cta .btn:hover {
    background-color: #e65c00;
}

/* Player Portal Card - team culture photo backdrop */
.homepage-preview-card.player-portal-preview {
    background:
        linear-gradient(
            135deg,
            rgba(0, 20, 137, 0.92) 0%,
            rgba(0, 13, 92, 0.88) 100%
        ),
        url("../img/photos/team-camaraderie.jpg") center/cover no-repeat;
    color: var(--color-white);
    border: none;
}

.homepage-preview-card.player-portal-preview h3,
.homepage-preview-card.player-portal-preview p {
    color: var(--color-white);
}

.homepage-preview-card.player-portal-preview .btn {
    background-color: var(--color-imc-orange);
    color: var(--color-white);
}

.homepage-preview-card.player-portal-preview .btn:hover {
    background-color: #e65c00;
}

/* News Card - subtle action photo accent */
.homepage-preview-card.news-preview {
    position: relative;
}

.homepage-preview-card.news-preview::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: url("../img/photos/action-batting.jpg") center/cover no-repeat;
    opacity: 0.08;
    border-radius: 0 12px 0 0;
    mask-image: radial-gradient(ellipse at top right, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at top right, black 30%, transparent 70%);
    pointer-events: none;
}

.homepage-preview-card .match-card {
    box-shadow: none;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.homepage-preview-card .match-card .match-header,
.homepage-preview-card .match-card .match-teams,
.homepage-preview-card .match-card .match-details,
.homepage-preview-card .match-card .match-footer {
    padding-left: 0;
    padding-right: 0;
}

.homepage-preview-card .match-card .match-footer {
    justify-content: flex-start;
}

.homepage-preview-card .news-card {
    box-shadow: none;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.homepage-preview-card .news-card .category-badge {
    margin-left: 0;
}

@media (max-width: 768px) {
    .homepage-preview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .homepage-preview-card {
        padding: 16px;
    }
    
    .homepage-preview-card h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .homepage-preview-card p {
        font-size: 0.95em;
    }
    
    .homepage-preview-card .btn {
        width: 100%;
        align-self: stretch;
    }

    .homepage-preview-card.fixtures-results-preview::after,
    .homepage-preview-card.news-preview::after {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   PHOTO BANNER - Atmospheric divider strip
   ============================================ */
.photo-banner {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.photo-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to bottom, rgba(0,13,92,0.3) 0%, transparent 30%),
        linear-gradient(to top, rgba(0,13,92,0.3) 0%, transparent 30%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .photo-banner { height: 180px; }
}

/* ============================================
   WORLD CUP HERO - Dedicated styling
   ============================================ */
.world-cup-hero {
    background:
        linear-gradient(
            180deg,
            rgba(0, 13, 92, 0.88) 0%,
            rgba(0, 20, 137, 0.8) 50%,
            rgba(255, 102, 0, 0.2) 100%
        ),
        url("../img/photos/toss-ceremony.jpg") center/cover no-repeat;
    color: var(--color-white);
    text-align: center;
    padding: 100px 0 90px;
    position: relative;
}

.world-cup-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(255,102,0,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.world-cup-hero .container {
    position: relative;
    z-index: 2;
}

.world-cup-hero h1 {
    color: var(--color-white);
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.world-cup-hero p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ============================================
   ABOUT PAGE - Photo-enhanced hero
   ============================================ */
.about-hero {
    background:
        linear-gradient(
            180deg,
            rgba(0, 13, 92, 0.88) 0%,
            rgba(0, 20, 137, 0.82) 100%
        ),
        url("../img/photos/team-champions.jpg") center 30%/cover no-repeat;
    color: var(--color-white);
    text-align: center;
    padding: 100px 0 90px;
    position: relative;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(0,163,224,0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.about-hero h1 {
    color: var(--color-white);
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.about-hero p {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ============================================
   FIXTURES/RESULTS ROUTING PAGE - Action backdrop
   ============================================ */
.fixtures-hero {
    background:
        linear-gradient(
            180deg,
            rgba(0, 13, 92, 0.88) 0%,
            rgba(0, 20, 137, 0.82) 100%
        ),
        url("../img/photos/action-match.jpg") center/cover no-repeat;
    color: var(--color-white);
    text-align: center;
    padding: 100px 0 90px;
    position: relative;
}

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

.fixtures-hero h1 {
    color: var(--color-white);
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.fixtures-hero p {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ============================================
   FIXTURES/RESULTS CONTENT - Subtle background treatment
   ============================================ */
.fixtures-content-section {
    background:
        radial-gradient(ellipse at 10% 90%, rgba(0, 163, 224, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(0, 20, 137, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-cream) 0%, var(--color-white) 50%, var(--color-cream) 100%);
    position: relative;
}

.fixtures-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url("../img/photos/action-bowling.jpg") center/cover no-repeat;
    opacity: 0.03;
    pointer-events: none;
}

.fixtures-content-section .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   NEWS PAGE - Scenic backdrop
   ============================================ */
.news-hero {
    background:
        linear-gradient(
            180deg,
            rgba(0, 13, 92, 0.85) 0%,
            rgba(0, 20, 137, 0.8) 100%
        ),
        url("../img/photos/scenic-english-ground.jpg") center/cover no-repeat;
    color: var(--color-white);
    text-align: center;
    padding: 100px 0 90px;
    position: relative;
}

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

.news-hero h1 {
    color: var(--color-white);
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.news-hero p {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Squad Profiles */
.squad-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 768px) {
    .squad-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .player-card { padding: 12px; }
    .player-card img { width: 80px; height: 80px; }
    .player-card h3 { font-size: 1em; }
    .player-card p { font-size: 0.8em; }
}

.player-card {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.player-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--color-sky-blue);
}

.player-card h3 {
    margin: 0 0 5px 0;
    color: var(--color-navy);
    font-size: 1.2em;
}

.player-card p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.player-card .role {
    font-weight: 600;
    color: var(--color-imc-orange);
}

/* Group Tables */
.group-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.group-table th, .group-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .group-table th, .group-table td {
        padding: 8px 10px;
        font-size: 0.85em;
    }
    
    .group-table { font-size: 0.9em; }
}

.group-table th {
    background-color: var(--color-navy);
    color: var(--color-white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
}

.group-table tr:last-child td {
    border-bottom: none;
}

.group-table tbody tr:hover {
    background-color: var(--color-light-grey);
}

.group-table .team-name-col {
    font-weight: 600;
    color: var(--color-navy);
}

/* News Bulletins & Press Releases */
.world-cup-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .world-cup-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.world-cup-news-card {
    padding: 20px;
    border-radius: 12px;
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--color-border);
}

.world-cup-news-card h3 {
    color: var(--color-navy);
    margin-top: 0;
    font-size: 1.3em;
}

.world-cup-news-card .date {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.world-cup-news-card p {
    font-size: 0.95em;
    line-height: 1.5;
}

.world-cup-news-card .btn {
    margin-top: 15px;
}


/* About Us Specific Styles */
.about-section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-section-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.mission-statement {
    font-size: 1.15em;
    line-height: 1.8;
    font-style: italic;
    color: var(--color-navy);
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--color-light-grey);
    border-left: 5px solid var(--color-sky-blue);
    border-radius: 8px;
}

.values-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.values-list li {
    background-color: var(--color-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
    border: 1px solid var(--color-border);
}

.values-list li h3 {
    color: var(--color-imc-orange);
    margin-top: 0;
    font-size: 1.3em;
}

.contact-details {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 100%);
    color: var(--color-white);
    border-radius: 12px;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-details a {
    color: var(--color-sky-blue);
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--color-white);
}

/* Player Portal - Selection Standards Panel */
.standards-panel {
    background-color: var(--color-white);
    border-left: 5px solid var(--color-navy);
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    max-width: 780px;
    margin: 0 auto;
}

.standards-panel h2 {
    color: var(--color-navy);
    font-size: 1.5em;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.standards-panel h2 i {
    color: var(--color-sky-blue);
    font-size: 0.9em;
}

.standards-panel p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--color-charcoal);
    margin: 0 0 14px;
}

.standards-panel p:last-child {
    margin-bottom: 0;
}

.standards-panel .standards-note {
    color: #666;
    font-style: italic;
    font-size: 0.95em;
    border-top: 1px solid var(--color-border);
    padding-top: 14px;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .standards-panel {
        padding: 20px 18px;
    }

    .standards-panel h2 {
        font-size: 1.3em;
    }

    .standards-panel p {
        font-size: 0.95em;
    }
}

/* ============================================
   OFFICIALS APPLICATION FORM
   ============================================ */
.officials-form-wrapper {
    max-width: 780px;
    margin: 0 auto;
}

.officials-form-wrapper .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.officials-form-wrapper .section-title i {
    color: var(--color-sky-blue);
}

.form-fieldset {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 24px 28px 20px;
    margin-bottom: 28px;
    background-color: var(--color-white);
}

.form-fieldset legend {
    font-family: var(--font-heading);
    font-size: 1.15em;
    font-weight: 700;
    color: var(--color-navy);
    padding: 0 12px;
}

.fieldset-note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin: -4px 0 16px;
    line-height: 1.5;
}

.form-row {
    margin-bottom: 18px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--color-charcoal);
    margin-bottom: 6px;
}

.form-group label .required {
    color: #c0392b;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95em;
    color: var(--color-charcoal);
    background-color: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-sky-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
    background-color: var(--color-white);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Radio group */
.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95em;
    color: var(--color-charcoal);
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-label:hover {
    border-color: var(--color-sky-blue);
    background-color: rgba(0, 123, 255, 0.04);
}

.radio-label input[type="radio"] {
    accent-color: var(--color-navy);
    width: 16px;
    height: 16px;
    margin: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom + span {
    font-weight: 600;
    color: var(--color-navy);
}

/* Volunteer notice */
.volunteer-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background-color: #f0f4f8;
    border: 1px solid #d0dae4;
    border-left: 4px solid var(--color-sky-blue);
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 28px;
}

.volunteer-notice i {
    color: var(--color-sky-blue);
    font-size: 1.2em;
    margin-top: 2px;
    flex-shrink: 0;
}

.volunteer-notice p {
    font-size: 0.92em;
    line-height: 1.65;
    color: #444;
    margin: 0;
}

/* Form actions */
.form-actions {
    text-align: center;
    padding-top: 8px;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.05em;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .form-fieldset {
        padding: 18px 16px 14px;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .volunteer-notice {
        padding: 14px 16px;
    }

    .officials-form-wrapper {
        padding: 0 4px;
    }
}

/* ============================================
   PLAYERS & OFFICIALS PORTAL
   ============================================ */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.portal-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 5px solid var(--color-navy);
    border-radius: 10px;
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 3px 16px rgba(0,0,0,0.07);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.portal-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.portal-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.portal-card-logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.18);
}

.portal-card-icon i {
    font-size: 1.6em;
    color: var(--color-white);
}

.portal-card h2 {
    color: var(--color-navy);
    font-size: 1.35em;
    margin: 0 0 12px;
}

.portal-card > p {
    color: var(--color-charcoal);
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 16px;
}

.portal-card-details {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    text-align: left;
    width: 100%;
}

.portal-card-details li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9em;
    line-height: 1.55;
    color: var(--color-charcoal);
    margin-bottom: 8px;
}

.portal-card-details li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.8em;
    color: var(--color-sky-blue);
}

.portal-card-details li:last-child {
    margin-bottom: 0;
}

.portal-card-note {
    font-size: 0.85em !important;
    color: #777 !important;
    font-style: italic;
    line-height: 1.55 !important;
    border-top: 1px solid var(--color-border);
    padding-top: 14px;
    margin-top: auto !important;
    margin-bottom: 20px !important;
}

.portal-card .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .portal-card {
        padding: 28px 22px 24px;
    }

    .portal-card h2 {
        font-size: 1.2em;
    }
}

/* Officials CTA panel (on Player Portal page) */
.officials-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--color-sky-blue);
    border-radius: 8px;
    padding: 24px 28px;
    max-width: 780px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.officials-cta-content h3 {
    color: var(--color-navy);
    font-size: 1.2em;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.officials-cta-content h3 i {
    color: var(--color-sky-blue);
}

.officials-cta-content p {
    color: var(--color-charcoal);
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.officials-cta-panel .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .officials-cta-panel {
        flex-direction: column;
        text-align: center;
        padding: 20px 18px;
    }

    .officials-cta-content h3 {
        justify-content: center;
    }
}

/* Sponsors page now redirects to the dedicated sponsorship landing page.
   Old sponsor-logos, sponsor-card, sponsor-showcase, sponsor-grid,
   sponsor-logo-container, partner-acknowledgements, and
   sponsorship-opportunities styles have been removed. */

/* News Page Specific Styles */

/* Featured story card on news listing */
.story-card.featured-story {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-align: left;
    padding: 0;
    overflow: hidden;
}

.story-card.featured-story .story-image {
    width: 40%;
    min-height: 340px;
    object-fit: contain;
    object-position: center center;
    border-radius: 12px 0 0 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a2360 0%, #1a237e 100%);
    padding: 12px;
}

.story-card.featured-story .story-content {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-card .story-title {
    color: var(--color-white);
    margin-top: 0;
    margin-bottom: 8px;
}

.story-card .story-date {
    font-size: 0.85em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.story-card .story-summary {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: none;
}

@media (max-width: 768px) {
    .story-card.featured-story {
        flex-direction: column;
    }
    .story-card.featured-story .story-image {
        width: 100%;
        min-height: auto;
        max-height: 420px;
        border-radius: 12px 12px 0 0;
        padding: 16px 24px;
    }
    .story-card.featured-story .story-content {
        padding: 24px 20px;
    }
}

/* Full article page */
.story-full {
    max-width: 820px;
    margin: 0 auto;
}

.story-featured-image {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.story-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.story-body {
    font-size: 1.05em;
    line-height: 1.8;
    color: var(--color-text);
}

.story-body h3 {
    color: var(--color-navy);
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.4em;
}

.story-body p {
    margin-bottom: 18px;
}

.story-body .story-dateline {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 24px;
}

.story-body blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: rgba(26, 35, 126, 0.04);
    border-left: 4px solid var(--color-sky-blue);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.story-body blockquote p {
    margin-bottom: 8px;
    font-size: 1.05em;
    line-height: 1.7;
}

.story-body blockquote cite {
    font-style: normal;
    font-size: 0.9em;
    color: var(--color-navy);
    font-weight: 600;
}

.story-body .squad-table,
.story-body .tournament-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
    font-size: 0.95em;
}

.story-body .squad-table thead th {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
}

.story-body .squad-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
}

.story-body .squad-table tbody tr:nth-child(even) {
    background: rgba(26, 35, 126, 0.03);
}

.story-body .tournament-details-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
}

.story-body .tournament-details-table td:first-child {
    width: 120px;
    font-weight: 600;
    color: var(--color-navy);
}

.story-body .story-editors-note {
    margin-top: 32px;
    padding: 16px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
}

.story-back-link {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .story-body { font-size: 1em; }
    .story-body blockquote { padding: 16px 18px; margin: 20px 0; }
    .story-body .squad-table thead th,
    .story-body .squad-table tbody td { padding: 8px 12px; font-size: 0.9em; }
}

.featured-story {
    background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 100%);
    color: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.featured-story h2 {
    color: var(--color-white);
    font-size: 2.5em;
    margin-top: 0;
}

.featured-story p {
    font-size: 1.1em;
    line-height: 1.7;
    max-width: 900px;
    margin: 20px auto 30px auto;
}

.featured-story .btn {
    background-color: var(--color-imc-orange);
    color: var(--color-white);
}

.featured-story .btn:hover {
    background-color: #e65c00;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.news-card {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.news-card img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-card .category-badge {
    display: inline-block;
    background-color: var(--color-sky-blue);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-card h3 {
    color: var(--color-navy);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.news-card .date {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 15px;
    display: block;
}

.news-card p {
    font-size: 0.95em;
    line-height: 1.5;
    flex-grow: 1;
}

.news-card .btn {
    margin-top: 15px;
    align-self: flex-start;
}

/* Homepage Section Preview */
.homepage-section-preview {
    margin-bottom: 60px;
}

.homepage-section-preview .section-title {
    margin-bottom: 30px;
}
