/*
Theme Name: BR Hoje News
Theme URI: https://brhoje.local
Description: Portal de notícias moderno, ultra rápido, simples, limpo e 100% responsivo.
Version: 1.0.0
Author: Antigravity Editorial Engineering
Text Domain: brhoje-news
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color System - Light (#1C44FB & #111111 Palette) */
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-surface: #f1f5f9;
  --bg-elevated: #ffffff;
  
  --border-subtle: #f1f5f9;
  --border-main: #e2e8f0;
  --border-strong: #cbd5e1;
  
  --text-main: #111111;
  --text-muted: #333333;
  --text-subtle: #666666;
  --text-inverse: #ffffff;
  
  --accent-urgent: #dc2626;
  --accent-urgent-bg: #fef2f2;
  --accent-urgent-border: #fecaca;
  
  --accent-brand: #1C44FB;
  --accent-blue: #1C44FB;
  --accent-blue-bg: rgba(28, 68, 251, 0.08);

  --shadow-sm: 0 1px 2px 0 rgba(17, 17, 17, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(17, 17, 17, 0.07), 0 2px 4px -2px rgba(17, 17, 17, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(17, 17, 17, 0.08), 0 4px 6px -4px rgba(17, 17, 17, 0.04);
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);

  --header-height: 60px;
}

[data-theme="dark"] {
  /* Color System - Dark (#111111 & #1C44FB Ultra Sleek Palette) */
  --bg-main: #111111;
  --bg-subtle: #181818;
  --bg-surface: #222222;
  --bg-elevated: #1a1a1a;
  
  --border-subtle: #1a1a1a;
  --border-main: #262626;
  --border-strong: #383838;
  
  --text-main: #f8fafc;
  --text-muted: #a3a3a3;
  --text-subtle: #737373;
  --text-inverse: #111111;
  
  --accent-urgent: #ef4444;
  --accent-urgent-bg: rgba(239, 68, 68, 0.12);
  --accent-urgent-border: rgba(239, 68, 68, 0.25);
  
  --accent-brand: #1C44FB;
  --accent-blue: #1C44FB;
  --accent-blue-bg: rgba(28, 68, 251, 0.18);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.65rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.15rem); }
h5 { font-size: clamp(0.9rem, 1.2vw, 1rem); }

p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.65;
}

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

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Focus Visible WCAG Standard */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  min-width: 0;
}

/* Top Date Bar (Above Ticker) */
.top-date-bar {
  background-color: #1C44FB;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffffff;
  padding: 0.5rem 0;
}

.top-date-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.top-date-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: #ffffff;
}

.top-date-text svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
  flex-shrink: 0;
}

.top-date-text strong, #js-live-clock {
  color: #ffffff !important;
}

.top-edition-tag {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  background-color: var(--accent-blue-bg);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

@media (max-width: 480px) {
  .top-edition-tag {
    display: none;
  }
}

/* Urgente / Breaking Ticker Bar */
.ticker-bar {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-main);
  padding: 0.65rem 0;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--accent-urgent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.ticker-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
}

.ticker-items {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  font-family: var(--font-body);
  color: var(--text-main);
  font-weight: 600;
  font-size: clamp(0.875rem, 1.2vw, 0.975rem);
}

.ticker-content:hover .ticker-items {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 2rem;
}

