:root{
    --bg:#121212;
    --panel:#1e1e1e;
    --text:#fcfcfc;
    --muted:#aaa;
    --accent:#0e4863;
    --header-footer:#1e293b;
    --radius:16px;
    --shadow:0 10px 24px rgba(0,0,0,.35);
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
html, body {
  min-height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #1c1917 100%);
  color: var(--text);
  overflow-y: auto;   /* ✅ allow scrolling */
  overflow-x: hidden;
}
.container{display:flex;height:100vh;overflow:hidden;}
.main-wrapper{display:flex;flex-direction:column;flex:1;overflow-y:auto;overflow-x:hidden;min-height:0;-webkit-overflow-scrolling:touch;}
.main{flex:1;min-height:0;padding:24px 32px;}
/* Sidebar – sticky like match_football */
.sidebar{
    width:290px;
    background:#1a1a1a;
    height:100vh;
    padding:20px 20px 120px 20px;
    border-radius:0 var(--radius) var(--radius) 0;
    box-shadow:4px 0 12px rgba(0,0,0,0.5);
    display:flex;flex-direction:column;
    position:sticky;
    top:0;
    overflow-y:auto;
    overflow-x:hidden;
}
.sidebar h2{
    font-size:18px;
    margin-bottom:20px;
    text-align:center;
    font-weight:bold;
    color:#fff;
}
.sidebar a{
    display:block;
    margin:10px 0;
    padding:12px;
    border-radius:12px;
    background:#2a2a2a;
    color:#fff;
    text-decoration:none;
    text-align:center;
    transition:0.3s ease;
}
.sidebar a:hover{background:#0e4863;}
.sidebar a.selected {
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar a.selected::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 6px;
    margin-right: 8px;
    color: rgba(255,255,255,0.9);
}

/* Selected tournament with dropdown */
.sidebar .tournament-item {
    position: relative;
    margin: 10px 0;
}

.sidebar .tournament-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: relative;
    padding-right: 30px;
    text-align: center;
}

.sidebar .tournament-item > a::after {
    content: '\f0d7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    position: absolute;
    right: 12px;
}

.sidebar .tournament-item.active > a::after {
    transform: rotate(180deg);
}

.sidebar .tournament-item .tournament-dropdown-content {
    display: none;
    flex-direction: column;
    margin-top: 6px;
    margin-left: 12px;
    margin-right: 12px;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sidebar .tournament-item.active .tournament-dropdown-content {
    display: flex;
}

.sidebar .tournament-item .tournament-dropdown-content a {
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 0;
    border-radius: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sidebar .tournament-item .tournament-dropdown-content a i {
    font-size: 0.9rem;
    opacity: 1;
}

.sidebar .tournament-item .tournament-dropdown-content a:last-child {
    border-bottom: none;
}

.sidebar .tournament-item .tournament-dropdown-content a:hover {
    background: rgba(255,255,255,0.1);
}

/* Leaderboard button */
.detail-btn.side{
    width:100%;
    margin-top:14px;
    display:block;
    text-align:center;
    background:var(--accent);
    font-weight:700;
    border-radius:12px;
    padding:14px 16px;
    font-size:1rem;
}


.top-banner {
    background: linear-gradient(90deg, #1a2a6c, #b21f1f);
    padding: 10px 20px;
    min-height: 60px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    border-radius: 0 0 16px 16px;
}
.top-banner.scroll-hidden { transform: translateY(-100%); }
.top-banner .nav-container { padding: 0; min-height: 40px; }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand a { display: flex; align-items: center; }

.nav-logo {
    height: 60px;
    width: auto;
    max-height: 70px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Desktop: SPORTS dropdown (same as homepage) */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a1a4a;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    overflow: hidden;
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.1);
}
.nav-dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    animation: navSlideDown 0.3s ease;
}
@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-dropdown .dropdown-content a {
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}
.nav-dropdown .dropdown-content a:last-child { border-bottom: none; }
.nav-dropdown .dropdown-content a:hover { background: rgba(255,255,255,0.1); padding-left: 24px; }

/* Desktop-only: better navbar height, spacing, and polish */
@media (min-width: 769px) {
    .top-banner {
        min-height: 64px;
        padding: 12px 24px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.28);
    }
    .top-banner .nav-container { min-height: 44px; }
    .nav-links { gap: 24px; }
    .nav-link {
        padding: 12px 20px;
        font-size: 0.9375rem;
        letter-spacing: 0.02em;
    }
    .nav-link:hover { background: rgba(255,255,255,0.15); }
    .nav-logo { height: 60px; max-height: 70px; }
}

.tournaments-dots-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.tournaments-dots-btn:hover { background: rgba(255,255,255,0.2); }
.tournaments-dots-btn .tournaments-btn-label { display: none; } /* text only on mobile */
.tournaments-dropdown,
.tournaments-dropdown-overlay { display: none; }

/* Page title below navbar */
.page-title-wrap {
    text-align: center;
    margin: 20px 0 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.page-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    margin: 0;
}
/* Live updates indicator – shown when Socket.IO connected */
.live-updates-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.live-updates-badge.connected {
    opacity: 1;
    transform: scale(1);
    animation: live-dot-pulse 2s ease-in-out infinite;
}
.live-updates-badge.reconnecting {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.5);
}
.live-updates-badge .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
@keyframes live-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Fixtures list: max-width container – prevent edge-to-edge */
#fixtures-sections-wrap{
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* Section hierarchy: section headers > column headers > row text */
.fixture-section-label {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.72);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 32px 0 16px;
    line-height: 1.3;
}
.fixture-section-label:first-child { margin-top: 0; }
.fixture-section-label:not(:first-child) { margin-top: 56px; }
/* Upcoming subsections: Tomorrow, This Week, Later */
.fixture-subsection {
    margin-top: 28px;
}
.fixture-subsection:first-of-type { margin-top: 0; }
.fixture-subsection-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px 0;
    padding-left: 10px;
    border-left: 3px solid rgba(255,255,255,0.25);
}
/* Tournament name heading – shown first so you know which matches belong to which tournament */
.fixture-tournament-group {
    margin-bottom: 24px;
}
.fixture-tournament-group:last-child { margin-bottom: 0; }
.fixture-tournament-name {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
    letter-spacing: 0.02em;
}
.fixture-subsection .matches-grid {
    margin-bottom: 24px;
}
.fixture-subsection:last-child .matches-grid {
    margin-bottom: 0;
}
/* Today vs Next up – distinct styling */
.fixture-section-current-wrap { margin-bottom: 40px; }
.fixture-section-current-wrap:last-child { margin-bottom: 0; }
.fixture-section-current-wrap .fixture-section-label:not(:first-child) { margin-top: 0; }
.fixture-section-today .fixture-section-label{
    color: rgba(255,255,255,0.9);
    padding-left: 14px;
    border-left: 4px solid rgba(76,175,80,0.9);
}
.fixture-section-today .fixture-table thead th{
    background: rgba(30,58,35,0.4);
    color: rgba(255,255,255,0.88);
    border-bottom-color: rgba(76,175,80,0.25);
}
.fixture-section-next-up .fixture-section-label{
    color: rgba(255,255,255,0.88);
    padding-left: 14px;
    border-left: 4px solid rgba(255,167,38,0.9);
}
.fixture-section-next-up .fixture-table thead th{
    background: rgba(61,45,20,0.4);
    color: rgba(255,255,255,0.88);
    border-bottom-color: rgba(255,167,38,0.25);
}
.matches-grid {
    margin-bottom: 40px;
}
.matches-grid:last-child { margin-bottom: 0; }
.fixture-section-current { scroll-margin-top: 100px; scroll-margin-bottom: 80px; }

