/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f9fa;
}

/* Layout base: sticky footer */
html {
    height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body a {
    text-decoration: none;
}

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

/* Consistent Class Naming */
.container-pagina {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-principal {
    /* Inherits from .main-nav */
}


.link-externo {
    color: #2b58de;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-externo:hover {
    color: #1d44b8;
    text-decoration: underline;
}

.link-externo:visited {
    color: #577ae4;
}

/* Header Styles */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1d44b8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap; /* Garante que os itens do header (busca, menu) fiquem em uma única linha */
}

.logo h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 20px;
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    background: #f8f9fa;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s;
    position: relative; /* Added for positioning the button */
}

.search-form:focus-within {
    border-color: #3498db;
}

.search-form input {
    flex: 1;
    padding: 12px 60px 12px 20px; /* Adjusted padding-right to make space for the button */
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.search-form input::placeholder {
    color: #6c757d;
}

.search-form button {
    position: absolute; /* Position the button absolutely */
    right: 0; /* Align to the right */
    top: 0; /* Align to the top */
    height: 100%; /* Make button take full height of the form */
    padding: 0 15px; /* Adjusted padding */
    border: none;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 0 25px 25px 0; /* Apply border-radius only to the right side */
}

.search-form button:hover {
    background: #2980b9;
}

.search-icon {
    font-size: 1rem;
}

.main-nav {
    flex-shrink: 1; /* Permite que o container da navegação encolha */
    min-width: 0; /* Necessário para que o flex-shrink funcione corretamente */
}

.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 1.2em; /* Espaçamento proporcional ao tamanho da fonte */
    align-items: center; /* Alinha verticalmente os itens do menu */
}

.main-nav ul {
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding: 0.7em 1.1em; /* Padding proporcional à fonte */
    border-radius: 5px;
    transition: all 0.3s ease;
    /* Fonte dinâmica que se ajusta à largura da tela, com limites de tamanho. */
    font-size: clamp(0.8rem, 0.7rem + 0.25vw, 1rem);
}

.main-nav a:hover {
    background-color: #2b58de;
    color: #ffffff;
}

.main-nav a:visited {
    color: #ffffff;
}

.main-nav a:visited:hover {
    background-color: #2b58de;
    color: #ffffff;
}

/* Login Button */
.login-button {
    background: #3498db !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.login-button:hover {
    background: #2980b9 !important;
    transform: translateY(-1px);
}

