/* ==========================================================================
   PORTAL FABRI DA ZUEIRA - SISTEMA VISUAL VIBRANTE (REFERÊNCIA EXATA)
   Design com Gradiente Azul Elétrico, Tipografia Forte e Acabamento Premium
   ========================================================================== */

:root {
  /* Gradiente Principal Vibrante da Referência */
  --grad-start: #0056E2;
  --grad-mid: #0088F5;
  --grad-end: #00D5EF;
  --header-gradient: linear-gradient(90deg, #0056E2 0%, #0088F5 45%, #00D5EF 100%);
  
  /* Cores de Ação e Destaque */
  --color-primary: #0065FF;
  --color-primary-dark: #004ecc;
  --color-primary-light: #008DFA;
  --color-cyan: #00D5EF;
  
  /* Textos */
  --text-main: #0F172A;
  --text-dark-blue: #082B55;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-white: #FFFFFF;
  
  /* Superfícies & Fundo */
  --bg-page: #F7F9FC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --border-light: #E5E7EB;
  --border-card: #EAEEF3;
  
  /* Categorias / Badges */
  --badge-blue-bg: #0065FF;
  --badge-blue-text: #FFFFFF;
  --badge-light-blue-bg: #E6F0FA;
  --badge-light-blue-text: #0065FF;
  
  /* Tipografia */
  --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout */
  --container-max: 1240px;
  --container-pad: 20px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 20px rgba(0, 101, 255, 0.12);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #29374C #0B1120;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0B1120;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
  border: 2px solid #0B1120;
}

::-webkit-scrollbar-thumb:hover {
  background: #3B82F6;
}

::-webkit-scrollbar-corner {
  background: #0B1120;
}
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-body);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Skip link acessibilidade */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-primary);
  color: #FFF;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   CABEÇALHO UNIFICADO COM GRADIENTE AZUL VIBRANTE
   ========================================================================== */

.site-header-gradient {
  background: var(--header-gradient);
  color: #FFFFFF;
  width: 100%;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 86, 226, 0.15);
}

/* 1. Barra Superior Integrada */
.top-bar-integrated {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8125rem;
}

.top-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left-items {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #FFFFFF;
  font-weight: 500;
}

.top-bar-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-divider {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  margin: 0 0.15rem;
}

.top-bar-social-items {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.top-social-icon {
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
  opacity: 0.95;
}
.top-social-icon:hover {
  transform: translateY(-1px);
  opacity: 1;
}

/* 2. Área Principal do Cabeçalho (Logo + Título + Busca) */
.main-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 0 0.875rem 0;
  gap: 1.5rem;
}

.brand-section-link {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  text-decoration: none;
}

.brand-character-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.brand-vertical-bar {
  width: 2px;
  height: 48px;
  background-color: #FFFFFF;
  opacity: 0.95;
  border-radius: 2px;
  flex-shrink: 0;
}

.brand-title-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0.95;
}

.brand-text-portal {
  font-size: 1.5rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.brand-text-name {
  font-size: 1.875rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* 3. Barra de Busca Arredondada */
.header-search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  height: 48px;
  width: 440px;
  max-width: 100%;
  padding: 4px 5px 4px 18px;
  box-shadow: 0 4px 14px rgba(0, 50, 150, 0.18);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-radius 0.15s ease;
  position: relative;
}
.header-search-box:focus-within {
  box-shadow: 0 6px 20px rgba(0, 50, 150, 0.28);
  transform: translateY(-1px);
}
.header-search-box.has-dropdown {
  box-shadow: 0 6px 22px rgba(0, 40, 120, 0.22);
}

/* Painel Flutuante Sobreposto de Resultados Instantâneos (Autocomplete Dropdown) */
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 30, 90, 0.20), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #E2E8F0;
  z-index: 99999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: searchDropdownSlide 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 520px;
}

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

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--text-main);
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  position: relative;
}

.search-result-item:hover,
.search-result-item.selected {
  background: #F0F7FF;
}

.search-result-item.selected {
  border-left: 3px solid #0065FF;
}

.search-result-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #EDF2F7;
}

.search-result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.search-result-cat {
  font-weight: 700;
  color: #1D4ED8;
  background: #EFF6FF;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.search-result-date {
  color: #64748B;
  font-size: 0.75rem;
}

.search-result-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.search-match {
  background: #FEF08A;
  color: #854D0E;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 3px;
}

.search-result-footer {
  padding: 0.75rem 1rem;
  background: #F8FAFC;
  text-align: center;
  border-top: 1px solid #E2E8F0;
}

.search-view-all-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0065FF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease;
}

.search-view-all-link:hover {
  text-decoration: underline;
  color: #0052CC;
}

.search-empty-state {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: #64748B;
}

.search-loading-state {
  padding: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.search-input-field {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9375rem;
  color: var(--text-main);
  padding: 0 0.5rem;
}
.search-input-field::placeholder {
  color: #64748B;
  font-weight: 400;
}

.search-submit-btn {
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 0 1.625rem;
  height: 38px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-submit-btn:hover {
  background: var(--color-primary-dark);
}

/* 4. Menu de Navegação Horizontal */
.nav-bar-integrated {
  padding: 0.5rem 0 1.125rem 0;
}

.nav-links-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Botão Início (Branco Arredondado) */
.nav-btn-home {
  background: #FFFFFF;
  color: var(--color-primary);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.35rem;
  font-weight: 800;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-btn-home:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  color: var(--color-primary-dark);
}

/* Demais Itens em Branco */
.nav-item-link {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: opacity 0.15s ease;
}
.nav-item-link:hover {
  opacity: 0.85;
}
.nav-item-link.active {
  opacity: 1;
}

/* Botão Mobile Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   FAIXA DE ÚLTIMAS NOTÍCIAS (BRANCA COM BULLET VERMELHO)
   ========================================================================== */

.ticker-news-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 0.65rem 0;
  font-size: 0.875rem;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.ticker-label-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.ticker-red-dot {
  width: 9px;
  height: 9px;
  background-color: #E11D48;
  border-radius: 50%;
  display: inline-block;
}

.ticker-red-text {
  color: #E11D48;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ticker-vertical-sep {
  color: #CBD5E1;
  margin: 0 0.15rem;
}

.ticker-headline-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  color: #1E293B;
  font-weight: 500;
}

.ticker-cat-tag {
  color: #0F172A;
  font-weight: 800;
  margin-right: 0.35rem;
}

.ticker-link {
  color: #334155;
  transition: color 0.15s ease;
}
.ticker-link:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   BANNER PUBLICITÁRIO CENTRALIZADO (IDEB)
   ========================================================================== */

.banner-ad-container {
  margin: 1.5rem auto 1.5rem auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.banner-ad-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 6px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.banner-ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.banner-ad-img {
  width: 100%;
  max-height: 125px;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

/* ==========================================================================
   COMPOSIÇÃO PRINCIPAL DE NOTÍCIAS (HERO EDITORIAL DA REFERÊNCIA)
   ========================================================================== */

.hero-editorial-section {
  padding-bottom: 2rem;
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 65% calc(35% - 1.5rem);
  gap: 1.5rem;
  align-items: start;
}

/* 1. CARROSSEL DE NOTÍCIAS PRINCIPAL (HERO CAROUSEL) */
.hero-carousel-container {
  position: relative;
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  height: 100%;
  min-height: 540px;
  background-color: #F1F5F9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.hero-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  flex-grow: 1;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
  z-index: 1;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-carousel-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.hero-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: none;
}

.hero-carousel-slide.is-active .hero-carousel-img { transform: none; }

.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.96) 0%, rgba(11, 17, 32, 0.72) 42%, rgba(11, 17, 32, 0.15) 75%, transparent 100%);
  pointer-events: none;
}

