:root {
  /* Colors - Light Mode (Default) */
  --bg-main: #ffffff;
  --bg-card: #f9fafb;
  --header-bg: #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --border-color: #e5e7eb;
  --accent-color: #e63946;
  --breaking-bg: #e63946;
  /* High urgency red for light mode */
  --breaking-label-bg: #1a1a1a;
  --breaking-label-text: #ffffff;

  /* Subscription Section - Light (Brand Aligned) */
  --sub-bg: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  --sub-text: #1a1a1a;
  --sub-input-bg: #ffffff;
  --sub-input-text: #1a1a1a;
  --sub-muted: #666666;
  --sub-border: #e2e8f0;

  /* Global Settings */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Merriweather', serif;
}

html.dark {
  /* Colors - Dark Mode */
  --bg-main: #000000;
  --bg-card: #111111;
  --header-bg: #000000;
  --text-main: #f1f1f1;
  --text-muted: #a0a0a0;
  --border-color: #1f2937;
  --accent-color: #ff4d5a;
  --breaking-bg: #111111;
  /* Premium dark for dark mode (no longer static red) */
  --breaking-label-bg: #f1f1f1;
  --breaking-label-text: #000000;

  /* Subscription Section - Dark (Brand Aligned) */
  --sub-bg: #111111;
  --sub-text: #f1f1f1;
  --sub-input-bg: #1a1a1a;
  --sub-input-text: #f1f1f1;
  --sub-muted: #a0a0a0;
  --sub-border: #1f2937;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--site-header-height, 57px);
}

body.has-breaking-banner {
  --site-header-height: 97px;
}

body.has-success-banner {
  --site-header-height: 97px;
}

html {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.theme-strong-text,
.theme-strong-link,
.theme-nav-link {
  color: var(--text-main) !important;
  font-weight: 800 !important;
}

.theme-strong-link:hover,
.theme-nav-link:hover,
.theme-nav-link.active {
  color: var(--accent-color) !important;
}

html.dark .theme-strong-text,
html.dark .theme-strong-link,
html.dark .theme-nav-link,
html.dark .nav-dropdown-trigger {
  color: #ffffff !important;
}

html.dark .theme-strong-link:hover,
html.dark .theme-nav-link:hover,
html.dark .theme-nav-link.active,
html.dark .nav-dropdown-trigger:hover {
  color: var(--accent-color) !important;
}

/* HEADER */
body>header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
}

.top-bar {
  display: flex;
  align-items: center;
  padding: 12px 2%;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 16px;
  background: var(--header-bg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.close-btn {
  cursor: pointer;
}

.logo-main {
  font-family: 'Times New Roman', Times, serif;
  color: var(--text-main);
  letter-spacing: -1px;
}

.logo-highlight {
  font-family: var(--font-heading);
  color: var(--accent-color);
}

/* Desktop Nav */
.desktop-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.desktop-nav a,
.desktop-nav button {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.desktop-nav button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font: inherit;
}

.desktop-nav a:hover,
.desktop-nav button:hover,
.desktop-nav a.active {
  color: var(--accent-color) !important;
  border-bottom: 2px solid var(--accent-color) !important;
}

/* Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-card);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  z-index: 1100;
  padding: 10px 0;
  overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown.open .nav-dropdown-content {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

.nav-dropdown-content a {
  color: var(--text-main) !important;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
  text-transform: capitalize;
}

.nav-dropdown-content a:last-child {
  border-bottom: none;
}

.nav-dropdown-content a:hover {
  background-color: var(--bg-main);
  color: var(--accent-color) !important;
  border-bottom: 1px solid var(--border-color) !important;
  /* Override main nav hover border */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Nav Overlay Backdrop */
#navOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#navOverlay.active {
  display: block;
}

/* Mobile Nav Drawer */
#mobileNav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-card);
  padding: 0;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#mobileNav.active {
  right: 0;
}

/* Nav drawer header row */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mobile-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  color: var(--text-main);
  white-space: nowrap;
}

.mobile-nav-logo .logo-icon {
  width: 22px;
  height: 22px;
}

.close-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.close-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

#mobileNav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}

#mobileNav li a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 20px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mobileNav li a:hover,
#mobileNav li a.active {
  color: var(--accent-color) !important;
  background: rgba(230, 57, 70, 0.05);
  padding-left: 28px;
  border-bottom-color: var(--border-color);
}

