/*
Theme Name: Sintramon Theme
Theme URI: https://sintramonsjbarra.com.br
Description: Tema customizado responsivo e acessível para Sintramon São José Barra
Version: 1.0.0
Author: Sintramon Team
Author URI: https://sintramonsjbarra.com.br
Text Domain: sintramon
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

This theme, like WordPress, is licensed under the GPL.
*/

/* ========================================
   Reset e Base
   ======================================== */

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

:root {
  /* Cores Oficiais do Sintramon (do logo) */
  --primary-color: #003DA5;        /* Azul do logo */
  --primary-dark: #002B75;         /* Azul mais escuro */
  --secondary-color: #E31E24;      /* Vermelho do logo */
  --secondary-dark: #B81820;       /* Vermelho mais escuro */
  --accent-color: #E31E24;         /* Vermelho destaque */
  --accent-hover: #F03039;         /* Vermelho hover */
  --text-color: #2C3E50;
  --text-light: #7F8C8D;
  --bg-light: #F8F9FA;
  --bg-gradient: linear-gradient(135deg, #003DA5 0%, #005BC5 100%); /* Azul gradient */
  --bg-gradient-red: linear-gradient(135deg, #E31E24 0%, #F03039 100%); /* Vermelho gradient */
  --white: #ffffff;
  --border-color: #E0E6ED;
  --shadow-sm: 0 2px 8px rgba(0, 61, 165, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 61, 165, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 61, 165, 0.16);
  --shadow-xl: 0 12px 48px rgba(0, 61, 165, 0.2);
  
  /* Tipografia */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  
  /* Espaçamento */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Container */
  --container-max-width: 1200px;
  
  /* Transições */
  --transition-base: all 0.3s ease;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  overflow-x: hidden; /* evita scroll horizontal causado pelo carrossel full-bleed */
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-base);
  color: var(--text-color);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ========================================
   Acessibilidade
   ======================================== */

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Focus visível */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* ========================================
   Container e Layout
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ========================================
   Header
   ======================================== */

.site-header {
  background: linear-gradient(135deg, #003483 0%, #004fb4 52%, #0065cf 100%);
  color: var(--white);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 32px rgba(0, 43, 117, 0.16);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header.scrolled {
  padding: 0.8rem 0;
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  align-items: center;
  gap: var(--spacing-lg);
  min-height: 68px;
}

.site-branding {
  justify-self: start;
}

.site-branding h1,
.site-branding p {
  margin: 0;
}

/* Logo customizado */
.custom-logo-link {
  display: inline-block !important;
  line-height: 0 !important;
  max-width: 72px !important;
  width: 72px !important;
}

.custom-logo {
  height: auto !important;
  width: 72px !important;
  max-width: 72px !important;
  max-height: 58px !important;
  object-fit: contain !important;
  transition: var(--transition-base);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.custom-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.site-header.scrolled .custom-logo {
  width: 70px !important;
  max-height: 50px !important;
}

/* Garantir que o link do logo também seja limitado */
.site-branding .custom-logo-link {
  max-width: 72px !important;
}

.site-branding .custom-logo-link img {
  width: 72px !important;
  max-width: 72px !important;
  height: auto !important;
  max-height: 58px !important;
}

/* Responsivo - Logo em mobile */
@media (max-width: 768px) {
  .custom-logo-link {
    max-width: 60px !important;
    width: 60px !important;
  }
  
  .custom-logo {
    width: 60px !important;
    max-width: 60px !important;
    max-height: 50px !important;
  }
  
  .site-branding .custom-logo-link img {
    width: 60px !important;
    max-width: 60px !important;
  }
}

.site-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: var(--transition-base);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-title:hover {
  transform: scale(1.02);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.site-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.25rem;
}

/* ========================================
   Navegação
   ======================================== */

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition: var(--transition-base);
  font-weight: 650;
  line-height: 1;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 43, 117, 0.18);
}

.nav-menu a.current-menu-item {
  background-color: rgba(255, 255, 255, 0.22);
  font-weight: 600;
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  background-color: rgba(255, 255, 255, 0.22);
  font-weight: 750;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
  line-height: 0;
}
.menu-toggle:hover {
  background: rgba(255,255,255,0.12);
}
.menu-toggle:focus {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}

/* ── Hamburguer: 3 linhas animadas ── */
.hamburger-box {
  display: inline-block;
  width: 28px;
  height: 22px;
  position: relative;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  display: block;
  width: 28px;
  height: 2.5px;
  background-color: #fff;
  border-radius: 3px;
  position: absolute;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.hamburger-inner         { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ''; top: -9px; }
.hamburger-inner::after  { content: ''; top:  9px; }

/* Estado aberto — vira X */
.menu-toggle[aria-expanded="true"] .hamburger-inner {
  transform: translateY(-50%) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-inner::before {
  top: 0;
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger-inner::after {
  top: 0;
  transform: rotate(-90deg);
}

/* ========================================
   Hero/Carousel Section
   ======================================== */

.hero-carousel {
  position: relative;
  /* full-bleed: estoura qualquer container pai */
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  background-color: #001a5c;
  isolation: isolate;
}

.carousel-container {
  position: relative;
  height: clamp(520px, 62vh, 720px);
  width: 100%;
  overflow: hidden;
}

.hero-carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 33, 98, 0.84) 0%, rgba(0, 61, 165, 0.36) 42%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 29, 92, 0.18) 100%);
}

.hero-intro {
  position: absolute;
  left: max(2rem, calc((100vw - var(--container-max-width)) / 2 + var(--spacing-md)));
  bottom: clamp(5rem, 11vh, 7.5rem);
  z-index: 24;
  max-width: 640px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-intro h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.2vw, 4.05rem);
  line-height: 1.04;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.hero-intro p {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.carousel-slide {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide.active {
  display: block;
  animation: fadeIn 0.55s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.015); }
  to   { opacity: 1; transform: scale(1); }
}

/* Imagem de destaque (featured image): cobre o slide todo */
.carousel-slide > img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.02);
}