.hero-carousel-content {
  position: relative;
  z-index: 3;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
}

.hero-carousel-headline {
  color: #FFFFFF;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 0.625rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-carousel-lead {
  color: #E2E8F0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 640px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Botões de Navegação Lateral */
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  padding: 0;
}

.hero-carousel-btn:hover {
  opacity: 1;
  background: rgba(0, 101, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.hero-carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-carousel-prev {
  left: 1.25rem;
}

.hero-carousel-next {
  right: 1.25rem;
}

/* Indicadores de Posição Discretos */
.hero-carousel-indicators {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-carousel-indicator.is-active {
  width: 24px;
  border-radius: 12px;
  background: #0065FF;
  box-shadow: 0 0 10px rgba(0, 101, 255, 0.7);
}

/* Card Grande à Esquerda (Compatibilidade com seletores herdados) */
.hero-giant-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 100%;
  min-height: 100%;
  background-color: #F1F5F9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.hero-giant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.hero-giant-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.hero-giant-card:hover .hero-giant-bg {
  transform: scale(1.025);
}

.hero-giant-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.08) 80%, transparent 100%);
  pointer-events: none;
}

.hero-giant-content {
  position: relative;
  z-index: 2;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
}

.badge-pill-blue {
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: none;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.hero-giant-headline {
  color: #FFFFFF;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 0.625rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.hero-giant-lead {
  color: #E2E8F0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 640px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 2. Coluna Direita (Cards Empilhados com Deslocamento Natural e Alinhamento com a Coluna Esquerda) */
.hero-secondary-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: auto;
  min-height: 100%;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

.hero-secondary-stack [data-ad-slot="home_hero_column"],
.hero-secondary-stack .ad-slot-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.secondary-news-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px 1fr;
  flex: 1;
  min-height: 118px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.secondary-news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 101, 255, 0.08);
  border-color: #CBD5E1;
}

.secondary-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #E2E8F0;
}

.secondary-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.secondary-news-card:hover .secondary-card-thumb {
  transform: scale(1.05);
}

.secondary-card-body {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.badge-pill-light {
  background: var(--badge-light-blue-bg);
  color: var(--badge-light-blue-text);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.35rem;
  width: fit-content;
}

.secondary-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.015em;
}
.secondary-news-card:hover .secondary-card-title {
  color: var(--color-primary);
}

.secondary-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

.meta-group {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ====================================================
   CARD PUBLICITÁRIO VISUAL NA COLUNA HERO (DESTAQUES)
   Ocupa 100% da largura da coluna, sem travas de altura,
   com imagem em destaque pleno idêntico à referência
   ==================================================== */
.ad-format-column_card {
  width: 100%;
  margin: 0;
  display: block;
}

.secondary-ad-card-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

.secondary-ad-badge-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.35rem;
  line-height: 1;
}

.secondary-ad-badge-header .sponsor-label-pill,
.secondary-ad-card-wrapper .sponsor-label-pill {
  margin-bottom: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(0, 101, 255, 0.1);
  color: var(--color-primary);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* Selo integrado diretamente no card para alinhamento 100% perfeito no topo com a notícia principal */
.secondary-ad-pill-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-primary);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  pointer-events: none;
  line-height: normal;
}

.secondary-ad-card.sponsor-column-card {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: auto !important;
  position: relative !important;
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  cursor: pointer;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-ad-card.sponsor-column-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.secondary-ad-header {
  display: none !important;
}

.secondary-ad-image-wrap {
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: block !important;
}

.secondary-ad-backdrop {
  display: none !important;
}

.secondary-ad-image,
.secondary-ad-image.sponsor-contracted-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  border-radius: var(--radius-lg);
  box-shadow: none !important;
  transition: transform 0.2s ease;
}

.secondary-ad-card.sponsor-column-card:hover .secondary-ad-image {
  transform: scale(1.01);
}

.ad-format-column_card .ad-opportunity-column-card {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 118px;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  box-sizing: border-box;
}

/* ==========================================================================
   SEÇÕES COMPLEMENTARES (PLANTÃO, FABRICIANO, VALE DO AÇO, BRASIL)
   ========================================================================== */

.section-divider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.65rem;
  margin-bottom: 1.25rem;
}

.section-accent-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-vibrant-bar {
  width: 5px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 3px;
}

.section-vibrant-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.news-standard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .news-standard-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .news-standard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (max-width: 520px) {
  .news-standard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.standard-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.standard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 101, 255, 0.08);
}

.standard-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E2E8F0;
  position: relative;
}

.standard-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.standard-card:hover .standard-thumb {
  transform: scale(1.04);
}

.standard-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.standard-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  min-height: 3.9em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.standard-card:hover .standard-title {
  color: var(--color-primary);
}

.standard-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ==========================================================================
   RODAPÉ (SITE FOOTER)
   ========================================================================== */

