/* --- GLOBAIS E VARIÁVEIS DE COR --- */
:root {
    --rc-blue: #0044b3; /* Azul do logo */
    --rc-black: #000000; /* Preto do logo */
    --rc-white: #ffffff; /* Branco */
    --background-light: #f5f5f5;
    --text-dark: #212121;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
}

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

/* --- CABEÇALHO --- */
.main-header {
    background-color: var(--rc-white);
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    height: 60px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--rc-black);
    font-weight: 700;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--rc-blue);
    border-bottom-color: var(--rc-blue);
}

/* --- ESTILOS DO MENU MOBILE (ESCONDIDOS POR PADRÃO) --- */
.menu-toggle, .mobile-nav {
    display: none;
}

/* --- SEÇÃO HERO --- */
.hero {
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--rc-white);
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 400;
}

/* --- SEÇÃO PRÓXIMA PARTIDA --- */
.next-match {
    padding: 20px 0;
    transform: translateY(-50px);
    margin-bottom: -50px;
    background-size: cover;
    background-position: center;
}

.match-info-box {
    background-color: var(--rc-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
}

.match-championship {
    font-weight: 700;
    color: var(--rc-blue);
}

.teams-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.team img { height: 100px; }
.team span { font-weight: 900; font-size: 1.5rem; color: var(--rc-black); }

.match-details .vs {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--rc-black);
}
.match-details .match-time { font-weight: 700; margin: 5px 0;}

.btn-match-details {
    display: inline-block;
    background-color: var(--rc-black);
    color: var(--rc-white);
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
}
.btn-match-details:hover {
    background-color: var(--rc-blue);
}

/* --- GRID DE NOTÍCIAS --- */
.news-grid { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 40px;
    color: var(--rc-black);
}
.grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    grid-template-areas: 
        "main secondary1"
        "main secondary2";
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
[class$="-card"]:hover img {
    transform: scale(1.05);
}

.main-news-card { 
    grid-area: main; 
    background-color: var(--rc-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.main-news-card .card-image {
    height: 400px;
}
.main-news-card .card-content {
    padding: 25px;
}
.main-news-card h3 { font-size: 2rem; margin: 10px 0; }
.main-news-card p { font-size: 1.1rem; }

.secondary-news-card {
    grid-area: var(--grid-area);
    background-color: var(--rc-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.secondary-news-card:nth-of-type(2) { grid-area: secondary1; }
.secondary-news-card:nth-of-type(3) { grid-area: secondary2; }

.secondary-news-card .card-content {
    padding: 20px;
}
.secondary-news-card h4 { font-size: 1.2rem; margin-top: 10px; }

.news-category {
    font-weight: 700;
    color: var(--rc-blue);
    text-transform: uppercase;
}

/* --- CORREÇÃO DO ESPAÇO EM BRANCO NO GRID DE NOTÍCIAS (VERSÃO FINAL) --- */
.main-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-news-card .card-content {
    flex-grow: 1;
}

/* --- RODAPÉ --- */
.main-footer {
    background-color: var(--rc-black);
    color: var(--rc-white);
    padding: 40px 0;
    text-align: center;
}
.footer-logo {
    height: 80px;
    margin-bottom: 20px;
}
.footer-content p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* --- CÓDIGO DE RESPONSIVIDADE PARA CELULAR --- */
@media (max-width: 768px) {
    
    .container {
        padding: 0 15px;
    }

    /* ESCONDE O MENU DE DESKTOP E MOSTRA O DE CELULAR */
    .main-nav {
        display: none;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001; /* Para ficar na frente de tudo */
    }
    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--rc-black);
        margin: 5px 0;
        transition: 0.4s;
    }

    /* Animação do botão hambúrguer para 'X' */
    body.nav-open .menu-toggle .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    body.nav-open .menu-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    body.nav-open .menu-toggle .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Mostra o painel do menu mobile quando ativado */
    body.nav-open .mobile-nav {
        display: block;
    }
    .mobile-nav {
        display: none;
        position: absolute;
        top: 91px;
        left: 0;
        width: 100%;
        background-color: var(--rc-white);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .mobile-nav ul {
        list-style: none;
        text-align: center;
    }
    .mobile-nav li {
        border-bottom: 1px solid #eee;
    }
    .mobile-nav a {
        display: block;
        padding: 20px;
        text-decoration: none;
        color: var(--rc-black);
        font-weight: 700;
    }

    /* AJUSTES DE CONTEÚDO PARA MOBILE */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .teams-container {
        flex-direction: column;
        gap: 20px;
    }
    .team span {
        font-size: 1.2rem;
    }
    .match-details .vs {
        font-size: 2rem;
    }

    .news-grid {
        padding: 60px 0;
    }
    .grid-container {
        grid-template-columns: 1fr; /* Uma coluna só */
        grid-template-areas:
            "main"
            "secondary1"
            "secondary2";
    }
    .main-news-card h3 { font-size: 1.5rem; }
    .main-news-card p { font-size: 1rem; }
}