/* Coming Soon Message */
    .coming-soon-message {
      text-align: center;
      padding: 60px 20px;
      margin: 40px 0;
    }

    .coming-soon-message h2 {
      font-size: 2.5rem;
      font-weight: 800;
      color: #cbd5e1;
      margin-bottom: 16px;
      text-transform: uppercase;
      letter-spacing: 3px;
    }

    .coming-soon-message p {
      font-size: 1.1rem;
      color: rgba(255,255,255,0.7);
      max-width: 500px;
      margin: 0 auto;
    }

    /* Fixture table – fixed column structure */
.matches-grid{ max-width: 100%; }
.fixture-table{
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.fixture-table.fixture-table-upcoming thead th:nth-child(1),
.fixture-table.fixture-table-today thead th:nth-child(1),
.fixture-table.fixture-table-past thead th:nth-child(1){ width: 72px; }
.fixture-table.fixture-table-upcoming thead th:nth-child(2),
.fixture-table.fixture-table-today thead th:nth-child(2),
.fixture-table.fixture-table-past thead th:nth-child(2){ width: 20%; }
.fixture-table.fixture-table-upcoming thead th:nth-child(3),
.fixture-table.fixture-table-today thead th:nth-child(3),
.fixture-table.fixture-table-past thead th:nth-child(3){ width: 36%; }
.fixture-table.fixture-table-upcoming thead th:nth-child(4),
.fixture-table.fixture-table-today thead th:nth-child(4),
.fixture-table.fixture-table-past thead th:nth-child(4){ width: 12%; }
.fixture-table.fixture-table-upcoming thead th:nth-child(5),
.fixture-table.fixture-table-today thead th:nth-child(5){ width: 72px; }
.fixture-table thead th.th-empty{ width: 56px; }

.fixture-table thead th{
    text-align: left;
    padding: 10px 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.82);
    border-bottom: 1px solid rgba(255,255,255,0.14);
    background: rgba(15,23,42,0.6);
}
.fixture-table thead th.th-score{ text-align: center; }
.fixture-table thead th.th-time{ text-align: center; }
.fixture-table thead th.th-book{ text-align: center; }
.fixture-table thead th.th-empty{ padding-left: 8px; padding-right: 8px; }

