:root {
  --aldia-red: #e31837;
  --aldia-red-dark: #b81029;
  --aldia-red-soft: rgba(227, 24, 55, 0.1);
  --bg-primary: #ffffff;
  --bg-secondary: #f6f7f9;
  --bg-tertiary: #edf0f5;
  --bg-elevated: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  --header-bg: #0a0a0c;
  --header-text: #ffffff;
  --gold-accent: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
}

[data-theme="dark"] {
  --bg-primary: #0b0f17;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --bg-elevated: #151e2e;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --border-strong: #334155;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  max-width: 100vw;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 1. TOP INSTITUTIONAL AD BANNER (El Sol High-Viewability Pattern) */
.top-billboard-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.billboard-slot {
  max-width: 970px;
  margin: 0 auto;
  background: linear-gradient(90deg, #0d1b2a 0%, #1b263b 55%, #e31837 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.billboard-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.16);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.billboard-copy {
  font-size: 14px;
  font-weight: 600;
}

.billboard-cta {
  background: #fff;
  color: #0d1b2a;
  font-weight: 800;
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 99px;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

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

/* 2. UTILITY & WEATHER BAR (Combined El Sol + Al Día) */
.utility-bar {
  background: #050507;
  color: #cbd5e1;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 12px;
  flex-wrap: wrap;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.weather-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  padding: 3px 10px;
  border-radius: 99px;
  color: #fff;
  font-weight: 600;
}

.breaking-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  max-width: 480px;
}

.breaking-badge {
  background: var(--aldia-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.breaking-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f1f5f9;
  font-weight: 500;
}

.lang-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  padding: 2px;
}

.lang-btn {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--aldia-red);
  color: #fff;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* 3. MAIN BRAND HEADER */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 3px solid var(--aldia-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-trigger {
  display: none;
  color: #fff;
  font-size: 22px;
  padding: 6px;
}

.brand-logo-box {
  background: var(--aldia-red);
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}

.brand-logo-box img {
  height: 36px;
  width: auto;
}

.brand-slogan {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
  font-weight: 600;
}

.brand-slogan strong {
  color: var(--aldia-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 8px 14px 8px 34px;
  border-radius: 99px;
  font-size: 13px;
  width: 210px;
  transition: width 0.2s, border-color 0.2s;
}

.search-input:focus {
  outline: none;
  width: 250px;
  border-color: var(--aldia-red);
  background: rgba(255, 255, 255, 0.15);
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 13px;
  color: #94a3b8;
  pointer-events: none;
}

/* Integrated Digital Newspaper Header Trigger */
.btn-digital-edition {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-digital-edition:hover {
  background: rgba(227, 24, 55, 0.25);
  border-color: var(--aldia-red);
}

.mini-cover-thumb {
  width: 24px;
  height: 30px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: rotate(-4deg);
}

.btn-subscribe {
  background: var(--aldia-red);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-subscribe:hover {
  background: var(--aldia-red-dark);
}

/* 4. HORIZONTAL DESKTOP NAVIGATION BAR (Superior to Al Día's hidden menu) */
.primary-nav-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item-btn {
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-item-btn:hover,
.nav-item-btn.active {
  background: var(--aldia-red);
  color: #fff;
}

.nav-item-btn.highlight-kiosk {
  background: var(--aldia-red-soft);
  color: var(--aldia-red);
  border: 1px solid rgba(227, 24, 55, 0.3);
}

.nav-item-btn.highlight-kiosk:hover {
  background: var(--aldia-red);
  color: #fff;
}

/* Sub-regional Filter Bar (Philadelphia, Montgomery, Mercer, New Castle) */
.regional-subbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 7px 0;
  font-size: 12px;
}

.regional-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.regional-label {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--aldia-red);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.region-chip {
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.15s;
}

.region-chip.active,
.region-chip:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* 5. HERO SECTION + TRENDING SIDEBAR */
.hero-section {
  padding: 28px 0 20px;
}

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

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0a0c;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.hero-media-wrap {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
}

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

.hero-main-card:hover .hero-media-wrap img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.05) 0%, rgba(10, 10, 12, 0.65) 55%, rgba(10, 10, 12, 0.96) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #fff;
}

.kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.kicker-badge {
  background: var(--aldia-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.kicker-tag {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.22;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-deck {
  font-size: 15px;
  color: #e2e8f0;
  max-width: 780px;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #cbd5e1;
  flex-wrap: wrap;
}

/* Sub-Hero 2-card row */
.hero-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Trending & Newsletter Right Sidebar */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.trending-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--aldia-red);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aldia-inline-pill {
  background: var(--aldia-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trending-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

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

.trending-rank {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--aldia-red);
  line-height: 1;
}

.trending-item-kicker {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--aldia-red);
  letter-spacing: 0.06em;
}

.trending-item-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-top: 2px;
  transition: color 0.15s;
}

.trending-item:hover .trending-item-title {
  color: var(--aldia-red);
}

/* 6. INTEGRATED IN-WEB DIGITAL NEWSPAPER STUDIO (Replaces Issuu 100% In-Site) */
.kiosk-showcase-section {
  margin: 36px 0;
  background: linear-gradient(135deg, #0b0f17 0%, #161f30 60%, #1f121b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(227, 24, 55, 0.35);
  box-shadow: var(--shadow-lg);
}

.kiosk-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.kiosk-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.kiosk-live-pill {
  background: var(--aldia-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kiosk-tech-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.kiosk-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  color: #fff;
}

.kiosk-subtitle {
  color: #cbd5e1;
  font-size: 14px;
  margin-top: 4px;
}

.kiosk-controls-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.07);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.kiosk-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.kiosk-btn:hover {
  background: var(--aldia-red);
}

.kiosk-btn.primary-upload {
  background: var(--aldia-red);
  color: #fff;
}

.kiosk-btn.primary-upload:hover {
  background: var(--aldia-red-dark);
}

.page-counter-badge {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  padding: 0 10px;
  min-width: 110px;
  text-align: center;
}

.kiosk-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: stretch;
}

.flipbook-stage-wrap {
  background: radial-gradient(circle at center, #1e293b 0%, #090d14 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  position: relative;
  overflow: hidden;
}

.flipbook-viewport {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

/* Newspaper Page Styling inside StPageFlip */
.newspaper-page {
  background: #fdfbf7;
  color: #111827;
  border: 1px solid #d6d3cd;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.06);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  user-select: none;
}

.newspaper-page.cover-page {
  padding: 0;
  background: #0a0a0c;
  color: #fff;
}

.np-cover-full {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.np-cover-full img.np-cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.np-cover-top {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.np-cover-bottom {
  position: relative;
  z-index: 2;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.65) 75%, transparent 100%);
  padding: 24px 18px 18px;
}

.np-masthead {
  border-bottom: 2px solid #111827;
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5563;
}

.np-kicker {
  display: inline-block;
  background: var(--aldia-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.np-headline {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 8px;
  color: #0f172a;
}

.np-photo {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.np-columns {
  font-size: 11.5px;
  line-height: 1.48;
  color: #1f2937;
  column-count: 2;
  column-gap: 14px;
  text-align: justify;
}

.np-read-article-btn {
  margin-top: 10px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  align-self: flex-start;
  transition: background 0.15s;
}

.np-read-article-btn:hover {
  background: var(--aldia-red);
}

.np-footer {
  border-top: 1px solid #d1d5db;
  padding-top: 6px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #6b7280;
  font-weight: 700;
}

/* Kiosk Sidebar (Index + Editions Archive) */
.kiosk-sidebar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.kiosk-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.kiosk-toc-item {
  padding: 9px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.kiosk-toc-item:hover,
.kiosk-toc-item.active {
  background: rgba(227, 24, 55, 0.22);
  border-color: var(--aldia-red);
}

.toc-page-num {
  font-family: var(--font-display);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.14);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Thumbnail strip below Flipbook */
.kiosk-thumbs-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.thumb-pill {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.thumb-pill.active,
.thumb-pill:hover {
  background: var(--aldia-red);
  color: #fff;
}

/* 7. EDITORIAL SECTIONS & CARDS (Combining Al Día Kicker + El Sol Full Headline) */
.editorial-section {
  padding: 28px 0;
  border-top: 1px solid var(--border-color);
}

.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
}

.section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--aldia-red) 0%, var(--border-color) 100%);
}

.section-more-link {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aldia-red);
  white-space: nowrap;
}

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

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

.news-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--aldia-red);
}

.card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-tertiary);
}

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

.news-card:hover .card-thumb-wrap img {
  transform: scale(1.05);
}

.card-region-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--aldia-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Al Día's signature short label kept as a Kicker, paired with full journalistic headline */
.card-kicker-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aldia-red);
  margin-bottom: 5px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

