/*
Theme Name: Copacabana News Modern Magazine
Theme URI: https://copacabananews.com.br
Author: Arquitetura Copacabana News RJ
Author URI: https://copacabananews.com.br
Description: Tema Magazine Moderno ultra-leve, blindado contra invasões e 100% otimizado para Core Web Vitals, Google News, Discover, SEO, GEO (IA Search: ChatGPT, Perplexity, Gemini) e E-E-A-T. Inspirado no layout Soledad Modern News Magazine nas cores oficiais Laranja & Preto da logomarca Copacabana News RJ, sem necessidade de plugins pesados de terceiros e integrado nativamente ao plugin Copacabana News Suíte Completa.
Version: 3.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: copacabana-news
*/

:root {
  --copa-orange: #ff6200;
  --copa-orange-dark: #c2410c;
  --copa-orange-soft: #fff7ed;
  --copa-amber: #f59e0b;
  --copa-black: #111111;
  --copa-dark: #18181b;
  --copa-gray-900: #1f2937;
  --copa-gray-600: #4b5563;
  --copa-gray-500: #6b7280;
  --copa-border: #e5e7eb;
  --copa-bg: #f8f9fa;
  --copa-white: #ffffff;
  --copa-max: 1280px;
  --copa-radius: 6px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --base-font-size: 16px;
}

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: var(--copa-white);
  color: var(--copa-gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--copa-orange);
}

img, figure, video, iframe {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

main, section, article, aside, header, footer, .cn-post-card, .cn-side-card, .cn-hero-left, .cn-hero-main, .cn-hero-right {
  min-width: 0;
  max-width: 100%;
}

.cn-container {
  width: 100%;
  max-width: var(--copa-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

/* Skip Link Acessibilidade */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--copa-orange);
  color: #fff;
  padding: 10px 18px;
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ==========================================================================
   1. TOP UTILITY BAR (DATA + TOP POSTS TICKER + REDES SOCIAIS + NEWSLETTER)
   ========================================================================== */
.cn-topbar {
  background: var(--copa-black);
  color: #f3f4f6;
  font-size: 12.5px;
  border-bottom: 2px solid var(--copa-orange);
}

.cn-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  flex-wrap: wrap;
  padding-top: 4px;
  padding-bottom: 4px;
}

.cn-date {
  color: #d1d5db;
  font-weight: 600;
  white-space: nowrap;
}

.cn-ticker-wrap {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.cn-ticker-badge {
  background: var(--copa-orange);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.cn-ticker-items {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cn-ticker-item {
  display: none;
  color: #ffffff;
  font-weight: 600;
}

.cn-ticker-item.active {
  display: inline-block;
}

.cn-ticker-item:hover {
  color: var(--copa-amber);
}

.cn-ticker-nav {
  display: inline-flex;
  gap: 4px;
}

.cn-ticker-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.cn-ticker-btn:hover {
  background: var(--copa-orange);
}

.cn-top-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cn-top-socials a {
  color: #e5e7eb;
  font-weight: 700;
  font-size: 12px;
}

.cn-top-socials a:hover {
  color: var(--copa-orange);
}

.cn-btn-subscribe {
  background: var(--copa-orange);
  color: #fff !important;
  padding: 5px 11px;
  border-radius: 3px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cn-btn-subscribe:hover {
  background: var(--copa-orange-dark);
}

/* ==========================================================================
   2. HEADER PRINCIPAL (FUNDO BRANCO P/ LOGO OFICIAL + AD BANNER 728x90)
   ========================================================================== */
.cn-header-mid {
  background: var(--copa-white);
  padding: 22px 0;
  border-bottom: 1px solid var(--copa-border);
}

.cn-header-mid-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cn-logo-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cn-logo-box img {
  max-height: 78px;
  width: auto;
}

.cn-header-banner {
  flex: 1;
  max-width: 728px;
  background: linear-gradient(90deg, #111111 0%, #1f2937 65%, #c2410c 100%);
  color: #fff;
  border-radius: var(--copa-radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-left: 5px solid var(--copa-orange);
}

.cn-header-banner strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.cn-header-banner span {
  font-size: 12.5px;
  color: #fed7aa;
}

/* ==========================================================================
   3. NAVEGAÇÃO STICKY + GAVETA MOBILE OFF-CANVAS + SWIPE BAR (v3.1)
   ========================================================================== */
.cn-navbar {
  background: var(--copa-white);
  border-bottom: 3px solid var(--copa-black);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 900;
}

.cn-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  gap: 8px;
  flex-wrap: nowrap;
}

.cn-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

.cn-menu li {
  position: relative;
}

.cn-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 16px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--copa-black);
  white-space: nowrap;
}

.cn-menu > li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 10px;
  color: var(--copa-orange);
}

.cn-menu > li > a:hover,
.cn-menu > li.current-menu-item > a,
.cn-menu > li.current-cat > a {
  color: var(--copa-orange);
  box-shadow: inset 0 -3px 0 var(--copa-orange);
}

.cn-menu ul.sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: var(--copa-white);
  border-top: 3px solid var(--copa-orange);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 950;
}

.cn-menu li:hover > ul.sub-menu {
  display: block;
}

.cn-menu ul.sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--copa-gray-900);
}