.fixture-table tbody tr.match-card{
    background: rgba(255,255,255,0.04);
    transition: background 0.2s ease;
    cursor: pointer;
}
.fixture-table tbody tr.match-card:nth-child(even){
    background: rgba(255,255,255,0.07);
}
.fixture-table tbody tr.match-card:hover{
    background: rgba(255,255,255,0.1);
}
.fixture-table tbody tr.match-card.highlight{
    background: rgba(194,65,65,0.14);
}

/* Row padding – compact */
.fixture-table .fixture-time,
.fixture-table .fixture-date-venue,
.fixture-table .fixture-teams,
.fixture-table .fixture-score,
.fixture-table .fixture-book{
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    line-height: 1.35;
}
.fixture-table .fixture-time{
    white-space: nowrap;
    color: rgba(255,255,255,0.92);
    text-align: center;
}
.fixture-table .fixture-date-venue{ color: rgba(255,255,255,0.9); }
.fixture-table .fixture-date-venue .venue-muted{
    color: rgba(255,255,255,0.6);
    font-size: 0.85em;
    display: block;
    margin-top: 2px;
}
.fixture-table .fixture-score{ text-align: center; }
.fixture-table .fixture-book{
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}
.fixture-table .fixture-book .detail-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}
.fixture-table .fixture-teams .team-line{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.92);
}
.fixture-table .fixture-teams .team-line:last-child{ margin-bottom: 0; }
.fixture-table .fixture-teams .team-logo{
    height: 28px;
    width: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}
.fixture-table .fixture-score .match-top{
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}
.fixture-table .fixture-score .score{
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(255,255,255,0.98);
    letter-spacing: 0.05em;
    line-height: 1.2;
}
.fixture-table .fixture-score .status{
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.2;
}
.fixture-table .fixture-score .status .live-badge{
    margin-left: 0;
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 10px;
    animation: liveGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}
.fixture-table .fixture-book a.detail-btn{
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: auto;
    height: auto;
    background: #c58f06;
    color: #000;
}
.fixture-table .fixture-book a.detail-btn:hover{
    filter: brightness(1.1);
}