/* 8. THOUGHT LEADERS (Líderes de Opinión) & B2B HUB (AL DÍA Live + Jobs) */
.opinion-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.opinion-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.opinion-card:hover {
  border-color: var(--aldia-red);
}

.opinion-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opinion-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--aldia-red);
}

.opinion-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.38;
  color: var(--text-primary);
}

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

.b2b-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.job-row:last-child {
  border-bottom: none;
}

/* 9. ARTICLE READER MODAL + STICKY VIDEO + SELECTION SHARER (From REA Decompilation) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.article-modal-card {
  background: var(--bg-primary);
  color: var(--text-primary);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  position: relative;
}

.reading-progress-bar {
  position: sticky;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--aldia-red);
  width: 0%;
  z-index: 10;
  transition: width 0.1s;
}

.article-modal-header {
  position: sticky;
  top: 4px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9;
}

.article-modal-content {
  padding: 28px 32px 40px;
}

.article-modal-body p {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 18px;
  color: var(--text-primary);
  transition: font-size 0.2s ease;
}

.article-modal-body p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 58px;
  line-height: 0.85;
  float: left;
  margin-right: 10px;
  margin-top: 4px;
  font-weight: 700;
  color: var(--aldia-red);
}

/* Audio Player Bar (Text-to-Speech Narrator) */
.article-audio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.audio-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--aldia-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  transition: all 0.2s;
}