.site-footer-modern {
  background: #041B38;
  color: #94A3B8;
  border-top: 4px solid var(--color-primary);
  margin-top: auto;
  padding-top: 3rem;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-title {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-list a {
  color: #CBD5E1;
  font-size: 0.875rem;
}
.footer-nav-list a:hover {
  color: #60A5FA;
}

.footer-bottom-bar {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #64748B;
}

.footer-bottom-bar a {
  color: #94A3B8;
}
.footer-bottom-bar a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   MODAL DE BUSCA & TOAST NOTIFICATION
   ========================================================================== */

.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 1rem 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.search-modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.search-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.search-modal-input {
  flex: 1;
  border: none;
  font-size: 1.125rem;
  color: var(--text-main);
  outline: none;
}

.search-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.toast-notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #041B38;
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLETS)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-editorial-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hero-giant-card,
  .hero-carousel-container {
    height: 380px;
    min-height: 340px;
  }
  .hero-secondary-stack {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .secondary-news-card,
  .secondary-ad-card,
  .ad-format-column_card .ad-opportunity-column-card {
    grid-template-columns: 110px 1fr;
    min-height: 115px;
    height: auto;
  }
  .secondary-card-thumb-wrap {
    width: 110px;
    height: 100%;
  }
  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ====================================================
   CONTROLES DO CABEÇALHO MOBILE & BUSCA EXPANSÍVEL
   ==================================================== */
.header-mobile-actions {
  display: none;
}

.mobile-header-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-header-btn:hover,
.mobile-header-btn:active {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(0.97);
}

.mobile-search-expandable {
  background: #003780;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 0;
  width: 100%;
  box-sizing: border-box;
  animation: slideDownSearch 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-search-inner-form {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 0.4rem 0.85rem;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 100%;
  box-sizing: border-box;
}

.mobile-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #0F172A;
  padding: 0.35rem 0.2rem;
  background: transparent;
  min-width: 0;
}

.mobile-search-close-btn {
  background: transparent;
  border: none;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}

.mobile-search-close-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.mobile-search-autocomplete {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  margin-top: 0.6rem;
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid #E2E8F0;
  width: 100%;
  box-sizing: border-box;
}

/* ====================================================
   MENU GAVETA MOBILE (OFFCANVAS)
   Design profissional, fundo branco, tipografia nítida,
   ícones discretos, sem hashtags, sem barra horizontal
   ==================================================== */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #FFFFFF;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.14);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

body.mobile-menu-open {
  overflow: hidden !important;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #F1F5F9;
  background: #FFFFFF;
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.drawer-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.drawer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.drawer-text-portal {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0065FF;
  letter-spacing: 0.05em;
}

.drawer-text-name {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.mobile-drawer-close-btn {
  background: #F1F5F9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.mobile-drawer-close-btn:hover,
.mobile-drawer-close-btn:active {
  background: #E2E8F0;
  color: #0F172A;
}

.mobile-drawer-body {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.drawer-section-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #1E293B;
  font-size: 0.95rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: background 0.18s, color 0.18s, border-left-color 0.18s;
  min-height: 48px;
  box-sizing: border-box;
}

.drawer-nav-link:hover {
  background: #F8FAFC;
  color: #0065FF;
}

.drawer-nav-link.active {
  background: #EFF6FF;
  color: #0065FF;
  border-left-color: #0065FF;
  font-weight: 700;
}

.drawer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: inherit;
  opacity: 0.85;
}

.drawer-link-text {
  flex: 1;
}

.drawer-arrow-chevron {
  opacity: 0.4;
  display: inline-flex;
  align-items: center;
}

.drawer-ad-callout {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.35rem;
}

.drawer-ad-text {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 0.75rem 0;
}

.drawer-ad-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0065FF;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  transition: background 0.2s;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
}

.drawer-ad-cta-btn:hover,
.drawer-ad-cta-btn:active {
  background: #0052CC;
}

.mobile-drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #F1F5F9;
  background: #FAFAFA;
}

.drawer-socials-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.drawer-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.drawer-social-icon:hover {
  color: #0065FF;
  border-color: #BFDBFE;
}

.drawer-meta-info {
  font-size: 0.75rem;
  color: #94A3B8;
}

/* ====================================================
   ESPAÇOS PUBLICITÁRIOS (ANÚNCIOS & PATROCINADORES)
   ESTADO 1: Oportunidade ("Divulgue sua empresa aqui")
   ESTADO 2: Anúncio Contratado (Banner do Anunciante)
   Classes duplas resilientes a bloqueadores cosméticos
   ==================================================== */
.ad-slot-wrapper,
.portal-sponsor-slot {
  display: block;
  margin: 2.25rem 0;
  width: 100%;
  box-sizing: border-box;
}

/* Garante exibição real e altura maior que zero para anúncios ativos em desktop e celular */
.ad-slot-wrapper.has-active-ad,
.portal-sponsor-slot.has-active-ad,
.portal-sponsor-slot.has-contracted-sponsor {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  min-height: 50px;
}

.ad-label-pill,
.sponsor-label-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ESTADO 1: Card de Oportunidade Comercial (Oculto inicialmente para evitar F5 flash) */
.ad-opportunity-card,
.sponsor-opportunity-card {
  display: none;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Exibido suavemente apenas quando o slot é confirmado como vaga disponível por app.js */
.portal-sponsor-slot.is-opportunity-ready > .ad-opportunity-card,
.ad-slot-wrapper.is-opportunity-ready > .ad-opportunity-card {
  display: block;
}

.ad-format-column_card.is-opportunity-ready > .ad-opportunity-card {
  display: flex !important;
}

.ad-opportunity-card:hover,
.sponsor-opportunity-card:hover {
  border-color: #93C5FD;
  box-shadow: 0 4px 16px rgba(0, 101, 255, 0.06);
}

.ad-opportunity-body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ad-opportunity-icon {
  width: 52px;
  height: 52px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ad-opportunity-text {
  flex: 1;
  min-width: 0;
}

.ad-opportunity-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.ad-opportunity-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.ad-opportunity-action {
  flex-shrink: 0;
}

.ad-btn-anuncie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0065FF;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0, 101, 255, 0.25);
  white-space: nowrap;
}

.ad-btn-anuncie:hover {
  background: #0052CC;
  transform: translateY(-1px);
}

/* Formato Compacto (Entre Seções) */
.ad-format-compact .ad-opportunity-card {
  padding: 1rem 1.25rem;
  background: #F0F7FF;
  border-color: #BFDBFE;
}

.ad-format-compact .ad-opportunity-icon {
  width: 44px;
  height: 44px;
}

.ad-format-compact .ad-opportunity-title {
  font-size: 0.98rem;
}

.ad-format-compact .ad-opportunity-desc {
  font-size: 0.82rem;
}

/* Formato Lateral (Sidebar de Notícia) */
.ad-format-sidebar .ad-opportunity-body {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1rem;
}

.ad-format-sidebar .ad-opportunity-action {
  width: 100%;
}

.ad-format-sidebar .ad-btn-anuncie {
  width: 100%;
}

/* Formato No Corpo da Matéria (In-Article) */
.ad-format-in_article {
  margin: 2rem 0;
}

/* Formato Mobile Específico */
.ad-format-mobile {
  margin: 1.5rem 0;
}

.mobile-only-slot {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only-slot {
    display: block !important;
  }
}

/* Layout com Sidebar na Categoria */
.category-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 992px) {
  .category-page-layout {
    grid-template-columns: 1fr;
  }
}

/* ====================================================
   ESTILOS ESPECÍFICOS DO SELETOR VISUAL COM ABERTURA DE ESPAÇO
   Ativados quando visual_editor=true / pick_mode=true
   ==================================================== */
html.fabri-visual-pick-mode,
html.fabri-visual-pick-mode *,
body.fabri-visual-pick-mode,
body.fabri-visual-pick-mode * {
  cursor: crosshair !important;
}

/* Slots candidatos em repouso no modo seletor visual */
body.fabri-visual-pick-mode .portal-sponsor-slot,
body.fabri-visual-pick-mode [data-ad-slot],
body.fabri-visual-pick-mode .fabri-slot-candidate {
  display: block !important;
  position: relative !important;
  min-height: 42px !important;
  margin: 0.85rem auto !important;
  width: 100% !important;
  max-width: 1200px !important;
  box-sizing: border-box !important;
  border: 2px dashed #93C5FD !important;
  border-radius: 10px !important;
  background: rgba(239, 246, 255, 0.7) !important;
  cursor: crosshair !important;
  transition: min-height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s, box-shadow 0.2s !important;
  overflow: visible !important;
  z-index: 15 !important;
}

/* Badge indicativa em repouso */
body.fabri-visual-pick-mode .fabri-slot-resting-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  color: #0052CC;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

/* ABERTURA DE ESPAÇO AO PASSAR O MOUSE (HOVER): AFASATAMENTO TEMPORÁRIO E PRÉVIA REAL */
body.fabri-visual-pick-mode .portal-sponsor-slot:hover,
body.fabri-visual-pick-mode [data-ad-slot]:hover,
body.fabri-visual-pick-mode .fabri-slot-candidate:hover,
body.fabri-visual-pick-mode .portal-sponsor-slot.fabri-slot-opening {
  border-color: #0052CC !important;
  border-style: solid !important;
  background: #FFFFFF !important;
  box-shadow: 0 12px 32px rgba(0, 82, 204, 0.2) !important;
  padding: 0 !important;
  margin: 1.25rem auto !important;
  min-height: auto !important;
  z-index: 60 !important;
}

/* Esconde badge de repouso no hover e exibe área aberta */
body.fabri-visual-pick-mode .portal-sponsor-slot:hover .fabri-slot-resting-badge,
body.fabri-visual-pick-mode [data-ad-slot]:hover .fabri-slot-resting-badge {
  display: none !important;
}

/* Contêiner de Prévia Real no Seletor Visual (Largura 100% idêntica ao site público) */
.fabri-visual-preview-container {
  width: 100%;
  margin: 0;
  display: block;
  animation: fadeInSpace 0.2s ease-out;
}

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

.visual-picker-select-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0052CC;
  color: #FFFFFF;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0.4rem 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.3);
  text-transform: uppercase;
}