/* Imagens dentro do conteúdo do post NÃO devem ser fullbleed */
.carousel-content img {
  position: static;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: initial;
}

/* Texto sobre slides de imagem */
.carousel-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 15, 70, 0.96) 0%,
    rgba(0, 50, 140, 0.6) 50%,
    transparent 100%
  );
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-lg) calc(var(--spacing-xl) + 28px);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 3;
}

.hero-carousel .carousel-content {
  display: none !important;
}

.carousel-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 800;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  animation: slideInUp 0.6s ease-out;
}

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

.carousel-content p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

/* Controles do carrossel */
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  pointer-events: none;
}

.carousel-btn {
  pointer-events: all;
  background-color: rgba(0, 43, 117, 0.72);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.16);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover,
.carousel-btn:focus {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-xs);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
}

.indicator.active {
  background-color: var(--white);
  transform: scale(1.2);
}

/* =======================================
   VÍDEO NO CARROSSEL — full-bleed
   ======================================= */

/* Wrapper cobre absolutamente todo o slide */
.carousel-video-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

/* Vídeo centrado e recortado (cover) sem letterbox preto */
.carousel-video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: cover;
  display: block;
  border: none;
  filter: saturate(1.04) contrast(1.02);
}

/* Suprimir controles nativos do browser (Chrome/Safari/Edge) */
.carousel-video::-webkit-media-controls            { display: none !important; }
.carousel-video::-webkit-media-controls-enclosure  { display: none !important; }
.carousel-video::-webkit-media-controls-panel      { display: none !important; }
.carousel-video::-webkit-media-controls-overlay-play-button { display: none !important; }

/* Sombra inferior para dar profundidade sem poluir */
.carousel-video-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,10,50,0.42) 0%, transparent 48%);
  pointer-events: none;
  z-index: 2;
}

/* Botão play/pause: glassmorphism, some ao reproduzir */
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 35;
  background: rgba(255,255,255,0.16);
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.35s ease, background 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.34), inset 0 0 0 8px rgba(255,255,255,0.08);
}
.video-play-btn:hover {
  background: rgba(255,255,255,0.28);
  transform: translate(-50%, -50%) scale(1.1);
}
/* Some ao tocar; reaparece ao passar o mouse no slide */
.video-play-btn.playing {
  opacity: 0;
  pointer-events: none;
}
.carousel-slide:hover .video-play-btn.playing {
  opacity: 1;
  pointer-events: all;
}

/* Botão mute/unmute: canto inferior direito */
.video-mute-btn {
  position: absolute;
  bottom: 54px;
  right: 18px;
  z-index: 35;
  background: rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-mute-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

/* Botões e indicadores ficam na frente do vídeo */
.carousel-controls   { z-index: 30; }
.carousel-indicators { z-index: 30; }

/* Desktop: ocultar TOTALMENTE o texto quando slide tem vídeo */
.carousel-slide.has-video .carousel-content {
  display: none !important;
}

/* Mobile: legenda compacta sobre o vídeo */
@media (max-width: 768px) {
  .carousel-slide.has-video .carousel-content {
    display: block !important;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,10,50,0.72);
    color: #fff;
    padding: 0.5rem 1rem 2.8rem;
    z-index: 25;
    backdrop-filter: blur(4px);
  }
  .carousel-slide.has-video .carousel-content h2 {
    font-size: 0.9rem;
    margin: 0;
    color: #fff;
    font-weight: 700;
  }
  .carousel-slide.has-video .carousel-content div,
  .carousel-slide.has-video .carousel-content a { display: none; }
  .video-play-btn { width: 50px; height: 50px; }
  .video-play-btn svg { width: 24px; height: 24px; }
}

