: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;
}

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: sticky;
  top: 0;
  z-index: 2000;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 2%;
  width: 100%;
  max-width: none;
  margin: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-main);
  cursor: pointer;
}

.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 {
  margin-left: auto;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.desktop-nav a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

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

/* Dropdown Styles */
.nav-dropdown {
  position: relative;
}

.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 {
  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 (Hidden by default) */
#mobileNav {
  position: fixed;
  top: 0;
  right: -300px;
  /* Hidden off-screen */
  width: 300px;
  height: 100vh;
  background: var(--bg-card);
  padding: 80px 30px;
  transition: right 0.3s ease;
  z-index: 2000;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  display: block;
}

#mobileNav.active {
  right: 0;
}

#mobileNav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#mobileNav a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  display: block;
}

.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;
}

@media (max-width: 768px) {
  .subscribe-wrapper {
    flex-direction: column;
  }

  .subscribe-container button {
    width: 100%;
  }
}

.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: 1 / -1;
}

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

#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 p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.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);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.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) {
  .page-full-width {
    padding: 40px 20px;
  }
}

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

@media (max-width: 992px) {
  .container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px;
    margin: 0 2% 0 2%;
  }

  .page-full-width {
    margin: 0 2% 0 2%;
  }
}

/* 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(auto-fit, minmax(320px, 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;
}

/* 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 5% 50px 2%;
  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;
}

@media (max-width: 768px) {
  .footer-grid {
    gap: 40px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4 {
    margin-bottom: 15px;
  }

  .socials {
    justify-content: 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 === */
@media (max-width: 768px) {
  .top-bar {
    padding: 15px 20px;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: block;
    color: var(--text-main);
    font-size: 28px;
    cursor: pointer;
  }

  .container {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 30px;
  }

  .news-card img {
    aspect-ratio: 4 / 3;
  }

  .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;
  }

  .footer-links-grid {
    text-align: left;
  }

  .socials {
    justify-content: center;
  }

  .subscribe-container form {
    flex-direction: column;
  }

  .subscribe-container input,
  .subscribe-container button {
    width: 100%;
  }
}

/* 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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.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: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

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

.form-input,
.form-textarea {
  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;
}

.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);
}

.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;
}

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

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

.comment-content {
  color: var(--text-main);
  line-height: 1.6;
  margin-left: 55px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-card {
  display: block;
  text-decoration: none;
  transition: transform 0.3s;
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-image-container {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

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

.related-card:hover .related-image {
  transform: scale(1.05);
}

.related-title {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.3s;
}

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

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

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

@media (max-width: 768px) {
  .article-title {
    font-size: 32px;
  }

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

  .article-image-container {
    aspect-ratio: 1 / 1;
  }

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

  .article-content img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

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


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

  .article-section {
    padding: 20px;
  }
}

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

/* Header utilities */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 20px;
}

.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.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;
}