.fabri-visual-preview-container .ad-format-horizontal,
.fabri-visual-preview-container .ad-card-contracted,
.fabri-visual-preview-container .secondary-ad-card-wrapper {
  margin: 0 !important;
  width: 100% !important;
}

.fabri-opened-space-mockup {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #F8FAFC;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 0.25rem;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fabri-opened-space-click-hint {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #0052CC;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* CONFIRMAÇÃO VISUAL EM VERDE AO CLICAR */
body.fabri-visual-pick-mode [data-ad-slot].fabri-slot-selected-confirmed,
.fabri-slot-candidate.fabri-slot-selected-confirmed {
  border-color: #10B981 !important;
  border-style: solid !important;
  border-width: 3px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.45) !important;
  animation: pulseConfirmedSlot 0.4s ease-out forwards;
}

@keyframes pulseConfirmedSlot {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.fabri-candidate-tooltip {
  position: fixed;
  pointer-events: none;
  background: #0052CC;
  color: #FFFFFF;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  z-index: 2147483647;
  transform: translate(14px, 14px);
  display: none;
  white-space: nowrap;
}

.fabri-candidate-tooltip .fabri-tooltip-action {
  font-size: 10px;
  opacity: 0.85;
  display: block;
  font-weight: 500;
}

.visual-editor-slot-indicator,
.visual-editor-slot-overlay {
  display: none;
}

body.visual-editor-mode .mobile-only-slot {
  display: block !important;
}

body.visual-editor-mode [data-ad-slot] {
  position: relative !important;
  outline: 2px dashed #0065FF !important;
  outline-offset: 4px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  min-height: 85px !important;
  background: rgba(0, 101, 255, 0.02) !important;
}

body.visual-editor-mode [data-ad-slot]:hover {
  outline: 2px solid #0052CC !important;
  outline-offset: 5px !important;
  box-shadow: 0 0 0 6px rgba(0, 101, 255, 0.16) !important;
  background: rgba(0, 101, 255, 0.05) !important;
}

body.visual-editor-mode [data-ad-slot].slot-selected {
  outline: 3px solid #10B981 !important;
  outline-offset: 5px !important;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.28) !important;
  background: rgba(16, 185, 129, 0.04) !important;
}

body.visual-editor-mode [data-ad-slot].slot-target-candidate {
  outline: 3px dashed #F59E0B !important;
  outline-offset: 6px !important;
  cursor: copy !important;
  animation: pulseSlotCandidate 1.6s infinite ease-in-out !important;
}

@keyframes pulseSlotCandidate {
  0% { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.6); }
  100% { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3); }
}

body.visual-editor-mode .visual-editor-slot-indicator,
body.visual-editor-mode .visual-editor-slot-overlay {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.85rem;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  pointer-events: none;
}

body.visual-editor-mode .slot-indicator-badge,
body.visual-editor-mode .slot-add-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #0065FF;
  color: #FFFFFF;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.visual-editor-mode [data-ad-slot].has-active-ad .slot-indicator-badge {
  background: #10B981;
}

body.visual-editor-mode [data-ad-slot].has-scheduled-ad .slot-indicator-badge {
  background: #8B5CF6;
}

body.visual-editor-mode [data-ad-slot].has-paused-ad .slot-indicator-badge {
  background: #F59E0B;
}

