:root {
    --primary: #DAA520;
    /* Dourado robusto */
    --secondary: #101e2b;
    /* Azul escuro para headlines e accents */
    --header-bg: #101e2b;
    /* Fundo do header */
    --bg: #FFFFFF;
    /* Fundo branco limpo */
    --surface: #F8F9FA;
    /* Cards com cinza suave */
    --text: #001F3F;
    /* Texto principal escuro */
    --text-muted: #6C757D;
    /* Muted para meta */
    --border: #E9ECEF;
    /* Bordas sutis */
    --shadow: 0 4px 12px rgba(0, 31, 63, 0.08);
    /* Sombra robusta, moderna */
    --shadow-hover: 0 8px 24px rgba(0, 31, 63, 0.12);
    /* Hover mais profundo */
    --radius: 8px;
    /* Bordas arredondadas elegantes */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Easing suave */
}

[data-theme="dark"] {
    --bg: #001F3F;
    --surface: #0A1428;
    --text: #FFFFFF;
    --text-muted: #ADB5BD;
    --border: #2A3441;
    --shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
    --shadow-hover: 0 8px 24px rgba(255, 255, 255, 0.12);
    --header-bg: #0A1428;
    /* Fundo escuro para header no dark mode */
    --secondary: #FFFFFF;
    /* Headlines claros no dark mode */
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: var(--transition);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    /* Remove sublinhados de todos os links */
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
    /* Hover dourado sutil, sem underline */
}

/* Header Robusto Melhorado */
header {
    background: var(--header-bg);
    color: white;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

header h1 a {
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav a {
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}
/* 2. CÓDIGO DA LOGO - VERSÃO DESKTOP */
.logo {
    width: 40px;
    /* Tamanho no Desktop */
    height: auto;
    display: block;

    /* CONTROLE DE POSIÇÃO NO DESKTOP */
    margin-left: 0px;
    /* Aumente para afastar da esquerda */
    margin-right: 250px;
    /* Aumente para afastar da direita */
    margin-top: 10px;
    /* Opcional: afastar do topo */
    margin-bottom: 10px;
    /* Opcional: afastar de baixo */
}

/* AJUSTE PARA CELULAR (Mobile) */
@media (max-width: 600px) {
    .logo {
        width: 40px;
        /* Tamanho no Mobile */

        /* CONTROLE DE POSIÇÃO NO MOBILE */
        /* Use 'auto' se quiser centralizar ou valores em px para mover */
        margin-left: 0px;
        /* Afastamento da esquerda no celular */
        margin-right: 250px;
        /* Afastamento da direita no celular */

        /* DICA: Para centralizar a logo no celular, use:
               margin-left: auto;
               margin-right: auto; 
            */
    }
}

/* Adicionar dentro de .status-badge {} */
    .status-scheduled {
    background: #fffae0;
    color: #a16207;
}

/* Amarelo/Dourado */
nav a:hover {
    color: var(--primary);
    /* Apenas mudança de cor, sem background ou shimmer */
}

/* Mobile Menu */
#mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    box-shadow: var(--shadow);
    border-radius: 0 0 2px 2px;
    overflow: hidden;

    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

#mobile-menu.active {
    display: flex;
    max-height: 500px;
    opacity: 1;
}

#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#mobile-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border);
}

#mobile-menu a {
    display: block;
    padding: 0rem 0rem;
    color: white;
    font-weight: 500;
    letter-spacing: 1.0px;
    font-size: 1.0rem;
    transition: background 0.3s, color 0.3s;
}

#mobile-menu a:hover {
    background: rgba(218, 165, 32, 0.15);
    color: var(--primary);
}

/* ================================
   HAMBURGER ICON
================================ */
.hamburger {
    display: flex;
    /* visível só no mobile */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 6px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* ================================
   DESKTOP — esconder tudo
================================ */
@media (min-width: 768px) {

    /* Esconde o ícone */
    .hamburger {
        display: none !important;
    }

    /* Garante que o menu mobile nunca aparece */
    #mobile-menu,
    #mobile-menu.active {
        display: none !important;
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden;
    }
}

#dark-mode-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

#dark-mode-toggle:hover {
    background: rgba(218, 165, 32, 0.2);
    color: var(--primary);
}

.main {
    max-width: 1200px;
    margin: 100px auto 0;
    /* Offset para header fixed */
    padding: 2rem 1rem;
}

/* Hero Moderno e Elegante */
.hero {
    height: clamp(50vh, 70vh, 80vh);
    background: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.5)),
        url('hero.png');
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
}

