/* ==========================================================================
   TURBO GRANA - DESIGN SYSTEM & GLOBAL STYLES
   Modelado no estilo Publisher / Dinheiro Bem Cuidado
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary-navy: #0f172a;
  --primary-navy-dark: #090d16;
  --primary-accent: #0284c7;
  --primary-accent-hover: #0369a1;
  --emerald-green: #059669;
  --emerald-light: #10b981;
  --emerald-bg: #ecfdf5;
  --amber-gold: #d97706;
  --amber-bg: #fffbeb;
  --coral-red: #dc2626;
  --coral-bg: #fef2f2;

  /* Neutral Colors */
  --bg-body: #f4f6f9;
  --bg-card: #ffffff;
  --bg-card-alt: #f8fafc;
  --border-color: #e2e8f0;
  --border-light: #edf2f7;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Layout & Spacing */
  --max-width: 1200px;
  --header-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.09), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   TOP BAR & TICKER
   ========================================================================== */
.topbar {
  background-color: var(--primary-navy-dark);
  color: var(--text-light);
  font-size: 0.8125rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.ticker-badge {
  background: var(--emerald-green);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  max-width: 550px;
}

.ticker-link {
  color: #cbd5e1;
  transition: var(--transition);
}

.ticker-link:hover {
  color: var(--emerald-light);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.topbar-date {
  color: var(--text-light);
}

.topbar-links a {
  color: var(--text-light);
  margin-left: 0.75rem;
}
.topbar-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--primary-navy);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--emerald-green);
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald-green);
  background-color: var(--emerald-bg);
}

.nav-badge-tools {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white !important;
  border-radius: 999px;
  padding: 0.35rem 0.85rem !important;
}
.nav-badge-tools:hover {
  opacity: 0.9;
  background: linear-gradient(135deg, #0369a1, #075985) !important;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-btn, .mobile-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover, .mobile-toggle-btn:hover {
  background-color: var(--bg-body);
  border-color: var(--emerald-green);
  color: var(--emerald-green);
}

.mobile-toggle-btn {
  display: none;
}

/* ==========================================================================
   AD CONTAINERS (GOOGLE ADSENSE READY)
   ========================================================================== */
.ad-slot-container {
  margin: 1.5rem auto;
  text-align: center;
  max-width: 100%;
}

.ad-slot-header {
  padding: 0.75rem 0 0.5rem 0;
}

.ad-wrapper {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.ad-placeholder-box {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ad-leaderboard {
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto;
}

.ad-sidebar {
  min-height: 250px;
  width: 100%;
}

.ad-sticky-halfpage {
  min-height: 600px;
  width: 100%;
}

.ad-in-article {
  margin: 2rem 0;
  min-height: 120px;
}

/* ==========================================================================
   HERO SECTION - MODERN GRID (MODELED AFTER PUBLISHER / DINHEIRO BEM CUIDADO)
   ========================================================================== */
.hero-grid-section {
  padding: 1.5rem 0 2rem 0;
}

.modern-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 1rem;
}

.grid-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--primary-navy);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.grid-item-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.grid-item-secondary {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.grid-item-tertiary {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.grid-item-sub1 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.grid-item-sub2 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.grid-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:hover .grid-bg-img {
  transform: scale(1.06);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 75%, rgba(15, 23, 42, 0.98) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: white;
  z-index: 2;
}

.grid-item-main .grid-overlay {
  padding: 2rem;
}

.badge-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background-color: var(--emerald-green);
  color: white;
  margin-bottom: 0.6rem;
  width: fit-content;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-blue { background-color: #0284c7; }
.badge-purple { background-color: #7c3aed; }
.badge-amber { background-color: #d97706; }
.badge-red { background-color: #dc2626; }
.badge-teal { background-color: #0d9488; }

.grid-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.grid-item-main .grid-title {
  font-size: 1.5rem;
}

.grid-item-secondary .grid-title,
.grid-item-tertiary .grid-title,
.grid-item-sub1 .grid-title,
.grid-item-sub2 .grid-title {
  font-size: 0.95rem;
}

.grid-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* ==========================================================================
   MAIN LAYOUT & SIDEBAR STRUCTURE
   ========================================================================== */
.main-layout {
  padding: 1.5rem 0 3rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.25rem;
}

/* Section Titles (Style 1 - Publisher match) */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  padding-bottom: 0.6rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--emerald-green);
  border-radius: 2px;
}

.section-view-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--emerald-green);
  padding-bottom: 0.6rem;
}
.section-view-all:hover {
  text-decoration: underline;
}

/* Feed List / Cards */
.article-card-featured {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card-featured:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.article-card-featured .card-img-wrap {
  height: 260px;
  position: relative;
  overflow: hidden;
}

.article-card-featured .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card-featured:hover .card-img-wrap img {
  transform: scale(1.04);
}

.article-card-featured .card-body {
  padding: 1.5rem;
}

.article-card-featured .card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.35;
  margin: 0.5rem 0 0.75rem 0;
}

.article-card-featured .card-excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* 2-Column Sub Articles List */
.articles-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.card-compact {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card-compact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-compact .compact-img {
  width: 100px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.card-compact .compact-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-compact .compact-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-compact .compact-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  margin-top: 0.25rem;
}
.card-compact:hover .compact-title {
  color: var(--emerald-green);
}

/* Category Grid Display on Home */
.category-block {
  margin-bottom: 2.5rem;
}

.category-block-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-article-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.category-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cat-card-img {
  height: 150px;
  position: relative;
  overflow: hidden;
}

.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-article-card:hover .cat-card-img img {
  transform: scale(1.05);
}

.cat-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cat-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-navy);
  line-height: 1.35;
  margin: 0.4rem 0 0.5rem 0;
  flex-grow: 1;
}

.category-article-card:hover .cat-card-title {
  color: var(--emerald-green);
}

.cat-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--emerald-green);
}

/* Popular / Recent List */
.sidebar-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-post-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

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

.sidebar-post-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #cbd5e1;
  width: 24px;
  flex-shrink: 0;
  text-align: center;
}