.hamburger {
  display: none;
}

.breaking-banner {
  background: var(--breaking-bg);
  height: 40px;
  display: flex;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.breaking-label-container {
  background: var(--accent-color);
  color: white;
  height: 100%;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  z-index: 20;
  position: relative;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.breaking-marquee {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.breaking-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll-left 40s linear infinite;
}

/* Pause animation on hover */
.breaking-marquee:hover .breaking-track {
  animation-play-state: paused;
}

.breaking-item {
  display: flex;
  align-items: center;
  color: #fff;
  /* Ensure text is white on red/dark backgrounds */
  text-decoration: none;
  padding: 0 10px;
  transition: opacity 0.2s;
}

.breaking-item:hover {
  opacity: 0.8;
}

.breaking-title {
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.breaking-cta {
  font-size: 11px;
  opacity: 0.8;
  margin-left: 8px;
  text-decoration: underline;
}

.breaking-separator {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 10px;
  font-size: 12px;
}

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

  100% {
    transform: translateX(-50%);
  }
}

.breaking-pulse {
  font-size: 10px;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

@media (max-width: 768px) {
  .breaking-label-new {
    display: none;
  }

  /* Show only icon on very small screens */
  .breaking-label-container {
    padding: 0 10px;
  }
}

/* Subscription Styles */
.subscribe-container {
  background: var(--sub-bg);
  padding: 44px 24px;
  text-align: center;
  margin: 0 auto 36px;
  max-width: 650px;
  border-radius: 18px;
  border: 2px solid var(--sub-border);
  border-top: 5px solid var(--accent-color);
  transition: all 0.3s ease;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.subscribe-container h3 {
  margin-bottom: 25px;
  font-size: 22px;
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

.subscribe-subtitle {
  color: var(--sub-muted);
  font-weight: 700;
  margin-bottom: 32px;
}

.subscribe-wrapper {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.subscribe-container input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--sub-border);
  background: var(--sub-input-bg);
  color: var(--sub-input-text);
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

.subscribe-container input[type="email"]:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
}

.subscribe-container button {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0 30px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

.subscribe-container button:hover:not(:disabled) {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.subscribe-container button:active:not(:disabled) {
  transform: translateY(0);
}

.subscribe-container button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.subscribe-message {
  margin-top: 25px;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 25px;
  border-radius: 12px;
  display: inline-block;
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.msg-success {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.msg-error {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.sub-footer {
  color: var(--sub-muted);
  font-size: 13px;
  margin-top: 15px;
  opacity: 0.8;
}


.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--bg-card);
  transition: transform 0.3s ease;
}

#newsArea .news-card:first-child {
  grid-column: auto;
}

#newsArea .news-card:first-child .news-content {
  padding: 25px;
}

#newsArea .news-card:first-child img {
  aspect-ratio: 4 / 3;
}

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

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-content h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.4;
  margin: 10px 0 15px;
}

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

.news-content p {
  display: none;
}

.news-meta {
  margin-top: auto;
  padding-top: 34px;
  font-size: 13px;
  color: var(--text-muted);
}

.category-link {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent-color);
}

.sidebar {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.sidebar h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  color: var(--text-main);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

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

.sidebar li a {
  text-decoration: none;
  display: block;
}

.sidebar li .headline-title {
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  transition: color 0.2s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sidebar li:hover .headline-title {
  color: var(--accent-color);
}

.sidebar li .headline-time {
  color: var(--text-muted);
  font-size: 11px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Layout */
.container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  max-width: 1400px;
  margin: 0 5% 0 2%;
  padding: 60px 2%;
}

.page-full-width {
  display: block;
  max-width: 960px;
  margin: 0 5% 0 2%;
  padding: 60px 2%;
}

@media (max-width: 992px) {
  .container {
    grid-template-columns: 1fr 280px;
    gap: 30px;
  }
}

/* Breakout layout for cinematic pages like Documentaries */
.documentary-main-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  /* In light mode, documentary pages should match normal article page brightness */
}

.dark .documentary-main-wrapper {
  background: black;
  /* Preserve cinematic dark mode styling */
}

.sidebar {
  margin-top: 40px;
}

#newsArea {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-content: start;
  width: 100% !important;
}

#newsArea h2 {
  grid-column: 1 / -1;
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--accent-color);
  display: block;
}