/* ========================================
   Posts Feed
   ======================================== */

.home-access {
  position: relative;
  z-index: 4;
  margin-top: 0;
  padding: 2.25rem 0 1rem;
  background: #ffffff;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.access-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.8rem 1rem;
  align-items: center;
  min-height: 116px;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 61, 165, 0.1);
  box-shadow: 0 14px 34px rgba(0, 43, 117, 0.1);
  color: var(--text-color);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.access-card:hover,
.access-card:focus {
  transform: translateY(-5px);
  border-color: rgba(227, 30, 36, 0.35);
  box-shadow: 0 22px 54px rgba(0, 43, 117, 0.18);
}

.access-icon {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), #0065cf);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 61, 165, 0.22);
}

.access-label {
  color: var(--primary-color);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.2;
}

.access-copy {
  color: var(--text-light);
  line-height: 1.45;
}

.posts-feed {
  padding: 4.8rem 0 5.5rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  font-weight: 900;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 5px;
  background: var(--bg-gradient-red);
  border-radius: 999px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.post-card {
  background-color: var(--white);
  border: 1px solid rgba(0, 61, 165, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 34px rgba(0, 43, 117, 0.08);
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
  z-index: 2;
}

.post-card:hover {
  box-shadow: 0 22px 54px rgba(0, 43, 117, 0.16);
  border-color: rgba(0, 91, 197, 0.16);
  transform: translateY(-6px);
}

.post-card:hover::before {
  transform: scaleX(1);
}

.post-thumbnail {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background-color: var(--bg-light);
}

.post-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 61, 165, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.post-video-thumbnail a,
.noticia-thumb-link {
  position: relative;
}

.video-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(227, 30, 36, 0.92);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  padding-left: 3px;
}

.video-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: rgba(0, 43, 117, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.noticia-thumb-link .video-label {
  top: 12px;
  right: 12px;
  bottom: auto;
  left: auto;
}

.post-thumbnail img,
.post-thumbnail video,
.post-media-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}

.post-card:hover .post-thumbnail img,
.post-card:hover .post-thumbnail video {
  transform: scale(1.06);
}

.post-card:hover .post-thumbnail::after {
  opacity: 1;
}

.post-content {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  gap: var(--spacing-sm);
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
  align-items: center;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.post-categories a {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 61, 165, 0.08);
  color: var(--primary-color);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-title {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.32;
}

.post-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition-base);
}

.post-title a:hover,
.post-title a:focus {
  color: var(--primary-color);
}

.post-excerpt {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  transition: color 0.2s ease, gap 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.read-more::after {
  content: '→';
  transition: transform 0.2s ease;
}

.read-more:hover,
.read-more:focus {
  color: var(--accent-color);
  gap: 0.7rem;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   ARQUIVO DE NOTÍCIAS (archive.php)
   ============================================================ */

.noticias-archive-page {
    padding: var(--spacing-xl) 0;
}

.archive-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.archive-title span {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.6em;
    display: block;
    margin-bottom: 4px;
}

.archive-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filtros */
.noticias-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.filter-count {
    background: rgba(0,0,0,0.12);
    border-radius: 50%;
    font-size: 0.75em;
    padding: 1px 6px;
    font-weight: 700;
}

/* Grid de Notícias */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.noticia-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.noticia-thumb-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.noticia-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

video.noticia-thumb,
video.news-video-preview {
    background: #07142d;
}

.noticia-card:hover .noticia-thumb {
    transform: scale(1.04);
}

.noticia-thumb-placeholder {
    background: #e9ecef;
}

.noticia-cat-badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 20px;
}

.noticia-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.noticia-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.noticia-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 0;
}

.noticia-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.noticia-title a:hover {
    color: var(--primary-color);
}

.noticia-excerpt {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}

.noticia-excerpt p { margin: 0; }

.noticia-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s;
}

.noticia-read-more:hover {
    gap: 9px;
}

/* Paginação */
.noticias-pagination {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.noticias-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.noticias-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.noticias-pagination .page-numbers:hover,
.noticias-pagination .page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Sem posts */
.no-posts {
    text-align: center;
    padding: 52px 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 61, 165, 0.1);
    border-radius: 18px;
    color: var(--text-light);
    box-shadow: 0 16px 38px rgba(0, 43, 117, 0.08);
    grid-column: 1 / -1;
}

.no-posts p { margin-bottom: var(--spacing-md); }