.cn-menu ul.sub-menu li a:hover {
  background: var(--copa-orange-soft);
  color: var(--copa-orange);
}

.cn-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cn-icon-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: var(--copa-black);
  height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cn-icon-btn:hover {
  background: var(--copa-orange);
  color: #fff;
  border-color: var(--copa-orange);
}

.cn-mobile-toggle {
  display: none;
  background: var(--copa-black);
  color: #fff;
  border-color: var(--copa-black);
}

.cn-mobile-brand {
  display: none;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.4px;
  color: var(--copa-black);
  white-space: nowrap;
}

.cn-mobile-brand span {
  color: var(--copa-orange);
}

/* Barra Horizontal Deslizável Rápida (Mobile Quick-Swipe Categories) */
.cn-quick-cats {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--copa-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cn-quick-cats::-webkit-scrollbar {
  display: none;
}

.cn-quick-cats-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  width: max-content;
}

.cn-quick-pill {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 99px;
  background: #f3f4f6;
  color: var(--copa-black);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border: 1px solid #e5e7eb;
}

.cn-quick-pill:hover,
.cn-quick-pill.active {
  background: var(--copa-orange);
  color: #ffffff;
  border-color: var(--copa-orange);
}

/* Gaveta Lateral Deslizante Mobile (Off-Canvas Drawer Soledad Style) */
.cn-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.68);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 2900;
}

.cn-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cn-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: #ffffff;
  z-index: 3000;
  transform: translateX(-104%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 12px 0 36px rgba(0, 0, 0, 0.28);
  overflow-y: auto;
}

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

.cn-drawer-head {
  padding: 16px 18px;
  border-bottom: 3px solid var(--copa-orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.cn-drawer-head img {
  max-height: 44px;
  width: auto;
}

.cn-drawer-close {
  background: #111111;
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
}

.cn-drawer-search {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--copa-border);
}

.cn-drawer-search form {
  display: flex;
  gap: 6px;
}

.cn-drawer-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}

.cn-drawer-search button {
  background: var(--copa-orange);
  color: #fff;
  border: none;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.cn-drawer-nav {
  padding: 6px 0;
  flex: 1;
}

.cn-drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cn-drawer-menu li {
  border-bottom: 1px solid #f1f5f9;
}

.cn-drawer-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cn-drawer-menu > li > a,
.cn-drawer-item-row > a {
  flex: 1;
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--copa-black);
}

.cn-drawer-menu > li.current-menu-item > a,
.cn-drawer-menu > li.current-menu-item > .cn-drawer-item-row > a {
  color: var(--copa-orange);
  border-left: 4px solid var(--copa-orange);
  background: var(--copa-orange-soft);
}