.container.category-layout {
  display: block;
  max-width: none;
  margin: 0;
  padding: 20px 26px 60px;
}

.category-layout .sidebar {
  display: none;
}

.category-layout #newsArea {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

.category-layout #newsArea h2 {
  font-size: 16px;
  font-family: var(--font-main);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  border-bottom: 1px solid var(--border-color);
  padding: 0 0 18px;
  margin: 0 0 24px;
}

.category-layout .news-card,
.category-layout #newsArea .news-card:first-child {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  height: auto;
  padding: 24px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.category-layout .news-card:hover {
  transform: none;
  box-shadow: none;
}

.category-layout .news-thumbnail {
  flex: 0 0 clamp(145px, 28vw, 192px);
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-card);
}

.category-layout .news-card img,
.category-layout #newsArea .news-card:first-child img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.category-layout .news-card:hover img {
  transform: none;
}

.category-layout .news-content,
.category-layout #newsArea .news-card:first-child .news-content {
  min-width: 0;
  padding: 0;
  flex: 1;
}

.category-layout .category-link,
.category-layout .news-content p,
.category-layout .news-meta {
  display: none;
}

.category-layout .news-content h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--text-main);
}

.category-layout .news-content h3 a {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

/* Footer */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 60px 5% 0;
  /* Reduced top padding, removed bottom padding for split */
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto 50px;
  padding: 0 4%;
  align-items: start;
}

.footer-col h4 {
  color: var(--text-main);
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 5px;
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-link,
.footer-col a {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover,
.footer-col a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

/* Social Icons */
.socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  padding: 0 !important;
  color: var(--text-main) !important;
  transition: all 0.3s ease;
}

.socials a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff !important;
  transform: translateY(-3px);
  padding: 0 !important;
  /* Override padding-left from generic hover */
}

/* Footer Bottom (Copyright) */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  text-align: center;
  background: var(--bg-card);
}

.footer-bottom p {
  font-size: 13px;
  margin: 0;
  text-align: center;
}



.contact-info {
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
  padding-top: 20px;
}

.contact-info .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
  color: var(--text-muted) !important;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.contact-info .contact-link svg {
  flex: 0 0 auto;
}

.contact-info .contact-link:hover {
  color: var(--accent-color) !important;
  padding-left: 0;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* --- Large desktop: reduce nav density --- */
@media (max-width: 1280px) {
  .desktop-nav ul {
    gap: 12px;
  }
  .desktop-nav a {
    font-size: 13px;
    letter-spacing: 0.3px;
  }
  .logo {
    font-size: 22px;
  }
}

/* --- Medium: switch to hamburger, keep logo readable --- */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: block;
    color: var(--text-main);
    font-size: 26px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .logo {
    font-size: 20px;
    gap: 6px;
  }
  .logo-icon {
    width: 26px;
    height: 26px;
  }
  .container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px;
    margin: 0 2%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-grid > .footer-col:first-child {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-grid > .footer-col:nth-child(2),
  .footer-grid > .footer-col:nth-child(3) {
    text-align: left;
  }
  .socials {
    justify-content: center;
  }
  .footer-links-grid {
    text-align: left;
  }
}

/* --- Tablet/small desktop nav gap --- */
@media (max-width: 992px) {
  .page-full-width {
    padding: 40px 20px;
    margin: 0 2%;
  }
  #newsArea {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .top-bar {
    padding: 10px 16px;
    min-height: 58px;
    gap: 10px;
  }
  .logo {
    font-size: 24px;
    gap: 5px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .logo-icon {
    width: 30px;
    height: 30px;
  }
  .hamburger {
    font-size: 34px;
    line-height: 1;
  }
  .header-right {
    gap: 16px;
    margin-left: auto;
  }
  .theme-toggle-btn {
    font-size: 19px;
    width: 28px;
    height: 28px;
  }
  .container {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    gap: 24px;
    margin: 0;
    overflow-x: hidden;
  }
  .container > * {
    min-width: 0;
  }
  #newsArea {
    grid-template-columns: 1fr;
  }
  .news-card img {
    aspect-ratio: 16 / 9;
  }
  #newsArea .news-card:first-child {
    grid-column: 1;
  }
  .article-title {
    font-size: 28px;
  }
  .article-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px clamp(16px, 6vw, 48px) 40px;
    overflow-x: hidden;
  }
  .article-content {
    font-size: 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .article-content p,
  .article-content h2,
  .article-content h3,
  .article-intro {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .article-image {
    aspect-ratio: 16 / 9;
  }
  .article-content img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .article-section {
    padding: 24px clamp(16px, 5vw, 30px);
  }
  .article-section-title {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 28px;
  }
  .related-card {
    width: 100%;
    max-width: 100%;
    display: block;
  }
  .related-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    margin-bottom: 18px;
  }
  .related-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .related-time {
    font-size: 14px;
  }
  .article-quote {
    padding: 20px;
    font-size: 17px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding: 0;
  }
  .footer-grid > .footer-col:first-child {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-grid > .footer-col {
    text-align: left;
  }
  .footer-col h4 {
    font-size: 13px;
  }
  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: left;
    justify-items: start;
    column-gap: 22px;
    row-gap: 8px;
  }
  .socials {
    justify-content: center;
  }
  .subscribe-wrapper {
    flex-direction: column;
  }
  .subscribe-container button {
    width: 100%;
    min-width: unset;
    padding: 14px 20px;
  }
  .subscribe-container input[type="email"] {
    width: 100%;
  }
  .subscribe-container {
    padding: 28px 16px;
    border-radius: 12px;
    margin: 0 16px 28px;
    max-width: calc(100% - 32px);
  }
  .subscribe-container h3 {
    font-size: 22px;
    margin-bottom: 16px;
  }
}

