/* SSAG News - CBS News Broadcast Network Design System */
:root {
  --cbs-black: #000000;
  --cbs-dark: #121212;
  --cbs-blue: #003366;
  --cbs-blue-light: #0066cc;
  --cbs-red: #dc2626;
  --text-main: #1f2937;
  --text-dark: #000000;
  --text-muted: #6b7280;
  --border-light: #e5e7eb;
  --border-dark: #d1d5db;
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Merriweather", "Times New Roman", serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* =========================================
   HEADER: CBS NEWS BROADCAST STYLE
========================================= */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

/* Top Utility Row */
.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}

.top-nav-left a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #000000;
}

.top-nav-left a:hover {
  color: var(--cbs-blue);
}

.live-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #000000;
  font-weight: 800;
}

.live-badge-top .red-dot {
  width: 8px;
  height: 8px;
  background-color: var(--cbs-red);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Center Broadcast Masthead */
.header-brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.brand-eye-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-wordmark {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #000000;
  text-transform: uppercase;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-trigger-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  display: flex;
  align-items: center;
  padding: 6px;
}

/* Category Topics Bar */
.category-topics-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding: 10px 0;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.category-topics-bar::-webkit-scrollbar {
  display: none;
}

.topic-item {
  transition: color 0.15s;
}

.topic-item:hover,
.topic-item.active {
  color: #000000;
  font-weight: 800;
}

/* =========================================
   HOMEPAGE GRID (CBS NEWS 3-COLUMN BROADCAST)
========================================= */
.main-news-section {
  padding: 24px 0 48px 0;
}

.broadcast-hero-grid {
  display: grid;
  grid-template-columns: 2.3fr 1.5fr 1.3fr;
  gap: 24px;
  align-items: start;
}

/* Column 1: Big Lead Headline & Image */
.hero-lead-col {
  border-right: 1px solid var(--border-light);
  padding-right: 24px;
}

.hero-lead-card {
  position: relative;
}

.lead-img-box {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 14px;
}

.lead-img-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-lead-card:hover .lead-img-box img {
  transform: scale(1.02);
}

.live-pill-red {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--cbs-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lead-article-headline {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: #000000;
  margin-bottom: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.lead-article-headline:hover {
  color: var(--cbs-blue);
}

.lead-summary-text {
  font-size: 15px;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 12px;
}

.lead-meta-row {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Column 2: 5 Vertical Digest Stories with Thumbs */
.hero-digest-col {
  border-right: 1px solid var(--border-light);
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.digest-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.digest-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.digest-thumb {
  width: 90px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
}

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

.digest-content {
  flex: 1;
}

.digest-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: #000000;
  margin-bottom: 4px;
}

.digest-title:hover {
  color: var(--cbs-blue);
  text-decoration: underline;
}

.digest-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Column 3: Live 24/7 Broadcast Stream & Special Dossier */
.hero-live-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.live-stream-widget {
  background: #000000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.live-screen-banner {
  background: linear-gradient(135deg, #001a40 0%, #004080 50%, #001a40 100%);
  padding: 36px 16px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.live-screen-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.live-screen-sub {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-stream-footer {
  background: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-light);
}

.stream-badge-red {
  background: var(--cbs-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}

.stream-label-text {
  font-size: 14px;
  font-weight: 800;
  color: #000000;
}

/* Special Town Hall / Dossier Box */
.special-dossier-box {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 16px;
  background: var(--bg-subtle);
}

.dossier-box-title {
  font-size: 17px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 14px;
  border-bottom: 2px solid #000000;
  padding-bottom: 6px;
}

.dossier-item {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

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

.dossier-tag {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 2px;
  margin-bottom: 4px;
}

.dossier-headline {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: #000000;
}

.dossier-headline:hover {
  color: var(--cbs-blue);
  text-decoration: underline;
}

/* Secondary 4-Column Showcase */
.secondary-section-title {
  font-size: 20px;
  font-weight: 900;
  color: #000000;
  margin: 36px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.showcase-card {
  display: flex;
  flex-direction: column;
}

.showcase-thumb {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.showcase-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.showcase-kicker {
  font-size: 11px;
  font-weight: 900;
  color: var(--cbs-red);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.showcase-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: #000000;
  margin-bottom: 6px;
}

.showcase-title:hover {
  color: var(--cbs-blue);
  text-decoration: underline;
}

/* =========================================
   ARTICLE DETAIL PAGE
========================================= */
.article-wrap {
  max-width: 860px;
  margin: 32px auto 60px auto;
  padding: 0 16px;
}

.article-header {
  margin-bottom: 24px;
}

.article-category-kicker {
  font-size: 12px;
  font-weight: 900;
  color: var(--cbs-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.article-main-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  color: #000000;
  margin-bottom: 14px;
}

.article-standfirst {
  font-size: 18px;
  line-height: 1.45;
  color: #4b5563;
  margin-bottom: 20px;
}

.article-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  margin-bottom: 24px;
  font-size: 13px;
}

.article-byline-author {
  font-weight: 800;
  color: #000000;
}

.article-hero-media {
  margin-bottom: 24px;
}

.article-hero-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 4px;
}

.media-caption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.article-text-body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: #111827;
}

.article-text-body p {
  margin-bottom: 20px;
}

.article-text-body blockquote {
  border-left: 4px solid var(--cbs-blue);
  padding: 12px 20px;
  margin: 24px 0;
  font-style: italic;
  font-size: 19px;
  background: var(--bg-subtle);
}

/* =========================================
   FOOTER (CBS NEWS STYLE)
========================================= */
.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 48px 0 32px 0;
  margin-top: 60px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #333333;
  margin-bottom: 32px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

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

.footer-nav-list a {
  color: #d1d5db;
  transition: color 0.15s;
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #222222;
  padding-top: 24px;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

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

/* =========================================
   SEARCH MODAL
========================================= */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-modal.active {
  display: flex;
}

.search-card {
  background: #ffffff;
  width: 100%;
  max-width: 650px;
  padding: 24px;
  border-radius: 4px;
  position: relative;
}

.search-input {
  width: 100%;
  font-size: 18px;
  padding: 12px 14px;
  border: 2px solid #000000;
  border-radius: 4px;
  outline: none;
}

.search-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1024px) {
  .broadcast-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-live-col {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .showcase-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .broadcast-hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-lead-col {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
  }
  .hero-digest-col {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
  }
  .hero-live-col {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .showcase-grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lead-article-headline {
    font-size: 24px;
  }
  .lead-img-box img {
    height: 220px;
  }
  .article-main-title {
    font-size: 28px;
  }
}
