/*
Theme Name: Informativo Angolano
Theme URI: https://informativoangolano.com
Author: Informativo Angolano
Author URI: https://informativoangolano.com
Description: O tema premium do portal Informativo Angolano com UI/UX moderna
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================
   CSS VARIABLES - Modern Color Palette
   ============================================ */
:root {
  /* Primary palette (deep red identity) */
  --color-primary: #d90429;
  --color-primary-dark: #a4031f;
  --color-primary-light: #ff2448;
  --color-secondary: #fb7185;
  --color-tertiary: #fcd34d;

  /* Accent/support */
  --color-accent: #fbbf24;
  --color-accent-dark: #d97706;
  --color-success: #22c55e;
  --color-warning: #f97316;
  --color-info: #38bdf8;

  /* Neutral scale */
  --color-gray-50: #fdf4f5;
  --color-gray-100: #f8f1f2;
  --color-gray-200: #ede6e8;
  --color-gray-300: #dcd2d6;
  --color-gray-400: #b7a9b0;
  --color-gray-500: #8d7f86;
  --color-gray-600: #5f5359;
  --color-gray-700: #3b3237;
  --color-gray-800: #251c1f;
  --color-gray-900: #11090d;

  /* Brand aliases */
  --brand-red: var(--color-primary);
  --brand-red-strong: #b10325;
  --brand-red-dark: #7a0219;
  --brand-red-intense: #570111;
  --brand-rose: #f78da7;
  --brand-rose-muted: #fcd5de;
  --brand-ember: #2a050b;
  --brand-carbon: #12040b;
  --brand-ink: #050308;
  --brand-gold: #f7b500;
  --brand-gold-dark: #b58310;
  --brand-blue: #1d4ed8;
  --brand-blue-dark: #1e3a8a;

  /* Surface system */
  --surface-page: #faf6f7;
  --surface-card: #ffffff;
  --surface-card-alt: rgba(255, 255, 255, 0.88);
  --surface-muted: #f3edf0;
  --surface-overlay: rgba(255, 255, 255, 0.55);
  --surface-glow: rgba(255, 255, 255, 0.85);
  --surface-deep: #12060c;

  /* Text tokens */
  --text-primary: #11090d;
  --text-secondary: #4f3d44;
  --text-muted: #7b6c72;
  --text-inverse: #fdf5f7;
  --text-accent: var(--color-primary);

  /* Spacing scale */
  --spacing-2xs: 0.125rem;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4.5rem;

  /* Radii */
  --radius-sm: 0.4rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-2xl: 2.5rem;
  --card-radius: 1.6rem;
  --pill-radius: 999px;

  /* Borders */
  --border-soft: rgba(17, 9, 13, 0.08);
  --border-strong: rgba(17, 9, 13, 0.18);
  --border-glow: rgba(217, 4, 41, 0.38);

  /* Shadows */
  --shadow-sm: 0 5px 18px -12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 15px 35px -25px rgba(15, 23, 42, 0.6);
  --shadow-lg: 0 35px 60px -40px rgba(220, 38, 38, 0.45);
  --shadow-card: 0 40px 65px -45px rgba(15, 23, 42, 0.75);

  /* Glass/gradients */
  --glass-light: rgba(255, 255, 255, 0.75);
  --glass-dark: rgba(20, 20, 20, 0.65);
  --gradient-primary: linear-gradient(135deg, #d90429 0%, #ff2448 45%, #f78da7 100%);
  --gradient-secondary: radial-gradient(circle at 20% 20%, rgba(248, 113, 113, 0.4), transparent 60%), radial-gradient(circle at 80% 0%, rgba(248, 113, 113, 0.25), transparent 55%);
  --gradient-dark: linear-gradient(145deg, #0f0f10 0%, #1b1b1e 60%, #2a0b13 100%);
  --gradient-flare: linear-gradient(120deg, #d90429 0%, #ff5470 45%, #f78da7 100%);
  --gradient-ember: linear-gradient(160deg, #1b040b 0%, #3a0a12 45%, #6b0f1c 100%);
  --gradient-gold: linear-gradient(130deg, #f7b500 0%, #ffdf8f 100%);
  --card-premium-bg: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 250, 0.65));

  /* Typography */
  --font-size: 16px;
  --font-body: 'Merriweather', 'Georgia', serif;
  --font-heading: 'Roboto Slab', 'Rockwell', serif;
  --font-display: 'Roboto Slab', 'Rockwell', serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --letter-spacing-tight: -0.01em;
  --type-xs: clamp(0.72rem, 0.7rem + 0.15vw, 0.78rem);
  --type-sm: clamp(0.84rem, 0.8rem + 0.2vw, 0.95rem);
  --type-base: clamp(1rem, 0.94rem + 0.2vw, 1.1rem);
  --type-lg: clamp(1.15rem, 1.08rem + 0.3vw, 1.35rem);
  --type-xl: clamp(1.6rem, 1.4rem + 0.5vw, 2rem);
  --type-display: clamp(2.5rem, 2rem + 2vw, 3.75rem);

  /* Motion */
  --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 320ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 600ms cubic-bezier(0.65, -0.25, 0.25, 1.35);

  /* Component spacing */
  --card-padding: clamp(1.5rem, 1rem + 1vw, 2.5rem);
  --card-gap: clamp(1rem, 0.5rem + 1vw, 2rem);
  --blur-card: 22px;
  --card-border: 1px solid var(--border-soft);
}

html.dark {
  --surface-page: #050308;
  --surface-card: #11131a;
  --surface-card-alt: rgba(17, 19, 26, 0.92);
  --surface-muted: #1b1c23;
  --surface-overlay: rgba(7, 7, 10, 0.65);
  --surface-glow: rgba(255, 255, 255, 0.06);
  --text-primary: #fdf5f7;
  --text-secondary: #d6c6cb;
  --text-muted: #a59ba0;
  --text-inverse: #0f0a0d;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --glass-light: rgba(22, 22, 27, 0.85);
  --glass-dark: rgba(5, 5, 7, 0.7);
  --gradient-primary: linear-gradient(150deg, #6b0f1c 0%, #a4031f 55%, #ff2448 100%);
  --card-premium-bg: linear-gradient(165deg, rgba(25, 26, 35, 0.96), rgba(14, 13, 19, 0.7));
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.btn, button, input, select, textarea {
  font-family: var(--font-ui);
}

.card-premium {
  border-radius: var(--card-radius);
  background: var(--card-premium-bg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(var(--blur-card));
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 55px 95px -60px rgba(217,4,41,0.7);
}

/* Surface + text helpers */
.surface-card {
  background: var(--surface-card);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
}

.surface-card--muted {
  background: var(--surface-card-alt);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(calc(var(--blur-card) / 2));
}

.surface-card--frosted {
  background: var(--surface-overlay);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 25px 60px -40px rgba(17, 9, 13, 0.6);
  backdrop-filter: blur(calc(var(--blur-card) * 1.15));
}

.text-muted {
  color: var(--text-muted) !important;
}

.eyebrow-label {
  font-size: var(--type-xs);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-weight: 700;
  color: var(--text-secondary);
}

.pill-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--pill-radius);
  background: rgba(217, 4, 41, 0.12);
  color: var(--color-primary);
  font-size: var(--type-xs);
  font-weight: 600;
}

.card-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  margin: 1.5rem 0;
}

/* Button system */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn {
  font-family: var(--font-body);
  border: none;
  background: transparent;
}

.btn,
button.btn,
a.btn,
input[type="button"].btn,
input[type="submit"].btn,
input[type="reset"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--pill-radius);
  font-weight: 600;
  font-size: var(--type-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0px) scale(0.99);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.btn-lg {
  padding: 1rem 2.75rem;
  font-size: var(--type-base);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  background: var(--surface-muted);
}

.btn-premium {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  box-shadow: 0 18px 35px -20px rgba(217, 4, 41, 0.9);
}

.btn-premium:hover {
  box-shadow: 0 25px 45px -20px rgba(217, 4, 41, 0.85);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(17, 9, 13, 0.08);
}

.btn-outline:hover {
  background: rgba(217, 4, 41, 0.08);
  border-color: var(--border-glow);
}

.btn-soft {
  background: rgba(217, 4, 41, 0.12);
  color: var(--color-primary);
  border-color: transparent;
}

.btn-soft:hover {
  background: rgba(217, 4, 41, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(17, 9, 13, 0.05);
}

.btn-contrast {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 12px 25px -20px rgba(17, 9, 13, 0.65);
}

.btn-contrast:hover {
  color: var(--color-primary-dark);
}

.dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: #f5f3f4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dark .btn-outline:hover {
  background: rgba(217, 4, 41, 0.15);
}

.dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Social share buttons */
.social-share-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 15px 35px -20px rgba(0, 0, 0, 0.65);
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 45px -25px rgba(0, 0, 0, 0.75);
  opacity: 0.95;
}

.social-share-btn svg {
  width: 22px;
  height: 22px;
}

.social-share-btn--facebook { background: #1877f2; }
.social-share-btn--whatsapp { background: #25d366; }
.social-share-btn--twitter { background: #0f1419; }
.social-share-btn--linkedin { background: #0a66c2; }

.ad-slot {
  border: 1px dashed rgba(220, 38, 38, 0.35);
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 25px 45px -40px rgba(0, 0, 0, 0.35);
}

.dark .ad-slot {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(248, 113, 113, 0.4);
  box-shadow: 0 25px 45px -40px rgba(15, 23, 42, 0.85);
}

.ad-slot--hero {
  border-style: solid;
  border-width: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 241, 241, 0.95));
}

.ad-slot--sidebar {
  padding: 1.25rem;
  border-radius: 1.5rem;
}

.ad-slot--card {
  border-style: solid;
  background: rgba(248, 250, 252, 0.9);
}

.ad-slot__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ad-slot__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-primary);
}

.ad-slot__size {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(71, 85, 105, 0.8);
  background: rgba(248, 113, 113, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.dark .ad-slot__size {
  color: rgba(248, 250, 252, 0.8);
  background: rgba(248, 113, 113, 0.2);
}

.ad-slot__content {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 1rem;
  padding: 1rem;
}

.dark .ad-slot__content {
  background: rgba(15, 23, 42, 0.6);
}

.ad-image-wrapper img {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 20px 45px -30px rgba(0, 0, 0, 0.45);
}

.ad-placeholder {
  width: 100%;
  min-height: 140px;
  border: 2px dashed rgba(148, 163, 184, 0.6);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  color: rgba(71, 85, 105, 0.9);
}

.dark .ad-placeholder {
  border-color: rgba(148, 163, 184, 0.4);
  color: rgba(226, 232, 240, 0.8);
}

.ad-placeholder__badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(248, 113, 113, 0.15);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.ad-placeholder__hint {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(71, 85, 105, 0.7);
}

.dark .ad-placeholder__hint {
  color: rgba(203, 213, 225, 0.6);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  background: rgba(217,4,41,0.1);
  color: var(--color-primary);
}

.gradient-border {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  z-index: 0;
}

.gradient-border > * {
  position: relative;
  z-index: 1;
  background: inherit;
}

/* Homepage layout helpers */
.home-shell {
  width: 100%;
}

.home-hero-grid {
  align-items: flex-start;
  gap: clamp(1.5rem, 2vw, 3rem);
}

.home-hero-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-feature {
  min-height: clamp(360px, 55vh, 520px);
}

.hero-feature__media {
  min-height: inherit;
}

.home-quick-strip {
  gap: 1rem;
}

.home-quick-card {
  min-height: 120px;
}

.home-sidebar .sticky {
  position: sticky;
  top: 6rem;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 1vw + 1rem, 2.25rem);
}

.sidebar-module {
  border-radius: var(--card-radius);
  border: 1px solid var(--border-soft);
  background: var(--surface-card);
  padding: clamp(1.5rem, 0.75rem + 1vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.sidebar-module:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sidebar-module__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sidebar-module__header h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.sidebar-link {
  font-size: var(--type-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.sidebar-link:hover {
  color: var(--color-primary);
}

.sidebar-feed {
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.35rem 0;
}

.sidebar-rank {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 1rem;
  background: var(--gradient-primary);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 25px -18px rgba(217, 4, 41, 0.8);
}

.sidebar-item__body {
  flex: 1;
  min-width: 0;
}

.sidebar-item__meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sidebar-item__title {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.sidebar-item__title:hover {
  color: var(--color-primary);
}

.sidebar-item .dot {
  opacity: 0.4;
}

.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sidebar-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  color: var(--text-primary);
  font-weight: 600;
  transition: background var(--transition-base), transform var(--transition-base);
}

.sidebar-category:hover {
  background: rgba(217, 4, 41, 0.08);
  transform: translateX(4px);
}

.sidebar-category__count {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-primary);
  font-weight: 700;
}

.sidebar-recent {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.9rem;
}

.sidebar-recent__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-muted);
  aspect-ratio: 1 / 1;
  display: block;
}

.sidebar-recent__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.sidebar-recent__media:hover img {
  transform: scale(1.05);
}

.sidebar-recent__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.sidebar-opinion {
  display: flex;
  gap: 0.9rem;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid rgba(17, 9, 13, 0.08);
}

.sidebar-opinion:last-child {
  border-bottom: none;
}

.sidebar-opinion__avatar img {
  border-radius: 50%;
  box-shadow: 0 12px 25px -18px rgba(0, 0, 0, 0.35);
}

.sidebar-opinion__author {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.sidebar-opinion__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.sidebar-opinion__title:hover {
  color: var(--color-primary);
}

.sidebar-module--newsletter {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border: none;
  box-shadow: 0 35px 65px -45px rgba(217, 4, 41, 0.8);
}

.sidebar-module--newsletter h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0.25rem;
}

.sidebar-input {
  width: 100%;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(17, 9, 13, 0.08);
}

.sidebar-input::placeholder {
  color: rgba(17, 9, 13, 0.45);
}

.sidebar-module--ad {
  border-style: dashed;
  border-color: rgba(17, 9, 13, 0.15);
  background: var(--surface-muted);
}

.sidebar-module__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.sidebar-module__ad {
  min-height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-module--social .sidebar-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-social__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  color: var(--text-primary);
  font-weight: 600;
  transition: background var(--transition-base), transform var(--transition-base);
}

.sidebar-social__item span:last-child {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sidebar-social__item:hover {
  background: rgba(217, 4, 41, 0.08);
  transform: translateX(4px);
}

.sidebar-module--opinion {
  background: var(--surface-card-alt);
  backdrop-filter: blur(20px);
}

.dark .sidebar-module {
  background: var(--surface-card-alt);
  box-shadow: none;
}

.dark .sidebar-module--ad {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.dark .sidebar-category {
  background: rgba(255, 255, 255, 0.04);
}

.dark .sidebar-category__count {
  background: rgba(255, 255, 255, 0.1);
}

.dark .sidebar-item__meta,
.dark .sidebar-opinion__author {
  color: rgba(255, 255, 255, 0.55);
}

.dark .sidebar-item__title,
.dark .sidebar-opinion__title {
  color: #fff;
}

.dark .sidebar-module--newsletter {
  background: var(--gradient-dark);
}

.sidebar-module--list .sidebar-item + .sidebar-item {
  border-top: 1px solid rgba(17, 9, 13, 0.08);
  padding-top: 0.85rem;
}

.sidebar-module--list .sidebar-item:first-child {
  padding-top: 0;
}

.sidebar-module--list .sidebar-item:last-child {
  padding-bottom: 0;
}

.sidebar-module--list article + article {
  border-top: 1px solid rgba(17, 9, 13, 0.08);
  padding-top: 1rem;
}

.dark .sidebar-module--list article + article,
.dark .sidebar-module--list .sidebar-item + .sidebar-item {
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-module--ad[data-slot="sidebar_top"] .sidebar-module__ad {
  min-height: 280px;
}

.sidebar-module--newsletter form {
  margin-top: 1.25rem;
}

.sidebar-module--newsletter .btn-contrast {
  background: #fff;
  color: var(--color-primary);
}

.sidebar-module--newsletter .btn-contrast:hover {
  filter: brightness(0.95);
}

.dot {
  font-size: 1.1em;
}

@media (max-width: 1024px) {
  .sidebar-recent {
    grid-template-columns: 80px 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar-module {
    padding: 1.25rem;
  }

  .sidebar-module__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar-social__item,
  .sidebar-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trending-card {
  min-height: 120px;
}

.opinion-grid {
  grid-auto-rows: 1fr;
}

.opinion-card {
  height: 100%;
}

a {
  text-decoration: none;
}

/* Ticker animation for breaking news */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll {
  animation: scroll 30s linear infinite;
}

/* News cards */
.news-card {
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .max-w-7xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  h1 {
    font-size: 2rem !important;
  }

  .home-shell {
    padding-top: 2rem;
  }

  .home-hero-grid {
    gap: 2rem;
  }

  .hero-feature__media {
    height: 420px;
  }

  .home-quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-quick-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-quick-card .w-20 {
    width: 100%;
    height: 140px;
  }

  .home-sidebar .sticky {
    position: static;
  }

  .trending-card {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero-feature__media {
    height: 360px;
  }

  .home-quick-strip {
    grid-template-columns: 1fr;
  }

  .home-quick-card {
    padding: 1.25rem;
    gap: 0.75rem;
  }

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

  .opinion-card {
    padding: 1.5rem;
  }

  .trending-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Brand overrides for Tailwind utility colors used in templates */
.bg-yellow-500 { background-color: var(--brand-yellow) !important; }
.bg-yellow-600 { background-color: var(--brand-yellow-dark) !important; }
.text-yellow-500,
.text-yellow-600 { color: var(--brand-yellow-dark) !important; }
.hover\:bg-yellow-600:hover { background-color: var(--brand-yellow-dark) !important; }
.hover\:text-yellow-600:hover { color: var(--brand-yellow-dark) !important; }

.bg-red-600 { background-color: var(--brand-red) !important; }
.bg-red-700 { background-color: var(--brand-red-dark) !important; }
.hover\:bg-red-700:hover { background-color: var(--brand-red-dark) !important; }
.hover\:text-red-600:hover { color: var(--brand-red) !important; }
.hover\:text-red-700:hover { color: var(--brand-red-dark) !important; }
.hover\:text-red-800:hover { color: #991b1b !important; }
.hover\:text-red-900:hover { color: #7f1d1d !important; }

.bg-gray-900 { background-color: var(--brand-black) !important; }
.dark .bg-gray-900 { background-color: #000000 !important; }
.dark .bg-black { background-color: #000000 !important; }
.dark .text-gray-300,
.dark .text-gray-400 { color: #c7c7c7 !important; }

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll {
  animation: scroll 30s linear infinite;
}

.news-card {
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Image Captions - Custom Style */
.wp-caption,
figure {
  margin: 1.5rem 0;
}

.wp-caption-text,
figcaption {
  font-size: 0.75rem !important; /* 12px - small font size */
  line-height: 1.4 !important;
  color: #6b7280 !important; /* Gray-500 */
  font-style: italic !important;
  text-align: center !important;
  margin-top: 0.5rem !important;
  padding: 0.25rem 0.5rem !important;
  background-color: #f9fafb !important; /* Gray-50 */
  border-left: 3px solid var(--brand-red) !important;
  border-radius: 0 0.25rem 0.25rem 0 !important;
}

/* Dark mode caption styles */
.dark .wp-caption-text,
.dark figcaption {
  color: #9ca3af !important; /* Gray-400 */
  background-color: #1f2937 !important; /* Gray-800 */
  border-left-color: var(--brand-red) !important;
}

/* WordPress specific caption styles */
.wp-caption.aligncenter,
.wp-caption.alignleft,
.wp-caption.alignright {
  margin-bottom: 1.5rem;
}

.wp-caption img {
  margin-bottom: 0.5rem;
}

.wp-caption .wp-caption-text {
  margin-bottom: 0;
}

/* Gallery caption styles */
.gallery-item .gallery-caption {
  font-size: 0.7rem !important; /* 11px - even smaller for galleries */
  color: #6b7280 !important;
  font-style: italic;
  text-align: center;
  margin-top: 0.25rem;
  padding: 0.25rem;
  background-color: rgba(249, 250, 251, 0.8);
  border-radius: 0.25rem;
}

.dark .gallery-item .gallery-caption {
  color: #9ca3af !important;
  background-color: rgba(31, 41, 55, 0.8);
}

/* Article content specific caption styles */
.prose figcaption,
.prose .wp-caption-text {
  font-size: 0.75rem !important; /* 12px */
  line-height: 1.4 !important;
  color: #6b7280 !important; /* Gray-500 */
  font-style: italic !important;
  text-align: center !important;
  margin: 0.75rem 0 !important;
  padding: 0.5rem !important;
  background-color: #f9fafb !important; /* Gray-50 */
  border-left: 3px solid var(--brand-red) !important;
  border-radius: 0 0.375rem 0.375rem 0 !important;
  font-weight: 400 !important;
  letter-spacing: 0.025em !important;
}

.dark .prose figcaption,
.dark .prose .wp-caption-text {
  color: #9ca3af !important; /* Gray-400 */
  background-color: #1f2937 !important; /* Gray-800 */
  border-left-color: var(--brand-red) !important;
}

/* Featured image caption */
.post-thumbnail-caption {
  font-size: 0.875rem !important; /* 14px - slightly larger for featured */
  color: #6b7280 !important;
  font-style: italic;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  border-left: 4px solid var(--brand-red);
  border-radius: 0 0.5rem 0.5rem 0;
}

.dark .post-thumbnail-caption {
  color: #9ca3af !important;
  background-color: #1f2937 !important;
  border-left-color: var(--brand-red) !important;
}

.section-underline {
  height: 3px;
  width: 48px;
  background: var(--brand-blue-dark);
  border-radius: 999px;
}

.sidebar-number {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}


::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ============================================
   DARK MODE - COMPREHENSIVE STYLES
   Covers ALL layers of the site
   ============================================ */
.dark {
  color-scheme: dark;
}

/* --- Base --- */
.dark body,
html.dark body {
  background: #111827 !important;
  color: #e2e8f0;
}

/* --- Backgrounds --- */
.dark .bg-white {
  background: #1f2937 !important;
}

.dark .bg-gray-50 {
  background: #1f2937 !important;
}

.dark .bg-gray-100 {
  background: #374151 !important;
}

.dark .bg-gray-200 {
  background: #4b5563 !important;
}

.dark .bg-gray-900 {
  background: #000000 !important;
}

.dark .bg-black {
  background: #000000 !important;
}

/* Single Article Layout */
.single-wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .single-wrapper {
    max-width: 48rem;
    padding: 0 2rem;
  }
}

.single-breadcrumb {
  margin-bottom: 1.5rem;
}

.single-article {
  border-radius: var(--card-radius);
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.single-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 55px 95px -60px rgba(217,4,41,0.7);
}

.single-article__header {
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  border-bottom: 1px solid var(--border-soft);
}

.single-article__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pill-soft--opinion {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.single-article__title {
  font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.75rem);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
}

.single-article__excerpt {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.single-article__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  border: 1px solid var(--border-soft);
}

.single-author__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 25px -18px rgba(0,0,0,0.35);
}

.single-author__info {
  flex: 1;
}

.single-author__name {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.single-author__name:hover {
  color: var(--color-primary);
}

.single-author__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
}

.single-author__date {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
}

.single-ad {
  padding: clamp(1.5rem, 1rem + 1vw, 2.5rem);
}

.single-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-muted);
}

.single-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-content {
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.single-reactions {
  margin-top: 2rem;
}

.single-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}

.single-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.single-tags__tag {
  padding: 0.5rem 1rem;
  border-radius: var(--pill-radius);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface-muted);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.single-tags__tag:hover {
  background: rgba(217, 4, 41, 0.08);
  border-color: var(--border-glow);
  color: var(--color-primary);
}

.single-share {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}

.single-share__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .single-share__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.single-share__social {
  display: flex;
  gap: 0.75rem;
}

.single-share__contact {
  text-align: right;
}

.single-share__email {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-base);
}

.single-share__email:hover {
  color: var(--color-primary-dark);
}

.single-related {
  padding: clamp(1.5rem, 1rem + 1vw, 2.5rem);
  border-top: 1px solid var(--border-soft);
}

.single-comments {
  padding: clamp(1.5rem, 1rem + 1vw, 2.5rem);
  border-top: 1px solid var(--border-soft);
}

/* Archive Layout */
.archive-wrapper {
  padding: 0 1rem;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .archive-wrapper {
    padding: 0 2rem;
  }
}

.archive-header {
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  border-radius: var(--card-radius);
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.archive-header__title {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.archive-header__desc {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 48rem;
}

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

@media (min-width: 1024px) {
  .archive-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.archive-main {
  min-width: 0;
}

.archive-sidebar {
  min-width: 0;
}

.archive-sidebar__sticky {
  position: sticky;
  top: 6rem;
}

.archive-feed__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.archive-card {
  border-radius: var(--card-radius);
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.archive-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-glow);
}

.archive-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.archive-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-muted);
}

.archive-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.archive-card:hover .archive-card__img {
  transform: scale(1.05);
}

.archive-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  font-size: var(--type-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  backdrop-filter: blur(8px);
}

.dark .archive-card__badge {
  background: rgba(0, 0, 0, 0.6);
}

.archive-card__body {
  padding: 1.5rem;
}

.archive-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.archive-card:hover .archive-card__title {
  color: var(--color-primary);
}

.archive-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.archive-card__author,
.archive-card__date {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.archive-pagination {
  margin-top: 2rem;
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.archive-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 3rem 1rem;
}

/* Opinion Archive Specific */
.archive-wrapper--opinion .archive-header--opinion {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border: none;
}

.archive-wrapper--opinion .archive-header__title,
.archive-wrapper--opinion .archive-header__desc {
  color: inherit;
}

.opinion-feed__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

@media (min-width: 1280px) {
  .opinion-feed__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.opinion-card {
  border-radius: var(--card-radius);
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.opinion-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-glow);
}

.opinion-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.opinion-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.opinion-card__avatar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 3px solid var(--surface-card);
  box-shadow: 0 12px 25px -18px rgba(0,0,0,0.35);
  z-index: 1;
}

.opinion-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.opinion-card:hover .opinion-card__img {
  transform: scale(1.05);
}

.opinion-card__body {
  padding: 1.5rem;
}

.opinion-card__author {
  margin-bottom: 0.75rem;
}

.opinion-card__author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.opinion-card__author-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
}

.opinion-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.opinion-card:hover .opinion-card__title {
  color: var(--color-primary);
}

.opinion-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opinion-card__meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.opinion-card__date {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Dark mode adjustments */
.dark .single-article__meta,
.dark .archive-header,
.dark .archive-card,
.dark .opinion-card {
  background: var(--surface-card-alt);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .archive-card__badge {
  background: rgba(0, 0, 0, 0.6);
}

.dark .opinion-card__avatar {
  border-color: var(--surface-card-alt);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .archive-sidebar__sticky {
    position: static;
  }
  
  .opinion-card__avatar {
    width: 3rem;
    height: 3rem;
  }
}

/* --- Text Colors --- */
.dark .text-gray-900,
.dark .text-black {
  color: #f1f5f9 !important;
}

.dark .text-gray-800 {
  color: #e2e8f0 !important;
}

.dark .text-gray-700 {
  color: #cbd5e1 !important;
}

.dark .text-gray-600 {
  color: #94a3b8 !important;
}

.dark .text-gray-500 {
  color: #64748b !important;
}

.dark .text-gray-400 {
  color: #9ca3af !important;
}

.dark .text-gray-300 {
  color: #d1d5db !important;
}

/* --- Borders --- */
.dark .border-gray-100,
.dark .border-gray-200,
.dark .border-gray-300 {
  border-color: #374151 !important;
}

.dark .border-gray-900 {
  border-color: #6b7280 !important;
}

.dark .border-b-4 {
  border-color: inherit;
}

/* --- Header --- */
.dark header {
  background: #111827 !important;
  border-color: #374151;
}

/* --- Cards (front-page, category, latest news) --- */
.dark .shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2) !important;
}

.dark .shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3) !important;
}

.dark .shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
}

.dark .news-card {
  border-color: #374151;
  background: #1f2937;
}

/* --- Sidebar: Trending --- */
.dark .bg-yellow-50 {
  background: #1f2937 !important;
}

.dark .border-yellow-200 {
  border-color: #374151 !important;
}

/* --- Sidebar: Social Media --- */
.dark .bg-white.rounded-2xl {
  background: #1f2937 !important;
}

/* --- Sidebar: Newsletter (keep red) --- */

/* --- Opinion Section --- */
.dark .text-sm.text-gray-600 {
  color: #94a3b8 !important;
}

/* --- Hover States --- */
.dark .hover\:bg-gray-100:hover {
  background: #374151 !important;
}

.dark .hover\:bg-gray-50:hover {
  background: #374151 !important;
}

.dark .hover\:bg-gray-200:hover {
  background: #4b5563 !important;
}

/* --- Tags --- */
.dark .bg-gray-100.hover\:bg-gray-200 {
  background: #374151 !important;
  color: #d1d5db !important;
}

.dark .bg-gray-100.hover\:bg-gray-200:hover {
  background: #4b5563 !important;
}

/* --- Footer (already dark, keep as is) --- */

/* --- Ad Spaces --- */
.dark .ad-content {
  opacity: 0.9;
}

/* --- Search Form --- */
.dark #search-form-container {
  background: #1f2937 !important;
  border-color: #374151 !important;
}

.dark #search-input {
  background: #374151 !important;
  border-color: #4b5563 !important;
  color: #f1f5f9 !important;
}

/* --- Prose (Article Content) --- */
.dark .prose {
  color: #cbd5e1;
}

.dark .prose h1,
.dark .prose h2,
.dark .prose h3,
.dark .prose h4,
.dark .prose h5,
.dark .prose h6 {
  color: #f1f5f9 !important;
}

.dark .prose p {
  color: #cbd5e1;
}

.dark .prose strong {
  color: #f1f5f9 !important;
}

.dark .prose a {
  color: #60a5fa;
}

.dark .prose a:hover {
  color: #93bbfd;
}

.dark .prose blockquote {
  border-color: #4b5563;
  color: #94a3b8;
}

.dark .prose code {
  color: #e2e8f0;
  background: #374151;
}

.dark .prose pre {
  background: #1e293b;
}

/* --- Headings (global) --- */
.dark h1, .dark h2, .dark h3 {
  color: #f1f5f9;
}

/* --- Pagination --- */
.dark .pagination a,
.dark .pagination span {
  border-color: #374151;
  color: #cbd5e1;
}

.dark .pagination a:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

/* --- Scrollbar --- */
.dark ::-webkit-scrollbar-track {
  background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
  background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* --- Forms --- */
.dark input[type="text"],
.dark input[type="email"],
.dark input[type="search"],
.dark textarea {
  background: #374151 !important;
  border-color: #4b5563 !important;
  color: #f1f5f9 !important;
}

/* --- Comments --- */
.dark .comment-body {
  background: #1f2937;
  border-color: #374151;
}

/* --- Transition for smooth dark mode toggle --- */
body,
header,
main,
article,
section,
div,
footer,
nav,
aside {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Widget spacing */
.widget {
  margin-bottom: 2rem;
}

#secondary .widget:last-child {
  margin-bottom: 0;
}

/* Reaction buttons */
.reaction-btn {
  cursor: pointer;
  user-select: none;
}

.reaction-btn:active {
  transform: scale(0.95);
}

/* Lightbox for images */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.pagination .current {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

/* Prose styling for post content */
.prose {
  color: #374151;
  max-width: 65ch;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose h2 {
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose h3 {
  font-size: 1.25em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.prose ul, .prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose img {
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
}

.prose a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--brand-blue-dark);
}

.prose strong {
  font-weight: 600;
  color: #111827;
}

.prose-lg {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* ============================================
   NAVIGATION MENU STYLES
   ============================================ */
.nav-item {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
}

.nav-item:hover {
  color: #000000;
  background-color: #fbbf24;
}

.nav-item.active {
  color: #000000;
  background-color: #fbbf24;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Dark mode adjustments */
.dark .nav-item {
  color: #d1d5db;
}

.dark .nav-item:hover,
.dark .nav-item.active {
  color: #000000;
  background-color: #fbbf24;
}

/* Mobile menu toggle (if needed in future) */
@media (max-width: 1023px) {
  .nav-item {
    padding: 1rem;
    border-radius: 0;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .dark .nav-item {
    border-bottom-color: #374151;
  }
}

