:root {
    /* === TEMA DARK (Padrão) === */
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --card-bg: #2a2a2a;
    --border-color: #3a3a3a;
    
    --text-primary: #f0f0f0;
    --text-muted: #b3b3b3;
    --text-headings: #ffffff;
    
    --accent-color: #DAA520;
    --accent-hover: #F0B935;
    
    /* Fontes */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

/* === TEMA LIGHT (Sobrescreve as variáveis acima) === */
body.light-mode {
    --bg-primary: #f9f9f9;      /* Fundo Claro */
    --bg-secondary: #ffffff;    /* Fundo Secundário Branco (Header/Footer) */
    --card-bg: #ffffff;         /* Cards Brancos */
    --border-color: #e0e0e0;    /* Bordas mais suaves */
    
    --text-primary: #333333;    /* Texto Escuro */
    --text-muted: #555555;      /* Texto Mudo Escuro */
    --text-headings: #1a1a1a;   /* Títulos Escuros */
}

/* === ESTILOS GLOBAIS === */
body {
    font-family: var(--font-secondary);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--text-headings);
    font-weight: 700;
    transition: color 0.3s;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

section {
    padding: 20px 0;
    transition: background-color 0.3s;
}

section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
}

/* === BOTÃO DE TROCA DE TEMA (O REI) === */
.theme-switcher {
    background: transparent;
    border: 2px solid var(--accent-color); /* Borda Dourada */
    color: var(--accent-color); /* Ícone Dourado */
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    border-radius: 50%; /* Círculo perfeito */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animação suave com "pulo" */
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.1); /* Brilho sutil inicial */
}

/* Efeito ao passar o mouse */
.theme-switcher:hover {
    background-color: var(--accent-color); /* Preenche de Dourado */
    color: var(--bg-primary); /* O ícone fica escuro para contraste */
    transform: rotate(360deg) scale(1.1); /* Gira e aumenta */
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.6); /* Brilho forte */
}

body.light-mode .theme-switcher:hover {
    text-shadow: none;
    color: #e3aa24; /* Um dourado um pouco mais escuro para contraste no branco */
}

/* === HEADER E FOOTER (COMUNS) === */
header, footer {
    background-color: var(--bg-secondary);
    transition: background-color 0.3s, border-color 0.3s;
}