.audio-btn-pill:hover {
  background: var(--aldia-red-dark);
}

.audio-btn-pill.speaking {
  background: #0f172a;
}

.sound-wave-box {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.sound-wave-bar {
  width: 3px;
  height: 6px;
  background: var(--aldia-red);
  border-radius: 2px;
  transition: height 0.15s ease;
}

.sound-wave-box.active .sound-wave-bar:nth-child(1) { animation: soundWave 0.8s infinite ease-in-out alternate; }
.sound-wave-box.active .sound-wave-bar:nth-child(2) { animation: soundWave 0.6s infinite ease-in-out alternate 0.2s; }
.sound-wave-box.active .sound-wave-bar:nth-child(3) { animation: soundWave 1.0s infinite ease-in-out alternate 0.1s; }
.sound-wave-box.active .sound-wave-bar:nth-child(4) { animation: soundWave 0.7s infinite ease-in-out alternate 0.3s; }
.sound-wave-box.active .sound-wave-bar:nth-child(5) { animation: soundWave 0.9s infinite ease-in-out alternate 0.15s; }

@keyframes soundWave {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* Font Size Controls inside Modal Header */
.font-size-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.font-size-btn {
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--text-primary);
  font-weight: 800;
}

.font-size-btn:hover {
  background: var(--border-color);
}

/* Bookmark Buttons on Cards */
.card-bookmark-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
  z-index: 5;
}

.card-bookmark-btn:hover,
.card-bookmark-btn.active {
  background: var(--aldia-red);
  color: #fff;
  transform: scale(1.1);
}

.btn-header-bookmarks {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-header-bookmarks:hover {
  background: rgba(227, 24, 55, 0.25);
  border-color: var(--aldia-red);
}

.bookmark-counter-pill {
  background: var(--aldia-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
}

/* Selection Sharer Popover (Reconstructed from REA ./assets/libraries/selection-sharer) */
.selection-sharer-popover {
  position: fixed;
  z-index: 350;
  background: #0f172a;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: none;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -115%);
}

.selection-sharer-popover.visible {
  display: inline-flex;
}

.share-chip-btn {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.share-chip-btn:hover {
  background: var(--aldia-red);
}

/* 10. FOOTER */
.site-footer {
  background: #07090e;
  color: #cbd5e1;
  padding: 48px 0 28px;
  margin-top: 48px;
  border-top: 4px solid var(--aldia-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-heading {
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--aldia-red);
}

/* 11. MOBILE RESPONSIVENESS (Zero Overflow at 412px & 375px) */
@media (max-width: 1080px) {
  .hero-grid,
  .kiosk-workspace,
  .b2b-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cards-grid-4,
  .opinion-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
    max-width: 100%;
    overflow-x: hidden;
  }
  .utility-inner {
    justify-content: space-between;
    gap: 6px;
  }
  .utility-left, .utility-right {
    gap: 6px;
  }
  .theme-toggle-btn span:last-child {
    display: none;
  }
  .billboard-slot {
    flex-direction: column;
    text-align: center;
    padding: 10px 12px;
  }
  .breaking-ticker {
    display: none;
  }
  .header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
  }
  .brand-logo-box {
    padding: 6px 10px;
  }
  .brand-logo-box img {
    height: 26px;
  }
  .brand-slogan,
  .search-box,
  .btn-digital-edition span.edition-label-text {
    display: none;
  }
  .btn-subscribe {
    padding: 8px 12px;
    font-size: 11px;
  }
  .mobile-menu-trigger {
    display: inline-flex;
  }
  .hero-media-wrap {
    aspect-ratio: 4 / 3;
    min-height: 290px;
  }
  .hero-overlay {
    padding: 14px;
  }
  .hero-h1 {
    font-size: 19px;
    line-height: 1.24;
  }
  .hero-deck {
    font-size: 13px;
  }
  .hero-subgrid,
  .cards-grid-3,
  .cards-grid-4,
  .opinion-strip,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .kiosk-showcase-section {
    padding: 16px 12px;
  }
  .flipbook-stage-wrap {
    padding: 8px;
    min-height: 440px;
  }
  .article-modal-content {
    padding: 16px;
  }
}