/* Login Dialog */
.login-dialog {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.login-dialog-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-dialog {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-dialog:hover {
    color: #333;
}

.login-dialog h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.form-actions {
    margin: 25px 0;
}

.login-submit {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.login-submit:hover {
    background: #2980b9;
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.form-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.form-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.dropdown {
    position: relative;
}

.dropdown-menu,
.submenu-canais {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: fit-content;
    min-width: 200px;
    max-width: 280px;
    display: none;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    z-index: 1001;
    white-space: nowrap;
    overflow: visible;
    /* Ensure vertical stacking - no flexbox or grid */
}

/* Ocultar newsletter mobile em telas maiores */
.newsletter-mobile {
    display: none;
}

/* Ocultar botão de fechar submenu em telas maiores */
.close-submenu-btn {
    display: none;
}

    /* Hover APENAS para desktop */
    @media (min-width: 769px) {
        .dropdown:hover .dropdown-menu,
        .dropdown:hover .submenu-canais {
            display: block;
        }
        
        /* Remove a classe hidden no hover para permitir reabertura */
        .dropdown:hover .submenu-canais.submenu-hidden {
            display: block;
        }
    }

/* Classe para esconder submenu após fechar com botão */
.submenu-hidden {
    display: none !important;
}

.dropdown-menu li,
.submenu-canais li {
    padding: 0;
    display: block;
    width: 100%;
}

.dropdown-menu a,
.submenu-canais a {
    display: block;
    padding: 12px 20px;
    color: #2b58de;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    /* Fonte do submenu também é dinâmica */
    font-size: clamp(0.75rem, 0.8vw + 0.2rem, 1rem);
}

.dropdown-menu a:hover,
.submenu-canais a:hover {
    background: #2b58de;
    color: #ffffff;
}

.dropdown-menu a:visited,
.submenu-canais a:visited {
    color: #577ae4;
}

.dropdown-menu a:visited:hover,
.submenu-canais a:visited:hover {
    background: #2b58de;
    color: #ffffff;
}

/* Main Content */
.main-content {
    margin-top: 90px;
    padding: 20px 0;
}

main a,
main a:visited {
    text-decoration: none;
}

/* Hero Banner */
.hero-banner {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Estilos para o carrossel de vídeos em destaque */
.featured-video-carousel {
    width: 100%;
    margin-bottom: 20px;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slides {
    width: 100%;
    position: relative;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    width: 100%;
    min-width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    position: relative;
}

/* Sistema de thumbnails de alta qualidade - REMOVIDO (duplicado em carousel-high-quality.css) */

.carousel-slide h2 {
    margin: 20px 0 10px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.carousel-slide p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Controles do carrossel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Melhorias para controles em diferentes dispositivos */
@media (max-width: 767px) {
    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (min-width: 1400px) {
    .carousel-control {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* Indicadores do carrossel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    z-index: 5;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease-in-out;
}

.indicator:hover::before {
    left: 100%;
}

.indicator.active {
    background: #3498db;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* Melhorias para indicadores em diferentes dispositivos */
@media (max-width: 767px) {
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .carousel-indicators {
        gap: 8px;
        margin-top: 12px;
    }
}

@media (min-width: 1400px) {
    .indicator {
        width: 14px;
        height: 14px;
    }
    
    .carousel-indicators {
        gap: 12px;
        margin-top: 20px;
    }
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Melhorias gerais do carrossel para diferentes dispositivos */
@media (max-width: 767px) {
    .featured-video-carousel {
        margin: 0 -15px;
    }
    
    .carousel-slide h2 {
        font-size: 1.3rem;
        margin: 15px 0 8px;
    }
    
    .carousel-slide p {
        font-size: 1rem;
        margin-bottom: 12px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .carousel-slide h2 {
        font-size: 1.4rem;
        margin: 18px 0 10px;
    }
    
    .carousel-slide p {
        font-size: 1.05rem;
        margin-bottom: 14px;
    }
}

@media (min-width: 1200px) {
    .carousel-slide h2 {
        font-size: 1.6rem;
        margin: 22px 0 12px;
    }
    
    .carousel-slide p {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }
}

.content-block {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.content-block:hover {
    transform: translateY(-2px);
}

.content-block img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.content-block h3 {
    padding: 15px 15px 5px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.content-block p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Content Layout */
.content-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-column {
    flex: 1;
    max-width: 72%;
}

.sidebar-direita {
    width: 28%;
    background: #f5f8ff;
    padding: 16px;
    border-left: 1px solid #d0d7e3;
    border-radius: 8px;
    box-sizing: border-box;
}

.sidebar-direita h3 {
    margin-top: 24px;
    font-size: 1.2rem;
    color: #214cce;
}

@media (max-width: 1024px) {
    .content-layout {
        flex-direction: column;
    }

    .sidebar-direita {
        width: 100%;
        border-left: none;
        margin-top: 32px;
    }
}

.canais-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.canal-section {
    position: relative;
    margin-bottom: 40px;
}

.canal-header {
    position: relative;
    margin-bottom: 15px;
}

.canal-header > a {
    position: relative;
    z-index: 2;
}

.canal-linha-topo {
    height: 3px;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 2px;
}

.canal-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.canal-linha-base {
    height: 1px;
    width: 100%;
    background-color: #e9ecef;
    margin-bottom: 10px;
}

.canal-keywords {
    position: absolute;
    right: 0;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 3;
}

/* Desktop: posicionar e estilizar como chip na cor do canal */
@media (min-width: 769px) {
  .canal-keywords {
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: var(--primary-color, #1d44b8);
    padding: 6px 12px;
    border-radius: 18px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    white-space: nowrap;
  }
}

.canal-block {
    background: #f5f8ff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Cores específicas para cada canal - REMOVIDO: Agora são aplicadas dinamicamente via canais-generated.css */
/* As cores personalizadas são configuradas no admin e aplicadas automaticamente */

@media (min-width: 769px) {
  .canal-content {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 24px;
    margin-top: 10px;
    align-items: start;
    position: relative;
  }
  /* Quando não houver artigos, expandir o vídeo para toda a largura */
  .canal-content.no-articles {
    grid-template-columns: 1fr;
  }
  
  /* Linha vertical separadora entre vídeo e artigos */
  .canal-content::after {
    content: "";
    position: absolute;
    left: calc(65% + 12px); /* Posiciona entre as colunas (65% + metade do gap) */
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #dbeafe 0%, #a5b4fc 50%, #dbeafe 100%);
    border-radius: 2px;
    opacity: 0.7;
  }
  
  /* Ocultar linha vertical quando não há artigos */
  .canal-content.no-articles::after {
    display: none;
  }
}

.canal-video-column {
    display: flex;
    flex-direction: column;
}

.canal-featured-video {
    width: 100%;
    margin-bottom: 15px;
}

.canal-featured-video img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.video-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
}

.video-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.video-thumb {
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.video-thumb:hover {
    transform: scale(1.05);
}

.canal-blog-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cabeçalho da coluna de blog - apenas desktop */
@media (max-width: 768px) {
    .blog-column-header {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .blog-column-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 1px solid #dee2e6;
        border-radius: 8px;
        margin-bottom: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }
    
    .blog-column-header:hover {
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }
    
    /* Estilos para o header clicável */
    .blog-column-header-clickable {
        text-decoration: none;
        color: inherit;
        cursor: pointer;
    }
    
    .blog-column-header-clickable:hover {
        text-decoration: none;
        color: inherit;
        background: linear-gradient(135deg, #0d9488 0%, #086f66 100%);
        color: white;
        box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
        transform: translateY(-2px);
    }
    
    .blog-column-header-clickable:hover .blog-header-title,
    .blog-column-header-clickable:hover .blog-header-subtitle {
        color: white;
    }
    
    .blog-column-header-clickable:hover .blog-header-icon svg {
        fill: white;
    }
    
    .blog-header-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        border-radius: 8px;
        color: white;
        flex-shrink: 0;
        box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
    }
    
    .blog-header-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .blog-header-content {
        flex: 1;
        min-width: 0;
    }
    
    .blog-header-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: #495057;
        margin: 0 0 2px 0;
        line-height: 1.2;
    }
    
    .blog-header-subtitle {
        font-size: 0.8rem;
        color: #6c757d;
        margin: 0;
        line-height: 1.2;
        font-weight: 500;
    }
}

.blog-entry {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
}

.blog-thumb {
    width: 100%;
}

.blog-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.blog-info h5 {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    color: #444;
}

.video-thumb img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
    transition: transform 0.2s;
}

.video-thumb img:hover {
    transform: scale(1.05);
}

.btn-canal {
    display: inline-block;
    background: #214cce;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-canal:hover {
    background: #1d44b8;
}

/* Hero Banner Layout */
.hero-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.featured-video {
    flex: 0 0 65%;
}

.header-sidebar {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Newsletter Header */
.newsletter-header {
    background: #f5f8ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e8f0;
}

.newsletter-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.newsletter-header p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9em;
}

.newsletter-form-header {
    display: flex;
    gap: 10px;
    position: relative;
}

.newsletter-input-container {
    flex: 1;
    position: relative;
}

.newsletter-form-header input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form-header input:focus {
    outline: none;
    border-color: #214cce;
    box-shadow: 0 0 0 2px rgba(33, 76, 206, 0.1);
}

.newsletter-form-header button {
    padding: 10px 15px;
    background: #214cce;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.newsletter-form-header button:hover {
    background: #1a3ba8;
}

/* Newsletter Channels Dropdown */
.newsletter-channels-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: calc(100% + 80px); /* Estende até a largura do botão Inscrever */
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    /* Removido max-height e overflow-y para mostrar todas as opções sem rolagem */
}

.newsletter-channels-dropdown.show {
    display: block;
}

.dropdown-arrow {
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.channels-container {
    padding: 20px;
}

.channels-container h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.channel-option {
    display: flex;
    align-items: center;
    gap: 8px; /* Gap menor para economizar espaço */
    padding: 8px 0; /* Padding menor */
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    min-width: 0; /* Permite que flex items encolham */
}

.channel-option:last-child {
    border-bottom: none;
}

.channel-option:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 0 -8px;
    padding: 10px 8px;
}

.channel-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #214cce;
    cursor: pointer;
}

.channel-option label {
    flex: 1;
    font-size: 0.85rem; /* Fonte ligeiramente menor para evitar quebra */
    color: #333;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    user-select: none;
    white-space: nowrap; /* Evita quebra de linha */
    overflow: hidden;
    text-overflow: ellipsis; /* Adiciona ... se texto for muito longo */
}

.channel-option label:hover {
    color: #214cce;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .newsletter-channels-dropdown {
        left: -10px;
        width: calc(100% + 20px); /* Ajusta a largura para dispositivos móveis */
        /* Removido max-height para mostrar todas as opções sem rolagem */
    }
    
    .dropdown-arrow {
        left: 30px;
    }
    
    .channels-container {
        padding: 15px;
        /* Removido max-height e overflow-y para mostrar todas as opções sem rolagem */
    }
    
    .channel-option {
        padding: 12px 0;
    }
    
    .channel-option label {
        font-size: 0.85rem;
    }
}

/* Social Networks */
.social-networks {
    background: #f5f8ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e8f0;
}

.social-networks h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-link {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
    transition: all 0.3s ease;
}

.social-link.facebook {
    background: #3b5998;
    color: white;
}

.social-link.youtube {
    background: #ff0000;
    color: white;
}

.social-link.instagram {
    background: #e4405f;
    color: white;
}

.social-link.twitter {
    background: #1da1f2;
    color: white;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Contact Info */
.contact-info {
    background: #f5f8ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e8f0;
}

.contact-info h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.contact-info p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

/* Right Sidebar Layout */
.sidebar-direita {
    flex: 0 0 30%;
    width: 30%;
    background: transparent;
    padding: 0;
    margin-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-bloco {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e1e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar-header {
    position: relative;
    margin-bottom: 20px;
}

.sidebar-linha-topo {
    height: 4px;
    width: 100%;
    background-color: #214cce;
    margin-bottom: 10px;
    border-radius: 2px;
}

.sidebar-titulo {
    color: #214cce;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    padding: 0;
    background: transparent;
}

.sidebar-linha-base {
    height: 1px;
    width: 100%;
    background-color: #e1e8f0;
    margin-top: 10px;
}

.sidebar-conteudo {
    padding-top: 15px;
}

.ver-mais {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 8px 0;
    color: #214cce;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-top: 1px solid #e1e8f0;
    transition: color 0.3s ease;
}

.ver-mais:hover {
    color: #0056b3;
}

/* Variações de cores para cada bloco da sidebar */
.sidebar-videos .sidebar-linha-topo {
    background-color: #ff0000;
}

.sidebar-videos .sidebar-titulo {
    color: #ff0000;
}

.sidebar-pdfs .sidebar-linha-topo {
    background-color: #28a745;
}

.sidebar-pdfs .sidebar-titulo {
    color: #28a745;
}

.sidebar-publicidade .sidebar-linha-topo {
    background-color: #fd7e14;
}

.sidebar-publicidade .sidebar-titulo {
    color: #fd7e14;
}

.sidebar-avisos .sidebar-linha-topo {
    background-color: #17a2b8;
}

.sidebar-avisos .sidebar-titulo {
    color: #17a2b8;
}

.sidebar-artigos .sidebar-linha-topo {
    background-color: #9c27b0;
}

.sidebar-artigos .sidebar-titulo {
    color: #9c27b0;
}

/* Newsletter Box */
.newsletter-box p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Publicidade no Header */
.header-publicidade {
    background: #f5f8ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e8f0;
}

.header-publicidade-titulo {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.header-publicidade-conteudo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ad-banner-header {
    width: 100%;
    height: 100px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-style: italic;
    border-radius: 4px;
    border: 1px dashed #ccc;
}

.newsletter-form input[type="email"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input[type="email"]:focus {
    border-color: #2b58de;
    box-shadow: 0 0 0 2px rgba(43, 88, 222, 0.1);
}

.newsletter-form button {
    padding: 12px;
    background: #2b58de;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #1e3fa0;
}

/* Adsense Placeholder */
.adsense-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 0;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-placeholder .ad-content {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.adsense-placeholder .ad-content p {
    margin: 0;
    font-weight: 600;
    color: #495057;
}

.adsense-placeholder .ad-content span {
    font-size: 0.8em;
    color: #6c757d;
}

/* Blog Mini */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-mini .blog-item {
    padding: 15px 0;
    border-bottom: 1px solid #e1e8f0;
}

.blog-mini .blog-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-mini .blog-item h4 {
    margin: 0 0 8px 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.blog-mini .blog-item h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-mini .blog-item h4 a:hover {
    color: #3498db;
}

.blog-mini .blog-item p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 0.85em;
    line-height: 1.4;
}

.blog-mini .blog-date {
    font-size: 0.75em;
    color: #999;
    font-style: italic;
}

/* PDF Block */
.pdf-bloco {
    text-align: center;
}

.pdf-bloco .pdf-thumb {
    width: 80px;
    height: 100px;
    background: #e9ecef;
    border-radius: 6px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6c757d;
}

.pdf-bloco p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.pdf-bloco .download-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
}

.pdf-bloco .download-btn:hover {
    background: #218838;
}

/* Section Styles */
.bloco-nucleo {
    background: #fff;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    text-align: left !important;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: left !important;
    float: none !important;
    display: block !important;
}
.ver-mais {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.ver-mais:hover {
    color: #2980b9;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.featured-item h3 {
    margin: 20px 0 10px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.featured-item p {
    color: #666;
    line-height: 1.6;
}

.small-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.small-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s;
}

.small-item:hover {
    background: #e9ecef;
}

.small-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.small-item h4 {
    color: #2c3e50;
    font-size: 1rem;
}

/* Video Embeds */
.video-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-embed.small {
    padding-bottom: 40%;
    margin-bottom: 15px;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar > div {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
}

.social-link.youtube {
    background: #ff0000;
    color: white;
}

.social-link.instagram {
    background: #e4405f;
    color: white;
}

.social-link.tiktok {
    background: #000;
    color: white;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Estilos para os componentes da sidebar */

/* Vídeos em Destaque */
.sidebar-videos .video-embed.small {
    margin-bottom: 10px;
}

.sidebar-videos .video-item {
    margin-bottom: 20px;
}

.sidebar-videos .video-item h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.sidebar-videos .video-data {
    font-size: 0.8rem;
    color: #777;
}

/* PDFs em Destaque */
.pdf-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.pdf-item:hover {
    background: #e9ecef;
}

.pdf-item img {
    width: 50px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.pdf-info {
    flex: 1;
}

.pdf-item h4 {
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.pdf-link {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pdf-link:hover {
    color: inherit;
    text-decoration: none;
}

.pdf-item .pdf-link:hover h4 {
    color: #1d44b8;
}

.download-btn {
    background: #28a745;
    color: #ffffff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Publicidade */
.sidebar-publicidade .ad-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Artigos em Destaque */
.artigo-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    align-items: flex-start;
}

.artigo-item:last-child {
    border-bottom: none;
}

.artigo-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
}

.artigo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artigo-thumb:hover img {
    transform: scale(1.05);
}

.artigo-info {
    flex: 1;
    min-width: 0;
}

.artigo-item h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.3;
}

.artigo-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.artigo-item h4 a:hover {
    color: #9c27b0;
}

.artigo-data {
    font-size: 0.75rem;
    color: #777;
}

/* Avisos */
.aviso-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.aviso-item:last-child {
    margin-bottom: 0;
}

.aviso-icone {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aviso-texto {
    flex: 1;
}

.aviso-texto h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.aviso-texto p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Video Embed Responsive */
.video-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.embed-wrapper {
    width: 100%;
    position: relative;
}

.embed-wrapper iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

/* Sidebar Styling */
.sidebar-publicidade {
    background: #f5f8ff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.sidebar-publicidade h3 {
    color: #1d44b8;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #e3edff;
    padding-bottom: 8px;
}

/* Advertisement Blocks */
.advertisement-block {
    background: #f5f8ff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.advertisement-block h3 {
    color: #1d44b8;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #e3edff;
    padding-bottom: 8px;
}

/* Tool Cards */
.tool-card, .card-ferramenta {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #2b58de;
    cursor: pointer;
}

.tool-card:hover, .card-ferramenta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tool-card h3, .card-ferramenta h3 {
    color: #1d44b8;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.tool-card p, .card-ferramenta p {
    color: #4d4d4d;
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.tool-card .tool-link, .card-ferramenta .tool-link {
    display: inline-block;
    background: #214cce;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.tool-card .tool-link:hover, .card-ferramenta .tool-link:hover {
    background: #1d44b8;
}

/* Tools Grid Layout */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Tool Card Color Variations */
.tool-card.volume { background: linear-gradient(135deg, #E3EDFF 0%, #F0F6FF 100%); }
.tool-card.trocas { background: linear-gradient(135deg, #DDF3F9 0%, #EBF9FC 100%); }
.tool-card.compatibilidade { background: linear-gradient(135deg, #F7E5FF 0%, #FBF2FF 100%); }
.tool-card.diagnostico { background: linear-gradient(135deg, #E5F7E5 0%, #F2FBF2 100%); }
.tool-card.biocenose { background: linear-gradient(135deg, #FFF5E5 0%, #FFFBF2 100%); }
.tool-card.consumo { background: linear-gradient(135deg, #FFE5E5 0%, #FFF2F2 100%); }
.tool-card.diario { background: linear-gradient(135deg, #F0E5FF 0%, #F8F2FF 100%); }

/* Channel Page Content Blocks */
.bloco-nucleo {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #2b58de;
}

.bloco-nucleo h2 {
    color: #1d44b8;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.bloco-nucleo h3 {
    color: #1d44b8;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.bloco-nucleo p {
    color: #4d4d4d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.bloco-nucleo .ver-mais {
    color: #2b58de;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bloco-nucleo .ver-mais:hover {
    color: #1d44b8;
    text-decoration: underline;
}

/* PDF Destaque Section */
.pdf-destaque {
    background: #f5f8ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e3edff;
}

.pdf-destaque h3 {
    color: #1d44b8;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.pdf-destaque .pdf-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.pdf-destaque .pdf-thumbnail {
    width: 60px;
    height: 80px;
    background: #e3edff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1d44b8;
}

.pdf-destaque .pdf-info h4 {
    color: #1d44b8;
    font-size: 1rem;
    margin-bottom: 5px;
}

.pdf-destaque .pdf-info p {
    color: #4d4d4d;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Announcement Block */
.ad-placeholder {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
}

.ad-banner {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-square {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.main-footer {
    background: #1d44b8;
    color: #ffffff;
    padding: 40px 0;
    /* Empurra o footer para a parte inferior quando o conteúdo é curto */
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background-color: #2b58de;
    color: #ffffff;
}

.footer-links a:visited {
    color: #ffffff;
}

.footer-links a:visited:hover {
    background-color: #2b58de;
    color: #ffffff;
}

.footer-text p {
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .search-container {
        order: 3;
        width: 100%;
    }

    .main-nav {
        order: 2;
    }

    .nav-menu {
        flex-direction: column;
        gap: 5px;
    }

    .login-dialog {
        padding: 10px;
    }

    .login-content {
        padding: 20px;
        margin: 20px 0;
    }

    .advertisement-block {
        padding: 15px;
        margin-bottom: 15px;
    }

    /* Canais Content Tablet */
    .canais-container {
        gap: 25px;
    }
    
    .canal-block {
        padding: 20px;
    }
    
    .canal-keywords {
        top: 20px;
        right: 20px;
        font-size: 0.8rem;
    }
    
    .canal-content {
        grid-template-columns: 60% 40%;
        gap: 20px;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    .video-description {
        font-size: 0.9rem;
    }
    
    .blog-entry {
        grid-template-columns: 60px 1fr;
        gap: 10px;
    }
    
    .blog-thumb img {
        height: 60px;
    }
    
    .blog-info h5 {
        font-size: 0.9rem;
    }

    .main-footer {
        padding: 20px 0;
        margin-top: 2rem; /* Adiciona espaço antes do footer no mobile */
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 0 1rem; /* Adiciona padding lateral */
    }

    .footer-links {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .footer-links a {
        padding: 6px 10px;
        font-size: 0.85rem;
        border-radius: 4px;
        min-width: fit-content;
    }

    .footer-text {
        text-align: center;
        order: -1; /* Move o texto para cima no mobile */
    }

    .footer-text p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Footer para telas muito pequenas */
@media (max-width: 480px) {
    .main-footer {
        padding: 15px 0;
        margin-top: 1.5rem;
    }

    .footer-content {
        gap: 15px;
        padding: 0 0.75rem;
    }

    .footer-links {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        padding: 8px 12px;
        font-size: 0.8rem;
        width: 100%;
        max-width: 200px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-links a:hover {
        background-color: #2b58de;
        border-color: #2b58de;
    }

    .footer-text p {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    /* Hero Banner Mobile */
    .hero-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .featured-video {
        flex: 1;
    }
    
    .header-sidebar {
        flex: 1;
        order: 2;
    }
    
    .newsletter-form-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }

    /* Content Layout */
    .content-layout {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .main-column {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .sidebar-direita {
        width: 100%;
        max-width: none;
        border-left: none;
        border-top: 1px solid #d0d7e3;
        margin-top: 20px;
    }

    .bloco-sidebar {
        margin-bottom: 20px;
    }

    .adsense-placeholder {
        min-height: 200px;
    }

    .adsense-placeholder .ad-content {
        padding: 30px 15px;
    }

    .newsletter-form {
        gap: 10px;
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        padding: 10px;
    }

    /* Canais Cards Mobile */
    .canais-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .canal-card {
        padding: 15px;
        grid-template-columns: 1fr;
        grid-gap: 10px;
    }
    
    .canal-banner {
        grid-column: 1;
        grid-row: 1;
    }

    .canal-card h3 {
    font-size: 1.2rem;
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    margin-bottom: 8px;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.canal-card p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-content a {
    text-decoration: none !important;
}

.canal-section .canal-header a,
.canal-section .canal-header a:link,
.canal-section .canal-header a:visited,
.canal-section .canal-header a:active {
    text-decoration: none !important; /* Ensure no text decoration by default for all states */
    color: inherit; /* Inherit color from parent to maintain existing color scheme */
}

.canal-section .canal-header a h3.canal-title {
    text-decoration: none !important; /* Ensure no default underline on the h3 within the link */
}

.canal-section .canal-header a:hover h3.canal-title {
    text-decoration: underline !important; /* Apply underline only to the h3 within the link on hover */
    opacity: 0.8;
}

    .canal-banner img {
        height: 100px;
    }

    .canal-videos {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 6px;
        grid-column: 1;
        grid-row: 3;
    }

    .video-thumb img {
        height: 45px;
    }

    /* Content Grid Mobile */
    .content-grid {
        gap: 20px;
    }

    .small-items {
        gap: 10px;
    }

    .small-item {
        padding: 12px;
    }

    .featured-item h3 {
        font-size: 1.1rem;
    }

    /* Tool Cards */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tool-card {
        padding: 15px;
    }

    /* Tool Interface */
    .parameters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .parametros-ideais {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Sidebar Elements */
    .sidebar-publicidade {
        margin-bottom: 15px;
    }

    .pdf-destaque {
        margin-bottom: 15px;
    }

    .canal-keywords {
        display: none !important;
    }

    .canal-block {
        display: none;
    }

    .header-content {
        flex-direction: column;
    }

    .hero-banner {
        display: none;
    }

    /* Separador visual entre descrição do vídeo e artigos recomendados */
    .canal-section .video-description {
        position: relative;
        margin-bottom: 2.2rem; /* espaço extra para o separador */
    }

    .canal-section .video-description::after {
        content: "";
        display: block;
        width: 60%;
        height: 4px;
        margin: 1.1rem auto 0 auto;
        border-radius: 2px;
        background: linear-gradient(90deg, #dbeafe 0%, #a5b4fc 50%, #dbeafe 100%);
        opacity: 0.7;
    }
    
    /* Ocultar linha horizontal no mobile quando canal não tem artigos */
    .canal-section[data-has-articles="0"] .video-description::after {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .search-form input {
        padding: 8px;
        font-size: 14px;
    }
    
    .search-form button {
        padding: 8px;
        font-size: 14px;
    }
    
    .login-button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .login-dialog {
        padding: 5px;
    }
    
    .login-dialog-content {
        padding: 15px;
        margin: 10px 0;
    }
    
    .form-group input {
        padding: 8px;
    }
    
    .login-submit {
        padding: 10px;
    }
    
    .bloco-nucleo {
        padding: 20px;
    }
    
    .sidebar > div {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .main-nav ul {
        gap: 10px;
    }
    
    .main-nav a {
        font-size: 0.9rem;
    }
    
    .ad-banner, .ad-square {
        min-height: 150px;
    }
    
    .advertisement-block h3 {
        font-size: 1rem;
    }

    /* Canais Container Mobile */
    .canais-container {
        gap: 24px;
    }
    
    .canal-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .canal-block {
        padding: 16px;
    }
    
    .canal-keywords {
        position: static;
        display: block;
        margin-bottom: 15px;
        font-size: 0.8rem;
        text-align: right;
    }
    
    .canal-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .canal-video-column {
        margin-bottom: 10px;
    }
    
    .video-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .video-date {
        margin-bottom: 8px;
    }
    
    .video-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .blog-entry {
        grid-template-columns: 60px 1fr;
        gap: 10px;
    }
    
    .blog-thumb img {
        height: 60px;
    }
    
    .blog-info h5 {
        font-size: 0.85rem;
    }

    /* Tool Interface Mobile */
    .tool-interface {
        padding: 15px;
    }

    .input-group {
        margin-bottom: 15px;
    }

    .tool-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    .parametros-ideais {
        grid-template-columns: 1fr;
    }

    .param-item {
        padding: 8px;
        font-size: 14px;
    }

    /* Page Header Mobile */
    .page-title {
        font-size: 1.5rem;
    }

    .page-description {
        font-size: 14px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    /* Sidebar Mobile */
    .sidebar-publicidade h3 {
        font-size: 1rem;
    }

    .blog-highlight h4 {
        font-size: 14px;
    }

    .pdf-info h4 {
        font-size: 14px;
    }

    .download-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Logo Container - Alinhamento estrutural com blocos seguintes */
.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    /* Sem background, border ou padding para manter neutralidade visual */
}

/* Logo - Proporções fixas e naturais */
.casas-sereno-logo {
    max-width: 100%; /* Ocupa toda a largura disponível do container */
    width: auto; /* Mantém proporções naturais */
    height: auto;
    display: block;
    /* Mantém proporções originais da imagem */
}

/* Responsividade intermediária: Reduzir elementos do menu entre 769px e 1066px */
@media (min-width: 769px) and (max-width: 1066px) {
    .header-content {
        gap: 0px;
        flex-wrap: nowrap;
    }
    
    .search-container {
        max-width: 280px;
        margin: 0 0px;
    }
    
    .search-form input {
        padding: 8px 50px 8px 15px;
        font-size: 0.9rem;
    }
    
    .search-form button {
        padding: 0 12px;
    }
    
    .main-nav > ul {
        gap: 5px;
    }
    
    .main-nav a {
        padding: 5px 6px;
        font-size: 0.9rem;
    }
    
    .login-button {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
    }
}

/* Responsividade: Ocultar logo em dispositivos pequenos */
@media (max-width: 768px) {
    .logo-container {
        display: none; /* Oculta completamente em vez de redimensionar */
    }
}

/* Estilos do botão hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsividade: Ocultar Vídeos em Destaque a partir do Surface Duo e menores */
@media (max-width: 768px) {
    .sidebar-videos {
        display: none; /* Oculta completamente a seção de vídeos em destaque */
    }
    
    /* Ocultar Carrousel da HERO em dispositivos Surface Duo e menores */
    .featured-video-carousel {
        display: none; /* Oculta completamente o carrousel da seção HERO */
    }
    
    /* Ocultar banners da seção HERO */
    .hero-sidebar {
        display: none; /* Oculta completamente a sidebar com banners da HERO */
    }
    
    /* Ocultar publicidade da HERO em telas pequenas */
    .header-publicidade {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr; /* Faz o conteúdo ocupar toda a largura */
    }
    
    /* Header responsivo - altura aumentada para comportar elementos */
    .header-fixed {
        min-height: 80px;
        padding: 15px 0;
    }
    
    .header-content {
        justify-content: space-between;
        align-items: center;
        position: relative;
        min-height: 50px;
    }
    
    .hamburger-btn {
        display: flex;
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    /* Barra de busca - centralizada com espaço para logo */
    .search-container {
        flex: none;
        max-width: none;
        width: 50%;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    /* Logo do canal à direita */
    .channel-logo {
        display: block !important;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        height: 52px; /* 30% maior que 40px */
        width: auto;
        cursor: pointer;
        z-index: 1001;
        transition: opacity 0.3s ease;
    }
    
    .channel-logo:hover {
        opacity: 0.8;
    }
    
    /* Remover padding-top da barra de busca */
    .search-form {
        padding-top: 0;
    }
    
    .search-form input {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Menu principal - transformado em overlay */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: calc(100% - 120px); /* Limita largura para não sobrepor botão ferramentas */
        max-width: 300px; /* Largura máxima controlada */
        height: 100vh;
        background: #1d44b8;
        transition: left 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    
    /* CORREÇÃO: Ocultar menu antigo quando mobile drawer estiver presente */
    body.has-mobile-drawer .main-nav {
        display: none !important;
        visibility: hidden !important;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    /* Estilos para o botão hambúrguer */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }
    
    .hamburger-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #ffffff;
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }
    
    .hamburger-btn.active span:nth-child(1) {
        top: 18px;
        transform: rotate(135deg);
    }
    
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }
    
    .hamburger-btn.active span:nth-child(3) {
        top: 18px;
        transform: rotate(-135deg);
    }
    
    /* Overlay para fechar menu */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .main-nav > ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        align-items: stretch; /* Restaura o alinhamento para esticar, corrigindo a centralização */
    }
    
    .main-nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    /* Submenu dos canais no mobile */
    .submenu-canais {
        position: static;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 0;
    }
    
    .submenu-canais.open {
        max-height: 500px; /* Altura suficiente para todos os itens */
        opacity: 1;
    }
    
    .submenu-canais a {
        padding: 8px 20px !important;
        font-size: 1.1rem !important; /* Igualando ao tamanho da fonte do menu principal mobile */
        color: #ffffff !important;
    }
    
    /* Ocultar botão de fechar no mobile */
    .close-submenu-btn {
        display: none;
    }
    
    /* Ocultar newsletter da HERO em telas pequenas */
    .newsletter-header {
        display: none;
    }
    
    /* Newsletter no menu hamburger */
    .main-nav .newsletter-mobile {
        display: block;
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 20px;
        background: rgba(0,0,0,0.2);
        list-style: none;
    }
    
    .main-nav .newsletter-mobile:hover {
        background: rgba(0,0,0,0.2);
    }
    
    .main-nav .newsletter-mobile h3 {
        color: #ffffff;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .main-nav .newsletter-mobile p {
        color: rgba(255,255,255,0.8);
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .main-nav .newsletter-mobile .newsletter-form-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .main-nav .newsletter-mobile .newsletter-input-container {
        position: relative;
        width: 100%;
    }
    
    .main-nav .newsletter-mobile input[type="email"] {
        padding: 10px;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .main-nav .newsletter-mobile button {
        padding: 10px;
        background: #ffffff;
        color: #1d44b8;
        border: none;
        border-radius: 4px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 14px;
        margin-top: 10px;
    }
    
    .main-nav .newsletter-mobile button:hover {
        background: #f0f0f0;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .main-nav .newsletter-mobile button:active {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    /* Newsletter mobile dropdown styles removidas - usando classes unificadas */

    /* Newsletter Mobile - Reutilizando classes existentes */
    .newsletter-form-mobile .newsletter-channels-dropdown,
    .newsletter-channels-dropdown-mobile {
        position: absolute;
        bottom: 100%; /* Aparece completamente acima do campo */
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95); /* Fundo semi-transparente para contraste */
        border: 1px solid #1d44b8; /* Borda azul para melhor contraste */
        border-radius: 8px;
        box-shadow: 0 -6px 20px rgba(29, 68, 184, 0.25); /* Sombra azul para destacar */
        z-index: 9998; /* Z-index alto para cobrir itens do menu */
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px); /* Animação de baixo para cima */
        transition: all 0.3s ease;
        margin-bottom: 3px; /* Pequeno espaço entre dropdown e campo */
        min-width: 280px; /* Largura mínima para evitar quebra de linha */
        backdrop-filter: blur(3px); /* Efeito blur sutil */
    }

    .newsletter-form-mobile .newsletter-channels-dropdown.show,
    .newsletter-channels-dropdown-mobile.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .newsletter-form-mobile .dropdown-arrow,
    .newsletter-channels-dropdown-mobile .dropdown-arrow {
        position: absolute;
        bottom: -8px;
        left: 20px;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid #1d44b8; /* Cor azul para melhor contraste */
        z-index: 9999;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); /* Sombra na seta */
    }

    .newsletter-form-mobile .channels-container,
    .newsletter-channels-dropdown-mobile .channels-container {
        padding: 18px 15px;
        background: rgba(255, 255, 255, 0.98); /* Fundo interno mais opaco */
        border-radius: 6px;
        margin: 3px; /* Margem interna para separação visual */
    }

    .newsletter-form-mobile .channels-container h4,
    .newsletter-channels-dropdown-mobile .channels-container h4 {
        margin: 0 0 15px 0;
        font-size: 15px;
        color: #1d44b8; /* Cor azul para destaque */
        font-weight: 700;
        text-align: center;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(29, 68, 184, 0.3);
    }

    .newsletter-form-mobile .channel-option,
    .newsletter-channels-dropdown-mobile .channel-option {
        display: flex;
        align-items: center;
        margin-bottom: 6px;
        padding: 10px 8px;
        cursor: pointer;
        border-radius: 5px;
        transition: all 0.2s ease;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(29, 68, 184, 0.1);
    }

    .newsletter-form-mobile .channel-option:last-child,
    .newsletter-channels-dropdown-mobile .channel-option:last-child {
        margin-bottom: 0;
    }

    .newsletter-form-mobile .channel-option:hover,
    .newsletter-channels-dropdown-mobile .channel-option:hover {
        background: rgba(29, 68, 184, 0.1);
        border-color: rgba(29, 68, 184, 0.3);
        transform: translateX(2px);
    }

    .newsletter-form-mobile .channel-option input[type="checkbox"],
    .newsletter-channels-dropdown-mobile .channel-option input[type="checkbox"] {
        margin-right: 10px;
        width: 17px;
        height: 17px;
        transform: scale(1.1);
        accent-color: #1d44b8; /* Cor azul para o checkbox */
        cursor: pointer;
    }

    .newsletter-form-mobile .channel-option label,
    .newsletter-channels-dropdown-mobile .channel-option label {
        font-size: 14px;
        color: #1a1a1a; /* Cor mais escura para contraste */
        font-weight: 600; /* Peso mais forte para legibilidade */
        user-select: none;
        cursor: pointer;
        flex: 1;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); /* Sombra sutil para contraste */
    }
}

/* Ensure hover effect for channel titles on larger screens */
@media (min-width: 769px) {
    .canal-section .canal-header a:hover h3.canal-title {
        text-decoration: underline !important;
        opacity: 0.8;
    }
}

/* ===== ARTICLE PAGE STYLES ===== */

/* Article Main Container */
.article-main {
    margin-top: 80px; /* Espaço para o header fixo */
    min-height: calc(100vh - 80px);
}



/* Article Container */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Article Breadcrumb */
.article-breadcrumb {
    margin-bottom: 20px;
    color: #1d44b8;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-breadcrumb:hover {
    color: #f4d03f;
    text-decoration: underline;
}

.article-breadcrumb:visited {
    color: #1d44b8;
    text-decoration: none;
}

/* Article Title */
.article-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Article Subtitle */
.article-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: #666;
    line-height: 1.4;
    margin-bottom: 30px;
}

/* Article Image Container */
.article-image-container {
    margin: 30px 0;
    text-align: center;
}

.article-image-container img {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-image-label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.article-author {
    font-weight: 600;
    color: #1a1a1a;
}

.article-date {
    color: #666;
    font-size: 0.9rem;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 15px 0;
}

/* Drop Cap - Primeira letra capitalizada */
.drop-cap {
    float: left;
    font-size: 4rem;
    line-height: 3.5rem;
    font-weight: bold;
    color: #1d44b8;
    margin: 0 8px 0 0;
    font-family: Georgia, serif;
}

.article-first-paragraph {
    text-align: justify;
}

/* Related Articles Section */
.related-articles {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 60px;
}

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

.related-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-align: center;
}

.related-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar personalizada para a grade */
.related-grid::-webkit-scrollbar {
    width: 8px;
}

.related-grid::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.related-grid::-webkit-scrollbar-thumb {
    background: #1d44b8;
    border-radius: 4px;
}

.related-grid::-webkit-scrollbar-thumb:hover {
    background: #2b58de;
}

/* Related Article Card */
.related-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    min-height: 140px;
}

.related-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-image {
    width: 120px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-breadcrumb {
    color: #f4d03f;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 5px;
}

.related-article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.related-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
 @media (max-width: 768px) {
     .article-container {
         padding: 30px 15px;
     }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .drop-cap {
        font-size: 3rem;
        line-height: 2.5rem;
        margin-right: 5px;
    }
    
    .related-grid {
        gap: 15px;
        max-height: 500px;
    }
    
    .related-article {
        padding: 15px;
        gap: 15px;
        min-height: 120px;
    }
    
    .related-image {
        width: 100px;
        height: 80px;
    }
    
    .related-article-title {
        font-size: 1rem;
    }
    
    .related-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .article-image-container img {
        height: 250px;
    }
}

@media (max-width: 480px) {
     .article-title {
         font-size: 1.8rem;
     }
    
    .article-subtitle {
        font-size: 1rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .drop-cap {
        font-size: 2.5rem;
        line-height: 2rem;
    }
    
    .related-article {
        padding: 12px;
        gap: 12px;
        min-height: 100px;
    }
    
    .related-image {
        width: 80px;
        height: 60px;
    }
    
    .related-article-title {
        font-size: 0.95rem;
    }
    
    .related-excerpt {
        font-size: 0.8rem;
    }
    
    .article-image-container img {
        height: 200px;
    }
}

/* Mobile specific: Hide canal-keywords breadcrumbs */
@media (max-width: 768px) {
    .canal-keywords {
        display: none !important;
    }
}

/* Otimizações Mobile - Home Page Canais */
@media (max-width: 768px) {
  /* Oculta os elementos do header desktop */
  .canal-header .canal-linha-topo,
  .canal-header .canal-linha-base,
  .canal-header > a { /* O <a> que envolve o .canal-title */
    display: none !important;
  }

  /* Transforma o header na barra colorida */
  .canal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    /* ESTADO PADRÃO: Azul unificado com transição */
    background: linear-gradient(135deg, #2b58de, #1d44b8) !important;
    transition: background-color 0.5s ease-in-out;
  }
  
  /* Regra específica para garantir que o texto e os ícones sejam brancos no estado fechado,
     sobrescrevendo qualquer outra regra de link genérica. */
  .canal-section:not(.section-unlocked) .canal-header a {
      color: white !important;
  }
  
  /* Estilos para os elementos que serão criados via JS */
  .canal-header .mobile-titulo a {
    font-size: 1.1rem !important;
    font-weight: bold;
    text-decoration: none;
    margin: 0;
    display: inline-block;
    /* Adicionada transição para a cor do texto */
    transition: transform 0.2s ease, color 0.5s ease-in-out;
  }
  
  .canal-header .mobile-titulo a:active {
      transform: scale(0.95);
  }
  
  .canal-header .mobile-icons {
    display: flex;
    gap: 15px;
  }

  .canal-header .mobile-icons a {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.5s ease-in-out;
  }
  
  .canal-header .mobile-icons a:active {
    transform: scale(0.85);
  }

  /* --- Estilos do Cadeado --- */
  .canal-section {
    position: relative;
    padding-top: 10px; /* Abre espaço para o cadeado não sobrepor o conteúdo acima */
    margin-bottom: -30px; /* Reduz o espaçamento entre as seções */
    transition: margin-bottom 0.4s ease; /* Anima a mudança de margem */
  }

  .canal-section.section-unlocked {
      margin-bottom: 15px; /* Espaçamento quando a seção está aberta */
  }

  .canal-lock-icon {
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 10;
    background-color: #ff9800; /* Laranja */
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
  }

  .canal-lock-icon.unlocked {
    background-color: #4CAF50; /* Verde */
  }
  
  .canal-lock-icon:active {
      transform: scale(0.9);
  }

  /* Prepara o bloco de conteúdo para a animação JS */
  .canal-block {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      padding-top: 0;
      padding-bottom: 0;
      margin-bottom: 0;
      background-color: transparent;
      border-radius: 8px;
      transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out, padding 0.5s ease-in-out, margin 0.5s ease-in-out, background-color 0.5s ease-in-out;
  }

  /* --- ESTADO ABERTO: Quando a classe .section-unlocked é aplicada --- */

  /* 1. Anima o bloco de conteúdo para aparecer */
  .canal-section.section-unlocked .canal-block {
      max-height: 2000px; /* Altura ampla para comportar o conteúdo */
      opacity: 1;
      padding: 24px;
      margin-top: -10px; /* Sobe um pouco para conectar ao header */
      margin-bottom: 15px;
      position: relative;
  }

  /* 2. Muda a cor do header para a cor da marca */
  .canal-section.section-unlocked.canal-andarilho-sereno .canal-header { background: #43a047 !important; }
  .canal-section.section-unlocked.canal-aquarismo-sereno .canal-header { background: #1e88e5 !important; }
  .canal-section.section-unlocked.canal-comprao .canal-header { background: #ff9800 !important; }
  .canal-section.section-unlocked.canal-comprao-eletroinfo .canal-header { background: #2196f3 !important; }
  .canal-section.section-unlocked.canal-dump-existencial .canal-header { background: #607d8b !important; }
  .canal-section.section-unlocked.canal-papai-sereno-kids .canal-header { background: #4facfe !important; }
  .canal-section.section-unlocked.canal-papai-sereno-memories .canal-header { background: #e53935 !important; }
  .canal-section.section-unlocked.canal-papai-sereno-parentalidade .canal-header { background: #009688 !important; }
  .canal-section.section-unlocked.canal-rabiscos-legais .canal-header { background: #ff5722 !important; }
  .canal-section.section-unlocked.canal-terravision-relax .canal-header { background: #4caf50 !important; }

  /* 3. Muda a cor dos itens do header para preto */
  .canal-section.section-unlocked .canal-header .mobile-titulo a,
  .canal-section.section-unlocked .canal-header .mobile-icons a {
      color: black !important;
  }
  
  /* 4. Aplica o fundo suave no bloco de conteúdo */
  .canal-section.section-unlocked.canal-andarilho-sereno .canal-block { background-color: #f0f7f0; }
  .canal-section.section-unlocked.canal-aquarismo-sereno .canal-block { background-color: #e8f4ff; }
  .canal-section.section-unlocked.canal-comprao .canal-block { background-color: #fff8e1; }
  .canal-section.section-unlocked.canal-comprao-eletroinfo .canal-block { background-color: #e3f2fd; }
  .canal-section.section-unlocked.canal-dump-existencial .canal-block { background-color: #eceff1; }
  .canal-section.section-unlocked.canal-papai-sereno-kids .canal-block { background-color: #e1f5fe; }
  .canal-section.section-unlocked.canal-papai-sereno-memories .canal-block { background-color: #ffebee; }
  .canal-section.section-unlocked.canal-papai-sereno-parentalidade .canal-block { background-color: #e0f2f1; }
  .canal-section.section-unlocked.canal-rabiscos-legais .canal-block { background-color: #fbe9e7; }
  .canal-section.section-unlocked.canal-terravision-relax .canal-block { background-color: #e8f5e9; }
}

@media (max-width: 768px) {
  .hero-banner {
    display: none;
  }
  
  /* Ocultar avisos e publicidade no mobile */
  .sidebar-avisos,
  .sidebar-publicidade {
    display: none;
  }
  
  /* Aplicar flexbox no container principal */
  .content-layout {
    display: flex;
    flex-direction: column;
  }
  
  /* Reposicionar sidebar DEPOIS das seções dos canais */
  .sidebar-direita {
    width: 100%;
    margin-left: 0;
    margin-top: 30px;
    order: 2; /* Coloca DEPOIS do conteúdo principal */
  }
  
  .main-column {
    order: 1; /* Garante que vem antes da sidebar */
  }
  
  /* Transformar blocos da sidebar em carrossel horizontal */
  .sidebar-bloco:not(.sidebar-avisos):not(.sidebar-publicidade) {
    margin-bottom: 25px;
    padding: 15px 0;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
  }
  
    
  /* Estilos mobile para sidebar de artigos com thumbnails */
  .artigo-item {
    gap: 10px;
    padding: 10px 0;
  }
  
  .artigo-thumb {
    width: 60px;
    height: 40px;
  }
  
  .artigo-item h4 {
    font-size: 0.85rem;
  }
  
  .artigo-data {
    font-size: 0.7rem;
  }
  
  .sidebar-pdfs { background-color: #f0fff5; }

  .sidebar-bloco .sidebar-conteudo {
    overflow-y: hidden;
    padding: 0; /* O padding será gerenciado pelo wrapper */
    position: relative; /* Essencial para ancorar os gradientes */
  }
  
  .sidebar-bloco .sidebar-conteudo::-webkit-scrollbar {
    display: none;
  }
  
  /* Container do carrossel */
  .mobile-carousel-wrapper {
    display: flex;
    gap: 15px;
    padding: 15px; /* Adicionado padding interno para espaçamento */
    min-height: 200px;
    cursor: grab;
    user-select: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  
  .mobile-carousel-wrapper.active {
    cursor: grabbing;
  }
  
  /* Items do carrossel */
  .mobile-carousel-item {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
  }
  
  .mobile-carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }
  
  .mobile-carousel-item .item-thumbnail {
    width: 100%;
    height: 140px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e9ecef;
  }
  
  .mobile-carousel-item .item-thumbnail iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  .mobile-carousel-item .item-content {
    padding: 15px;
    flex: 1;
  }
  
  .mobile-carousel-item .item-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .mobile-carousel-item .item-content .item-meta {
    font-size: 0.75rem;
    color: #999;
  }
  
  /* Card "Ver Mais" */
  .mobile-carousel-item.ver-mais-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
  }
  
  .mobile-carousel-item.ver-mais-card:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  }
  
  .mobile-carousel-item.ver-mais-card .ver-mais {
    color: white;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    display: block;
  }
  
  .mobile-carousel-item.ver-mais-card:hover .ver-mais {
    text-decoration: underline;
  }

  /* --- NOVOS ESTILOS PARA AS SETAS DE NAVEGAÇÃO DO CARROSSEL --- */
  
  /* Torna o header um container para as setas */
  .sidebar-bloco .sidebar-header {
    position: relative;
    /* Garante que o título não fique embaixo das setas */
    padding: 0 45px;
    text-align: center; /* Centraliza o título */
  }

  /* Estilo e posicionamento das setas */
  .carousel-nav-arrow {
    position: absolute;
    /*
     * Mágica do alinhamento:
     * O elemento .sidebar-linha-topo está dentro do .sidebar-header.
     * O .sidebar-header tem um h3 com font-size: 1.1rem e padding-bottom.
     * Para centralizar na linha, posicionamos a seta no topo do header
     * e descemos metade da altura do título.
     * 1.1rem (tamanho da fonte) * 16 (px por rem) = 17.6px.
     * Metade disso é ~9px.
    */
    top: 9px;
    transform: translateY(-50%); /* Centraliza a seta na linha */
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2b58de, #1d44b8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 3;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid white;
    user-select: none;
    line-height: 0;
  }

  .carousel-nav-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .carousel-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
    background: linear-gradient(135deg, #1d44b8, #2b58de);
  }

  .carousel-nav-arrow.left {
    left: 5px;
  }

  .carousel-nav-arrow.right {
    right: 5px;
  }
}

/* === Efeitos de Animação e Cores nas Setas do Carrossel Mobile === */

/* Gradiente lateral para dar affordance de scroll (AGORA NO ELEMENTO PAI) */
.sidebar-bloco .sidebar-conteudo {
    --gradient-left-opacity: 0;
    --gradient-right-opacity: 1;
}

.sidebar-bloco .sidebar-conteudo::before,
.sidebar-bloco .sidebar-conteudo::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35px; /* Largura do gradiente */
    z-index: 2;
    pointer-events: none; /* Permite clicar através do gradiente */
    transition: opacity 0.2s ease;
}

.sidebar-bloco .sidebar-conteudo::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: var(--gradient-left-opacity, 0);
}

.sidebar-bloco .sidebar-conteudo::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: var(--gradient-right-opacity, 1);
}

/* Remove os gradientes do wrapper, pois foram movidos para o pai */
.mobile-carousel-wrapper::before,
.mobile-carousel-wrapper::after {
    content: none;
}

/* Cores de fundo específicas para os gradientes de cada seção */
.sidebar-videos .sidebar-conteudo::before {
    background: linear-gradient(to right, #fff5f5 0%, rgba(255, 245, 245, 0) 100%);
}
.sidebar-videos .sidebar-conteudo::after {
    background: linear-gradient(to left, #fff5f5 0%, rgba(255, 245, 245, 0) 100%);
}

.sidebar-artigos .sidebar-conteudo::before {
    background: linear-gradient(to right, #f5f0ff 0%, rgba(245, 240, 255, 0) 100%);
}
.sidebar-artigos .sidebar-conteudo::after {
    background: linear-gradient(to left, #f5f0ff 0%, rgba(245, 240, 255, 0) 100%);
}

.sidebar-pdfs .sidebar-conteudo::before {
    background: linear-gradient(to right, #f0fff5 0%, rgba(240, 255, 245, 0) 100%);
}
.sidebar-pdfs .sidebar-conteudo::after {
    background: linear-gradient(to left, #f0fff5 0%, rgba(240, 255, 245, 0) 100%);
}

/* Base das setas */
.carousel-nav-arrow {
    background: linear-gradient(145deg, #e0e0e0, #f8f8f8);
    background-size: 250% 250%;
    background-position: 50% 50%;
    transition: background-position 0.4s ease-out, transform 0.1s ease;
}

.carousel-nav-arrow:hover {
    background-position: 0% 0%;
}

/* Cores específicas por seção */
.sidebar-videos .carousel-nav-arrow {
    background-image: linear-gradient(145deg, #ff0000, #ff6666);
}

.sidebar-artigos .carousel-nav-arrow {
    background-image: linear-gradient(145deg, #9c27b0, #c56eda);
}

.sidebar-pdfs .carousel-nav-arrow {
    background-image: linear-gradient(145deg, #28a745, #5dd27a);
}

.busca-page .search-filters select {
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #d0d7e3 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    backdrop-filter: none !important;
    opacity: 1 !important;
}

.busca-page .search-filters {
    background: #fff;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    align-items: center;
}

.busca-page .search-filters select:focus {
    border-color: #3498db !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.12);
}

@media (max-width: 768px) {
    .quick-actions-card,
    .types-stats-card,
    .search-stats-card {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .search-filters-mobile {
        display: flex !important;
    }
    .search-filters-desktop {
        display: none !important;
    }
}
@media (min-width: 769px) {
    .search-filters-mobile {
        display: none !important;
    }
    .search-filters-desktop {
        display: flex !important;
    }
}

/* === Truncamento visual para descrição do vídeo no carrossel de destaque da home === */
.featured-video-carousel .carousel-slide p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em; /* 3 linhas x 1.6 line-height */
}
@media (max-width: 768px) {
    .featured-video-carousel .carousel-slide p {
        -webkit-line-clamp: 5;
        max-height: 8em; /* 5 linhas x 1.6 line-height (ajuste se necessário) */
    }
}

@media (min-width: 769px) {
  .featured-video-carousel {
    max-width: calc(1200px * 0.68 - 24px * 2);
    margin-left: 10px;
    width: 100%;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .header-sidebar {
    display: none !important;
  }
  .sidebar-direita {
    display: none !important;
  }
  .main-column {
    max-width: 100% !important;
    width: 100% !important;
  }
}

.mobile-carousel-item .item-content h4,
.mobile-carousel-item .item-content h4 a {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    max-height: 4.8em !important;
}

@media (max-width: 768px) {
  .canal-block .video-date {
    display: none;
  }
}

.canal-section .video-description {
  position: relative;
  margin-bottom: 2.2rem;
}
.canal-section .video-description::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  margin: 1.1rem auto 0 auto;
  border-radius: 2px;
  background: linear-gradient(90deg, #dbeafe 0%, #a5b4fc 50%, #dbeafe 100%);
  opacity: 0.7;
}

/* Ocultar linha horizontal no desktop */
@media (min-width: 769px) {
  .canal-section .video-description::after {
    display: none !important;
  }
}
.canal-section .video-description .video-description-text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-logo-right {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex: 0 0 auto;
    height: 100%;
    min-width: 120px;
}
.hero-logo-right-img {
    width: 180px;
    max-width: 100%;
    height: auto;
    margin-left: 30px;
    margin-top: 0;
    filter: drop-shadow(0 2px 8px rgba(30,58,138,0.10));
}
@media (max-width: 900px) {
    .hero-logo-right-img {
        width: 120px;
        margin-left: 10px;
    }
}
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
    }
    .hero-logo-right {
        justify-content: center;
        margin-top: 10px;
        margin-left: 0;
        width: 100%;
    }
    .hero-logo-right-img {
        width: 120px;
        margin: 0 auto;
        display: block;
    }
}

/* --- Comentários: Botões de Like/Dislike --- */
.comment-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 4px 0;
}
.comment-like-btn,
.comment-dislike-btn {
  background: #f5f7fa;
  color: #475569;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 6px 18px 6px 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s, border 0.2s;
  outline: none;
  position: relative;
}
.comment-like-btn:focus,
.comment-dislike-btn:focus {
  border-color: #2b58de;
  box-shadow: 0 0 0 2px #2b58de33;
  z-index: 2;
}
.comment-like-btn.active,
.comment-like-btn[aria-pressed="true"] {
  background: #2b58de;
  color: #fff;
  border-color: #2b58de;
}
.comment-dislike-btn.active,
.comment-dislike-btn[aria-pressed="true"] {
  background: #d32f2f;
  color: #fff;
  border-color: #d32f2f;
}
.comment-like-btn[disabled],
.comment-dislike-btn[disabled],
.comment-like-btn.disabled,
.comment-dislike-btn.disabled {
  opacity: 0.6;
  pointer-events: none;
}
.comment-like-count,
.comment-dislike-count {
  font-size: 0.95em;
  font-weight: 600;
  margin-left: 3px;
}
/* Tooltips acessíveis */
.comment-like-btn[aria-label]:hover::after,
.comment-dislike-btn[aria-label]:hover::after,
.comment-like-btn:focus::after,
.comment-dislike-btn:focus::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  top: -32px;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.85em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.95;
  z-index: 10;
}
@media (max-width: 768px) {
  .comment-actions {
    gap: 6px;
  }
  .comment-like-btn,
  .comment-dislike-btn {
    font-size: 0.95rem;
    padding: 5px 12px 5px 8px;
  }
}

/* === DROPDOWN DO USUÁRIO NO HEADER === */
.header-auth-section {
    position: relative;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-display-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-dropdown-toggle:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #007bff;
}

.logout-item {
    color: #dc3545;
}

.logout-item:hover {
    background: #ffeaa7;
    color: #d63031;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 0.5rem 0;
}

.email-status {
    padding: 8px 16px;
    background: #fff3cd;
    color: #856404;
    font-size: 0.8rem;
    border-bottom: 1px solid #ffeaa7;
}

/* === COUNTDOWN DE CONFIRMAÇÃO DE EMAIL === */
.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    font-size: 0.9rem;
    color: #856404;
}

.countdown-number {
    font-weight: bold;
    font-size: 1.1rem;
    color: #e74c3c;
    min-width: 1.5rem;
    text-align: center;
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.countdown-number:last-child {
    animation: countdownFinal 0.5s ease-in-out;
}

@keyframes countdownFinal {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        color: #c0392b;
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .user-dropdown-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .user-dropdown-menu {
        min-width: 180px;
        right: -10px;
    }
}

/* === NOTIFICATION BADGE === */
.notification-badge {
    background: #ff4757;
    color: white;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.notification-badge:empty {
    display: none !important;
}

#notificationsDropdownItem:hover .notification-badge,
#notificationsMobileItem:hover .notification-badge {
    animation: none;
    opacity: 1;
}

/* ========================================
   SIDEBAR MAIN - REFATORAÇÃO DESKTOP
   ======================================== */

@media (min-width: 769px) {
    /* Container principal da sidebar */
    .sidebar-direita {
        flex: 0 0 32%;
        width: 32%;
        background: transparent;
        padding: 0;
        margin-left: 32px;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    /* Blocos da sidebar - Design moderno e limpo */
    .sidebar-bloco {
        background: #ffffff;
        border-radius: 16px;
        padding: 0;
        border: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .sidebar-bloco:hover {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    /* Header moderno das seções */
    .sidebar-section-header {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 24px 24px 20px 24px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        margin: 0;
        border-radius: 16px 16px 0 0;
    }

    .sidebar-section-icon {
        font-size: 1.4rem;
        background: rgba(255, 255, 255, 0.15);
        padding: 10px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        backdrop-filter: blur(10px);
    }

    .sidebar-section-title {
        color: white !important;
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        letter-spacing: 0.02em;
    }

    /* Conteúdo da sidebar */
    .sidebar-conteudo {
        padding: 20px 24px 24px 24px;
        background: #ffffff;
    }

    /* Variações de cores para cada seção */
    .sidebar-videos .sidebar-section-header {
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    }

    .sidebar-artigos .sidebar-section-header {
        background: linear-gradient(135deg, #a55eea 0%, #8b5cf6 100%);
    }

    .sidebar-pdfs .sidebar-section-header {
        background: linear-gradient(135deg, #26de81 0%, #20bf6b 100%);
    }

    .sidebar-avisos .sidebar-section-header {
        background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    }

    .sidebar-publicidade .sidebar-section-header {
        background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    }

    /* Itens de artigos - Design moderno */
    .artigo-item {
        display: flex;
        gap: 16px;
        padding: 16px 0;
        border-bottom: 1px solid #f1f3f4;
        align-items: flex-start;
        transition: all 0.2s ease;
    }

    .artigo-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .artigo-item:hover {
        background: #f8f9fa;
        margin: 0 -8px;
        padding: 16px 8px;
        border-radius: 8px;
    }

    .artigo-thumb {
        flex-shrink: 0;
        width: 72px;
        height: 48px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .artigo-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .artigo-thumb:hover img {
        transform: scale(1.08);
    }

    .artigo-info {
        flex: 1;
        min-width: 0;
    }

    .artigo-item h4 {
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 6px;
        line-height: 1.4;
        color: #2c3e50;
    }

    .artigo-item h4 a {
        color: #2c3e50;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .artigo-item h4 a:hover {
        color: #667eea;
    }

    .artigo-data {
        font-size: 0.75rem;
        color: #7f8c8d;
        font-weight: 400;
    }

    /* Itens de vídeos */
    .sidebar-videos .video-item {
        margin-bottom: 16px;
    }

    .sidebar-videos .video-item h4 {
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 8px;
        line-height: 1.4;
        color: #2c3e50;
    }

    .sidebar-videos .video-item h4 a {
        color: #2c3e50;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .sidebar-videos .video-item h4 a:hover {
        color: #ff6b6b;
    }

    .sidebar-videos .video-embed.small {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        margin-bottom: 16px;
    }

    /* Itens de avisos */
    .aviso-item {
        display: flex;
        gap: 16px;
        padding: 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 12px;
        margin-bottom: 16px;
        border: 1px solid #e9ecef;
        transition: all 0.2s ease;
    }

    .aviso-item:last-child {
        margin-bottom: 0;
    }

    .aviso-item:hover {
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .aviso-icone {
        font-size: 1.6rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #667eea;
        flex-shrink: 0;
    }

    .aviso-texto {
        flex: 1;
    }

    .aviso-texto h4 {
        font-size: 0.95rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .aviso-texto p {
        font-size: 0.85rem;
        color: #6c757d;
        line-height: 1.5;
        margin: 0;
    }

    /* Itens de PDFs */
    .pdf-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 0;
        border-bottom: 1px solid #f1f3f4;
        transition: all 0.2s ease;
    }

    .pdf-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .pdf-item:hover {
        background: #f8f9fa;
        margin: 0 -8px;
        padding: 16px 8px;
        border-radius: 8px;
    }

    .pdf-item h4 {
        font-size: 0.9rem;
        font-weight: 500;
        color: #2c3e50;
        margin: 0;
        line-height: 1.4;
    }

    .pdf-item h4 a {
        color: #2c3e50;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .pdf-item h4 a:hover {
        color: #26de81;
    }

    .pdf-item .artigo-data {
        font-size: 0.75rem;
        color: #7f8c8d;
        margin-top: 4px;
    }

    /* Botão "Ver Mais" moderno */
    .ver-mais {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
        padding: 12px 24px;
        color: #667eea;
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 1px solid #e9ecef;
        border-radius: 8px;
        transition: all 0.2s ease;
        width: 100%;
    }

    .ver-mais:hover {
        color: #ffffff;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: #667eea;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    /* Publicidade */
    .sidebar-publicidade .ad-placeholder {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 2px dashed #dee2e6;
        border-radius: 12px;
        padding: 24px;
        text-align: center;
        margin-bottom: 16px;
        transition: all 0.2s ease;
    }

    .sidebar-publicidade .ad-placeholder:hover {
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
        border-color: #adb5bd;
    }

    .sidebar-publicidade .ad-placeholder p {
        color: #6c757d;
        font-size: 0.9rem;
        margin: 0;
        font-style: italic;
    }

    /* Responsividade para telas menores que ainda são desktop */
    @media (min-width: 769px) and (max-width: 1200px) {
        .sidebar-direita {
            flex: 0 0 35%;
            width: 35%;
            margin-left: 24px;
            gap: 24px;
        }

        .sidebar-section-header {
            padding: 20px 20px 16px 20px;
        }

        .sidebar-conteudo {
            padding: 16px 20px 20px 20px;
        }

        .artigo-thumb {
            width: 64px;
            height: 42px;
        }

        .aviso-item {
            padding: 16px;
        }
    }
}

/* Subcomentários (replies) - visual moderno e hierarquia clara */
.comment-item.comment-reply {
  margin-left: 32px;
  background: #f7faff;
  border-left: 3px solid #2b58de;
  border-radius: 8px;
  padding: 16px 16px 8px 20px;
  margin-top: 12px;
  box-shadow: 0 1px 4px rgba(33,88,222,0.04);
}
@media (max-width: 768px) {
  .comment-item.comment-reply {
    margin-left: 12px;
    padding: 12px 8px 8px 12px;
  }
}

/* Card visual para cada comentário */
.comment-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(33,88,222,0.07);
  padding: 20px 24px 12px 24px;
  margin-bottom: 22px;
  transition: box-shadow 0.2s;
}
.comment-box + .comment-box {
  margin-top: 0;
}
@media (max-width: 768px) {
  .comment-box {
    padding: 12px 8px 8px 8px;
    border-radius: 8px;
  }
}

/* Avatar e conteúdo alinhados */
.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.comment-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #eaf1fb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.comment-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e0e7ef;
}
.comment-content {
  flex: 1;
  min-width: 0;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.comment-author {
  font-weight: bold;
  color: #1a237e;
  font-size: 1.08rem;
}
.comment-date {
  font-size: 0.92rem;
  color: #7b8ca6;
  font-weight: 400;
}
.comment-text {
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 8px;
  margin-top: 2px;
  word-break: break-word;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .comment-item {
    gap: 8px;
  }
  .comment-avatar {
    width: 38px;
    height: 38px;
  }
  .comment-author {
    font-size: 1rem;
  }
  .comment-date {
    font-size: 0.85rem;
  }
  .comment-text {
    font-size: 0.98rem;
  }
}

.carousel-thumb-mobile { display: none; }
.carousel-player-desktop { display: block; }
@media (max-width: 768px) {
  .carousel-thumb-mobile { display: block; }
  .carousel-player-desktop { display: none; }
}

.featured-video-carousel .carousel-slide img.carousel-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  max-height: none; /* Alterado para none para permitir altura natural */
  object-fit: contain; /* Alterado de 'cover' para 'contain' para evitar corte */
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Melhorias específicas para o carrossel da home */
.featured-video-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured-video-carousel .carousel-container {
  position: relative;
  width: 100%;
}

.featured-video-carousel .carousel-slide {
  position: relative;
  overflow: hidden;
}

.featured-video-carousel .carousel-slide a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.video-embed.no-iframe {
  position: static !important;
  height: auto !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
  background: none !important;
}
.video-embed.no-iframe img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .mobile-featured-videos {
    display: block;
    width: 100vw;
    overflow-x: hidden;
    margin: 0 0 20px 0;
    padding: 0;
  }
  .mobile-featured-scroll {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 12px 8px 8px 8px;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-featured-card {
    flex: 0 0 80vw;
    max-width: 300px;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    color: #222;
    scroll-snap-align: start;
    transition: box-shadow 0.2s;
  }
  .mobile-featured-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);
  }
  .mobile-featured-thumb {
    width: 100%;
    height: 140px;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
  }
  .mobile-featured-info {
    padding: 12px 14px 10px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .mobile-featured-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #1e293b;
    line-height: 1.2;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mobile-featured-info p {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mobile-featured-card.ver-mais-card {
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f9ff 100%);
    color: #1d44b8;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    max-width: 220px;
    border: 2px dashed #b6c6e6;
  }
  .mobile-featured-thumb.ver-mais-thumb {
    font-size: 2.5rem;
    color: #1d44b8;
    background: none;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (min-width: 769px) {
  .mobile-featured-videos { display: none !important; }
}

@media (max-width: 768px) {
  .mobile-sidebar-videos {
    display: block;
    width: 100vw;
    margin: 0 0 20px 0;
    padding: 0 0 0 0;
    background: #1d44b8;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  }
  .mobile-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 8px 16px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    background: #1d44b8;
    border-radius: 16px 16px 0 0;
  }
  .mobile-sidebar-header .sidebar-section-icon {
    font-size: 1.3rem;
    margin-right: 6px;
    color: #fff;
  }
  .mobile-sidebar-scroll {
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 14px 8px 16px 8px;
    -webkit-overflow-scrolling: touch;
    background: #1d44b8;
    border-radius: 0 0 16px 16px;
  }
  .mobile-video-card {
    flex: 0 0 70vw;
    max-width: 220px;
    min-width: 140px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    color: #222;
    scroll-snap-align: start;
    transition: box-shadow 0.2s;
  }
  .mobile-video-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  }
  .mobile-video-thumb {
    width: 100%;
    height: 110px;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
  }
  .mobile-video-title {
    padding: 10px 12px 12px 12px;
    font-size: 0.98rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.2;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
  }
  .mobile-video-card.ver-mais-card {
    background: #e3eafc;
    color: #1d44b8;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: 140px;
    border: 2px dashed #b6c6e6;
    box-shadow: none;
  }
  .mobile-video-thumb.ver-mais-thumb {
    font-size: 2.1rem;
    color: #1d44b8;
    background: none;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sidebar-videos { display: none !important; }
}
@media (min-width: 769px) {
  .mobile-sidebar-videos { display: none !important; }
  .sidebar-videos { display: block !important; }
}

@media (max-width: 768px) {
  .mobile-video-thumb {
    height: 160px;
  }
  .mobile-video-title {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    max-height: none;
    overflow: visible;
    white-space: normal;
  }
  .mobile-video-card {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .sidebar-bloco.sidebar-artigos .sidebar-conteudo,
  .sidebar-bloco.sidebar-pdfs .sidebar-conteudo {
    background: #1d44b8;
    border-radius: 0 0 16px 16px;
    padding-bottom: 10px;
  }
  .sidebar-bloco.sidebar-artigos .artigo-item h4 a,
  .sidebar-bloco.sidebar-pdfs .artigo-item h4 a {
    color: #fff;
  }
  .sidebar-bloco.sidebar-artigos .artigo-data,
  .sidebar-bloco.sidebar-pdfs .artigo-data {
    color: #e3eafc;
  }
}

@media (max-width: 768px) {
  .sidebar-bloco.sidebar-artigos .artigo-item {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
  }
  .sidebar-bloco.sidebar-artigos .sidebar-section-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
  }
  .sidebar-bloco.sidebar-artigos .sidebar-conteudo {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 768px) {
  .sidebar-bloco.sidebar-artigos {
    border-bottom: none !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
    border-radius: 16px !important;
    box-shadow: none !important;
  }
  .sidebar-bloco.sidebar-artigos .sidebar-section-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
  }
}

@media (max-width: 768px) {
  .sidebar-bloco.sidebar-pdfs {
    background: #1d44b8 !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
    border-radius: 16px !important;
    box-shadow: none !important;
  }
  .sidebar-bloco.sidebar-pdfs .sidebar-section-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
  }
  .sidebar-bloco.sidebar-pdfs .sidebar-conteudo {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: #1d44b8 !important;
    border-radius: 0 0 16px 16px;
  }
  .sidebar-bloco.sidebar-pdfs .artigo-item {
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
  }
  .sidebar-bloco.sidebar-pdfs .artigo-item::after,
  .sidebar-bloco.sidebar-pdfs .artigo-item::before {
    border: none !important;
    border-bottom: none !important;
    background: none !important;
    height: 0 !important;
    content: none !important;
    display: none !important;
  }
  .sidebar-bloco.sidebar-pdfs .artigo-item h4 a {
    color: #fff !important;
  }
  .sidebar-bloco.sidebar-pdfs .artigo-data {
    color: #e3eafc !important;
  }
}

/* === Efeitos de Animação e Cores nas Setas do Carrossel Mobile === */

/* Gradiente lateral para dar affordance de scroll (AGORA NO ELEMENTO PAI) */
.sidebar-bloco .sidebar-conteudo {
    --gradient-left-opacity: 0;
    --gradient-right-opacity: 1;
}

.sidebar-bloco .sidebar-conteudo::before,
.sidebar-bloco .sidebar-conteudo::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35px; /* Largura do gradiente */
    z-index: 2;
    pointer-events: none; /* Permite clicar através do gradiente */
    transition: opacity 0.2s ease;
}

.sidebar-bloco .sidebar-conteudo::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: var(--gradient-left-opacity, 0);
}

.sidebar-bloco .sidebar-conteudo::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: var(--gradient-right-opacity, 1);
}

/* CORREÇÃO: Desabilitar gradientes no desktop */
@media (min-width: 769px) {
    .sidebar-bloco .sidebar-conteudo::before,
    .sidebar-bloco .sidebar-conteudo::after {
        display: none !important;
        content: none !important;
    }
}

/* ===== CORREÇÃO DE OVERFLOW HORIZONTAL ===== */
/* Previne overflow horizontal em toda a aplicação */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Correção específica para o footer - apenas overflow */
.main-footer {
  overflow-x: hidden;
  max-width: 100vw;
}

.footer-content {
  overflow-x: hidden;
  max-width: 100%;
}

/* ===== ESTILOS PARA ENQUETES ===== */

/* Poll Builder - Formulário de Criação */
.poll-builder {
  display: grid;
  gap: 1.5rem;
}

.poll-builder-section {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.poll-builder-section h3 {
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.poll-builder-section h3 i {
  color: #667eea;
  font-size: 1rem;
}

/* Lista de Opções */
.options-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.option-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
}

.option-row:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.option-row.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.option-row.drag-over {
  border-color: #667eea;
  background: #f0f4ff;
}

.option-row input[type="text"] {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.option-row input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.option-row .btn-remove {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
}

.option-row .btn-remove:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  transform: scale(1.05);
}

.option-row .btn-remove:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.option-row .btn-remove:active {
  transform: scale(0.95);
}

.option-row .drag-handle {
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  cursor: grab;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.option-row:hover .drag-handle {
  opacity: 1;
}

.option-row .drag-handle:active {
  cursor: grabbing;
}

/* Ações das Opções */
.options-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.options-actions .btn-add {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.options-actions .btn-add:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-1px);
}

.options-actions .btn-add:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.options-actions .btn-add:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.options-counter {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

/* Pré-visualização da Enquete */
.poll-preview {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.poll-preview .empty {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 2rem;
}

.poll-preview .post-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.poll-preview .post-meta {
  background: #f9fafb;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

.poll-preview .post-content {
  padding: 1rem;
}

.poll-preview .post-content h4 {
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Opções da Enquete na Pré-visualização */
.poll-options {
  display: grid;
  gap: 0.75rem;
}

.poll-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.poll-text {
  white-space: normal;
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
}

.poll-bar {
  background: #f3f4f6;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  position: relative;
}

.poll-bar > div {
  height: 100%;
  background: #2563eb;
  transition: width 0.3s ease;
  border-radius: 999px;
}

.poll-votes {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
  text-align: right;
  min-width: 4rem;
}

/* Prazo da Enquete */
.poll-deadline {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #fef3c7;
  border-radius: 0.5rem;
  color: #92400e;
  font-size: 0.9rem;
  border: 1px solid #fbbf24;
}

.poll-deadline strong {
  font-weight: 600;
}

.poll-tip {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f0f9ff;
  border-radius: 0.5rem;
  color: #1e40af;
  font-size: 0.85rem;
  border: 1px solid #bfdbfe;
}

.poll-tip strong {
  font-weight: 600;
}

/* Estados de Loading */
.poll-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.poll-loading .spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Status Messages */
.poll-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.poll-status.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.poll-status.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.poll-status.info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
  .poll-builder-section {
    padding: 1rem;
  }
  
  .option-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .option-row .btn-remove {
    align-self: flex-end;
    min-width: auto;
    width: auto;
    padding: 0.5rem 0.75rem;
  }
  
  .poll-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }
  
  .poll-votes {
    text-align: center;
  }
  
  .options-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .options-actions .btn-add {
    justify-content: center;
  }
}

/* Acessibilidade - Focus States */
.option-row:focus-within {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.poll-builder-section:focus-within {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Animações Suaves */
.poll-builder-section {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.option-row {
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Elementos de Ajuda do Formulário */
.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
}

/* Melhorias de Acessibilidade */
.poll-builder-section:focus-within {
  outline: 2px solid #667eea;
  outline-offset: 2px;
  border-radius: 0.75rem;
}

.option-row:focus-within {
  outline: 2px solid #667eea;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* Estados de Loading Melhorados */
.poll-loading {
  position: relative;
  overflow: hidden;
}

.poll-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Melhorias para Drag & Drop */
.option-row[draggable="true"] {
  cursor: grab;
}

.option-row[draggable="true"]:active {
  cursor: grabbing;
}

.option-row.dragging {
  z-index: 1000;
  transform: rotate(2deg) scale(1.02);
}

/* Indicadores Visuais para Estados */
.option-row:has(input:invalid) {
  border-color: #ef4444;
  background: #fef2f2;
}

.option-row:has(input:valid) {
  border-color: #10b981;
  background: #f0fdf4;
}

/* Melhorias para Mobile */
@media (max-width: 768px) {
  .poll-builder {
    gap: 1rem;
    min-width: 0; /* Previne overflow horizontal */
    overflow-x: hidden; /* Esconde qualquer overflow */
  }
  
  .poll-builder-section {
    padding: 1rem;
    margin-bottom: 1rem;
    min-width: 0; /* Previne overflow */
    overflow-x: hidden; /* Esconde qualquer overflow */
  }
  
  .form-help {
    font-size: 0.75rem;
  }
  
  .options-counter {
    font-size: 0.8rem;
  }
  
  /* Correção específica para inputs e botões */
  .filtro-input {
    box-sizing: border-box; /* Inclui padding no cálculo da largura */
    max-width: 100%; /* Previne overflow */
  }
  
  .option-row input[type="text"] {
    box-sizing: border-box; /* Inclui padding no cálculo da largura */
    max-width: 100%; /* Previne overflow */
  }
  
  .btn-add {
    box-sizing: border-box; /* Inclui padding no cálculo da largura */
    max-width: 100%; /* Previne overflow */
  }
  
  /* Correção para elementos flutuantes */
  .floating-back-btn, 
  .floating-home-btn {
    position: fixed; /* Muda de absolute para fixed */
    z-index: 1000; /* Garante que fique acima de outros elementos */
  }
  
  .floating-back-btn {
    top: 1rem;
    left: 1rem;
  }
  
  .floating-home-btn {
    top: 1rem;
    right: 1rem;
  }
}