/* ========================================================
   FIM ARQUIVO DE NOTÍCIAS
   ======================================================== */

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover), var(--accent-color));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: linear-gradient(160deg, #001a5c 0%, #002b75 60%, #003DA5 100%);
  color: var(--white);
  padding: var(--spacing-xl) 0 0;
  margin-top: var(--spacing-xl);
  position: relative;
}

/* Linha decorativa topo */
.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #ff6b6b, var(--accent-color));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

/* Coluna 1 — logo + descricao */
.footer-section.footer-brand .footer-logo {
  max-width: 80px;
  height: auto;
  margin-bottom: var(--spacing-md);
  filter: brightness(0) invert(1);
}

.footer-section h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--spacing-md);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-section p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: var(--spacing-sm);
}

/* Links de contato com ícone */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Menu rodapé */
.footer-section .nav-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-section .nav-footer-menu a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, padding-left 0.2s;
  padding: 0.2rem 0;
}

.footer-section .nav-footer-menu a::before {
  content: '›';
  opacity: 0.5;
  font-size: 1rem;
}

.footer-section .nav-footer-menu a:hover {
  color: #fff;
  padding-left: 0.4rem;
}

/* Redes sociais */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Linha inferior */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: var(--spacing-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: #fff; }

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   Responsividade - Mobile First
   ======================================== */

/* Loading Animation */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--bg-gradient);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* Badges e Tags */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--bg-gradient);
  color: white;
}

.badge-accent {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Divisor Decorativo */
.divider {
  height: 4px;
  background: var(--bg-gradient);
  border-radius: 2px;
  margin: var(--spacing-lg) auto;
  max-width: 100px;
}

/* Cards com Ícones */
.icon-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.icon-card .icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --font-size-base: 15px;
  }

  /* Header mobile: logo à esquerda, hamburger à direita */
  .header-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .main-navigation {
    grid-column: auto;
  }

  .hero-carousel::after {
    background:
      linear-gradient(180deg, rgba(0, 43, 117, 0.1) 0%, rgba(0, 33, 98, 0.8) 100%),
      linear-gradient(90deg, rgba(0, 33, 98, 0.62), rgba(0, 33, 98, 0.24));
  }

  .hero-intro {
    left: 1rem;
    right: 1rem;
    bottom: 4.8rem;
    max-width: none;
  }

  .hero-intro p {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .home-access {
    margin-top: 0;
    padding: 1.25rem 0 0.5rem;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }

  /* Mostrar botão hamburger */
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  /* Esconder menu horizontal — dropown absoluto */
  .nav-menu {
    display: none !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: var(--primary-dark) !important;
    padding: 0.5rem 0 1rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
    gap: 0 !important;
    animation: none !important;
  }

  /* Aberto */
  .nav-menu.active {
    display: flex !important;
  }

  .nav-menu li {
    width: 100%;
    list-style: none;
  }

  .nav-menu a {
    display: block !important;
    padding: 0.9rem 1.5rem !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.09) !important;
    transition: background 0.15s, padding-left 0.15s !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .nav-menu a:hover,
  .nav-menu a:focus {
    background: rgba(255,255,255,0.12) !important;
    padding-left: 2rem !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* Carrossel */
  .carousel-container { height: 560px; }
  .carousel-content h2 { font-size: 1.4rem; }
  .carousel-content p  { font-size: 1rem; }

  /* Botão mute não colidir com seta */
  .video-mute-btn { right: 60px; bottom: 48px; }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
  }

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

  .carousel-btn { width: 40px; height: 40px; font-size: 1.25rem; }
}

/* Smartphones */
@media (max-width: 480px) {
  :root {
    --font-size-base: 14px;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .carousel-container {
    height: 560px;
  }

  .hero-intro {
    bottom: 4rem;
  }

  .hero-intro h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .carousel-content {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .carousel-content h2 {
    font-size: 1.1rem;
  }

  .carousel-content p {
    font-size: 0.85rem;
  }

  /* Botões de vídeo menores e sem sobreposição com setas */
  .video-play-btn {
    width: 44px;
    height: 44px;
  }
  .video-play-btn svg {
    width: 22px;
    height: 22px;
  }
  .video-mute-btn {
    bottom: 44px;
    right: 10px;
    width: 34px;
    height: 34px;
  }
  .video-mute-btn svg {
    width: 16px;
    height: 16px;
  }

  /* Setas menores para não sobrepor */
  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

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

  .noticias-grid {
    grid-template-columns: 1fr;
  }

  .noticias-filter {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Telas grandes */
@media (min-width: 1440px) {
  .carousel-container {
    height: 600px;
  }
  
  .carousel-content h2 {
    font-size: 2.5rem;
  }
}

/* ========================================
   Utilitários
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--bg-gradient);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn::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;
}

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

.btn:hover,
.btn:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
}

.btn-accent:hover,
.btn-accent:focus {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}