body.visual-editor-mode .slot-indicator-name {
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ESTADO 2: Card de Anúncio Contratado */
.ad-card-contracted,
.sponsor-contracted-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.ad-contracted-link,
.sponsor-contracted-link {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: opacity 0.2s;
}

.ad-contracted-link:hover,
.sponsor-contracted-link:hover {
  opacity: 0.94;
}

.ad-contracted-image,
.sponsor-contracted-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 280px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

/* Banners Horizontais (Leaderboard Topo e Acima das Notícias) - Largura Total Alinhada */
.ad-format-horizontal {
  width: 100%;
  margin: 1.25rem 0 1.5rem 0;
}

.ad-format-horizontal .ad-card-contracted,
.ad-format-horizontal .sponsor-contracted-card {
  width: 100%;
  display: block;
}

.ad-format-horizontal .ad-label-pill,
.ad-format-horizontal .sponsor-label-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.ad-format-horizontal .ad-contracted-link,
.ad-format-horizontal .sponsor-contracted-link {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  position: relative;
}

.ad-format-horizontal .ad-contracted-link:hover,
.ad-format-horizontal .sponsor-contracted-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.ad-format-horizontal .ad-banner-media-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: block !important;
  background: transparent !important;
}

/* Modo 1: Banner Horizontal Padrão (ocupa 100% da largura útil da composição editorial) */
.ad-format-horizontal .ad-banner-media-container.is-horizontal-banner {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
}

.ad-format-horizontal .ad-banner-media-container.is-horizontal-banner .ad-banner-backdrop {
  display: none !important;
}

.ad-format-horizontal picture,
.ad-format-horizontal .ad-banner-media-container picture {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ad-format-horizontal .ad-contracted-image,
.ad-format-horizontal .sponsor-contracted-image,
.ad-format-horizontal picture img,
.ad-format-horizontal .ad-banner-media-container .ad-contracted-image,
.ad-format-horizontal .ad-banner-media-container.is-horizontal-banner picture,
.ad-format-horizontal .ad-banner-media-container.is-horizontal-banner .ad-contracted-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
  border-radius: var(--radius-lg);
  margin: 0 !important;
  padding: 0 !important;
}

/* Modo 2: Criativo Não-Horizontal em Slot Horizontal (fundo adaptativo com blur neutro, criativo centralizado sem distorcer) */
.ad-format-horizontal .ad-banner-media-container.is-adaptive-compact {
  position: relative;
  width: 100%;
  height: 240px;
  max-height: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F172A;
  border-radius: var(--radius-lg);
}

.ad-format-horizontal .ad-banner-media-container.is-adaptive-compact .ad-banner-backdrop {
  position: absolute;
  inset: -25px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.55);
  opacity: 0.85;
  transform: scale(1.15);
  pointer-events: none;
}

.ad-format-horizontal .ad-banner-media-container.is-adaptive-compact picture {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 220px;
}

.ad-format-horizontal .ad-banner-media-container.is-adaptive-compact .ad-contracted-image {
  position: relative;
  z-index: 1;
  max-height: 220px;
  max-width: 90%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

/* ====================================================
   RESPONSIVIDADE GERAL E MOBILE
   ==================================================== */
@media (max-width: 768px) {
  .top-bar-divider, .top-bar-meta-item:nth-child(2) {
    display: none;
  }
  
  /* CABEÇALHO COMPACTO NO CELULAR (EM LINHA ÚNICA) */
  .main-header-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    gap: 0.5rem;
  }

  .brand-character-logo {
    height: 48px;
    width: auto;
  }

  .brand-vertical-bar {
    height: 30px;
  }

  .brand-text-portal {
    font-size: 0.92rem;
  }

  .brand-text-name {
    font-size: 1.15rem;
  }

  /* BUSCA DESKTOP OCULTA NO MOBILE (USA BOTÃO DE LUPA) */
  .header-search-box {
    display: none !important;
  }

  /* BOTÕES DE AÇÃO MOBILE VISÍVEIS (LUPA + HAMBÚRGUER) */
  .header-mobile-actions {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
  }

  /* REMOÇÃO DEFINITIVA DA NAVEGAÇÃO HORIZONTAL NO CELULAR */
  .nav-bar-integrated {
    display: none !important;
  }

  /* ADAPTAÇÃO DOS ANÚNCIOS NO CELULAR */
  .ad-slot-wrapper,
  .portal-sponsor-slot {
    display: block;
    margin: 1.5rem 0;
  }

  .ad-opportunity-card {
    padding: 1.15rem 1.25rem;
  }

  .ad-opportunity-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .ad-opportunity-action {
    width: 100%;
  }

  .ad-btn-anuncie {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
  }

  .hero-editorial-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-secondary-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .ad-format-horizontal .ad-banner-media-container.is-adaptive-compact {
    height: 180px;
    max-height: 180px;
  }

  .ad-format-horizontal .ad-banner-media-container.is-adaptive-compact .ad-contracted-image {
    max-height: 160px;
  }

  .secondary-ad-card.sponsor-column-card {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }

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

  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brand-character-logo {
    height: 42px;
  }

  .brand-vertical-bar {
    height: 26px;
  }

  .brand-text-portal {
    font-size: 0.82rem;
  }

  .brand-text-name {
    font-size: 1.05rem;
  }

  .mobile-header-btn {
    width: 38px;
    height: 38px;
  }

  .hero-giant-card,
  .hero-carousel-container {
    height: 320px;
    min-height: 300px;
  }

  .secondary-news-card {
    grid-template-columns: 100px 1fr;
    min-height: 100px;
  }

  .secondary-ad-card.sponsor-column-card {
    height: 200px;
    min-height: 200px;
  }

  .secondary-card-thumb-wrap {
    width: 100px;
  }

  .secondary-card-body {
    padding: 0.5rem 0.75rem;
  }

  .secondary-card-title {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }

  .hero-giant-headline {
    font-size: 1.35rem;
  }
}

@media (max-width: 360px) {
  .brand-text-portal {
    font-size: 0.75rem;
  }

  .brand-text-name {
    font-size: 0.95rem;
  }

  .brand-character-logo {
    height: 36px;
  }
}

/* ====================================================
   MODAL DE PRÉ-CADASTRO DE ANUNCIANTES & ESTADOS DE SLOTS
   ==================================================== */
.ad-slot-wrapper.ad-slot-hidden {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  border: none !important;
  outline: none !important;
  overflow: hidden !important;
}

.parent-slot-hidden {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
}

.ad-slot-wrapper.slot-disabled {
  border: 2px dashed #EF4444 !important;
  background: rgba(239, 68, 68, 0.05) !important;
}

.ad-slot-wrapper.slot-callout-hidden {
  border: 2px dashed #F59E0B !important;
  background: rgba(245, 158, 11, 0.05) !important;
}

.ad-btn-anuncie {
  border: none;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

.drawer-ad-cta-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  outline: none;
  width: 100%;
}

/* Overlay & Animação do Modal */
.ad-lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.ad-lead-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.ad-lead-modal-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  max-height: calc(100dvh - 2.5rem);
  margin: auto;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  box-sizing: border-box;
  animation: adLeadModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