.ticker-item::after {
  content: '•';
  margin-left: 2rem;
  color: var(--text-subtle);
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Main Site Header */
.site-header {
  background-color: #111111;
  border-bottom: 1px solid #222222;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.nav-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid #333333;
  color: #ffffff;
  transition: background-color var(--transition-fast);
}

.nav-toggle-btn:hover {
  background-color: #222222;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}

.site-logo-img, .custom-logo {
  max-height: 70px;
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .site-logo {
    font-size: 1.6rem;
  }
  .site-logo-img, .custom-logo {
    max-height: 50px;
    height: 50px;
  }
}

.site-logo .dot {
  color: var(--accent-blue);
}

/* Integrated Category Navigation inside Black Header */
.header-cat-nav {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin: 0 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.header-cat-nav::-webkit-scrollbar {
  display: none;
}

.cat-nav-list {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.cat-nav-item a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #d1d5db;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  background: transparent;
}

.cat-nav-item a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

.cat-nav-item.current-menu-item a,
.cat-nav-item.active a {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.search-trigger-btn, .theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid #333333;
  color: #ffffff;
  background-color: #1a1a1a;
  transition: all var(--transition-fast);
}

.search-trigger-btn:hover, .theme-toggle-btn:hover {
  background-color: #262626;
  border-color: #444444;
}

/* Mobile responsive layout for integrated header navigation */
@media (max-width: 767px) {
  .header-inner {
    flex-wrap: wrap;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    gap: 0.65rem;
  }

  .brand-wrapper {
    order: 1;
  }

  .header-actions {
    order: 2;
  }

  .header-cat-nav {
    order: 3;
    width: 100%;
    margin: 0;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cat-nav-item a {
    font-size: 1.05rem;
    padding: 0.4rem 0.85rem;
  }
}

/* Page Layout & Grid Systems */
.main-wrapper {
  flex: 1;
  padding: 10px 0;
}

.news-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 992px) {
  .news-layout-grid {
    grid-template-columns: 1fr 340px;
  }
}

/* Hero Article Section */
.hero-news-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .hero-news-section {
    grid-template-columns: 1.6fr 1fr;
  }
}

/* Article Cards */
.card-featured {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.card-thumb-link {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-surface);
}

.card-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card-featured:hover .card-thumb-link img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.badge-category {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-blue);
  background-color: var(--accent-blue-bg);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Category Specific Badges */
.badge-category-piaui { background-color: rgba(5, 150, 105, 0.12); color: #059669; border: 1px solid rgba(5, 150, 105, 0.25); }
.badge-category-policia { background-color: rgba(220, 38, 38, 0.12); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.25); }
.badge-category-entretenimento { background-color: rgba(124, 58, 237, 0.12); color: #7c3aed; border: 1px solid rgba(124, 58, 237, 0.25); }
.badge-category-esporte, .badge-category-esportes { background-color: rgba(217, 119, 6, 0.12); color: #d97706; border: 1px solid rgba(217, 119, 6, 0.25); }
.badge-category-politica { background-color: rgba(59, 130, 246, 0.12); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.25); }

[data-theme="dark"] .badge-category-piaui { background-color: rgba(16, 185, 129, 0.2); color: #34d399; }
[data-theme="dark"] .badge-category-policia { background-color: rgba(239, 68, 68, 0.2); color: #fca5a5; }
[data-theme="dark"] .badge-category-entretenimento { background-color: rgba(168, 85, 247, 0.2); color: #c084fc; }
[data-theme="dark"] .badge-category-esporte, [data-theme="dark"] .badge-category-esportes { background-color: rgba(245, 158, 11, 0.2); color: #fbbf24; }
[data-theme="dark"] .badge-category-politica { background-color: rgba(59, 130, 246, 0.2); color: #60a5fa; }

/* Scroll To Top Floating Button */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

.scroll-top-btn:hover {
  background-color: var(--accent-urgent);
  color: #ffffff;
  border-color: var(--accent-urgent);
  transform: translateY(-2px);
}

.scroll-top-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.card-featured .card-title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.card-title a:hover {
  color: var(--accent-blue);
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
}

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

.card-meta-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Secondary Hero Stack */
.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-horizontal {
  display: flex;
  flex-direction: row;
  gap: 10px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  transition: all var(--transition-fast);
}

.card-horizontal:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.card-horizontal .card-thumb-link {
  width: 120px;
  height: 90px;
  aspect-ratio: auto;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.card-horizontal .card-body {
  padding: 0;
  gap: 0.35rem;
}

.card-horizontal .card-title {
  font-size: 0.975rem;
}

/* Section Titles */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-main);
  padding-bottom: 8px;
  margin-bottom: 10px;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--accent-urgent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* News Grid (2 Columns on Tablet/Desktop) */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-title svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-urgent);
}

/* Trending List Widget */
.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trending-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.trending-number {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--border-strong);
  line-height: 1;
  min-width: 24px;
}

.trending-item:nth-child(-n+3) .trending-number {
  color: var(--accent-urgent);
}

.trending-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.trending-title a:hover {
  color: var(--accent-blue);
}

/* Newsletter Widget */
.newsletter-widget {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.newsletter-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.newsletter-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

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

.newsletter-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  background-color: var(--bg-main);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--accent-blue);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-inverse);
  background-color: var(--accent-brand);
  border-radius: var(--radius-md);
  transition: opacity var(--transition-fast);
  border: none;
  min-height: 44px;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Single Article View */
.article-header {
  margin-bottom: 2rem;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-subtle);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.article-excerpt {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.article-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-main);
  border-bottom: 1px solid var(--border-main);
  padding: 0.85rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--accent-blue-bg);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-main);
}

.author-date {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-subtle);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  color: var(--text-muted);
  background-color: var(--bg-main);
  transition: all var(--transition-fast);
}