.sidebar-post-item:hover .sidebar-post-num {
  color: var(--emerald-green);
}

.sidebar-post-thumb {
  width: 70px;
  height: 55px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post-info {
  flex-grow: 1;
}

.sidebar-post-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.sidebar-post-item:hover .sidebar-post-title {
  color: var(--emerald-green);
}

.sidebar-post-date {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* Categories Widget List */
.category-pills-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cat-pill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background-color: var(--bg-body);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.cat-pill-item:hover {
  background-color: var(--emerald-bg);
  color: var(--emerald-green);
  padding-left: 1.1rem;
}

.cat-pill-count {
  background: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Tools Widget CTA */
.widget-tools-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  text-align: center;
  border: none;
}

.widget-tools-cta .widget-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.widget-tools-cta .widget-title::after {
  background-color: var(--emerald-light);
}

.widget-tools-cta p {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}

.btn-cta-tools {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--emerald-green);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  width: 100%;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  transition: var(--transition);
}

.btn-cta-tools:hover {
  background: var(--emerald-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--primary-navy-dark);
  color: #94a3b8;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
  padding: 3.5rem 0 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--emerald-green);
}

.footer-about p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  color: #94a3b8;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a {
  color: #cbd5e1;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--emerald-light);
  padding-left: 0.25rem;
}

.footer-disclaimer-box {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #94a3b8;
}

.footer-disclaimer-box strong {
  color: #f1f5f9;
}

.footer-bottom {
  background-color: #06090e;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #94a3b8;
}
.footer-legal-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   DRAWER & SEARCH MODALS
   ========================================================================== */
/* Drawer Menu */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  left: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.drawer-nav {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
}

.drawer-nav a:hover {
  background-color: var(--emerald-bg);
  color: var(--emerald-green);
}

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-card {
  background: #ffffff;
  width: 90%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalSlide 0.25s ease forwards;
}

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

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

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

.search-close-icon {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-light);
  cursor: pointer;
}

.search-results-area {
  max-height: 420px;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   COOKIE BANNER (LGPD / GOOGLE ADSENSE COMPLIANT)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 500px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
  animation: slideUp 0.3s ease;
}

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

.cookie-banner-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.cookie-banner-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cookie-banner-desc a {
  color: var(--emerald-green);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-cookie-accept {
  background: var(--emerald-green);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  flex-grow: 1;
}

.btn-cookie-settings {
  background: var(--bg-body);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .modern-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 180px 180px;
  }
  .grid-item-main {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .grid-item-secondary {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .grid-item-tertiary {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  .grid-item-sub1 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
  .grid-item-sub2 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

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

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

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .topbar-left {
    max-width: 100%;
  }
  .topbar-right {
    display: none;
  }

  .modern-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .grid-item {
    height: 180px;
  }
  .grid-item-main {
    height: 250px;
  }

  .articles-sub-grid {
    grid-template-columns: 1fr;
  }
  .category-block-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}