@keyframes adLeadModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ad-lead-modal-header {
  position: relative;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: #FFFFFF;
}

.ad-lead-modal-header-text,
.ad-lead-header-content {
  flex: 1 1 auto;
}

.ad-lead-modal-close {
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.ad-lead-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: scale(1.05);
}

.ad-lead-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0065FF;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.ad-lead-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.35rem 0;
  line-height: 1.25;
}

.ad-lead-modal-subtitle {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.45;
  margin: 0;
}

.ad-lead-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.ad-lead-form-scrollable {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem 1.75rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.ad-lead-form-group {
  margin-bottom: 1rem;
}

.ad-lead-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.ad-lead-label .required {
  color: #DC2626;
}

.ad-lead-label .optional {
  font-weight: 400;
  color: #94A3B8;
  font-size: 0.75rem;
}

.ad-lead-input,
.ad-lead-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  font-size: 0.92rem;
  color: #0F172A;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.ad-lead-input:focus,
.ad-lead-textarea:focus {
  outline: none;
  border-color: #0065FF;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 101, 255, 0.14);
}

.ad-lead-textarea {
  resize: vertical;
  min-height: 75px;
}

.ad-lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.ad-lead-consent {
  margin: 0.65rem 0 0.5rem 0;
}

.ad-lead-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.45;
  cursor: pointer;
}

.ad-lead-checkbox-label input {
  margin-top: 0.15rem;
  accent-color: #0065FF;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.ad-lead-feedback {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.ad-lead-feedback.feedback-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.ad-lead-feedback.feedback-success {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  color: #166534;
}

.ad-lead-modal-footer {
  padding: 0.9rem 1.75rem;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ad-lead-cancel-btn {
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: #64748B;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.ad-lead-cancel-btn:hover {
  background: #E2E8F0;
  color: #1E293B;
  border-color: #94A3B8;
}

.ad-lead-submit-btn {
  padding: 0.75rem 1.5rem;
  background: #0065FF;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(0, 101, 255, 0.25);
  font-family: inherit;
}

.ad-lead-submit-btn:hover {
  background: #0052CC;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 101, 255, 0.35);
}

.ad-lead-submit-btn:active {
  transform: translateY(0);
}

.ad-lead-submit-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.ad-lead-success {
  text-align: center;
  padding: 2.5rem 1.75rem;
}

.ad-lead-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #DCFCE7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.ad-lead-success-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.5rem 0;
}

.ad-lead-success-msg {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 1.5rem 0;
}

.ad-lead-close-btn {
  padding: 0.75rem 2.25rem;
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.ad-lead-close-btn:hover {
  background: #1E293B;
}

@media (max-width: 600px) {
  .ad-lead-modal-overlay {
    padding: 0.75rem 0.5rem;
    align-items: center;
  }
  .ad-lead-modal-container {
    max-height: 94dvh;
    max-height: calc(100dvh - 1rem);
    border-radius: 14px;
    margin: auto 0;
  }
  .ad-lead-modal-header {
    padding: 1.15rem 1.25rem 0.85rem;
  }
  .ad-lead-modal-title {
    font-size: 1.18rem;
  }
  .ad-lead-form-scrollable {
    padding: 1rem 1.25rem;
  }
  .ad-lead-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ad-lead-modal-footer {
    padding: 0.85rem 1.25rem;
  }
  .ad-lead-submit-btn {
    flex: 1;
  }
  .ad-lead-cancel-btn {
    padding: 0.75rem 1rem;
  }
}


/* ==========================================================================
   LAYOUT EDITORIAL: FEED ÚLTIMAS NOTÍCIAS + SIDEBAR MAIS VISTAS
   ========================================================================== */
.news-feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .news-feed-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
  }
}

@media (max-width: 860px) {
  .news-feed-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* Grade interna do feed de notícias ao lado da sidebar */
.news-feed-main .news-standard-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .news-feed-main .news-standard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-feed-main .news-standard-grid {
    grid-template-columns: 1fr;
  }
}

/* COLUNA LATERAL DE NOTÍCIAS & ÁREA COMERCIAL */
.news-feed-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* WIDGET LATERAL: MAIS VISTAS */
.sidebar-widget.most-viewed-widget {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  position: relative;
}

.most-viewed-widget .widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 2px solid #F1F5F9;
}

.most-viewed-widget .widget-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.most-viewed-widget .widget-flame-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #DC2626;
}

.most-viewed-widget .widget-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.02em;
}

.most-viewed-widget .widget-badge-realtime {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.most-viewed-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.most-viewed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.65rem 0;
  text-decoration: none;
  border-bottom: 1px solid #F1F5F9;
  transition: transform 0.15s ease, background 0.15s ease;
  position: relative;
}

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

.most-viewed-item:hover .most-viewed-title {
  color: var(--primary);
}

.most-viewed-rank {
  font-size: 1.25rem;
  font-weight: 900;
  color: #94A3B8;
  min-width: 20px;
  line-height: 1;
  padding-top: 0.2rem;
}

.most-viewed-item:nth-child(1) .most-viewed-rank {
  color: #EF4444;
}

.most-viewed-item:nth-child(2) .most-viewed-rank {
  color: #F97316;
}

.most-viewed-item:nth-child(3) .most-viewed-rank {
  color: #F59E0B;
}

.most-viewed-thumb-wrap {
  width: 74px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0F172A;
}

.most-viewed-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.most-viewed-item:hover .most-viewed-thumb {
  transform: scale(1.05);
}

.most-viewed-content {
  flex: 1;
  min-width: 0;
}

.most-viewed-category {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #087CFF;
  margin-bottom: 0.2rem;
  letter-spacing: 0.03em;
}

.most-viewed-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.32;
  margin: 0 0 0.3rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.most-viewed-meta {
  font-size: 0.72rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}


/* ==========================================================================
   BOTÃO DE LINK EXTERNO EDITORIAL (PORTAL FABRI DA ZUEIRA)
   ========================================================================== */
.article-action-wrapper {
  margin: 1.75rem 0 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.article-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #0065FF;
  color: #FFFFFF !important;
  font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.85rem 1.45rem;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 101, 255, 0.28);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  max-width: 100%;
  word-break: break-word;
}

.article-action-btn:hover {
  background: #0052CC;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 101, 255, 0.4);
}

.article-action-btn:active {
  transform: translateY(0);
}

.article-action-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.article-action-btn:hover svg {
  transform: translate(2px, -2px);
}

@media (max-width: 480px) {
  .article-action-btn {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.92rem;
  }
}

/* ====================================================
   REFORMULAÇÃO: ÁREA COMERCIAL & CAPTAÇÃO DE ANUNCIANTES
   ==================================================== */