.share-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-surface);
  border-color: var(--border-strong);
}

/* User Specified Social Network Hover Palette */
.share-whatsapp:hover { background-color: #25d366 !important; color: #ffffff !important; border-color: #25d366 !important; }
.share-telegram:hover { background-color: #229ed9 !important; color: #ffffff !important; border-color: #229ed9 !important; }
.share-facebook:hover { background-color: #1877f2 !important; color: #ffffff !important; border-color: #1877f2 !important; }
.share-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; color: #ffffff !important; border-color: transparent !important; }
.share-x:hover { background-color: #0f172a !important; color: #ffffff !important; border-color: #0f172a !important; }
.share-threads:hover { background-color: #000000 !important; color: #ffffff !important; border-color: #000000 !important; }

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.article-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.image-caption {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-subtle);
  margin-top: 0.5rem;
  text-align: center;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.75;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-urgent);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  background-color: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-main);
  font-size: 1.15rem;
}

/* Single Comments Area */
.comments-section {
  margin-top: 3.5rem;
  border-top: 2px solid var(--border-main);
  padding-top: 2rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.comment-form textarea, .comment-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
  color: var(--text-main);
}

/* Footer Section */
.site-footer {
  background-color: #111111;
  border-top: 1px solid #222222;
  padding: 3rem 0 2rem;
  margin-top: auto;
  color: #ffffff;
}

.site-footer .footer-desc {
  color: #a3a3a3;
}

.site-footer .footer-heading {
  color: #ffffff;
}

.site-footer .footer-links a {
  color: #a3a3a3;
}

.site-footer .footer-links a:hover {
  color: #ffffff;
}

.site-footer .footer-copy {
  color: #737373;
}

.site-footer .footer-copy a {
  color: #a3a3a3;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   WhatsApp VIP Group Banner & Floating Button
   ========================================================================== */
.whatsapp-vip-bar {
  background: linear-gradient(135deg, #054c36 0%, #128c7e 50%, #25d366 100%);
  color: #ffffff;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-vip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.whatsapp-vip-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
}

.whatsapp-vip-left svg {
  flex-shrink: 0;
  fill: #ffffff;
}

.whatsapp-vip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #ffffff !important;
  color: #054c36 !important;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.whatsapp-vip-btn:hover {
  background-color: #f8fafc !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Site-Wide Floating WhatsApp Button (Bottom-Left) */
.whatsapp-vip-float-btn {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.6rem 1.1rem;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.whatsapp-vip-float-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.6);
  color: #ffffff !important;
}

.whatsapp-vip-float-btn svg {
  fill: #ffffff;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 400px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-main);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-subtle);
}

.footer-bottom--centered {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  padding-bottom: 1.5rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-subtle);
  margin: 0;
  line-height: 1.6;
}

.footer-copy a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy a:hover {
  color: var(--text-main);
}

.footer-copy--muted {
  color: var(--text-subtle);
  font-size: 0.725rem;
  opacity: 0.7;
}


/* Offcanvas Mobile Drawer */
.offcanvas-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100dvh;
  background-color: var(--bg-elevated);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-main);
}

.offcanvas-drawer.active {
  transform: translateX(0);
}

.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal);
}

.offcanvas-overlay.active {
  opacity: 1;
  visibility: visible;
}

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

.offcanvas-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.offcanvas-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.offcanvas-nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.offcanvas-nav a:hover {
  background-color: var(--bg-surface);
}

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

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

.search-modal-box {
  width: 100%;
  max-width: 600px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  margin: 0 1rem;
}

.search-form-inner {
  display: flex;
  gap: 0.75rem;
}

.search-input-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
}

.search-input-field:focus {
  border-color: var(--accent-blue);
}

/* Ergonomic Adaptive Toast System (User Rule 5) */
.toast-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 2rem);
}