.cn-sub-toggle {
  background: transparent;
  border: none;
  border-left: 1px solid #f1f5f9;
  width: 48px;
  height: 48px;
  font-size: 16px;
  font-weight: 900;
  color: var(--copa-orange);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-drawer-menu ul.sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 6px 0 10px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.cn-drawer-menu li.sub-open > ul.sub-menu {
  display: block;
}

.cn-drawer-menu ul.sub-menu li {
  border-bottom: none;
}

.cn-drawer-menu ul.sub-menu li a {
  display: block;
  padding: 10px 18px 10px 32px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.cn-drawer-menu ul.sub-menu li a::before {
  content: "› ";
  color: var(--copa-orange);
  font-weight: 900;
}

.cn-drawer-foot {
  padding: 16px 18px 24px 18px;
  background: #111111;
  color: #ffffff;
}

.cn-drawer-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.cn-drawer-socials a {
  text-align: center;
  padding: 10px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #fff !important;
}

/* Faixa Ondas do Calçadão de Copacabana */
.cn-calcadao-divider {
  height: 10px;
  width: 100%;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='16' viewBox='0 0 100 16'%3E%3Cpath d='M0 8 Q 25 0, 50 8 T 100 8 L 100 16 L 0 16 Z' fill='%23111111'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 76px 10px;
}

/* Barra Integrada Radar Copacabana 24h (Clima + Mar + Status) */
.cn-radar-strip {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  padding: 8px 0;
  font-size: 13px;
}

.cn-radar-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.cn-radar-tag {
  background: var(--copa-orange);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ==========================================================================
   4. HERO MAGAZINE 3 COLUNAS (SOLEDAD MODERN NEWS MAGAZINE SIGNATURE)
   ========================================================================== */
.cn-hero-section {
  padding: 28px 0 32px 0;
  border-bottom: 1px solid var(--copa-border);
}

.cn-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

/* Etiquetas de Categoria Laranja */
.cn-cat-label {
  display: inline-block;
  color: var(--copa-orange);
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 6px;
}

.cn-cat-badge {
  display: inline-block;
  background: var(--copa-orange);
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.cn-post-meta {
  font-size: 12px;
  color: var(--copa-gray-500);
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Enquadramento Inteligente das Imagens: Zero corte em artes/flyers + borda limpa */
.cn-thumb-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
}

.cn-thumb-wrap img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

/* Fotos horizontais tradicionais (16:9 / 3:2) preenchem todo o quadro */
.cn-thumb-wrap.is-landscape img {
  object-fit: cover;
}

/* Miniaturas compactas de lista lateral */
.cn-mini-item .cn-thumb-wrap {
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
}

.cn-single-featured {
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px 0;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background: #f8fafc;
  padding: 6px;
}

.cn-single-featured img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: 700px;
  object-fit: contain;
  border-radius: 6px;
  margin: 0 auto;
}

.cn-thumb-wrap:hover img {
  transform: scale(1.04);
}

.cn-side-card {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--copa-border);
}

.cn-side-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cn-side-card h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.34;
  font-weight: 800;
}

/* Manchete Principal Central */
.cn-hero-main {
  border-left: 1px solid var(--copa-border);
  border-right: 1px solid var(--copa-border);
  padding: 0 24px;
}

.cn-hero-main .cn-thumb-wrap {
  aspect-ratio: 16 / 9.5;
  margin-bottom: 15px;
}

.cn-hero-main h1,
.cn-hero-main h2.cn-lead-title {
  margin: 0 0 12px 0;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--copa-black);
}

.cn-lead-excerpt {
  color: var(--copa-gray-600);
  font-size: 15.5px;
  margin: 0 0 14px 0;
}

.cn-hero-sublist {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid var(--copa-black);
  list-style: none;
  padding-left: 0;
}

.cn-hero-sublist li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--copa-border);
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.cn-hero-sublist li::before {
  content: "▪";
  color: var(--copa-orange);
  font-size: 16px;
}

/* Coluna Direita: Mais Lidas / Em Alta Numerada */
.cn-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--copa-black);
  padding-bottom: 9px;
  margin-bottom: 18px;
}