/* 1. CHAMADA COMERCIAL INSTITUCIONAL (SIDEBAR) */
.commercial-callout-widget {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.commercial-callout-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0065FF 0%, #3B82F6 100%);
}

.commercial-callout-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.commercial-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(0, 101, 255, 0.1);
  color: #0065FF;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.commercial-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0.15rem 0 0 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.commercial-subtitle {
  font-size: 0.82rem;
  color: #64748B;
  margin: 0;
  line-height: 1.45;
}

.commercial-benefits-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
}

.commercial-benefits-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.commercial-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.35;
}

.benefit-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.commercial-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.btn-commercial-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0065FF;
  color: #FFFFFF !important;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 101, 255, 0.25);
  cursor: pointer;
}

.btn-commercial-primary:hover {
  background: #0052CC;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 101, 255, 0.38);
}

.btn-commercial-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: #10B981 !important;
  border: 1.5px solid #10B981;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.68rem 1rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-commercial-outline:hover {
  background: rgba(16, 185, 129, 0.08);
  transform: translateY(-1px);
}

/* 2. FORMULÁRIO COMPACTO DE INTERESSE PARA ANUNCIANTES */
.advertiser-form-widget {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.advertiser-form-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10B981 0%, #0065FF 100%);
}

.widget-ad-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.adv-form-intro {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.4;
  margin: 0.35rem 0 1rem 0;
}

.adv-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adv-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.adv-form-row {
  display: flex;
  gap: 0.65rem;
}

.adv-form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.required-star {
  color: #EF4444;
  font-weight: 800;
}

.adv-form-input,
.adv-form-select,
.adv-form-textarea {
  font-family: inherit;
  font-size: 16px; /* Evita auto-zoom no iOS Safari */
  padding: 0.65rem 0.85rem;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0F172A;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.adv-form-input:focus,
.adv-form-select:focus,
.adv-form-textarea:focus {
  border-color: #0065FF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 101, 255, 0.15);
}

.adv-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
  padding-right: 2rem;
  cursor: pointer;
}

.adv-form-textarea {
  resize: vertical;
  min-height: 58px;
  line-height: 1.35;
}

.adv-consent-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  margin-top: 0.15rem;
}

.adv-consent-wrap input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #0065FF;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.adv-lead-error-alert {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  animation: advFadeIn 0.2s ease;
}

.adv-lead-success-alert {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  animation: advFadeIn 0.2s ease;
}

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

.btn-adv-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0065FF;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 101, 255, 0.25);
  font-family: inherit;
  margin-top: 0.25rem;
}

.btn-adv-submit:hover:not(:disabled) {
  background: #0052CC;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 101, 255, 0.35);
}

.btn-adv-submit:disabled {
  background: #94A3B8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 3. ATENDIMENTO DIRETO PELO WHATSAPP */
.commercial-whatsapp-widget {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.06);
}

.commercial-wa-content {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.commercial-wa-icon-wrap {
  background: #DCFCE7;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.commercial-wa-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.commercial-wa-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #065F46;
  margin: 0;
}

.commercial-wa-desc {
  font-size: 0.78rem;
  color: #166534;
  margin: 0;
  line-height: 1.35;
}

.commercial-wa-number {
  font-size: 0.88rem;
  font-weight: 800;
  color: #047857;
  margin-top: 0.25rem;
  font-family: monospace;
}

.btn-commercial-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #10B981;
  color: #FFFFFF !important;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-commercial-wa:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* 4. CARDS DE OPORTUNIDADE COMERCIAL MODERNIZADOS */
.ad-opportunity-card.sponsor-opportunity-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1.5px dashed #93C5FD;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.22s ease;
}

.ad-opportunity-card.sponsor-opportunity-card:hover {
  border-color: #0065FF;
  background: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 101, 255, 0.08);
}

.ad-opportunity-action-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.25rem;
}

.btn-opportunity-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0065FF !important;
  text-decoration: none !important;
  padding: 0.35rem 0.75rem;
  background: #EFF6FF;
  border-radius: 6px;
  border: 1px solid rgba(0, 101, 255, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-opportunity-action:hover {
  background: #0065FF;
  color: #FFFFFF !important;
  border-color: #0065FF;
}

@media (max-width: 600px) {
  .adv-form-row {
    flex-direction: column;
    gap: 0.75rem;
  }
}


/* ==========================================================================
   MODAL COMERCIAL CENTRALIZADO: ANUNCIE SUA EMPRESA (ALTA CONVERSÃO)
   ========================================================================== */
.commercial-lead-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.72);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: commercialFadeIn 0.18s ease-out forwards;
  will-change: opacity;
  contain: layout style;
}

@keyframes commercialFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.commercial-lead-modal-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: min(90vh, 760px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 2rem 1.75rem 1.75rem;
  animation: commercialZoomIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-sizing: border-box;
  will-change: transform, opacity;
  transform: translateZ(0);
  contain: layout style;
}

@keyframes commercialZoomIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.commercial-modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.commercial-modal-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: rotate(90deg);
}

.commercial-modal-header {
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.commercial-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 101, 255, 0.08);
  color: #0065FF;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(0, 101, 255, 0.15);
}

.commercial-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.commercial-modal-subtitle {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.45;
  margin: 0;
}

.commercial-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.commercial-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.commercial-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.commercial-form-group.full-width {
  grid-column: 1 / -1;
}

.commercial-form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.optional-pill {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94A3B8;
  background: #F8FAFC;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.commercial-form-input,
.commercial-form-select,
.commercial-form-textarea {
  font-family: inherit;
  font-size: 16px; /* 16px essencial para evitar auto-zoom no iOS Safari */
  padding: 0.7rem 0.9rem;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0F172A;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.commercial-form-input:focus,
.commercial-form-select:focus,
.commercial-form-textarea:focus {
  border-color: #0065FF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 101, 255, 0.16);
}

.commercial-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px;
  padding-right: 2.2rem;
  cursor: pointer;
}

.commercial-form-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.4;
}

.commercial-modal-error-alert {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  animation: commercialFadeIn 0.2s ease;
}

.commercial-modal-submit-wrap {
  margin-top: 0.25rem;
}

.btn-commercial-modal-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #0065FF;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 101, 255, 0.3);
  font-family: inherit;
}

.btn-commercial-modal-submit:hover:not(:disabled) {
  background: #0052CC;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 101, 255, 0.4);
}

.btn-commercial-modal-submit:disabled {
  background: #94A3B8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* TELA DE CONFIRMAÇÃO DE SUCESSO (CENTRALIZADA) */
.commercial-modal-success-view {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  animation: commercialFadeIn 0.3s ease;
}

.commercial-success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #DCFCE7;
  border: 3px solid #86EFAC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.commercial-success-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.6rem 0;
}