/* Mobile: Top Centered */
@media (max-width: 767px) {
  .toast-container {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Desktop: Bottom Right */
@media (min-width: 768px) {
  .toast-container {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

.toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  background-color: var(--accent-brand);
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: toastIn 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

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

.toast.fade-out {
  animation: toastOut 200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

/* Pagination System */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background-color: var(--accent-brand);
  color: var(--text-inverse);
  border-color: var(--accent-brand);
}

/* ==========================================================================
   Ads & Banners System
   ========================================================================== */
.ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 5px auto;
  width: 100%;
}

.ad-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  transition: border-color var(--transition-fast);
}

.ad-box:hover {
  border-color: var(--accent-blue);
}

.ad-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.4rem;
  display: block;
}

.ad-banner-link {
  display: inline-block;
  max-width: 100%;
}

.ad-banner-link img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Standard Ad Banner Sizes */
.ad-size-728x90 {
  max-width: 728px;
  min-height: 90px;
}

.ad-size-970x90 {
  max-width: 970px;
  min-height: 90px;
}

.ad-size-300x250 {
  max-width: 300px;
  min-height: 250px;
}

.ad-size-300x600 {
  max-width: 300px;
  min-height: 600px;
}

.ad-size-320x50 {
  max-width: 320px;
  min-height: 50px;
}

.ad-size-responsive {
  width: 100%;
}

.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  min-height: 80px;
}

.ad-placeholder svg {
  fill: currentColor;
  opacity: 0.6;
}

/* Elementor Full Width & Canvas Page Reset */
.elementor-fullwidth-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

.elementor-canvas-page body {
  background-color: var(--bg-main);
}

/* ==========================================================================
   Homepage News Carousel Banner (Full Bleed 100% Width)
   ========================================================================== */
.news-carousel-section {
  width: 100%;
  margin-top: 0;
  margin-bottom: 15px;
}

.full-bleed-carousel .news-carousel-container {
  position: relative;
  width: 100%;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  overflow: hidden;
  min-height: 420px;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-main);
}

@media (min-width: 992px) {
  .full-bleed-carousel .news-carousel-container {
    height: 75vh;
    min-height: 560px;
    max-height: 740px;
  }
}

.carousel-content-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

.home-ad-carousel-section {
  margin-top: 10px;
  margin-bottom: 10px;
}

.news-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 210px;
}

@media (min-width: 992px) {
  .news-carousel-track {
    min-height: 260px;
  }
}

.news-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.02);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.news-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.carousel-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease-out;
}

.news-carousel-slide.active .carousel-slide-bg {
  transform: scale(1.05);
}

.carousel-slide-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(9, 13, 22, 0.45) 0%, rgba(9, 13, 22, 0.85) 100%), linear-gradient(180deg, rgba(9, 13, 22, 0.6) 0%, rgba(9, 13, 22, 0.3) 50%, rgba(9, 13, 22, 0.85) 100%);
}

.carousel-slide-content {
  position: relative;
  z-index: 3;
  padding: 0.85rem 1.5rem;
  color: #ffffff;
  max-width: 840px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 0.35rem;
  margin: auto;
}

.carousel-slide-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: rgba(255, 255, 255, 0.85);
}

.carousel-slide-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.carousel-slide-date svg {
  fill: currentColor;
  width: 13px;
  height: 13px;
}

.carousel-slide-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.carousel-slide-title a {
  color: #ffffff;
}

.carousel-slide-title a:hover {
  color: #60a5fa;
}

.carousel-slide-excerpt {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.85rem, 1.1vw, 0.975rem);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 680px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--accent-urgent) !important;
  color: #ffffff !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.825rem;
  align-self: center;
  margin-top: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-slide-btn:hover {
  background-color: #b91c1c !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.6);
}

.carousel-slide-btn svg {
  fill: #ffffff !important;
  width: 14px;
  height: 14px;
}

/* Controls - Prev & Next Nav Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.carousel-nav-btn svg {
  width: 18px;
  height: 18px;
  fill: #0f172a !important;
}

.carousel-nav-btn:hover {
  background: #f8fafc !important;
  color: #020617 !important;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.carousel-prev { left: 0.85rem; }
.carousel-next { right: 0.85rem; }

.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--accent-urgent);
}

@media (max-width: 640px) {
  .news-carousel-container {
    min-height: 175px;
  }
  .carousel-slide-content {
    padding: 0.5rem 0.85rem;
    gap: 0.25rem;
  }
  .carousel-slide-excerpt {
    display: none;
  }
  .carousel-nav-btn {
    width: 30px;
    height: 30px;
  }
  .carousel-prev { left: 0.3rem; }
  .carousel-next { right: 0.3rem; }
}

/* ==========================================================================
   Rich Interactive Ad Banners
   ========================================================================== */