.cn-section-head h2,
.cn-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--copa-black);
  min-width: 0;
}

.cn-section-head h2::before,
.cn-section-head h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 18px;
  flex-shrink: 0;
  background: var(--copa-orange);
  border-radius: 2px;
}

.cn-view-all {
  font-size: 12px;
  font-weight: 800;
  color: var(--copa-orange);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.cn-numbered-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cn-numbered-item {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--copa-border);
  align-items: flex-start;
}

.cn-num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--copa-orange);
  min-width: 30px;
}

.cn-numbered-item h4 {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 800;
}

/* ==========================================================================
   5. CORPO PRINCIPAL (2/3 BLOCOS MAGAZINE + 1/3 STICKY SIDEBAR)
   ========================================================================== */
.cn-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr);
  gap: 36px;
  padding-top: 26px;
  padding-bottom: 40px;
  align-items: start;
}

.cn-mag-block {
  margin-bottom: 42px;
}

.cn-cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cn-cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cn-cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.cn-post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.cn-post-card h3 {
  margin: 4px 0 8px 0;
  font-size: 17.5px;
  line-height: 1.32;
  font-weight: 800;
  overflow-wrap: break-word;
}

.cn-post-card p {
  margin: 0;
  font-size: 14px;
  color: var(--copa-gray-600);
  overflow-wrap: break-word;
}

/* Lista Horizontal (Miniatura + Texto) */
.cn-mini-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cn-mini-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--copa-border);
}

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

.cn-mini-item .cn-thumb-wrap {
  margin-bottom: 0;
  aspect-ratio: 4 / 3;
}

.cn-mini-item h4 {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.34;
  font-weight: 800;
}

/* Sidebar Widgets */
.cn-sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cn-widget {
  background: var(--copa-white);
  border: 1px solid var(--copa-border);
  border-radius: var(--copa-radius);
  padding: 20px;
}

.cn-weather-card {
  background: linear-gradient(135deg, #111111 0%, #1f2937 100%);
  color: #fff;
  border: none;
  border-top: 4px solid var(--copa-orange);
}

.cn-weather-temp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
}

.cn-weather-temp strong {
  font-size: 40px;
  font-weight: 900;
  color: var(--copa-orange);
  line-height: 1;
}

.cn-newsletter-box {
  background: var(--copa-orange-soft);
  border: 2px solid #fed7aa;
}

/* ==========================================================================
   6. SINGLE POST (E-E-A-T, ANSWER-FIRST GEO, AUTHOR BOX, SHARE BAR)
   ========================================================================== */
.cn-breadcrumb {
  font-size: 12.5px;
  color: var(--copa-gray-500);
  margin-bottom: 14px;
}

.cn-breadcrumb a:hover {
  color: var(--copa-orange);
}

.cn-article-header h1 {
  font-size: 36px;
  line-height: 1.18;
  font-weight: 900;
  color: var(--copa-black);
  margin: 10px 0 14px 0;
  letter-spacing: -0.5px;
}

.cn-eeat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  margin: 16px 0 22px 0;
  border-top: 1px solid var(--copa-border);
  border-bottom: 1px solid var(--copa-border);
  font-size: 13px;
}

.cn-author-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cn-verified-pill {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
}

.cn-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.cn-share-btn {
  padding: 8px 13px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cn-entry-content {
  font-size: 1.08rem;
  line-height: 1.78;
  color: #1f2937;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.cn-entry-content h2,
.cn-entry-content h3 {
  color: var(--copa-black);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.28;
}

.cn-entry-content p {
  margin-bottom: 1.25em;
}

.cn-entry-content a {
  color: var(--copa-orange-dark);
  text-decoration: underline;
  font-weight: 600;
}

.cn-entry-content figure,
.cn-entry-content img {
  max-width: 100% !important;
  height: auto !important;
}

.cn-entry-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
}

.cn-entry-content th {
  background: var(--copa-black);
  color: #fff;
  padding: 11px 14px;
  text-align: left;
}

.cn-entry-content td {
  border: 1px solid var(--copa-border);
  padding: 10px 14px;
}

.cn-eeat-box {
  background: #f8fafc;
  border: 1px solid var(--copa-border);
  border-left: 5px solid var(--copa-orange);
  padding: 20px;
  border-radius: var(--copa-radius);
  margin: 32px 0;
}

/* ==========================================================================
   7. RODAPÉ ESCURO 4 COLUNAS (SOLEDAD MODERN NEWS FOOTER)
   ========================================================================== */
.cn-footer {
  background: var(--copa-black);
  color: #d1d5db;
  padding: 52px 0 26px 0;
  border-top: 5px solid var(--copa-orange);
  margin-top: 40px;
}

.cn-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cn-footer h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 16px 0;
  border-left: 3px solid var(--copa-orange);
  padding-left: 10px;
}