/* --- Extra small phones --- */
@media (max-width: 480px) {
  .logo {
    font-size: 20px;
    gap: 4px;
  }
  .logo-icon {
    width: 26px;
    height: 26px;
  }
  .header-right {
    gap: 12px;
  }
  .hamburger {
    font-size: 30px;
  }
  .article-title {
    font-size: 24px;
  }
  .article-heading-2 {
    font-size: 22px;
  }
  .article-heading-3 {
    font-size: 18px;
  }
  .footer-grid {
    padding: 0 8px;
  }
  .news-content h3 {
    font-size: 16px;
  }
  .news-content {
    padding: 16px;
  }
  .sidebar {
    padding: 20px;
  }
  .container.category-layout {
    padding: 14px 16px 44px;
  }
  .category-layout .news-card,
  .category-layout #newsArea .news-card:first-child {
    gap: 14px;
    padding: 20px 0;
  }
  .category-layout .news-thumbnail {
    flex-basis: 128px;
  }
  .category-layout .news-content h3 {
    font-size: 18px;
    line-height: 1.25;
  }
}

@media (max-width: 380px) {
  .top-bar {
    padding: 9px 12px;
    gap: 8px;
  }
  .logo {
    font-size: 17px;
  }
  .logo-icon {
    width: 24px;
    height: 24px;
  }
  .header-right {
    gap: 10px;
  }
  .theme-toggle-btn {
    font-size: 17px;
    width: 24px;
    height: 24px;
  }
  .hamburger {
    font-size: 28px;
  }
}

/* Article Page Styles */
.article-container {
  max-width: 700px;
  margin: 0;
  padding: 20px 20px 40px 20px;
  position: relative;
  z-index: 1;
}

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

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  font-size: 15px;
  color: var(--text-muted);
}

.article-meta-author {
  font-weight: 600;
  color: var(--text-main);
}

.article-category-link {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.3s;
}

.article-category-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.article-meta-separator {
  color: var(--text-muted);
}

.article-meta-time {
  color: var(--text-muted);
}

.article-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-image-container {
  margin-bottom: 40px;
  width: 100%;
  display: block;
}

.article-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  background-color: var(--bg-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-image-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

.article-author-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  margin: 0 0 16px;
}

.article-author-link-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.article-author-image,
.article-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.article-author-image {
  object-fit: cover;
}

.article-author-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-author-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.article-author-role {
  font-size: 13px;
  color: var(--text-muted);
}

.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 60px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-link-block {
  margin: 20px 0;
}