.commercial-success-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 2rem 0;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.btn-commercial-success-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0065FF;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.8rem 2.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(0, 101, 255, 0.25);
}

.btn-commercial-success-close:hover {
  background: #0052CC;
  transform: translateY(-1px);
}

/* WIDGET DE PARCERIA COMERCIAL NA BARRA LATERAL */
.commercial-partner-widget {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.commercial-partner-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0065FF 0%, #00C49F 100%);
}

.commercial-partner-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.commercial-partner-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.commercial-partner-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.15rem 0;
}

.commercial-partner-subtitle {
  font-size: 0.76rem;
  color: #64748B;
  margin: 0;
  line-height: 1.3;
}

.commercial-partner-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.btn-commercial-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #EFF6FF;
  color: #0065FF;
  border: 1.5px solid rgba(0, 101, 255, 0.25);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  width: 100%;
}

.btn-commercial-partner:hover {
  background: #0065FF;
  color: #FFFFFF;
  border-color: #0065FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 101, 255, 0.25);
}

@media (max-width: 600px) {
  .commercial-lead-modal-card {
    padding: 1.75rem 1.25rem 1.25rem;
  }
  .commercial-form-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .commercial-modal-title {
    font-size: 1.22rem;
  }
}


/* ==========================================================================
   ENQUADRAMENTO GLOBAL DEFINITIVO: ZERO FAIXAS PRETAS E COBERTURA PERFEITA
   ========================================================================== */
.hero-carousel-img,
.hero-giant-bg,
.secondary-card-thumb,
.news-card-img,
.related-news-thumb,
.hero-carousel-slide img,
.hero-carousel-link img {
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.hero-carousel-container,
.hero-giant-card,
.secondary-card-thumb-wrap,
.news-card-thumb,
.news-card-media {
  background-color: #F1F5F9 !important;
  overflow: hidden !important;
}


/* ==========================================================================
   SEÇÃO OFICIAL INSTAGRAM NA HOME (@fabridazueira)
   Design Premium Editorial — Conexão Direta com Redes
   ========================================================================== */
.instagram-portal-section {
  margin: 1.75rem auto 2.25rem auto;
  max-width: 1200px;
  padding: 0 1rem;
  box-sizing: border-box;
  clear: both;
}

.instagram-card-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.4rem 2rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.instagram-card-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.instagram-card-container:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 26px -4px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
}

.instagram-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.instagram-profile-left {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  min-width: 0;
  flex: 1 1 auto;
}

/* Avatar com Anel Gradiente Oficial */
.instagram-avatar-ring {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  border-radius: 50% !important;
  padding: 3px !important;
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(221, 42, 123, 0.2);
  transition: transform 0.2s ease;
}

.instagram-avatar-ring:hover {
  transform: scale(1.04);
}

.instagram-avatar-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 70px !important;
  max-height: 70px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #FFFFFF !important;
  display: block !important;
  border: 2px solid #FFFFFF !important;
  box-sizing: border-box !important;
}

.instagram-profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

/* Eyebrow: CONECTE-SE COM A GENTE */
.instagram-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #833AB4;
}

.instagram-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E1306C, #F56040);
  display: inline-block;
}

/* Linha do Nome e @handle */
.instagram-title-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.instagram-profile-name {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
}

.instagram-username-handle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
  color: #64748B;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.instagram-username-handle:hover {
  color: #E1306C;
  text-decoration: underline;
}

/* Texto Principal */
.instagram-bio-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.45;
  margin: 0.15rem 0 0.5rem 0;
}

/* Três Indicadores Visuais */
.instagram-features-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.instagram-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  line-height: 1;
}

.instagram-feature-badge svg {
  flex-shrink: 0;
}

/* Botão de Destaque / Conversão */
.instagram-profile-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-instagram-follow-main {
  background: linear-gradient(135deg, #833AB4 0%, #C13584 35%, #E1306C 70%, #F56040 100%);
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-instagram-follow-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.38);
  filter: brightness(1.05);
  color: #FFFFFF !important;
}

.btn-instagram-follow-main:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.25);
}

/* Responsividade Mobile e Tablet */
@media (max-width: 1024px) {
  .instagram-card-container {
    padding: 1.25rem 1.5rem;
  }
  .instagram-profile-left {
    gap: 1.15rem;
  }
  .instagram-avatar-ring {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
  }
  .instagram-avatar-img {
    max-width: 64px !important;
    max-height: 64px !important;
  }
}

@media (max-width: 768px) {
  .instagram-portal-section {
    margin: 1.25rem auto 1.75rem auto;
    padding: 0 0.75rem;
  }
  .instagram-card-container {
    padding: 1.25rem 1.15rem;
    border-radius: 14px;
  }
  .instagram-profile-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.15rem;
  }
  .instagram-profile-left {
    align-items: flex-start;
    gap: 0.85rem;
  }
  .instagram-avatar-ring {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
  }
  .instagram-avatar-img {
    max-width: 58px !important;
    max-height: 58px !important;
  }
  .instagram-profile-name {
    font-size: 1.125rem;
  }
  .instagram-bio-text {
    font-size: 0.84rem;
    margin: 0.25rem 0 0.5rem 0;
  }
  .instagram-features-row {
    gap: 0.35rem;
  }
  .instagram-feature-badge {
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
  }
  .instagram-profile-actions {
    width: 100%;
  }
  .btn-instagram-follow-main {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.9375rem;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .instagram-card-container {
    padding: 1.1rem 0.95rem;
  }
  .instagram-profile-left {
    align-items: flex-start;
    gap: 0.75rem;
  }
  .instagram-avatar-ring {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
  }
  .instagram-avatar-img {
    max-width: 52px !important;
    max-height: 52px !important;
  }
  .instagram-title-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }
  .instagram-profile-name {
    font-size: 1.05rem;
  }
  .instagram-username-handle {
    font-size: 0.85rem;
  }
  .instagram-features-row {
    gap: 0.35rem;
  }
  .instagram-feature-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Embeds do Instagram e YouTube no corpo da notícia */
.portal-instagram-embed {
  margin: 1.75rem auto;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clear: both;
}

.portal-instagram-embed blockquote.instagram-media {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 540px !important;
  min-width: 280px !important;
}

.instagram-fallback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0095F6;
  color: #FFFFFF !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  text-decoration: none !important;
  margin: 1rem auto;
  transition: background-color 0.15s ease;
}

.instagram-fallback-btn:hover {
  background: #0077C5;
}

.portal-youtube-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1.75rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0F172A;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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