.match-top{
    text-align: center;
    margin-bottom: 16px;
}
.match-top .score{
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.08em;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.match-top .status{
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}
.match-top .match-date{
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    margin-top: 6px;
}
.live-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    animation: pulse 2s infinite;
}
@keyframes pulse{
    0%,100%{opacity:1;}
    50%{opacity:.7;}
}
.teams-row{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.teams-row.long-names{
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
}
.teams-row .team-name{
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 35%;
    color: #ffffff;
    font-weight: 700;
}
.teams-row.long-names .team-name{
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.teams-row-logos{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
}
.teams-row .team-logo{
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.teams-row .vs-divider{
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    padding: 6px 12px;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.meta{
    margin-top: 10px;
    padding-top: 10px;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}
.meta .venue { color: rgba(255,255,255,0.7); }

a.detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    background: var(--accent);
    color: white;
    font-weight: 800;
    font-size: .95rem;
    min-width: 120px;
    height: 42px;
}
a.detail-btn:hover { filter: brightness(1.12); }

.detail-btn.side {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    background: var(--accent);
    font-weight: 700;
    border-radius: 10px;
    font-size: .95rem;
    height: 42px;
    width: 100%;
    text-align: center;
}

/* Mobile – nav same as homepage (compact height), sidebar hidden, trophy opens panel */
/* Mobile-only: sticky sports bar at bottom – same as match_football.html */
.sports-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #1a2a6c, #b21f1f);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    padding: 16px 18px;
    min-height: 72px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
}
.sports-sticky-bar.scroll-hidden {
    transform: translateY(100%);
}
.sports-sticky-bar::-webkit-scrollbar { height: 4px; }
.sports-sticky-bar::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 4px; }
.sports-sticky-bar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.sports-sticky-bar-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 4px;
    min-width: min-content;
}
.sports-sticky-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.95);
    color: #1e293b;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.sports-sticky-bar a:hover {
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    @media (min-width: 1025px) {
      .nav-dropdown .dropdown-content a.active {
        background: var(--accent);
        color: #fff;
        border-color: rgba(255,255,255,0.3);
        font-weight: 700;
      }
    }
}
.sports-sticky-bar a.active {
    background: var(--accent);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    font-weight: 700;
}
.sports-sticky-bar a.active:hover {
    background: #d64545;
    color: #fff;
}
.sports-sticky-bar a i { font-size: 14px; opacity: 0.9; }

@media (max-width: 860px) {
    .container { flex-direction: column; min-height: auto; }
    .sidebar {
        position: fixed;
        top: 0; bottom: 0; left: 0;
        width: 80%;
        max-width: 300px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        pointer-events: none;
    }
    .sidebar.active { transform: translateX(0); pointer-events: auto; }
    .top-banner {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        display: block !important;
        visibility: visible !important;
        z-index: 1000;
        border-radius: 0 0 16px 16px;
    }
    .top-banner .nav-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap;
    }
    .top-banner .nav-brand {
        width: auto !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
        display: flex !important;
        align-items: center;
    }
    .top-banner .nav-brand a {
        display: flex !important;
        align-items: center;
    }
    .top-banner .nav-links { display: flex !important; flex-direction: row; flex-wrap: wrap; align-items: center; width: auto; padding: 0; margin-left: 0; gap: 8px; flex-shrink: 0; }
    .top-banner .nav-links .nav-link { display: inline-flex !important; align-items: center; padding: 8px 12px; font-size: 13px; font-weight: 600; color: #fff !important; text-decoration: none !important; white-space: nowrap; }
    .top-banner .nav-links .nav-link i { margin-right: 4px; }
    .top-banner .nav-dropdown { display: none !important; }
    .top-banner .tournaments-dots-btn.nav-link-tournaments {
        display: inline-flex !important; align-items: center; justify-content: center; gap: 4px; padding: 6px 10px; height: auto; min-height: 32px; margin: 0; border-radius: 8px;
        background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; cursor: pointer; touch-action: manipulation; transition: background 0.2s, border-color 0.2s;
    }
    .top-banner .tournaments-dots-btn.nav-link-tournaments:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.25); }
    .top-banner .tournaments-dots-btn.nav-link-tournaments i { font-size: 14px; margin-right: 2px; }
    .top-banner .tournaments-dots-btn.nav-link-tournaments .tournaments-btn-label { display: inline; }
    .sports-sticky-bar { display: block; }
    .page-title { font-size: 1.35rem; margin: 16px 0 20px; line-height: 1.3; word-break: break-word; }
    .matches-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .fixture-table { min-width: 380px; font-size: 0.8rem; }
    .fixture-table thead th { padding: 8px 6px; font-size: 0.65rem; }
    .fixture-table .fixture-time, .fixture-table .fixture-date-venue, .fixture-table .fixture-teams, .fixture-table .fixture-score, .fixture-table .fixture-book { padding: 8px 6px; }
    .fixture-table .fixture-teams .team-line { margin-bottom: 4px; font-size: 0.8rem; gap: 6px; }
    .fixture-table .fixture-teams .team-logo { height: 20px; width: 20px; }
    .fixture-table .fixture-score .score { font-size: 1rem; }
    .fixture-table .fixture-book a.detail-btn { padding: 6px 10px; font-size: 0.8rem; }
    .fixture-table .fixture-book { display: table-cell; vertical-align: middle; }
    .fixture-section-label { margin: 24px 0 10px; font-size: 0.9rem; }
    .fixture-section-label:not(:first-child) { margin-top: 40px; }
    .matches-grid { margin-bottom: 28px; }
    .fixture-subsection-label { font-size: 0.8rem; margin-bottom: 8px; }
    .teams-row .team-name { max-width: 32%; }
    .meta .buttons { flex-wrap: wrap; }
    .meta .buttons a { min-width: 0; flex: 1 1 auto; }
    a.detail-btn { min-width: 0; padding: 10px 12px; font-size: 0.9rem; }
    .fixture-images-section { margin-bottom: 20px; }
    .fixture-carousel-slide-caption { font-size: 0.9rem; padding: 10px 12px; }
    .tournaments-dropdown-overlay {
        display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1003; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
    }
    .tournaments-dropdown-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
    .tournaments-dropdown {
        display: block; position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 88vw; transform: translateX(100%); transition: transform 0.7s cubic-bezier(0.32,0.72,0,1);
        overflow-y: auto; overflow-x: hidden; background: #1a1a1e; box-shadow: -8px 0 32px rgba(0,0,0,0.35); z-index: 1004; padding: 0; border-left: 1px solid rgba(255,255,255,0.08); -webkit-overflow-scrolling: touch;
    }
    .tournaments-dropdown.open { transform: translateX(0); }
    .tournaments-dropdown-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
}

