:root {
    --primary-color: #004d99;
    --accent-color: #ffcc00;
    --dark-bg: #1a1a1a;
    --light-bg: #f4f7f9;
    --white: #ffffff;
    --text-main: #333333;
    --text-light: #555555;
    --border-color: #e0e0e0;
    --success: #28a745;
    --danger: #d30616;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Merriweather', serif;

    --container-width: 1200px;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    background-color: var(--light-bg);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, background-color 0.3s ease;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   BARRA DE CLUBES (Scroll Horizontal Mobile)
   ========================================= */
.team-bar-container {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    min-height: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.team-bar {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    align-items: center;
}

.team-bar::-webkit-scrollbar {
    display: none;
}

.team-bar a {
    flex-shrink: 0;
    display: block;
}

.team-bar a img {
    width: 35px;
    height: 35px;
    min-width: 35px;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.team-bar a:hover img {
    transform: scale(1.15);
    opacity: 1;
}

@media (min-width: 1000px) {
    .team-bar {
        justify-content: center;
    }
}

/* =========================================
   HEADER & NAVEGAÇÃO (DESKTOP E MOBILE)
   ========================================= */
.header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--white);
}

.site-logo .dot {
    color: var(--accent-color);
}

/* 1. Botão Hamburguer: ESCONDIDO NO DESKTOP POR PADRÃO */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 900;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 2. Menu Navegação: VISÍVEL NO DESKTOP */
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 4px;
    color: #ffffff;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.btn-highlight {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    border-radius: 4px;
    font-weight: 800;
}

/* =========================================
   REGRAS EXCLUSIVAS PARA CELULAR (ATÉ 768PX)
   ========================================= */
@media (max-width: 768px) {
    /* Mostra o botão hambúrguer APENAS no celular */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
    }

    /* Esconde a barra horizontal e transforma em menu suspenso */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 10px 0;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    /* O JavaScript adiciona 'active' ao clicar e abre o menu */
    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu a {
        padding: 14px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-sizing: border-box;
    }
}

/* =========================================
   LAYOUT PRINCIPAL (CONTENT + SIDEBAR)
   ========================================= */
.main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
    width: 100%;
}

.content-column {
    flex: 1;
    min-width: 300px;
    width: 100%;
}

.sidebar-column {
    flex: 0 0 300px;
    width: 100%;
}

@media (max-width: 900px) {
    .sidebar-column {
        flex: 1 1 100%;
    }
}

/* =========================================
   HERO E CARDS DE NOTÍCIAS
   ========================================= */
.hero-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    background-color: var(--primary-color);
    min-height: 350px;
}

.news-grid-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s;
}

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

.card-img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* =========================================
   TABELA DE CLASSIFICAÇÃO RESPONSIVA
   ========================================= */
.table-wrapper.responsiva {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.classification-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.classification-table th {
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 12px 10px;
    border-bottom: 2px solid var(--border-color);
}

.classification-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    white-space: nowrap;
}

.libertadores td:first-child { border-left: 5px solid #004d99 !important; }
.libertadores { background-color: #f0f7ff !important; }

.pre-libertadores td:first-child { border-left: 5px solid #00d4ff !important; }
.pre-libertadores { background-color: #faffff !important; }

.sul-americana td:first-child { border-left: 5px solid #00ff88 !important; }
.sul-americana { background-color: #f2fff9 !important; }

.rebaixamento td:first-child { border-left: 5px solid #ff4d4d !important; }
.rebaixamento { background-color: #fff5f5 !important; }

/* =========================================
   PUBLICIDADE (BANNER TECH)
   ========================================= */
.ad-card-tech {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    overflow: hidden;
    color: #fff;
    margin-bottom: 20px;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #94a3b8;
    letter-spacing: 1px;
}

.ad-btn {
    display: inline-block;
    background-color: #00d4ff;
    color: #0f172a;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 35px 0;
    text-align: center;
    border-top: 4px solid var(--accent-color);
    margin-top: 40px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.85;
}