.article-link-block a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.14);
  border-radius: 14px;
  color: #9f2d2d;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.article-link-block a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
  background: rgba(230, 57, 70, 0.12);
  color: #c53030;
}

.article-link-block a::before {
  content: none;
}

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

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.author-hero {
  margin-bottom: 32px;
}

.author-hero-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.author-hero-image,
.author-hero-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.author-hero-info {
  flex: 1 1 320px;
}

.author-hero-info h1 {
  margin: 0;
  font-size: 20px;
  color: var(--text-main);
}

.author-hero-description {
  margin-top: 10px;
  color: var(--text-muted);
  max-width: 760px;
}

.author-articles-section {
  max-width: 920px;
  margin: 0 auto;
}

.author-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.author-article-card {
  display: block;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.author-article-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.author-article-content {
  padding: 18px;
}

.author-article-content h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--text-main);
}

.author-article-content span {
  color: var(--text-muted);
  font-size: 13px;
}

.pagination-wrapper {
  margin-top: 30px;
}

@media (max-width: 760px) {
  .author-hero-card {
    padding: 12px;
    gap: 10px;
  }

  .author-hero-image,
  .author-hero-avatar {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }
}

.author-hero {
  margin-bottom: 32px;
}

.author-hero-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
}

.author-hero-image,
.author-hero-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.author-hero-info h1 {
  margin: 0;
  font-size: 20px;
  color: var(--text-main);
}

.author-hero-role {
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

.author-hero-description {
  margin-top: 12px;
  color: var(--text-main);
}

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

.author-article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.author-article-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.author-article-content {
  padding: 18px;
}

.author-article-content h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--text-main);
}

.author-article-content span {
  color: var(--text-muted);
  font-size: 13px;
}

.pagination-wrapper {
  margin-top: 30px;
}

@media (max-width: 900px) {
  .author-articles-grid {
    grid-template-columns: 1fr;
  }
}

.article-content img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin: 30px 0;
}

.article-content video,
.article-content audio {
  max-width: 100%;
  margin: 30px 0;
}

.article-content a {
  color: #9f2d2d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: #c53030;
  text-decoration: underline;
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 10px;
}

/* Block-Based Content Styles */
.article-intro {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 30px;
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
}

.article-figure {
  margin: 40px 0;
  max-width: 100%;
}

.article-figure-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background-color: var(--bg-card);
}

.article-figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

.article-quote {
  margin: 40px 0;
  padding: 30px;
  background: var(--bg-card);
  border-left: 5px solid var(--accent-color);
  border-radius: 8px;
  font-size: 20px;
  line-height: 1.7;
  font-style: italic;
  color: var(--text-main);
}

.article-quote p {
  margin: 0;
}

.article-quote cite {
  display: block;
  margin-top: 15px;
  font-size: 16px;
  font-style: normal;
  color: var(--text-muted);
  font-weight: 600;
}

.article-quote cite::before {
  content: "— ";
}

.article-heading-2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.3;
}

.article-heading-3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--text-main);
  line-height: 1.4;
}


.article-section {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
}