/* 769px–860px: nav bar height */
@media (min-width: 769px) and (max-width: 860px) {
    .top-banner { min-height: 58px; padding: 15px 15px; }
    .top-banner .nav-container { gap: 12px; padding: 0; min-height: 40px; }
    .nav-logo { height: 40px !important; max-height: 44px !important; display: block !important; }
    .main { padding: 88px 16px 110px 16px; width: 100%; max-width: 100%; min-width: 0; }
}

/* ≤768px: compact nav (same as homepage) */
@media (max-width: 768px) {
    .top-banner { min-height: 58px; padding: 15px 15px; }
    .top-banner .nav-container { gap: 8px; padding: 0; }
    .nav-logo { height: 40px !important; max-height: 42px !important; min-height: 24px !important; }
    .top-banner .nav-links {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: auto;
        padding: 0;
        margin-left: 0;
        gap: 8px;
        flex-shrink: 0;
    }
    .top-banner .nav-links .nav-link {
        display: inline-flex !important;
        align-items: center;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 600;
        color: #fff !important;
        text-decoration: none !important;
        white-space: nowrap;
    }
    .top-banner .nav-links .nav-link i { margin-right: 4px; }
    .top-banner .nav-dropdown { display: none !important; }
    .top-banner .tournaments-dots-btn.nav-link-tournaments {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 10px;
        height: auto;
        min-height: 32px;
        margin: 0;
        border-radius: 8px;
        background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.18);
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        touch-action: manipulation;
        transition: background 0.2s, border-color 0.2s;
    }
    .top-banner .tournaments-dots-btn.nav-link-tournaments:hover {
        background: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.25);
    }
    .top-banner .tournaments-dots-btn.nav-link-tournaments i { font-size: 14px; margin-right: 2px; }
    .top-banner .tournaments-dots-btn.nav-link-tournaments .tournaments-btn-label { display: inline; }
    .main {
        padding: 88px 16px 110px 16px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .sports-sticky-bar { display: block; }
    .page-title { font-size: 1.35rem; margin: 16px 0 20px; line-height: 1.3; word-break: break-word; }
    .matches-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .fixture-table { min-width: 380px; font-size: 0.8rem; }
    .fixture-table thead th { padding: 8px 6px; font-size: 0.65rem; }
    .fixture-table .fixture-time, .fixture-table .fixture-date-venue, .fixture-table .fixture-teams, .fixture-table .fixture-score, .fixture-table .fixture-book { padding: 8px 6px; }
    .fixture-table .fixture-teams .team-line { margin-bottom: 4px; font-size: 0.8rem; gap: 6px; }
    .fixture-table .fixture-teams .team-logo { height: 20px; width: 20px; }
    .fixture-table .fixture-score .score { font-size: 1rem; }
    .fixture-table .fixture-book a.detail-btn { padding: 6px 10px; font-size: 0.8rem; }
    .fixture-table .fixture-book { display: table-cell; vertical-align: middle; }
    .fixture-section-label { margin: 24px 0 10px; font-size: 0.9rem; }
    .fixture-section-label:not(:first-child) { margin-top: 40px; }
    .matches-grid { margin-bottom: 28px; }
    .fixture-subsection-label { font-size: 0.8rem; margin-bottom: 8px; }
    .teams-row .team-name { max-width: 32%; }
    .meta .buttons { flex-wrap: wrap; }
    .meta .buttons a { min-width: 0; flex: 1 1 auto; }
    a.detail-btn { min-width: 0; padding: 10px 12px; font-size: 0.9rem; }
    .fixture-images-section { margin-bottom: 20px; }
    .fixture-carousel-slide-caption { font-size: 0.9rem; padding: 10px 12px; }
    .tournaments-dropdown-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1003;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
    }
    .tournaments-dropdown-overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .tournaments-dropdown {
        display: block;
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 300px;
        max-width: 88vw;
        transform: translateX(100%);
        transition: transform 0.7s cubic-bezier(0.32,0.72,0,1);
        overflow-y: auto;
        overflow-x: hidden;
        background: #1a1a1e;
        box-shadow: -8px 0 32px rgba(0,0,0,0.35);
        z-index: 1004;
        padding: 0;
        border-left: 1px solid rgba(255,255,255,0.08);
        -webkit-overflow-scrolling: touch;
    }
    .tournaments-dropdown.open { transform: translateX(0); }
    .tournaments-dropdown-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        background: rgba(0,0,0,0.25);
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .tournaments-dropdown-title-wrap { display: flex; align-items: center; gap: 10px; }
    .tournaments-dropdown-title-wrap i { font-size: 18px; color: var(--accent); }
    .tournaments-dropdown-title { font-size: 16px; font-weight: 700; color: #fff; }
    .tournaments-dropdown-subtitle { display: block; font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }
    .tournaments-dropdown-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: rgba(255,255,255,0.1);
        color: rgba(255,255,255,0.9);
        font-size: 22px;
        cursor: pointer;
    }
    .tournaments-dropdown-close:hover { background: rgba(255,255,255,0.18); }
    .tournaments-dropdown-list { padding: 12px 0 120px 0; }
    .tournaments-dropdown-group { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .tournaments-dropdown-group:last-child { border-bottom: none; }
    .tournaments-dropdown-sub {
        display: flex;
        flex-direction: column;
        padding-left: 18px;
        padding-bottom: 8px;
        background: rgba(0,0,0,0.15);
    }
    .tournaments-dropdown-sub a { padding: 10px 18px; font-size: 14px; }
    .tournaments-dropdown-sub a i { margin-right: 8px; }
    .tournaments-dropdown a {
        display: flex;
        align-items: center;
        padding: 14px 18px;
        color: rgba(255,255,255,0.9);
        text-decoration: none;
        font-size: 15px;
        transition: background 0.2s, color 0.2s;
        border-left: 3px solid transparent;
    }
    .tournaments-dropdown a:hover { background: rgba(255,255,255,0.06); color: #fff; }
    .tournaments-dropdown a.selected {
        background: rgba(14,72,99,0.25);
        color: #fff;
        border-left-color: var(--accent);
        font-weight: 600;
    }
    .tournaments-dropdown a.selected::before {
        content: '\f111';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 6px;
        margin-right: 10px;
        color: #fff;
        flex-shrink: 0;
    }
    /* When no tournament selected, "Matches" is highlighted */
    .tournaments-dropdown-list > a.selected {
        background: rgba(14,72,99,0.3);
        color: #fff;
        font-weight: 700;
        border-left: 3px solid var(--accent);
    }
    .tournaments-dropdown-list > a.selected::before {
        font-size: 8px;
    }
}

   
@media (max-width: 768px) {
  .fixture-table thead th.th-score,
  .fixture-table tbody td.fixture-score {
    width: 88px;
    min-width: 88px;
    text-align: center;
  }
  .fixture-table .fixture-score {
  white-space: nowrap;
}

}




/* 🔧 Mobile fix: PAST table spacing & alignment */
@media (max-width: 768px) {

/* Shrink TIME column */
.fixture-table-past thead th.th-time,
.fixture-table-past tbody td.fixture-time {
  width: 56px;
  min-width: 56px;
  padding-left: 4px;
  padding-right: 4px;
  font-size: 0.75rem;
}

/* Let Date/Venue stop stealing space */


/* Tighten all cells (kills left dead space) */
.fixture-table-past td {
  padding-left: 6px;
  padding-right: 6px;
}

/* Give teams priority */
.fixture-table-past thead th:nth-child(3),
.fixture-table-past tbody td.fixture-teams {
  width: 45%;
}
}

 /* ===============================
   MOBILE FIXTURES – HARD RESET
   =============================== */
@media (max-width: 768px) {

/* 1. Kill inherited card styles inside tables */
.fixture-table .match-top,
.fixture-table .score,
.fixture-table .status {
  all: unset;
}

/* 2. Rebuild score layout from scratch */
.fixture-table .fixture-score {
  text-align: center;
  white-space: nowrap;
  padding: 6px 4px;
}

.fixture-table .fixture-score .match-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fixture-table .fixture-score .score {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

/* 3. TODAY / LIVE only */
.fixture-table-today .fixture-score .status {
  display: inline-flex;
  font-size: 0.65rem;
}

@keyframes liveGlow {
  from {
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    background: linear-gradient(45deg, #dc2626, #ef4444);
  }
  to {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.8), 0 0 30px rgba(220, 38, 38, 0.4);
    background: linear-gradient(45deg, #ef4444, #dc2626);
  }
}

/* 4. PAST only */
.fixture-table-past .fixture-score .status {
  display: none;
}

/* 5. Lock score column width */
.fixture-table thead th.th-score,
.fixture-table tbody td.fixture-score {
  width: 84px;
  min-width: 84px;
}

/* 6. PAST table spacing sanity */
.fixture-table-past .fixture-time {
  width: 56px;
  min-width: 56px;
  font-size: 0.75rem;
}

.fixture-table-past td {
  padding-left: 6px;
  padding-right: 6px;
}

.fixture-table-past .fixture-date-venue {
  font-size: 0.75rem;
  line-height: 1.2;
}

.fixture-table-past .venue-muted {
  font-size: 0.7rem;
}
}
/* ===============================
   MOBILE – FINAL FIX (PAST SAFE)
   =============================== */
   @media (max-width: 768px) {

/* SCORE: hard reset */
.fixture-table .fixture-score * {
  all: unset;
}

.fixture-table .fixture-score {
  display: table-cell;
  text-align: center;
  white-space: nowrap;
  padding: 6px 4px;
}

.fixture-table .fixture-score .match-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fixture-table .fixture-score .score {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

/* TODAY only */
.fixture-table-today .fixture-score .status {
  display: inline-flex;
  font-size: 0.65rem;
}

/* PAST only */
.fixture-table-past .fixture-score .status {
  display: none;
}

/* SCORE column width */
.fixture-table thead th.th-score,
.fixture-table tbody td.fixture-score {
  width: 84px !important;
  min-width: 84px !important;
}

/* FIX PAST COLUMN GAP (THIS IS THE IMPORTANT PART) */
.fixture-table-past thead th:nth-child(2) {
  width: 120px !important;
}

.fixture-table-past .fixture-time {
  width: 56px !important;
  min-width: 56px !important;
  font-size: 0.75rem;
}

.fixture-table-past .fixture-date-venue {
  font-size: 0.75rem;
  line-height: 1.2;
}

.fixture-table-past .venue-muted {
  font-size: 0.7rem;
}

.fixture-table-past td {
  padding-left: 6px;
  padding-right: 6px;
}
}


/*keeping space in the footer for mobile*/
@media (max-width: 760px) {
  .main-wrapper {
    padding-bottom: 120px;
  }
}



@media (max-width: 480px) {
    .top-banner { min-height: 58px; padding: 15px 15px; border-radius: 0 0 12px 12px; }
    .top-banner .nav-container { padding: 6px 12px; gap: 6px; }
    .top-banner .nav-links .nav-link { padding: 8px 10px; font-size: 12px; }
    .nav-logo { height: 40px !important; max-height: 48px !important; }
    .main { padding: 88px 14px 110px 14px; }
}
@media (min-width: 861px) {
    .teams-row .team-name { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
}
.meta {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
}

.meta .venue {
    text-align: center;
    margin-bottom: 6px;
    font-size: 0.9rem;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta .buttons {
    display: flex;
    gap: 10px;
}

.meta .buttons a {
    flex: 1;
    text-align: center;
}

/* Tournament fixture images – carousel with swipe + lightbox */
.fixture-images-section {
    margin-bottom: 28px;
}
.fixture-images-section .section-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.fixture-carousel-wrap {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}
.fixture-carousel-track-wrap {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.06);
}
.fixture-carousel-track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    touch-action: pan-y pinch-zoom;
}
.fixture-carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0;
}
.fixture-carousel-slide-inner {
    position: relative;
    padding-top: 52%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.8), rgba(15, 52, 96, 0.7));
    backdrop-filter: blur(20px) saturate(1.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
      0 8px 32px rgba(0,0,0,0.3),
      inset 0 1px 0 rgba(255,255,255,0.2),
      inset 0 -1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    position: relative;
}

.fixture-carousel-slide-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
      rgba(255,255,255,0.1) 0%, 
      rgba(255,255,255,0.05) 50%, 
      rgba(255,255,255,0.02) 100%);
    border-radius: 16px;
    pointer-events: none;
}
.fixture-carousel-slide-inner img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
.fixture-carousel-slide-caption {
    padding: 14px 18px;
    font-size: 0.95rem;
    color: #f8fafc;
    background: linear-gradient(135deg, 
      rgba(15, 52, 96, 0.85), 
      rgba(22, 33, 62, 0.75));
    backdrop-filter: blur(16px) saturate(1.3);
    border-top: 1px solid rgba(255,255,255,0.25);
    font-weight: 600;
    line-height: 1.4;
    min-height: 48px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.fixture-carousel-slide-caption::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
      rgba(255,255,255,0.15) 0%, 
      rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}
