@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* --- Reset e Fontes --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* --- Body (Fundo e Layout Global) --- */
body {
    /* Gradiente de Fundo */
    background: linear-gradient(90deg, #1E3A8A 0%, #3B82F6 50%, #FFDE21 100%);
    
    /* Layout */
    min-height: 100vh; /* Permite que o conteúdo cresça e preenche a altura mínima */
    display: block; /* Garante o fluxo padrão de cima para baixo */
    color: #fff;
    overflow-x: hidden; /* Evita rolagem lateral indesejada */
}

/* --- Header (Barra de Navegação Fixa) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #142850;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
    z-index: 1000;
}

header h1 {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

/* --- Navegação e Links --- */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

/* Efeito Sublinhado Amarelo (Geral para Nav) */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #FFDE21;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Estilo do Título (h1) como link */
h1 a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

h1 a:hover {
    color: #FFDE21;
}

/* ------------------------------------------------------------- */
/* --- SEÇÃO MULTIMÍDIA E VÍDEOS (AJUSTE DE TAMANHO) --- */
/* ------------------------------------------------------------- */

/* Container Principal de Conteúdo */
.multimedia-content {
    /* Adiciona padding para evitar que o conteúdo fique sob o header fixo */
    padding: 100px 5% 50px 5%; 
    width: 100%;
    max-width: 1200px; /* Limite de largura para o conteúdo central */
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.channel-integration {
    text-align: center;
    margin-bottom: 50px;
}

.channel-integration p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    opacity: 0.9;
    text-align: left; /* Garante que o texto dentro seja justificado ou alinhado à esquerda */
    max-width: 800px; /* Limita a largura do parágrafo para melhor leitura */
    margin: 15px auto;
}

/* --- REGRAS CRUCIAIS PARA O TAMANHO E CENTRALIZAÇÃO DOS VÍDEOS (IFRAME) --- */

/* Regras para todos os contêineres de vídeo, garantindo o mesmo tamanho e centralização */
.player-container, .video-card {
    max-width: 560px; /* Largura máxima idêntica para todos os vídeos */
    margin: 20px auto; /* Centraliza o vídeo na página e adiciona margem */
    text-align: center;
}

/* Cria um contêiner responsivo com proporção 16:9 */
.video-box {
    position: relative;
    width: 100%; /* Ocupa 100% da largura do pai (máximo de 560px) */
    padding-bottom: 56.25%; /* Altura = 56.25% da largura (para proporção 16:9) */
    height: 0;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4); /* Sombra para destaque */
    border-radius: 5px;
}

/* O Iframe (o vídeo do YouTube) preenche o contêiner responsivo */
.video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Atenção: Ao usar estas regras, os atributos width e height do <iframe> no HTML devem ser removidos! */

/* --- Bolhas de Fundo --- */
.bg-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-bubbles li {
    position: absolute;
    list-style: none;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    bottom: -150px;
    border-radius: 50%;
    animation: bubble 25s infinite;
}

/* Configurações específicas das bolhas */
.bg-bubbles li:nth-child(1) { left: 10%; width: 40px; height: 40px; animation-delay: 0s; }
.bg-bubbles li:nth-child(2) { left: 20%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 17s; }
.bg-bubbles li:nth-child(3) { left: 25%; width: 10px; height: 10px; animation-delay: 4s; }
.bg-bubbles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-duration: 22s; }
.bg-bubbles li:nth-child(5) { left: 70%; width: 20px; height: 20px; animation-delay: 3s; }
.bg-bubbles li:nth-child(6) { left: 80%; width: 30px; height: 30px; animation-delay: 7s; }
.bg-bubbles li:nth-child(7) { left: 32%; width: 50px; height: 50px; animation-delay: 15s; animation-duration: 45s; }
.bg-bubbles li:nth-child(8) { left: 55%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.bg-bubbles li:nth-child(9) { left: 25%; width: 25px; height: 25px; animation-delay: 0s; animation-duration: 40s; }
.bg-bubbles li:nth-child(10) { left: 90%; width: 150px; height: 150px; animation-delay: 11s; }

@keyframes bubble {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-1000px) scale(1.5); opacity: 0; }
}

/* ------------------------------------------------------------- */
/* --- ESTILOS DE NAVEGAÇÃO SECUNDÁRIA (Dropdowns) --- */
/* ------------------------------------------------------------- */

/* Estilo para o botão de destaque na nav */
.nav-highlight-btn {
    background-color: #FFDE21; 
    color: black !important; 
    padding: 8px 15px; 
    border-radius: 20px;
    font-weight: bold; 
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-highlight-btn:hover {
    background-color: #ffd000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); 
    transform: translateY(-1px);
}

/* Configuração do Dropdown */
.dropdown-css {
    position: relative;
}

.dropdown-label {
    /* Garante que o label do dropdown se comporte como um link da nav */
    display: inline-block; 
    cursor: pointer;
    /* Adiciona sublinhado no hover, herdando o estilo de nav a::after */
}

/* Configuração e Lógica do Submenu (HOVER) */
.dropdown-content-css {
    background: #142850; 
    display: none; 
    position: absolute;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5); 
    z-index: 10;
    left: 0; 
    top: 100%;
}

.dropdown-css:hover .dropdown-content-css {
    display: block; /* Mostra no hover */
}

.dropdown-content-css a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content-css a:hover {
    background-color: rgba(255, 255, 255, 0.1); 
}

/* ------------------------------------------------------------- */
/* --- Estilo para o Botão do Canal e Botão Flutuante --- */
/* ------------------------------------------------------------- */

.channel-link-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
}

.channel-button {
    display: inline-block;
    background-color: #FFDE21; 
    color: #1E3A8A; 
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1.1rem;
}

.channel-button:hover {
    background-color: #ffd000;
    transform: translateY(-2px);
}


/* ESTILO E ANIMAÇÃO DO BOTÃO FLUTUANTE DE INSCRIÇÃO */
.floating-subscribe-btn {
    position: fixed;
    right: 20px; 
    bottom: 20px; 
    background-color: #FF0000; 
    color: white;
    padding: 12px 20px;
    border-radius: 30px; 
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 999; 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px; 
    animation: pulse 2s infinite; 
}

.floating-subscribe-btn:hover {
    background-color: #CC0000; 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    transform: scale(1.05); 
    animation: none; 
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* --- RESPONSIVIDADE (Ajustes para Mobile) --- */
@media only screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
    
    .nav-highlight-btn {
        margin-top: 5px;
    }
}