header {
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

/* Estilo Padrão (Desktop) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Esconde os botões mobile no Desktop */
.mobile-menu-icon, 
.close-menu-icon,
.menu-overlay {
    display: none;
}

/* Botão Hambúrguer */
.mobile-menu-icon {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.4rem; /* Reduzi de 1.8rem para 1.4rem */
    font-weight: 900;
    color: var(--text-headings);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    text-decoration: none; /* Garante que o link não tenha sublinhado */
    gap: 10px;
}

/* Imagem do Logo menor */
.logo img {
    height: 40px;   /* Reduzi de 64px para 40px */
    width: auto;
    display: block;
}

.logo-link {
    display: flex;       /* Coloca as imagens lado a lado */
    align-items: center; /* Alinha verticalmente */
    gap: 12px;           /* Espaço entre o ícone e o nome */
    text-decoration: none; /* Garante que não tenha sublinhado */
}

.logo-image {
    height: 64px;
    width: auto;
    display: block;
}

/* Nome visual (nome.png) - reduzido e responsivo */
.logo-name-image {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}


header nav {
    display: flex;
    align-items: center;
    gap: 25px; /* Espaço entre os links */
}

header nav a.nav-link {
    color: var(--text-primary);
    font-size: 0.95rem; /* Fonte ligeiramente menor para elegância */
    font-weight: 700;
    transition: color 0.3s ease;
}

header nav a.nav-link {
    color: var(--text-primary);
    margin-left: 15px;
    font-weight: 700;
    transition: color 0.3s ease;
}

header nav a.nav-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.nav-link-bold {
    color: var(--accent-color) !important;
}

footer {
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-secondary); 
    border-top: 1px solid var(--border-color);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: var(--text-primary); 
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* === SEÇÃO HERO (PÁGINA INICIAL) === */
.hero {
    position: relative;
    height: 90vh;
    background: url('./imgs/fundo.png') no-repeat ;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex-basis: 45%;
    padding-right: 20px;
    flex-shrink: 0;
}

.hero-image-container {
    flex-basis: 50%;
    max-width: 550px;
    flex-shrink: 0;
    margin-top: 15%;
    margin-left: auto;
}

.hero-image-container img {
    width: 170%;
    height: auto;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    color: #fff; /* Título sempre branco no overlay */
    font-weight: 900;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* === BOTÃO DE AÇÃO (CTA) === */
.cta-button {
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    background-color: var(--accent-color);
    color: var(--light-text-headings);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    background-color: var(--accent-hover);
}

/* === OUTRAS SEÇÕES (PÁGINA INICIAL) === */
.social-proof {
    background-color: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-item .stat-label {
    font-size: 1rem;
    color: var(--text-primary);
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.about-content-wrapper {
    max-width: 800px;
    width: 100%;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 10px;
}

.about-text {
    padding: 40px;
}

.about-text p {
    text-align: justify;
}

.about-stats {
    margin-top: 30px;
    justify-content: center;
}

.about-chess-com-image {
    max-width: 50%;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.courses {
    background-color: var(--bg-secondary);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Estilo para o selo "Lançamento" */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #ffc107; /* Cor dourada para destaque */
    color: #1a1a1a; /* Texto escuro para bom contraste */
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10; /* Garante que o selo fique sobre a imagem */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.course-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.course-card--release {
    /* Borda na mesma cor do selo para criar conexão visual */
    border: 2px solid #ffc107;
    
    /* Efeito de "brilho" para chamar a atenção */
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.course-card img {
    width: 100%;
    height: auto;
    display: block;
}

.course-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card h3 {
    margin-top: 0;
    color: var(--text-headings);
}

.course-card p {
    flex-grow: 1;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.course-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    transition: color 0.3s, border-color 0.3s;
}

/* === SEÇÃO DE VÍDEOS (APRENDA) === */
.video-grid {
    display: flex;           /* Flexbox para empilhar */
    flex-direction: column;  /* Um vídeo embaixo do outro */
    gap: 80px;               /* Bastante espaço entre cada aula */
    max-width: 900px;        /* Largura máxima ideal (nem muito estreito, nem esticado demais) */
    width: 100%;
    margin: 0 auto;          /* Centraliza a coluna na página */
    padding-bottom: 60px;
}

.video-card {
    background: transparent; /* Remove o fundo do card para focar no vídeo */
    border: none;            /* Remove a borda externa */
    box-shadow: none;        /* Remove a sombra do container */
    overflow: visible;       /* Permite que sombras do vídeo apareçam */
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(0); 
    box-shadow: none;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Mantém proporção 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px; /* Bordas mais arredondadas e modernas */
    
    /* Sombra profunda atrás do vídeo para dar destaque "pop-out" */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); 
    border: 1px solid var(--border-color); /* Borda sutil para definição */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.video-card:hover .video-wrapper {
    border-color: var(--accent-color);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 
                0 0 20px rgba(218, 165, 32, 0.1); /* Brilho dourado sutil */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 25px 10px 0 10px; /* Espaçamento ajustado */
    text-align: left; /* Texto alinhado à esquerda para leitura fácil */
}

.video-info h3 {
    font-size: 1.8rem; /* Título bem maior */
    margin-bottom: 12px;
    color: var(--accent-color); /* Título em dourado */
    line-height: 1.3;
}

.video-info p {
    color: var(--text-muted);
    font-size: 1.15rem; /* Texto descritivo levemente maior */
    line-height: 1.7;
    max-width: 90%; /* Evita linhas muito longas que cansam a leitura */
}

body.light-mode .video-card {
    background: var(--light-card-bg);
    border-color: var(--light-border-color);
}


/* === SEÇÕES (PÁGINA APRENDA A JOGAR) === */
.page-header {
    background-color: var(--bg-secondary);
    text-align: center;
    padding: 60px 20px;
}

.page-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
}

.content-section {
    padding: 80px 20px;
    text-align: center;
}

.content-section h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.content-section p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin: 0 auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


body.light-mode .video-wrapper {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* Sombra mais suave no branco */
}

body.light-mode .video-info h3 {
    color: var(--light-text-headings); /* Título escuro no modo claro */
}

body.light-mode {
    background-color: var(--light-bg-primary);
    color: var(--light-text-primary);
}

/* --- TEXTOS GERAIS (Títulos e Parágrafos) --- */
/* Aplica cor escura apenas onde o fundo é claro */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode p,
body.light-mode .nav-link,
body.light-mode .stat-label,
body.light-mode .benefit-list li {
    color: var(--light-text-headings);
}

body.light-mode p, 
body.light-mode .course-card p,
body.light-mode .page-header p,
body.light-mode .video-info p {
    color: var(--light-text-muted);
}

/* --- HEADER E NAV --- */
body.light-mode header {
    background-color: #ffffff;
    border-color: var(--light-border-color);
}
body.light-mode .logo {
    color: #000;
}
body.light-mode .theme-switcher {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

body.light-mode .theme-switcher:hover {
    background-color: var(--accent-color);
    color: #fff; /* Ícone branco no hover do modo claro */
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
}

/* --- HERO SECTION (Correção do Fundo Escuro) --- */
/* O Hero tem imagem de fundo escura, então o texto TEM QUE ser branco mesmo no modo claro */
body.light-mode .hero h1,
body.light-mode .hero p {
    color: #ffffff !important;
}
body.light-mode .hero-overlay {
    background-color: rgba(0, 0, 0, 0.4); /* Mantém overlay escuro para contraste */
}

/* --- STATS SECTION (Inversão para Fundo Claro) --- */
body.light-mode .stats-section {
    background-color: #f4f4f4; /* Cinza bem claro para separar do fundo branco */
    border-bottom: 1px solid #e0e0e0;
}
body.light-mode .stat-card {
    background-color: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
body.light-mode .stat-number {
    color: #333333;
}

/* --- SOBRE (ABOUT) --- */
body.light-mode .about-content-wrapper {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* --- CURSOS E PREMIUM SECTION (Correção do Card Preto) --- */
body.light-mode .courses,
body.light-mode .premium-section {
    background: #f9f9f9; /* Fundo geral da seção claro */
}

/* O Card Premium deve permanecer ESCURO ("Black Card") para destaque, mesmo no modo claro */
body.light-mode .premium-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: rgba(218, 165, 32, 0.5);
}

/* Força os textos de DENTRO do card premium a serem claros */
body.light-mode .premium-card h3,
body.light-mode .premium-card p,
body.light-mode .premium-card li,
body.light-mode .premium-card .amount,
body.light-mode .premium-card strong {
    color: #ffffff !important;
}

body.light-mode .premium-card span,
body.light-mode .premium-card .text-box span {
    color: #b3b3b3 !important;
}

body.light-mode .btn-secondary-outline:hover {
    color: #ffffff !important;
}

/* --- PÁGINA APRENDA (VÍDEOS) --- */
body.light-mode .page-header {
    background-color: #f4f4f4;
    border-bottom: 1px solid #e0e0e0;
}

body.light-mode .video-card {
    background: transparent;
}

body.light-mode .video-info h3 {
    color: #1a1a1a; /* Título do vídeo escuro */
}

body.light-mode .video-info p {
    color: #555555; /* Descrição cinza escuro */
}

body.light-mode .video-wrapper {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* Sombra mais suave para o vídeo */
    border-color: #ddd;
}

/* --- FOOTER --- */
body.light-mode footer {
    background-color: #f0f0f0;
    color: #666;
    border-top: 1px solid #ddd;
}





/* === SEÇÃO DE STATS (Dark Mode Integrado) === */
.stats-section {
    background-color: var(--bg-primary); /* Fundo Preto */
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background-color: var(--card-bg); /* Cinza Escuro */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-color: var(--accent-color); /* Borda brilha ao passar o mouse */
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    color: var(--accent-color); /* Ícones na cor Dourada/Amarela */
    filter: drop-shadow(0 0 5px rgba(240, 185, 11, 0.3)); /* Leve brilho */
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-headings);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}


/* Cores específicas para os ícones de stats */

/* Blitz - Amarelo Elétrico */
.icon-blitz svg {
    color: #ffd934; /* Amarelo do Chess.com */
    filter: drop-shadow(0 0 8px rgba(255, 217, 52, 0.4));
}

/* Bullet - Laranja */
.icon-bullet svg {
    color: #e3aa24; /* Laranja vibrante */
    filter: drop-shadow(0 0 8px rgba(255, 159, 28, 0.4));
}

/* Rápida - Verde */
.icon-rapid svg {
    color: #8ac926; /* Verde Lima */
    filter: drop-shadow(0 0 8px rgba(138, 201, 38, 0.4));
}

/* Ajuste no hover do card para usar a cor do ícone na borda (Opcional, mas fica bonito) */
.stat-card:has(.icon-blitz):hover { border-color: #ffd934; }
.stat-card:has(.icon-bullet):hover { border-color: #e3aa24; }
.stat-card:has(.icon-rapid):hover { border-color: #8ac926; }


.about-gallery {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: none;
    object-fit: cover;
}

.gallery-image.active {
    display: block;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
}

.gallery-btn-prev { left: 10px; }
.gallery-btn-next { right: 10px; }

.gallery-btn:hover {
    background: rgba(0,0,0,0.8);
}

.combo-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.combo-card {
    background: linear-gradient(145deg, #2e2e2e, #1e1e1e);
    border: 2px solid transparent;
    border-image: linear-gradient(145deg, var(--accent-color), var(--accent-hover)) 1;
    color: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 550px; /* Aumentado para melhor espaçamento */
    width: 100%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 0 0 25px rgba(218, 165, 32, 0.2); /* Sombra preta + brilho dourado */
    transition: all 0.3s ease;
}

.combo-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 35px rgba(218, 165, 32, 0.3);
}

.combo-header {
    text-align: center;
    margin-bottom: 35px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.combo-header h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(218, 165, 32, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.combo-price {
    font-size: 2.5rem;
    color: var(--accent-hover);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(240, 185, 11, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(240, 185, 11, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(240, 185, 11, 0.8);
    }
}

.combo-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.combo-features {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center; /* Alinhamento vertical */
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    background: transparent; /* Fundo transparente */
}

.feature-item:last-child {
    border-bottom: none; /* Remove a borda do último item */
}

.feature-item i {
    font-size: 28px;
    color: var(--accent-color); /* Cor dourada */
    min-width: 35px;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.feature-item h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: var(--text-headings);
    font-weight: 700;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.combo-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

/* Botão Primário (Comprar) */
.combo-btn-card {
    background: var(--accent-color);
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.2);
}

.combo-btn-card:hover {
    background: var(--accent-hover);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(218, 165, 32, 0.3);
}

.combo-btn-card i {
    transition: transform 0.3s ease;
}

.combo-btn-card:hover i {
    transform: scale(1.1) rotate(-5deg);
}


/* Botão Secundário (WhatsApp) */
.combo-btn-whatsapp {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.combo-btn-whatsapp:hover {
    background: var(--border-color);
    color: #fff;
    border-color: var(--accent-color);
}

.combo-payment-info {
    background: transparent;
    padding: 25px 0 0 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.combo-payment-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-headings);
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    font-size: 0.95rem;
}

.payment-method strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.payment-method p {
    margin: 0;
}

.payment-method a {
    color: var(--accent-hover);
    text-decoration: none;
    word-break: break-all;
    font-weight: 600;
}

.payment-method a:hover {
    text-decoration: underline;
    color: #fff;
}

.combo-contact {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.combo-contact p strong {
    font-size: 1.1rem;
    color: var(--text-headings);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid #25D366;
    color: #25D366;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    background: #25D366;
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

.social-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-bottom: 10%;
}

.chess-com-icon {
    height: 45px; /* Altura fixa ideal */
    width: auto;  /* Largura automática para manter proporção */
    transition: transform 0.3s ease;
}

.chess-com-icon:hover {
    transform: scale(1.1);
}



/* === SEÇÃO PREMIUM (Melhoria Visual) === */

/* Fundo da seção para destacar o card */
.premium-section {
    background: radial-gradient(circle at center, #2a2a2a 0%, #1a1a1a 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

body.light-mode .premium-section {
    background: #f9f9f9;
}

/* Container centralizado */
.combo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    width: 100%;
}

/* O Card em si */
.premium-card {
    background: linear-gradient(145deg, rgba(40,40,40,0.95) 0%, rgba(20,20,20,0.98) 100%);
    border: 1px solid rgba(218, 165, 32, 0.3); /* Dourado sutil */
    border-radius: 20px;
    padding: 3rem; /* CORREÇÃO AQUI: adicionei 'rem' e ';' */
    width: 100%;
    max-width: 480px; /* Limita a largura para ficar elegante */
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 
                0 0 40px rgba(218, 165, 32, 0.2);
    border-color: var(--accent-color);
}

/* Tag de "Recomendado" no topo */
.card-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
    z-index: 2;
    white-space: nowrap;
}

/* Cabeçalho do Card */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-header h3 {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 900;
    line-height: 1.2;
}

.card-header .subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* Lista de Benefícios */
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    text-align: left;
}

.benefit-list li {
    display: flex;
    align-items: center; /* Alinha ícone e texto verticalmente */
    gap: 15px;
    margin-bottom: 20px;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(218, 165, 32, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Impede o ícone de amassar */
}

.icon-box i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.text-box strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.text-box span {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Preço e Footer */
.card-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço uniforme entre os botões */
}

.price-tag {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1;
}

.price-tag .currency {
    font-size: 1.5rem;
    margin-top: 8px;
    color: var(--text-muted);
}

.price-tag .amount {
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.price-tag .cents {
    font-size: 1.5rem;
    margin-top: 8px;
    font-weight: 700;
}

/* Botão Principal com Efeito de Pulso */
.btn-primary-glow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 16px;
    min-height: 56px;
    background: var(--accent-color);
    background: linear-gradient(45deg, var(--accent-color), #fcc200);
    color: #1a1a1a;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 12px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(218, 165, 32, 0.3);
    transition: all 0.3s ease;
    animation: pulse-gold 2s infinite;
    box-sizing: border-box; /* Garante que o padding não estoure a largura */
}

.btn-primary-glow:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.5);
    background: #fff;
    text-decoration: none;
}

/* Botão Secundário */
.btn-secondary-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s;
    border: 1px solid transparent; /* Reserva espaço para borda sem mover layout */
    background: transparent;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-secondary-outline:hover {
    color: #fff;
    text-decoration: underline;
    border-color: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.secure-info {
    font-size: 0.8rem;
    color: #4CAF50;
    margin-top: 5px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Animação de Pulso */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(218, 165, 32, 0); }
    100% { box-shadow: 0 0 0 0 rgba(218, 165, 32, 0); }
}


/* === SEÇÃO DE FEEDBACKS === */
.feedbacks-section {
    background-color: var(--bg-secondary); /* Fundo Cinza para separar visualmente */
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Inteligente: adapta as colunas automaticamente */
.feedback-grid {
    columns: 3 300px; /* Cria colunas estilo Pinterest (Masonry) */
    column-gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.feedback-item {
    break-inside: avoid; /* Evita que a imagem seja cortada entre colunas */
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--card-bg);
}

.feedback-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border-color: var(--accent-color); /* Borda dourada ao passar o mouse */
}

.feedback-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s;
}

/* Ajustes para o Tema Light (caso o usuário ative) */
body.light-mode .feedbacks-section {
    background-color: var(--light-bg-primary); /* Fundo branco/claro */
    border-color: var(--light-border-color);
}

body.light-mode .feedback-item {
    background-color: #fff;
    border-color: var(--light-border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

body.light-mode .feedback-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}


/* === SEÇÃO DE PARTIDAS === */
.matches-section {
    background-color: var(--bg-primary);
    padding: 60px 0 100px 0;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1100px; /* Um pouco mais largo para caber tabuleiros */
    margin: 40px auto 0 auto;
}

.match-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.match-header {
    background: var(--bg-secondary);
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* O Segredo para o Iframe do Chess.com ficar responsivo */
.iframe-container {
    position: relative;
    width: 100%;
    /* Removemos a altura fixa e o overflow hidden */
    min-height: 400px; /* Garante um tamanho mínimo enquanto carrega */
    display: block;    /* Garante comportamento de bloco */
}

.iframe-container iframe {
    /* Removemos position:absolute para o iframe ocupar espaço real no fluxo */
    width: 100% !important;
    border: none !important;
    display: block; /* Remove espaços extras em baixo de iframes */
    
    /* IMPORTANTE: Removemos o height: 100% !important 
       para deixar o JavaScript do Chess.com controlar a altura */
}

/* === ESTILO DO DUELO (FOTOS) === */

.versus-header {
    display: flex;
    justify-content: center; /* Centraliza tudo */
    align-items: center;     /* Alinha verticalmente */
    background-color: var(--bg-secondary);
    padding: 15px 10px;
    gap: 15px; /* Espaço entre as fotos e o VS */
    border-bottom: 1px solid var(--border-color);
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Deixa a foto redonda */
    object-fit: cover;
    border: 2px solid var(--accent-color); /* Borda na cor do tema */
    box-shadow: 0 0 10px rgba(255, 126, 95, 0.3); /* Brilho leve */
}

body.light-mode .match-header,
body.light-mode .versus-header {
    background-color: #f0f0f0; /* Um cinza leve para separar do card branco */
}

.player-name {
    font-size: 0.9rem;
    color: var(--text-primary); 
    font-weight: 700;
    margin-top: 5px;
}

.vs-badge {
    font-weight: 800;
    font-style: italic;
    color: #666; /* Cor cinza para não brigar com o destaque */
    font-size: 1.2rem;
}

/* === BADGE DO TÍTULO (Estilo Chess.com) === */
.title-badge {
    background-color: #b23330; /* O vermelho escuro oficial do título de IM */
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800; /* Bem negrito */
    padding: 2px 5px;
    border-radius: 3px; /* Cantos levemente arredondados */
    margin-right: 4px; /* Espaço entre o IM e o nome */
    margin-top: 5px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Ajuste para o container do nome ficar alinhado */
.player-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

/* === SEÇÃO DE INTRODUÇÃO === */

/* === SEÇÃO DE INTRODUÇÃO (Ajustada) === */
.intro-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto; 
    
    /* MUDANÇA AQUI: Controle separado de cima e baixo */
    padding-top: 40px;    /* Espaço bom no topo para separar do menu */
    padding-bottom: 10px; /* Espaço pequeno em baixo para aproximar dos cards */
}

.intro-section h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px; /* Reduzi um pouco aqui também */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 0; /* Garante que o texto não empurre nada para baixo */
}

.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Garante que fique EM CIMA do iframe */
    cursor: pointer; /* Mostra a mãozinha no PC */
    
    /* Centralizar o texto de aviso */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Fundo levemente escurecido para indicar que precisa clicar (opcional) */
    /* Se quiser totalmente transparente, mude para: transparent */
    background-color: rgba(0, 0, 0, 0.05); 
    transition: background-color 0.3s ease;
}

/* O texto "Toque para interagir" */
.iframe-overlay span {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    pointer-events: none; /* O clique passa pelo texto e vai para a div */
    transition: opacity 0.3s ease;
}

/* No PC, quando passar o mouse, a capa fica mais visível para indicar interação */
.iframe-overlay:hover {
    background-color: rgba(0, 0, 0, 0.1);
}


/* ==========================================================================
   ÁREA DE RESPONSIVIDADE (MEDIA QUERIES ORGANIZADAS)
   Substitua todas as media queries soltas no final do arquivo por isto.
   ========================================================================== */

/* === 1. TABLETS E MONITORES PEQUENOS (Até 992px) === */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 0 auto;
        gap: 40px;
    }
}

/* === 2. GERAL MOBILE E MENU HAMBÚRGUER (Até 900px) === */
/* Aqui fica a estrutura principal da navegação e da Hero */
/* === 2. GERAL MOBILE (Até 900px) - VERSÃO SIMPLIFICADA === */
@media (max-width: 900px) {
    
    /* 1. Ajuste do Header (Mantém o que já tínhamos) */
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .nav-menu {
        position: static;
        width: 100%;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
        gap: 10px;
    }

    .nav-menu a {
        font-size: 0.9rem;
        padding: 5px 8px;
        display: inline-block !important;
    }

    /* Esconde elementos desnecessários */
    .mobile-menu-icon, .close-menu-icon, .menu-overlay {
        display: none !important;
    }

    /* === 2. A SOLUÇÃO DA HERO SECTION === */
    .hero {
        padding-bottom: 0; 
        padding-top: 100px;
        height: auto;
        min-height: auto;
        align-items: center;
        justify-content: center;
        background-size: cover;
        background-position: center right;
    }
    
    .hero-content {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding-bottom: 30px;
        height: auto;
        width: 100%;
    }
    
    .hero-text {
        flex-basis: auto;
        padding-right: 0;
        padding-left: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 0;
        z-index: 2;
        order: 1;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-text .cta-button {
        display: inline-flex;
        margin: 0 auto;
    }
    
    .hero-image-container {
        flex-basis: auto;
        max-width: 100%;
        width: 100%;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        order: 2;
        margin-top: -30px;
    }
    
    .hero-image-container img {
        width: 100%;
        max-width: 350px;
        height: auto;
        display: block;
        object-fit: contain;
    }
}
/* === 3. CELULARES PADRÃO (Até 768px) === */
/* Ajustes de tamanho de fonte, grids e cartões */
@media (max-width: 768px) {
    
    section h2 { font-size: 2.2rem; }
    .section-subtitle { font-size: 1rem; padding: 0 20px; }

    /* Cards Premium */
    .premium-card { padding: 2rem; width: 95%; }
    .price-tag .amount { font-size: 3.5rem; }
    .btn-primary-glow { font-size: 1rem; }

    /* Grid de Vídeos e Combos */
    .video-grid { gap: 50px; }
    .video-info h3 { font-size: 1.4rem; }
    .combo-card { padding: 25px; }
    .combo-header h3 { font-size: 24px; }

    /* Partidas e Feedback */
    .matches-grid, .course-grid { grid-template-columns: 1fr; gap: 30px; padding: 0 15px; }
    .feedback-grid { columns: 2 180px; column-gap: 15px; }
        
    /* ATENÇÃO: Removemos os ajustes antigos do Header aqui para não quebrar o menu hambúrguer */
}

/* === 4. CELULARES PEQUENOS (Até 480px) === */
@media (max-width: 480px) {
    .feedback-grid { columns: 1 auto; }
    
    .logo img { height: 40px; } /* Logo menor */
    
    /* Ajustes finos do layout */
    header .container { padding: 0 10px; }
}

/* === 5. CELULARES "BAIXINHOS" (Ajuste de Altura) === */
/* Para telas como iPhone 6/7/8 ou SE */
@media (max-width: 900px) and (max-height: 700px) {
    .hero {
        padding-top: 90px;
        justify-content: flex-start; /* Alinha ao topo para caber */
    }
    .hero h1 { font-size: 1.8rem; }
    .hero-image-container img { width: 65%; max-width: 250px; }
}