.fixture-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
}
.fixture-carousel-btn:hover {
    background: rgba(194, 65, 65, 0.85);
}
.fixture-carousel-btn.prev { left: 8px; }
.fixture-carousel-btn.next { right: 8px; }
.fixture-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.fixture-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.fixture-carousel-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}
/* Lightbox */
.fixture-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.fixture-lightbox.open {
    display: flex;
    flex-direction: column;
}
.fixture-lightbox-content {
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.fixture-lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}
.fixture-lightbox-caption {
    margin-top: 16px;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    line-height: 1.5;
}
.fixture-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.fixture-lightbox-close:hover {
    background: var(--accent);
}
@media (max-width: 600px) {
    .fixture-carousel-slide-inner { padding-top: 56%; }
    .fixture-carousel-btn { width: 40px; height: 40px; font-size: 18px; }
}

/* ================= FOOTER ================= */
.site-footer {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, #0a1026, #0a0a1a);
  color: #cbd5e1;
  margin-top: 80px;
  overflow-x: hidden;
}

/* Core container */
.footer-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1.6fr 2fr 1.2fr;
  gap: 40px;
  box-sizing: border-box;
}

/* Brand */
.footer-logo {
  height: 48px;
  margin-bottom: 12px;
}

.footer-brand h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
  
}
  