.cn-footer-logo-pill {
  background: #ffffff;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.cn-footer-logo-pill img {
  max-height: 52px;
}

.cn-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cn-footer ul li {
  margin-bottom: 9px;
  font-size: 13.5px;
}

.cn-footer ul li a:hover {
  color: var(--copa-orange);
}

.cn-footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #9ca3af;
}

/* Modal de Busca & Gaveta Mobile */
.cn-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.cn-search-modal.open {
  display: flex;
}

.cn-search-box {
  max-width: 640px;
  width: 100%;
}

.cn-search-box input[type="search"] {
  width: 100%;
  padding: 18px 22px;
  font-size: 20px;
  border: 3px solid var(--copa-orange);
  border-radius: 8px;
  outline: none;
}

/* ==========================================================================
   8. RESPONSIVIDADE TOTAL (MOBILE-FIRST CORE WEB VITALS — v3.1)
   ========================================================================== */
@media (max-width: 1120px) {
  /* Ativa a Gaveta Lateral Off-Canvas + Barra Deslizável Rápida em Tablets e Celulares */
  .cn-navbar .cn-menu {
    display: none !important;
  }
  .cn-mobile-toggle {
    display: inline-flex;
  }
  .cn-mobile-brand {
    display: block;
  }
  .cn-quick-cats {
    display: block;
  }
}

@media (max-width: 1040px) {
  .cn-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cn-hero-main {
    border: none;
    padding: 0;
    order: -1;
  }
  .cn-main-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .cn-cards-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cn-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cn-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .cn-date {
    display: none;
  }
  .cn-topbar-inner {
    gap: 8px;
  }
  .cn-top-socials a:not(.cn-btn-subscribe) {
    display: none;
  }
  .cn-header-mid {
    padding: 14px 0;
  }
  .cn-header-mid-inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .cn-logo-box img {
    max-height: 64px;
  }
  .cn-header-banner {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 10px;
  }
  .cn-header-banner .cn-btn-subscribe {
    align-self: stretch;
    text-align: center;
    padding: 9px 14px;
    white-space: nowrap;
  }
  .cn-radar-strip-inner {
    font-size: 12px;
    line-height: 1.45;
  }
  .cn-cards-grid-2,
  .cn-cards-grid-3,
  .cn-cards-grid-4,
  .cn-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .cn-post-card,
  .cn-side-card,
  .cn-hero-main > article {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }
  .cn-post-card .cn-thumb-wrap,
  .cn-side-card .cn-thumb-wrap,
  .cn-hero-main .cn-thumb-wrap {
    display: block;
    aspect-ratio: auto;
    height: auto;
    max-height: 360px;
    background: #f8fafc;
  }
  .cn-post-card .cn-thumb-wrap img,
  .cn-side-card .cn-thumb-wrap img,
  .cn-hero-main .cn-thumb-wrap img {
    width: 100% !important;
    height: auto !important;
    max-height: 360px !important;
    object-fit: contain !important;
  }
  .cn-hero-main h1,
  .cn-hero-main h2.cn-lead-title {
    font-size: 22px;
  }
  .cn-article-header h1 {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .cn-search-label-txt {
    display: none;
  }
  .cn-icon-btn {
    padding: 0 10px;
    height: 36px;
  }
}