.hero-overlay-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1) 0%, transparent 50%);
    opacity: 0.5;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: var(--shadow);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: #B8860B;
    /* Escurecido para hover */
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: var(--secondary);
    transform: translateY(-2px);
}

.cta-button.full {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Seções Robustas de Notícias */
.section {
    margin-bottom: 5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Slider Featured */
.featured-slider .swiper {
    overflow: hidden;
    border-radius: var(--radius);
}

.swiper-slide {
    height: auto;
}

.slide-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.slide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.slide-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.slide-image-container img,
.placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.slide-card:hover .slide-image-container img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem 1.5rem 1.5rem;
}

.category-badge {
    background: var(--primary);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-badge.large {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

.slide-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.slide-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--secondary);
}

.slide-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.slide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.meta-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    color: #B8860B;
    /* Escurecido para hover */
}

.read-more.subtle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.read-more.subtle:hover {
    opacity: 1;
}

/* Featured Post Robusto */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-image-container {
    height: 500px;
    overflow: hidden;
}

.featured-image-container img,
.placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--secondary);
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text);
}

/* Grid de Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(40px);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.post-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-image-container img,
.placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image-container img {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--secondary);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

/* Load More */
.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* Categorias Teaser */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: linear-gradient(135deg, var(--secondary), #001a2e);
    /* Escurecido para variação */
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary), #B8860B);
}

.category-card i {
    font-size: 2.5rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.category-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.category-card span {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 300;
}

/* Newsletter */
.newsletter-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex: 1;
    max-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Loading */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-spin {
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loader-text {
    color: var(--text-muted);
    font-size: 1rem;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Swiper Customizações para Elegância */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
}

.swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* Responsivo Robusto Melhorado */
@media (max-width: 768px) {
    header {
        padding: 0.5rem;
    }

    .hamburger {
        display: flex;
    }

    #desktop-nav {
        display: none;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-image-container {
        height: 300px;
    }

    .featured-content {
        padding: 2rem 1.5rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .newsletter-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .slide-image-container {
        height: 250px;
    }

    .slide-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 1rem;
        margin-top: 90px;
    }

    header h1 a {
        font-size: 1.25rem;
    }

    .slide-content {
        padding: 1rem;
    }

    .post-content {
        padding: 1rem;
    }

    .hero {
        height: 100vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .posts-grid {
        gap: 1rem;
    }

    .post-image-container {
        height: 200px;
    }
}

/* Animações de Entrada para Cards */
.post-card {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: calc(var(--delay, 0) * 0.15s);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Placeholder Images */
.placeholder-image {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    opacity: 0.8;
}

.placeholder-image.large {
    font-size: 4rem;
    height: 100%;
}

.slide-card.empty .placeholder-image.large {
    height: 300px;
}

/* Update Button */
.update-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto 0;
    transition: var(--transition);
}

.update-btn:hover {
    background: #001a2e;
    /* Escurecido para hover */
    transform: translateY(-1px);
}

.auto-update-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background: var(--header-bg);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer a {
    color: var(--primary);
    transition: var(--transition);
}

footer a:hover {
    color: #B8860B;
    /* Escurecido para hover */
}
/* Estilo para o Contêiner da Miniatura */
.category-thumbnail {
    /* Define o tamanho fixo da área da miniatura */
    width: 60px;
    /* Tamanho pequeno desejado (ajuste conforme necessário) */
    height: 60px;
    /* Deve ser igual à largura para um quadrado/círculo perfeito */

    /* Centraliza a miniatura dentro do card, se o card for flex/grid */
    margin: 0px auto 10px auto;

    /* Opcional: Efeito visual */
    border-radius: 50%;
    /* Faz a miniatura ser um círculo */
    overflow: hidden;
    /* Corta qualquer parte da imagem que ultrapasse 60x60px */
    border: 2px solid #ddd;
    /* Borda leve para destacar */
}

/* Estilo para a Imagem Real */
.category-thumbnail img {
    width: 100%;
    /* Faz a imagem preencher 100% da largura de .category-thumbnail (60px) */
    height: 100%;
    /* Faz a imagem preencher 100% da altura de .category-thumbnail (60px) */

    /* Garante que a imagem preencha o espaço sem ser distorcida, cortando o excesso */
    object-fit: cover;
    display: block;
    /* Remove possíveis espaços em branco abaixo da imagem */
}

/* Estilo para o Card da Categoria */
.category-card {
    display: flex;
    flex-direction: column;
    /* Coloca os itens (miniatura, título, span) verticalmente */
    align-items: center;
    /* Centraliza todos os itens horizontalmente */
    text-align: center;
    /* ... outros estilos de layout do card ... */
}