.article-section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.comment-form {
  background: var(--bg-main);
  border-radius: 12px;
  padding: clamp(18px, 5vw, 30px);
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg-main);
  color: var(--text-main);
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
  max-width: 100%;
}

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

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-card {
  background: var(--bg-main);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  overflow: hidden;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.comment-info {
  flex: 1;
  min-width: 0;
}

.comment-author {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}

.comment-time {
  font-size: 12px;
  color: var(--text-muted);
}

.comment-content {
  color: var(--text-main);
  line-height: 1.6;
  margin-left: 55px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.reply-panel {
  margin-left: 55px;
  margin-top: 14px;
}

.reply-toggle {
  display: inline-flex;
  cursor: pointer;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  list-style: none;
}

.reply-toggle::-webkit-details-marker {
  display: none;
}

.reply-form {
  margin-top: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.reply-form .form-textarea {
  min-height: 90px;
}

.comment-replies {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 0 55px;
  padding-left: 18px;
  border-left: 3px solid var(--border-color);
  max-width: calc(100% - 55px);
}

.reply-card {
  padding: 16px;
  box-shadow: none;
  border: 1px solid var(--border-color);
  width: 100%;
}

.related-grid {
  display: flex;
  flex-direction: column;
}

.related-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  transition: transform 0.3s;
}

.related-card:last-child {
  border-bottom: none;
}

.related-card:hover {
  transform: none;
}

.related-image-container {
  flex: 0 0 clamp(145px, 28vw, 192px);
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0;
  background: var(--bg-main);
}

.related-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-card:hover .related-image {
  transform: none;
}

.related-content {
  min-width: 0;
  flex: 1;
}

.related-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.18;
  margin-bottom: 8px;
  transition: color 0.3s, font-weight 0.3s;
}

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

.related-card.active .related-title {
  font-weight: 700;
}

.related-time {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .article-section {
    padding: 24px 16px;
  }

  .comment-form,
  .reply-form,
  .comment-card {
    border-radius: 10px;
  }

  .form-grid {
    gap: 14px;
  }

  .btn-primary {
    width: 100%;
  }

  .related-card {
    gap: 14px;
    padding: 20px 0;
  }

  .related-image-container {
    flex-basis: 128px;
  }

  .related-title {
    font-size: 18px;
    line-height: 1.25;
  }

  .comment-content,
  .reply-panel,
  .comment-replies {
    margin-left: 0;
  }

  .comment-replies {
    padding-left: 14px;
    max-width: 100%;
  }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}


/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Header utilities */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  transform: scale(1.2);
}

.nav-dropdown-trigger {
  cursor: default;
}

/* Footer utilities */
.footer-logo {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-logo-main {
  font-family: 'Times New Roman', Times, serif;
  color: var(--text-main);
}

.footer-logo-highlight {
  font-family: var(--font-heading);
  color: var(--accent-color);
}

.footer-logo-link {
  text-decoration: none;
}

.footer-description {
  color: #aaa;
  margin-bottom: 20px;
  max-width: 480px;
  line-height: 1.75;
}

.footer-social-group {
  margin-top: 20px;
}

/* Success/Error banners */
.success-banner {
  background: green;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  width: 100%;
}

/* Common utilities */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* Compact typography: keep the frontend logo and top category nav unchanged. */
body {
  font-size: 13px;
}

main,
footer,
.breaking-banner {
  font-size: 0.84rem;
}

main h1,
footer h1 {
  font-size: 1.5rem;
}

main h2,
footer h2 {
  font-size: 1.3rem;
}

main h3,
footer h3,
main h4,
footer h4,
main h5,
footer h5,
main h6,
footer h6 {
  font-size: 1rem;
}

.article-title {
  font-size: 30px;
}

.article-intro {
  font-size: 16px;
}

.article-content {
  font-size: 15px;
}

.article-heading-2 {
  font-size: 21px;
}

.article-heading-3 {
  font-size: 17px;
}

.article-section-title,
#newsArea h2 {
  font-size: 20px;
}

#newsArea > h2 {
  font-size: 30px;
}

.news-content h3,
.sidebar h3 {
  font-size: 15px;
}

.comment-author {
  font-size: 13px;
}

.subscribe-container h3 {
  font-size: 20px;
}

.category-layout .news-content h3,
.related-title {
  font-size: clamp(16px, 2.2vw, 21px);
}

.form-label,
.form-input,
.form-textarea,
.btn-primary,
.comment-content,
.related-time,
.news-meta,
.footer-col,
.subscribe-container,
.sidebar,
.article-meta,
.article-figcaption,
.article-image-caption {
  font-size: 0.82rem;
}

.news-content p,
.category-link,
.sidebar li .headline-title,
.sidebar li .headline-time,
.breaking-title,
.breaking-cta,
.footer-links a,
.sub-footer,
.comment-time,
.reply-toggle {
  font-size: 0.78rem;
}

.site-toast {
  position: fixed;
  top: calc(var(--site-header-height, 57px) + 14px);
  right: 18px;
  z-index: 3000;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.86rem;
  line-height: 1.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-toast-hide {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.site-toast strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-toast-success {
  border-left: 4px solid #22c55e;
}

.site-toast-error {
  border-left: 4px solid var(--accent-color);
}

@media (max-width: 480px) {
  .site-toast {
    left: 14px;
    right: 14px;
    width: auto;
    top: calc(var(--site-header-height, 57px) + 10px);
    font-size: 0.82rem;
  }
}