.rich-ad-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.rich-ad-banner:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.ad-banner-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #334155;
}

.ad-banner-above {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border: 1px solid #4338ca;
}

.ad-banner-infeed {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  border: 1px solid #059669;
}

.ad-banner-sidebar {
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  border: 1px solid #3f3f46;
}

.ad-banner-single {
  background: linear-gradient(135deg, #831843 0%, #9f1239 100%);
  border: 1px solid #be123c;
}

.rich-ad-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.rich-ad-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.rich-ad-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.badge-red { background-color: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-blue { background-color: rgba(59, 130, 246, 0.2); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-green { background-color: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-purple { background-color: rgba(168, 85, 247, 0.2); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.badge-rose { background-color: rgba(244, 63, 94, 0.2); color: #fca5a5; border: 1px solid rgba(244, 63, 94, 0.4); }

.rich-ad-title {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.rich-ad-sub {
  font-size: clamp(0.775rem, 1vw, 0.875rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.rich-ad-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.rich-ad-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.825rem;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.rich-ad-btn:hover {
  background-color: #f8fafc !important;
  color: #020617 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-red { color: #dc2626 !important; }
.btn-blue { color: #2563eb !important; }
.btn-green { color: #059669 !important; }
.btn-purple { color: #7c3aed !important; }
.btn-rose { color: #e11d48 !important; }

/* Dark Mode Button Adaptation */
[data-theme="dark"] .rich-ad-btn {
  background-color: #ffffff !important;
  color: #090d16 !important;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Google AdSense Styling */
.adsense-container {
  margin: 10px auto;
  width: 100%;
}

.adsense-unit-box {
  position: relative;
  width: 100%;
  padding: 0.75rem;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color var(--transition-fast);
}

.adsense-unit-box:hover {
  border-color: var(--accent-blue);
}

.adsbygoogle {
  display: block;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .rich-ad-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .rich-ad-right {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.4rem;
  }
  .rich-ad-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   In-Content Ad Interstitial (Cortando a matéria no 2º parágrafo)
   ========================================================================== */
.in-content-ad-wrapper {
  margin: 10px 0;
  padding: 10px 0;
  border-top: 1px dashed var(--border-strong);
  border-bottom: 1px dashed var(--border-strong);
  width: 100%;
}

/* ==========================================================================
   Footer Ad Carousel Component
   ========================================================================== */
.footer-ad-carousel-section {
  margin-top: 10px;
  margin-bottom: 10px;
}

.ad-carousel-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ad-carousel-track {
  position: relative;
  width: 100%;
  min-height: 100px;
}

.ad-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.ad-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 2;
}

.ad-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.ad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-strong);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ad-dot.active {
  width: 20px;
  border-radius: 4px;
  background-color: var(--accent-urgent);
}

/* ==========================================================================
   Senior UI/UX Enhancements: Reading Progress & Font Resizer & Sticky Sidebar
   ========================================================================== */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-urgent) 0%, var(--accent-blue) 100%);
  z-index: 9999;
  transition: width 100ms ease-out;
}

.font-size-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 0.15rem;
}

.font-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.font-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--accent-blue);
}

@media (min-width: 992px) {
  .ad-sidebar-wrapper,
  .adsense-sidebar-wrapper {
    position: sticky;
    top: 70px;
    z-index: 10;
  }
  .publisher-grid {
    grid-template-columns: 2.2fr 1fr !important;
  }
}

/* Clean Reading Focus Mode */
article.is-clean-reading .sidebar,
article.is-clean-reading .ad-post-top-wrapper,
article.is-clean-reading .ad-post-bottom-wrapper,
article.is-clean-reading .in-content-ad-wrapper {
  display: none !important;
}

article.is-clean-reading .news-layout-grid {
  grid-template-columns: 1fr !important;
  max-width: 780px;
  margin: 0 auto;
}


/* Rendering Speed Optimizations */
.site-footer, .sidebar-widget-card, .footer-col {
  content-visibility: auto;
  contain-intrinsic-size: 1px 300px;
}