.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 340px;
  text-align: left;
}

/* Mobile: center the description text */
@media (max-width: 768px) {
  .footer-brand p {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
  }
}

/* Social */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
}

/* Grouped links */
.footer-links-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Columns */
.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(0,212,255,.3);
}

.footer-column a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  text-decoration: none;
}

/* Contact */
.contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  align-items: center;
}

.contact-item i {
  color: #00d4ff;
  width: 16px;
  text-align: center;
}

.contact-item a {
  color: #cbd5e1;
  text-decoration: none;
}

.contact-item a:hover {
  color: #00d4ff;
  text-decoration: underline;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 8px 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.newsletter-form button {
  width: 42px;
  border: none;
  background: #00d4ff;
  color: #000;
}

/* Bottom bar */
.footer-bottom {
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding: 14px;
  font-size: 0.8rem;
  background: rgba(0,0,0,.35);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 26px 18px;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .footer-links-group {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    text-align: left;
  }

  .footer-column a {
    font-size: 0.8rem;
    padding: 4px 0;
  }

  .footer-column h4 {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .contact-item {
    justify-content: center;
    font-size: 0.8rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    font-size: 0.7rem;
    padding: 10px;
  }
}

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

@media (max-width: 768px) {
  .site-footer {
    margin-top: 2px;
  }
}
