/* Premium Responsive News Portal Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Kanit:wght@300;400;500;600;700;800&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&family=Sarabun:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Dynamic harmonious HSL palette - Default Dark Theme (Royal Navy & Gold) */
  --bg-primary: #0b0f19;
  --bg-secondary: #0f172a; /* Royal Navy Dark */
  --bg-tertiary: #1e293b;
  --accent-color: #fbbf24; /* Amber Gold */
  --accent-gradient: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
  --accent-navy: #1e3a8a;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #9cb3c9; /* Harmonized higher contrast blue-slate for dark mode (WCAG AA pass) */
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.05);
  --card-bg: rgba(30, 41, 59, 0.35);
  --card-border: rgba(255, 255, 255, 0.08);
  --header-gradient: linear-gradient(to bottom, #070a13 0%, #172033 100%);
  --breaking-gradient: linear-gradient(to bottom, #7f1d1d 0%, #dc2626 100%);
  
  --font-title: 'Merriweather', 'Kanit', 'Sarabun', serif;
  --font-body: 'Inter', 'Kanit', 'Sarabun', sans-serif;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --card-radius: 16px;
}

/* Light Theme overrides */
body.light-theme {
  --bg-primary: #f8fafc; /* Slate / Off-white */
  --bg-secondary: #ffffff;
  --bg-tertiary: #e2e8f0;
  --accent-color: #d97706; /* Darker Gold for visibility */
  --accent-gradient: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  --text-primary: #0f172a; /* Royal Navy text */
  --text-secondary: #334155;
  --text-muted: #475569; /* Slate 600 - High Contrast (ratio > 5.3:1) for WCAG AA compliance */
  --border-color: rgba(15, 23, 42, 0.08); /* High contrast dark border for light theme */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.05);
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-border: rgba(15, 23, 42, 0.08);
  --header-gradient: linear-gradient(to bottom, #e2e8f0 0%, #ffffff 100%);
  --breaking-gradient: linear-gradient(to bottom, #991b1b 0%, #ef4444 100%);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.3s ease;
  overflow-x: clip;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphic Navbar */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-gradient);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 16px;
}

.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo span {
  font-weight: 400;
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

/* Navigation Links - Centered */
.desktop-category-nav {
  display: flex;
  justify-content: center;
  flex-grow: 1;
}

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

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.theme-btn:hover {
  transform: scale(1.05);
  border-color: var(--accent-color);
}
/* Premium Header Control Buttons */
.header-control-btn {
  height: 38px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Light theme overrides for premium style */
body.light-theme .header-control-btn {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-secondary);
}

/* Individual sizing and shapes */
#language-toggle-btn.header-control-btn {
  padding: 0 14px;
}

#theme-toggle.header-control-btn,
#push-bell-widget.header-control-btn {
  width: 38px;
  padding: 0;
}

/* Hover effects with micro-interactions */
.header-control-btn:hover {
  transform: translateY(-2px) scale(1.02);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body.light-theme .header-control-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.15);
}

/* Language Toggle Hover State */
#language-toggle-btn.header-control-btn:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

/* Theme Toggle Hover State (Rotate icon) */
#theme-toggle.header-control-btn:hover {
  border-color: #8b5cf6; /* purple for theme transition glow */
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}
#theme-toggle.header-control-btn:hover svg {
  transform: rotate(15deg) scale(1.1);
}

#theme-toggle.header-control-btn svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Notification Bell Custom Dynamic States */
#push-bell-widget.header-control-btn.subscribed {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: #f59e0b !important;
}

#push-bell-widget.header-control-btn.subscribed:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

#push-bell-widget.header-control-btn:hover svg {
  animation: bell-ring 0.6s ease;
}

@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  20%, 60% { transform: rotate(15deg); }
  40%, 80% { transform: rotate(-15deg); }
}

/* Bell status dot */
.bell-status-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-secondary);
  display: inline-block;
}

.bell-status-dot.active {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

.bell-status-dot.inactive {
  background: #ef4444;
  box-shadow: 0 0 4px #ef4444;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* User Auth Login Button */
.header-login-btn {
  height: 38px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-color);
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-login-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* User Profile Initial Badge */
.user-avatar-initials {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.user-profile-menu-container:hover .user-avatar-initials {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Mobile Scrollable Categories Navigation Bar (Hidden on Desktop) */
.mobile-categories-bar {
  display: none;
  width: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 24px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.mobile-categories-bar::-webkit-scrollbar {
  display: none; /* Hide scrollbar for a super clean swipe menu */
}

.mobile-cat-link {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 50px;
  margin-right: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.mobile-cat-link.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
}

/* Search bar styling */
.search-container {
  position: relative;
  width: 200px;
  transition: var(--transition-smooth);
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Premium Ad Containers (Preventing CLS - Crucial for SEO!) */
.ad-slot {
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  width: 100%;
}

.ad-slot::before {
  content: "SPONSOR ADVERTISEMENT";
  position: absolute;
  top: 6px;
  left: 12px;
  font-size: 8px;
  font-weight: 600;
  font-family: var(--font-title);
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Ad Slot Sizes based on standard IAB sizes with Fluid Scaling */
.ad-leaderboard {
  max-width: 970px;
  min-height: 90px;
  aspect-ratio: 970 / 90;
}

.ad-rectangle {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
  aspect-ratio: 300 / 250;
  margin: 16px auto;
}

/* Skeleton Loading Shimmer for Ads */
.ad-slot .ad-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 25%,
    var(--bg-tertiary) 50%,
    var(--bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.ad-slot .ad-placeholder-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-title);
  margin-top: 8px;
  text-align: center;
  padding: 0 10px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hero Featured Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.featured-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  height: 480px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
}

.featured-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.8s ease;
}

.featured-card:hover img {
  transform: scale(1.03);
}

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.4) 50%, transparent 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

body.light-theme .featured-overlay {
  background: linear-gradient(to top, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0.3) 60%, transparent 100%);
}

.featured-content {
  position: relative;
  z-index: 3;
  padding: 40px;
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.featured-title {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.featured-summary {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 95%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-actions-group {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.meta-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
  outline: none;
}

.meta-action-btn:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--accent-color);
}

.meta-action-btn svg {
  color: inherit;
  transition: transform 0.2s ease;
}

.meta-action-btn:hover svg {
  transform: scale(1.08);
}

body.light-theme .meta-action-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}

body.light-theme .meta-action-btn:hover {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.2);
  color: #d97706;
}

@media (max-width: 768px) {
  .meta-actions-group {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
  }
}

/* Sidebar List News */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

.sidebar-section::-webkit-scrollbar {
  width: 4px;
}
.sidebar-section::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.sidebar-card {
  display: flex;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

/* Sidebar Card Skeleton to minimize Layout Shift (CLS) */
.sidebar-card-skeleton {
  display: flex;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: 12px;
  height: 102px;
  align-items: center;
  pointer-events: none;
}
.sidebar-card-skeleton .skeleton-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  animation: skeleton-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.sidebar-card-skeleton .skeleton-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-card-skeleton .skeleton-line {
  height: 12px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  animation: skeleton-pulse 1.8s ease-in-out infinite;
}
.sidebar-card-skeleton .skeleton-line.title {
  width: 90%;
  height: 14px;
}
.sidebar-card-skeleton .skeleton-line.meta {
  width: 50%;
  height: 10px;
}

/* Timeline Item Skeleton to minimize Layout Shift (CLS) */
.timeline-item-skeleton {
  position: relative;
  padding-left: 24px;
  margin-bottom: 24px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}
.timeline-item-skeleton .timeline-node {
  background: var(--bg-tertiary) !important;
  animation: skeleton-pulse 1.8s ease-in-out infinite;
}
.timeline-item-skeleton .skeleton-line {
  background: var(--bg-tertiary);
  border-radius: 4px;
  animation: skeleton-pulse 1.8s ease-in-out infinite;
}


.sidebar-card:hover {
  transform: translateX(4px);
  border-color: var(--accent-color);
}

.sidebar-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.sidebar-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News Grid layout */
.news-grid-section {
  margin: 40px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-left: 4px solid var(--accent-color);
  padding-left: 12px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.2);
}

.card-img-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

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

.card-category {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 11px;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
}

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

/* Article Detail Page specific styling */
.article-container {
  width: 100%;
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px;
}

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

.article-title {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  margin: 16px 0;
}

.article-hero {
  width: 100%;
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

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

/* Premium Integrated Widescreen Cover Image & Caption Card */
.article-hero-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(30, 41, 66, 0.2);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.article-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
}

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

.article-hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(30, 41, 66, 0.45);
  border-top: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-color);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
}

body.light-theme .article-hero-caption {
  background: rgba(248, 250, 252, 0.85);
  color: var(--text-secondary);
}

.hero-caption-left {
  text-align: left;
  line-height: 1.4;
  font-style: italic;
}

.hero-caption-left strong {
  font-style: normal;
}

.hero-caption-right {
  text-align: right;
  flex-shrink: 0;
  font-weight: 700;
}

.hero-caption-right .credit-label {
  color: var(--accent-color);
  margin-right: 4px;
}

@media (max-width: 768px) {
  .article-hero-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }
  .hero-caption-right {
    text-align: left;
  }
}

.article-body-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
}

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

/* Responsive images & figure blocks in article body */
.article-content figure,
.article-content .article-image-block {
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px 0 !important;
  box-sizing: border-box;
}

.article-content img,
.article-content figure img,
.article-content .article-image-block img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.article-content figcaption {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
  padding: 0 16px;
}

.article-content h2 {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  margin: 36px 0 16px;
  letter-spacing: -0.5px;
}

/* Footer Section */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  margin-top: 60px;
  color: var(--text-secondary);
}

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

.footer-brand h3 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links h4 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer Social Links */
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.footer-social-icon svg {
  transition: transform 0.3s ease;
}

/* Hover States with Brand Palette Hues and Premium Micro-Animations */
.footer-social-icon:hover {
  transform: translateY(-3px);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-social-icon:hover svg {
  transform: scale(1.1) rotate(4deg);
}

/* Specific Brands Official Colors */
.footer-social-icon.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.footer-social-icon.tiktok:hover {
  background: #000000;
  border-color: #01f2ea;
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.4), 0 0 4px #01f2ea;
}

body.light-theme .footer-social-icon.tiktok:hover {
  background: #111827;
}

.footer-social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #dc2743;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.4);
}

.footer-social-icon.x-twitter:hover {
  background: #0f1419;
  border-color: #0f1419;
  box-shadow: 0 4px 14px rgba(15, 20, 25, 0.4);
}

body.light-theme .footer-social-icon.x-twitter:hover {
  background: #000000;
}

.footer-social-icon.line:hover {
  background: #06c755;
  border-color: #06c755;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.4);
}

.footer-social-icon.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
}

/* ==================================================== */
/*             ARTICLE INTERACTION BAR STYLES           */
/* ==================================================== */
/* Placeholder wrapper for the interaction bar */
.interaction-bar-wrapper {
  min-height: 58px;
  margin: 24px 0;
  width: 100%;
}

.article-interaction-bar {
  display: flex;
  gap: 16px;
  padding: 12px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow: visible;
  container-type: inline-size;
  container-name: interaction-bar;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 16px 0;
  
  /* Native CSS Sticky to the top under Navbar */
  position: -webkit-sticky;
  position: sticky;
  top: 124px; /* Under the 124px desktop sticky header (80px navbar + 44px categories) */
  z-index: 99;
}

@media (max-width: 768px) {
  .article-interaction-bar {
    top: 70px; /* Under the 70px mobile navbar */
    margin: 12px 0;
  }
}

.article-interaction-bar.is-sticky {
  background: rgba(30, 41, 66, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

body.light-theme .article-interaction-bar.is-sticky {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03) inset !important;
}

/* เมื่อแถบหัวข้อข่าวลอยตัว (Progress Header) แสดงขึ้นมา ให้แถบแชร์เลื่อนไปเกาะติดด้านใต้หัวข้อข่าวทันที */
.reading-progress-header.show ~ #main-content .article-interaction-bar {
  top: 60px !important;
}

.article-interaction-bar .left-group {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
  flex-wrap: nowrap;
}

.article-interaction-bar .right-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.interaction-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-smooth);
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 8px;
  border-radius: 20px;
}

.interaction-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.interaction-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.interaction-btn:hover svg {
  transform: scale(1.1);
}

.interaction-btn.btn-copy-link {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.interaction-btn.btn-copy-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-count {
  font-size: 12px;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
  font-weight: 600;
}

/* Social Share Dropdown Styles */
.share-dropdown-container {
  position: relative;
  display: inline-block;
}

.share-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(15, 23, 42, 0.95); /* Deep dark glassmorphism */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1000;
}

body.light-theme .share-dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.03) inset;
}

.share-dropdown-menu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

body.light-theme .share-dropdown-menu::after {
  border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

.share-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.share-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.share-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

body.light-theme .share-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.share-dropdown-item svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.share-dropdown-item:hover svg {
  transform: scale(1.1);
}

/* Hover Colors for specific platforms */
.share-dropdown-item.fb-item:hover {
  color: #3b82f6 !important;
}

.share-dropdown-item.line-item:hover {
  color: #10b981 !important;
}

.share-dropdown-item.x-item:hover {
  color: var(--text-primary) !important;
}

/* If bar is sticky at the top, pop dropdown downwards */
.article-interaction-bar.is-sticky .share-dropdown-menu {
  bottom: auto;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-12px);
}

.article-interaction-bar.is-sticky .share-dropdown-menu::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent rgba(15, 23, 42, 0.95) transparent;
}

body.light-theme .article-interaction-bar.is-sticky .share-dropdown-menu::after {
  border-color: transparent transparent rgba(255, 255, 255, 0.95) transparent;
}

.article-interaction-bar.is-sticky .share-dropdown-menu.show {
  transform: translateX(-50%) translateY(0);
}

#like-btn:hover {
  color: #ef4444;
}
#like-btn:hover .btn-count {
  background: rgba(239, 68, 68, 0.15);
}

#share-facebook-btn:hover {
  color: #1877f2;
}
#share-facebook-btn:hover .btn-count {
  background: rgba(24, 119, 242, 0.15);
}

#share-line-btn:hover {
  color: #06c755;
}

#share-x-btn:hover {
  color: #ffffff;
}

#save-btn:hover {
  color: #f59e0b;
}
#save-btn:hover .btn-count {
  background: rgba(245, 158, 11, 0.15);
}

/* ==================================================== */
/*            QUICK READER SETTINGS STYLES              */
/* ==================================================== */
.quick-settings-container {
  position: fixed;
  bottom: 85px;
  left: 24px;
  z-index: 9999;
  font-family: var(--font-body);
}

.settings-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  transition: var(--transition-smooth);
}

.settings-toggle-btn:hover {
  transform: scale(1.1) rotate(45deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.settings-toggle-btn.active {
  background: #ef4444;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.settings-toggle-btn .gear-icon {
  transition: transform 0.4s ease;
}

.settings-toggle-btn.active .gear-icon {
  transform: rotate(90deg);
}

.settings-popover {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 280px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-popover.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.popover-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.popover-header h5 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.setting-row:last-child {
  margin-bottom: 0;
}

.font-size-adjuster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adjust-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.size-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 48px;
  text-align: center;
}

.theme-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

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

body {
  transition: background-color 0.5s ease, color 0.3s ease, font-size 0.3s ease !important;
}

body.font-size-sm .article-content {
  font-size: 15px !important;
}

body.font-size-md .article-content {
  font-size: 18px !important;
}

body.font-size-lg .article-content {
  font-size: 21px !important;
}

body.font-size-xl .article-content {
  font-size: 24px !important;
}

#scroll-progress {
  transition: width 0.1s linear !important;
}

@media (max-width: 768px) {
  .quick-settings-container {
    bottom: 20px;
    left: 20px;
  }
}

/* ==================================================== */
/*                RESPONSIVE MEDIA QUERIES              */
/* ==================================================== */

/* Tablet & Smaller Desktop View (e.g. iPad Pro, iPad, Laptops) */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  .hero-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .featured-card {
    height: 420px;
  }
  .sidebar-section {
    height: auto;
    overflow-y: visible;
  }
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

/* Mobile & Small Tablet View (e.g. iPad Mini, iPhones, Androids) */
@media (max-width: 768px) {
  .nav-container {
    height: 70px;
  }
  
  /* ย่อขอบตัวหนังสือปุ่มถูกใจ/แชร์/บันทึกให้เหลือเฉพาะไอคอนบนมือถือ */
  .interaction-btn .btn-text {
    display: none;
  }
  .interaction-btn {
    gap: 4px !important;
    padding: 6px 8px !important;
  }
  .article-interaction-bar {
    padding: 10px 16px !important;
    border-radius: 24px !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
  .article-interaction-bar .left-group {
    gap: 10px !important;
  }
  
  /* Hide standard header navbar & search, show mobile swiper bar */
  .desktop-category-nav {
    display: none;
  }
  .search-container {
    display: none;
  }
  
  .mobile-categories-bar {
    display: block;
  }
  
  .logo {
    font-size: 22px;
  }
  
  .featured-card {
    height: 320px;
  }
  
  .featured-content {
    padding: 24px;
  }
  
  .featured-title {
    font-size: 22px;
    margin-bottom: 8px;
  }
  
  .featured-summary {
    font-size: 14px;
    margin-bottom: 12px;
    max-width: 100%;
  }
  
  .article-title {
    font-size: 28px;
    letter-spacing: normal;
  }
  
  .article-content {
    font-size: 16px;
    line-height: 1.7;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .ad-slot.ad-leaderboard {
    aspect-ratio: 300 / 250; /* Convert leaderboard to mobile rectangle for high SEO scores */
    max-height: 250px;
  }
  
  .ad-slot.ad-leaderboard .ad-placeholder-text {
    font-size: 11px;
    content: "พื้นที่โฆษณาบนมือถือ";
  }
}

/* Extremely Small Mobile Screens */
@media (max-width: 480px) {
  .featured-card {
    height: 280px;
  }
  .featured-title {
    font-size: 18px;
  }
  .news-grid {
    grid-template-columns: 1fr; /* Single column on tiny screens for maximum readability */
}
}

/* Premium Tags Styling */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.card-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.news-card:hover .card-tag {
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--accent-color);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 10px 0;
}

.article-tag-badge {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-title);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.article-tag-badge:hover {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Inline Ad Placement Tweaks */
.article-content .ad-slot {
  margin: 32px auto;
  max-width: 100%;
}

/* Premium Statically-Compiled Related News Section */
.related-news-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.related-news-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  border-left: 4px solid var(--accent-color);
  padding-left: 12px;
  color: var(--text-primary);
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

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

.related-news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: var(--shadow-md);
}

.related-news-thumb {
  height: 120px;
  overflow: hidden;
  position: relative;
}

.related-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.related-news-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-news-card-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
  text-decoration: none;
}

.related-news-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Ultimate SEO Suite Upgrades */
html {
  scroll-behavior: smooth;
}

.article-toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.article-toc-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.article-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.article-toc-list li {
  position: relative;
  padding-left: 16px;
}

.article-toc-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.article-toc-list a {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  display: inline-block;
  text-decoration: none;
}

.article-toc-list a:hover {
  color: var(--accent-color);
  transform: translateX(4px);
}

/* ==================================================== */
/*          PREMIUM AUDIO PLAYER & UX ENHANCEMENTS      */
/* ==================================================== */

/* Live pulse animation for live dot indicators */
@keyframes pulse-live {
  0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 4px #ef4444; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 10px #ef4444; }
  100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 4px #ef4444; }
}

/* Glowing fire animation for hot topics */
@keyframes glow-fire {
  0% { text-shadow: 0 0 4px rgba(245, 158, 11, 0.4); }
  50% { text-shadow: 0 0 12px rgba(245, 158, 11, 0.8), 0 0 20px rgba(239, 68, 68, 0.4); }
  100% { text-shadow: 0 0 4px rgba(245, 158, 11, 0.4); }
}

.trending-live-dot {
  animation: pulse-live 1.5s infinite;
}

.audio-control-btn:hover {
  transform: scale(1.08) translateY(-1px) !important;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.35) !important;
}

.audio-control-btn:active {
  transform: scale(0.95) translateY(0) !important;
}

/* Audio visualizer bar elements if needed */
.audio-reader-card select:focus {
  border-color: var(--accent-color);
}

/* Glassmorphic AdBlocker Recovery Toast */
.adblock-recovery-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.adblock-recovery-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.adblock-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.adblock-body {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.adblock-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.adblock-close-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-grow: 1;
  text-align: center;
}

.adblock-close-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.adblock-ok-btn {
  background: var(--accent-gradient);
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-grow: 2;
  text-align: center;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.adblock-ok-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

/* Sidebar Trending badges formatting */
.sidebar-hot-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-title);
  letter-spacing: 0.5px;
  animation: glow-fire 2s infinite;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

@media (max-width: 576px) {
  .adblock-recovery-toast {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 16px;
  }
}

/* ==================================================== */
/*          GLASSMORPHIC MEMBERSHIP AUTH MODAL          */
/* ==================================================== */

.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 16px;
}

.auth-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-card {
  width: 100%;
  max-width: 440px;
  background: rgba(19, 27, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-overlay.show .auth-modal-card {
  transform: translateY(0);
}

.auth-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.auth-close-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  gap: 16px;
}

.auth-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  padding: 8px 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.auth-tab.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-input-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(30, 41, 66, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  transition: var(--transition-smooth);
  outline: none;
}

.auth-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-submit-btn {
  width: 100%;
  background: var(--accent-gradient);
  border: none;
  color: #ffffff;
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
  transition: var(--transition-smooth);
  margin-top: 8px;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.auth-oauth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin: 20px 0;
}

.auth-oauth-divider::before, .auth-oauth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-oauth-divider:not(:empty)::before { margin-right: 12px; }
.auth-oauth-divider:not(:empty)::after { margin-left: 12px; }

.auth-oauth-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.auth-oauth-btn {
  background: rgba(30, 41, 66, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.auth-oauth-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-color);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.auth-oauth-btn img {
  height: 26px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.auth-oauth-btn:hover img {
  transform: scale(1.1);
}

.auth-error-msg {
  color: #f87171;
  font-size: 12.5px;
  text-align: left;
  line-height: 1.4;
  margin: 0;
  display: none;
}

/* User Widget Dropdown Animation */
.user-profile-menu-container:hover .user-dropdown-menu,
.user-profile-menu-container .user-dropdown-menu.show {
  display: flex !important;
  animation: dropdown-fade-slide 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes dropdown-fade-slide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
}

.dropdown-item svg {
  flex-shrink: 0;
}

/* ==================================================== */
/*          ONBOARDING INTERESTS SELECTOR MODAL         */
/* ==================================================== */

.interest-item {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  padding: 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.interest-item:hover {
  border-color: rgba(59, 130, 246, 0.4) !important;
  background: rgba(59, 130, 246, 0.05) !important;
  transform: translateY(-2px);
}

.interest-item.active {
  border-color: var(--accent-color) !important;
  background: rgba(59, 130, 246, 0.15) !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
  transform: scale(1.02);
}

/* ==================================================== */
/*             PERSONALIZED FOR YOU FEED & TABS        */
/* ==================================================== */

.feed-tabs-container {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  gap: 20px;
}

.feed-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  padding: 12px 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.feed-tab-btn:hover {
  color: var(--text-primary);
}

.feed-tab-btn.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.for-you-locked-card {
  text-align: center;
  padding: 48px 24px;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 480px;
  margin: 30px auto;
}



/* ==================================================== */
/*          FROSTED INTERACTIVE TOAST STYLES            */
/* ==================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.frosted-toast {
  pointer-events: auto;
  width: 320px;
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.light-theme .frosted-toast {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.frosted-toast.show {
  transform: translateX(0);
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-message {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  font-family: var(--font-body);
}

/* ==================================================== */
/*          QUOTE HIGHLIGHTER & CARD CREATOR            */
/* ==================================================== */
.quote-tooltip {
  position: absolute;
  background: var(--accent-gradient);
  color: #ffffff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  font-family: var(--font-title);
  transform: translateY(-10px) scale(0.95);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.quote-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.quote-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.quote-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.quote-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.light-theme .quote-modal-content {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.quote-modal.show .quote-modal-content {
  transform: translateY(0);
}

.quote-canvas-container {
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}

.quote-canvas-container canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.quote-modal-btn {
  padding: 10px 24px;
  border-radius: 20px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 13px;
  transition: var(--transition-smooth);
  outline: none;
}

.quote-modal-btn.primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.quote-modal-btn.primary:hover {
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}

.quote-modal-btn.secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  margin-left: 12px;
}

.quote-modal-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}



/* ====================================================
   🔥 GPU-ACCELERATED BREAKING NEWS TICKER STYLES
   ==================================================== */
.breaking-news-ticker {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 40px;
  overflow: hidden;
  position: relative;
  z-index: 99;
}

body.light-theme .breaking-news-ticker {
  background: rgba(241, 245, 249, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ticker-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
  position: relative;
  flex-shrink: 0;
  box-shadow: 6px 0 15px rgba(239, 68, 68, 0.25);
}

.ticker-content-container {
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-slider {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 60px;
  padding-left: 20px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.ticker-item {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

body.light-theme .ticker-item {
  color: #334155;
}

.ticker-item:hover {
  color: #fbbf24 !important;
}

body.light-theme .ticker-item:hover {
  color: #dc2626 !important;
}

@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ====================================================
   🚀 BACK TO TOP FLOATING BUTTON STYLES
   ==================================================== */
.back-to-top-btn {
  /* Dynamic transitions for luxury feels */
}

.back-to-top-btn:hover {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
  color: #fbbf24 !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3) !important;
}

.back-to-top-btn:active {
  transform: scale(0.9) !important;
}

body.light-theme .back-to-top-btn {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .back-to-top-btn:hover {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3) !important;
}

/* ====================================================
   🏆 MINI LOTTO SHOWCASE CARD STYLES
   ==================================================== */
.mini-lotto-card {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.mini-lotto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
}

.mini-lotto-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mini-lotto-btn:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.45) !important;
  filter: brightness(1.1);
  color: #0b0f19 !important;
}

.mini-lotto-btn:active {
  transform: translateY(1px) scale(0.97) !important;
}

body.light-theme .mini-lotto-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%) !important;
  border: 1.5px solid rgba(251, 191, 36, 0.4) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.light-theme .mini-lotto-card:hover {
  border-color: rgba(251, 191, 36, 0.75) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.light-theme .mini-lotto-card h4 {
  color: #1e293b !important;
}

body.light-theme .mini-lotto-card div[style*="background"] {
  background: rgba(251, 191, 36, 0.05) !important;
  border: 1px solid rgba(251, 191, 36, 0.25) !important;
}

body.light-theme .mini-lotto-card span[id="mini-prize-1"] {
  color: #0f172a !important;
  text-shadow: none !important;
}

body.light-theme .mini-lotto-card div[style*="background: rgba(255, 255, 255, 0.02)"] {
  background: rgba(15, 23, 42, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* ====================================================
   📱 PWA CUSTOM INSTALL BANNER STYLES (Stage 2 Upgrades)
   ==================================================== */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 400px;
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 100000;
  display: flex;
  gap: 16px;
  transform: translateY(150px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pwa-install-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.pwa-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
  flex-shrink: 0;
}

.pwa-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.pwa-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.pwa-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.pwa-btn-group {
  display: flex;
  gap: 10px;
}

.pwa-cancel-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pwa-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.pwa-install-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border: none;
  color: #0f172a;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
  transition: var(--transition-smooth);
  flex-grow: 1;
  text-align: center;
}

.pwa-install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(251, 191, 36, 0.4);
  filter: brightness(1.05);
}

.pwa-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 10;
}

.pwa-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* ====================================================
   🎧 PREMIUM AI VOICE NEWS READER STYLES
   ==================================================== */
.ai-voice-widget {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-wrap: wrap;
  transition: border-color 0.3s ease;
}

.ai-voice-widget:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.ai-voice-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-voice-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.ai-voice-icon-btn:hover {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.ai-voice-icon-btn.playing {
  animation: pulse-voice-btn 1.5s infinite alternate;
}

@keyframes pulse-voice-btn {
  0% { transform: scale(1); box-shadow: 0 0 0 0px rgba(59, 130, 246, 0.4); }
  100% { transform: scale(1.08); box-shadow: 0 0 15px 4px rgba(59, 130, 246, 0.2); }
}

.ai-voice-text-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ai-voice-title {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-voice-status {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ai-voice-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-voice-speed-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
}

.ai-voice-speed-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ai-voice-speed-select {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.ai-voice-speed-select option {
  background: #1e293b;
  color: #ffffff;
}

.ai-voice-stop-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: none; /* Shown only when playing/paused */
}

.ai-voice-stop-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

/* Light Theme PWA & AI Voice Overrides */
body.light-theme .pwa-install-banner {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.light-theme .pwa-title {
  color: #0f172a !important;
}

body.light-theme .pwa-desc {
  color: #475569 !important;
}

body.light-theme .ai-voice-widget {
  background: rgba(15, 23, 42, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .ai-voice-title {
  color: #0f172a !important;
}

body.light-theme .ai-voice-speed-wrapper {
  background: rgba(15, 23, 42, 0.01) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .ai-voice-speed-select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

@media (max-width: 576px) {
  .pwa-install-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
  }
}


/* ==================================================== */
/*          SPOTLIGHT CMD+K SEARCH STYLES & MODALS      */
/* ==================================================== */
.spotlight-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-modal.show {
  opacity: 1;
  visibility: visible;
}

.spotlight-content {
  width: 100%;
  max-width: 650px;
  background: rgba(19, 27, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-modal.show .spotlight-content {
  transform: translateY(0);
}

.spotlight-search-header {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.spotlight-input {
  width: 100%;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 17px;
  color: #ffffff;
  outline: none;
  padding-left: 12px;
}

.spotlight-shortcut-hint {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: monospace;
}

.spotlight-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.spotlight-item:hover, .spotlight-item.active {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
}

.spotlight-img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.spotlight-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  min-width: 0;
}

.spotlight-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.spotlight-item-badge {
  font-size: 9px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-color);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: bold;
}

/* Light Theme Spotlight Overrides */
body.light-theme .spotlight-modal {
  background: rgba(241, 245, 249, 0.8);
}
body.light-theme .spotlight-content {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.04);
}
body.light-theme .spotlight-search-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
body.light-theme .spotlight-input {
  color: #0f172a;
}
body.light-theme .spotlight-item-title {
  color: #0f172a;
}
body.light-theme .spotlight-item:hover, body.light-theme .spotlight-item.active {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.15);
}
body.light-theme .spotlight-shortcut-hint {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
  color: #64748b;
}

/* ==================================================== */
/*          SHARE-AS-CARD CANVASES & MODALS             */
/* ==================================================== */
.card-share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
}

.card-share-modal.show {
  opacity: 1;
  visibility: visible;
}

.card-share-content {
  width: 100%;
  max-width: 520px;
  background: rgba(19, 27, 46, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-share-modal.show .card-share-content {
  transform: scale(1);
}

.card-canvas-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-canvas-container canvas {
  width: 100%;
  height: auto;
  display: block;
}

.card-btn {
  padding: 12px 24px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.card-btn.primary {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.card-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.40);
}

.card-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.card-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.light-theme .card-share-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}

body.light-theme .card-btn.secondary {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

body.light-theme .card-btn.secondary:hover {
  background: rgba(15, 23, 42, 0.06);
}



/* Accessibility Skip Navigation Link */
.skip-nav-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #dc2626;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 99999;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.skip-nav-link:focus {
  top: 12px;
}

/* Accessibility Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================================================== */
/*          PREMIUM BOTTOM ROW CATEGORY NAVBAR          */
/* ==================================================== */
.desktop-category-nav {
  width: 100%;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for standard browsers */
}

.desktop-category-nav::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Webkit */
}

.desktop-category-nav .nav-list {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  padding: 0 24px;
}

.desktop-category-nav .nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.desktop-category-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-smooth);
}

.desktop-category-nav .nav-link:hover::after,
.desktop-category-nav .nav-link.active::after {
  width: 100%;
}

.desktop-category-nav .nav-link:hover,
.desktop-category-nav .nav-link.active {
  color: var(--text-primary);
}



/* Crimson Top Breaking News Bar */
.top-breaking-bar {
  width: 100%;
  height: 40px; /* Lock height to prevent layout shift */
  overflow: hidden; /* Hide overflow */
  background: var(--breaking-gradient);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 101;
  position: relative;
}

@media (max-width: 768px) {
  .top-breaking-bar {
    display: block;
  }
  .breaking-bar-container {
    padding: 0 16px !important;
    font-size: 11px !important;
    gap: 8px !important;
  }
  .breaking-badge {
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
  }
  .live-indicator {
    padding: 1px 6px !important;
    font-size: 9px !important;
  }
}

.logo {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--text-primary) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.logo span {
  font-weight: 900;
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

/* Market Watch & Trending Stories premium UI tweaks */
.market-watch-card {
  transition: var(--transition-smooth);
}
.market-watch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.trending-story-row {
  transition: var(--transition-smooth);
}
.trending-story-row:hover h4 {
  color: #fbbf24 !important;
  transform: translateX(4px);
}




/* ==================================================== */
/*          SPOTLIGHT CMD+K SEARCH STYLES & MODALS      */
/* ==================================================== */
.spotlight-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.spotlight-modal.show {
  opacity: 1;
  visibility: visible;
}
.spotlight-content {
  width: 100%;
  max-width: 650px;
  background: rgba(19, 27, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;
}
.spotlight-modal.show .spotlight-content {
  transform: translateY(0);
}
.spotlight-search-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.spotlight-input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 16px;
  color: #ffffff;
  outline: none;
}
.spotlight-shortcut-hint {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  white-space: nowrap;
}
.spotlight-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}
.spotlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.spotlight-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.spotlight-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: #0b0f19;
}
.spotlight-item-info {
  flex-grow: 1;
  min-width: 0;
}
.spotlight-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotlight-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.spotlight-item-badge {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
}

/* ==================================================== */
/*          CARD SHARE MODAL STYLES                     */
/* ==================================================== */
.card-share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-share-modal.show {
  opacity: 1;
  visibility: visible;
}
.card-share-content {
  background: rgba(19, 27, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-share-modal.show .card-share-content {
  transform: scale(1);
}
.card-canvas-container {
  width: 100%;
  margin: 16px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.card-canvas-container canvas {
  width: 100%;
  display: block;
}
.card-btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.card-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.card-btn.primary {
  background: var(--accent-gradient);
  color: #0b0f19;
}
.card-btn.primary:hover {
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
  transform: translateY(-1px);
}
.card-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.card-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-color);
  color: var(--accent-color);
}
body.light-theme .card-share-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}
body.light-theme .card-btn.secondary {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
body.light-theme .card-btn.secondary:hover {
  background: rgba(15, 23, 42, 0.06);
}

/* ==================================================== */
/*          3-COLUMN HOMEPAGE GRID SYSTEM               */
/* ==================================================== */
.homepage-three-columns-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 28px;
  margin-top: 40px;
  max-height: 520px;
}
.column-live-updates {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.column-popular-news {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.popular-news-widget-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.popular-news-widget-card .sidebar-section {
  flex-grow: 1;
  overflow-y: auto;
}
.column-sidebar-widgets {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding-right: 4px;
}
/* Custom scrollbar for sidebar widgets */
.column-sidebar-widgets::-webkit-scrollbar {
  width: 5px;
}
.column-sidebar-widgets::-webkit-scrollbar-track {
  background: transparent;
}
.column-sidebar-widgets::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.column-sidebar-widgets::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
body.light-theme .column-sidebar-widgets::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
}
.column-sidebar-widgets > div,
.column-popular-news > div {
  background: rgba(30, 41, 59, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}
.column-sidebar-widgets > div:hover,
.column-popular-news > div:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.4);
}
body.light-theme .column-sidebar-widgets > div,
body.light-theme .column-popular-news > div {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}
body.light-theme .column-sidebar-widgets > div h4,
body.light-theme .column-popular-news > div h4 {
  color: #0f172a !important;
}
body.light-theme .column-sidebar-widgets > div span,
body.light-theme .column-sidebar-widgets > div div,
body.light-theme .column-popular-news > div span,
body.light-theme .column-popular-news > div div {
  color: #334155;
}
.sidebar-section::-webkit-scrollbar {
  width: 5px;
}
.sidebar-section::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
body.light-theme .sidebar-section::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.1);
}
@media (max-width: 768px) {
  .homepage-three-columns-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    max-height: none;
  }
  .column-live-updates,
  .column-popular-news,
  .column-sidebar-widgets {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: auto;
  }
  .column-sidebar-widgets {
    overflow-y: visible;
    max-height: none;
  }
}

/* ==================================================== */
/*          READING PROGRESS HEADER & BAR STYLES        */
/* ==================================================== */
.reading-progress-header {
  position: fixed;
  top: -80px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow-md);
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.reading-progress-header.show {
  top: 0;
}
/* Hide site header when reading progress is active to prevent overlapping and save screen estate */
.reading-progress-header.show ~ header.site-header {
  transform: translateY(-100%);
  pointer-events: none;
}
.progress-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  max-width: 60%;
}
.progress-header-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress-header-category {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-color);
  background: rgba(251, 191, 36, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.progress-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-bar-percentage {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-color);
}
.progress-bar-track {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.1s ease;
}
.progress-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.progress-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* ==================================================== */
/*          ARTICLE EDITOR WIDGETS STYLES               */
/* ==================================================== */
.article-content hr.divider-gold {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #fbbf24 50%, transparent 100%);
  margin: 36px 0;
}
.article-content .article-keypoints-box {
  background: rgba(251, 191, 36, 0.06);
  border-left: 4px solid #fbbf24;
  border-radius: 4px 12px 12px 4px;
  padding: 20px 24px;
  margin: 32px 0;
}
.article-content .article-keypoints-box .keypoints-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: #fbbf24;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-content .article-keypoints-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-content .article-keypoints-box ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}
.article-content .article-keypoints-box ul li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: #fbbf24;
  font-weight: bold;
}
.article-content .article-custom-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.article-content .article-custom-table th {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-title);
}
.article-content .article-custom-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.article-content .article-custom-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}
.article-content .article-accordion {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin: 16px 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
.article-content .article-accordion[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.article-content .article-accordion summary {
  padding: 14px 20px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  font-family: var(--font-title);
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-content .article-accordion summary::-webkit-details-marker {
  display: none;
}
.article-content .article-accordion summary::after {
  content: '▼';
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.article-content .article-accordion[open] summary::after {
  transform: rotate(-180deg);
  color: #fbbf24;
}
.article-content .article-accordion .accordion-body {
  padding: 0 20px 20px 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: -1px;
}
.article-content .article-social-follow {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}
.article-content .article-social-follow h4 {
  margin: 0 0 16px 0;
  font-family: var(--font-title);
  font-size: 15px;
  color: var(--text-primary);
}
.article-content .article-social-follow .follow-btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.article-content .article-social-follow .follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.article-content .article-social-follow .follow-btn.facebook {
  background: #1877f2;
}
.article-content .article-social-follow .follow-btn.facebook:hover {
  background: #166fe5;
  box-shadow: 0 0 12px rgba(24, 119, 242, 0.4);
  transform: translateY(-1px);
}
.article-content .article-social-follow .follow-btn.line {
  background: #06c755;
}
.article-content .article-social-follow .follow-btn.line:hover {
  background: #05b04b;
  box-shadow: 0 0 12px rgba(6, 199, 85, 0.4);
  transform: translateY(-1px);
}
.article-content .article-social-follow .follow-btn.youtube {
  background: #ff0000;
}
.article-content .article-social-follow .follow-btn.youtube:hover {
  background: #e60000;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
  transform: translateY(-1px);
}
.article-content .article-audio-box {
  background: rgba(30, 41, 59, 0.45);
  border: 1.5px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin: 32px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.article-content .article-audio-box audio {
  width: 100%;
  margin-top: 10px;
  outline: none;
}
.article-content .article-audio-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-content .article-rating-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.article-content .article-rating-stars {
  font-size: 24px;
  color: #fbbf24;
  letter-spacing: 2px;
}
.article-content .article-rating-val {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}
.article-content .article-poll-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
}
.article-content .article-poll-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}
.article-content .article-poll-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-content .article-poll-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}
.article-content .article-poll-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
}
.article-content .article-poll-option.voted {
  cursor: default;
  border-color: rgba(251, 191, 36, 0.5);
}
.article-content .article-poll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(251, 191, 36, 0.12);
  width: 0%;
  transition: width 0.4s ease;
  z-index: 1;
}
.article-content .article-poll-option-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
}
.article-content .article-poll-option.voted .article-poll-option-content {
  color: var(--text-primary);
}
.article-content .article-credit-box {
  background: none;
  border: none;
  padding: 8px 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-content .article-credit-box .credit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 12px;
}
.article-content .article-credit-box .credit-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.article-content .article-credit-box .credit-label {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-muted);
  min-width: 120px;
}
.article-content .article-credit-box .credit-value {
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
}
.article-content .article-credit-box .credit-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.article-content .article-credit-box .credit-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}
.article-content .article-credit-box .credit-link::after {
  content: '↗';
  font-size: 12px;
  font-weight: normal;
  display: inline-block;
  transition: transform 0.2s ease;
}
.article-content .article-credit-box .credit-link:hover::after {
  transform: translate(2px, -2px);
}
.article-content .article-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.article-content .article-hashtag-item {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.article-content .article-hashtag-item:hover {
  background: #fbbf24;
  color: #0b0f19;
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}
.article-content .article-author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin: 32px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.article-content .article-author-card .author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}
.article-content .article-author-card .author-info {
  flex-grow: 1;
}
.article-content .article-author-card .author-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.article-content .article-author-card .author-bio {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.article-content .article-toc-box {
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 20px;
  margin: 28px 0;
}
.article-content .article-toc-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-content .article-toc-list {
  margin: 0;
  padding-left: 20px;
}
.article-content .article-toc-list li {
  margin-bottom: 8px;
  font-size: 14px;
}
.article-content .article-toc-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.article-content .article-toc-list a:hover {
  color: #fbbf24;
}
.article-content .article-carousel-slider {
  position: relative;
  width: 100%;
  margin: 36px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.article-content .article-carousel-slider .carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.article-content .article-carousel-slider .carousel-track::-webkit-scrollbar {
  display: none;
}
.article-content .article-carousel-slider .carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  aspect-ratio: 16/9;
  position: relative;
  background: #0b0f19;
}
.article-content .article-carousel-slider .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-content .article-carousel-slider .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s ease;
}
.article-content .article-carousel-slider .carousel-control:hover {
  background: rgba(251, 191, 36, 0.8);
  color: #0b0f19;
  border-color: #fbbf24;
}
.article-content .article-carousel-slider .carousel-control.prev {
  left: 16px;
}
.article-content .article-carousel-slider .carousel-control.next {
  right: 16px;
}



/* ==================================================== */
/*          HERO COVER BANNER + GRID SYSTEM PATCH       */
/* ==================================================== */

/* 1. Full-Width Cover Banner */
.hero-cover-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 440px;
  overflow: hidden;
  margin-top: 0;
}

.hero-cover-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 12s ease;
}

.hero-cover-banner:hover img {
  transform: scale(1.04);
}

.hero-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.55) 60%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 1;
}

.hero-cover-branding {
  position: absolute;
  top: 44px;
  left: 48px;
  z-index: 2;
}

.hero-cover-logo {
  font-family: var(--font-title);
  font-size: 52px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-cover-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  margin-top: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 2. Overlapping News Container */
.hero-news-overlay {
  position: relative;
  z-index: 5;
  margin-top: -200px;
  width: 100%;
  padding: 0;
}

.hero-news-container {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

body.light-theme .hero-news-container {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.hero-news-top-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.hero-news-featured {
  display: block;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  height: 500px;
  text-decoration: none;
  color: inherit;
}

.hero-news-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-news-featured:hover img {
  transform: scale(1.03);
}

.hero-featured-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(11, 15, 25, 0.95) 100%);
  z-index: 1;
}

body.light-theme .hero-featured-gradient {
  background: linear-gradient(to bottom, transparent 40%, rgba(248, 250, 252, 0.95) 100%);
}

.hero-featured-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.hero-featured-info .badge {
  align-self: flex-start;
}

.hero-news-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
}

.hero-side-card {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  flex: 1;
  max-height: 146px;
  align-items: center;
  box-sizing: border-box;
}

.hero-side-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

body.light-theme .hero-side-card {
  background: rgba(15, 23, 42, 0.02);
}
body.light-theme .hero-side-card:hover {
  background: rgba(15, 23, 42, 0.04);
}

.hero-side-card-thumb {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.hero-side-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hero-side-card-meta {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-side-card-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.hero-side-card-summary {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.hero-news-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.hero-bottom-card {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  align-items: center;
  box-sizing: border-box;
}

.hero-bottom-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

body.light-theme .hero-bottom-card {
  background: rgba(15, 23, 42, 0.02);
}
body.light-theme .hero-bottom-card:hover {
  background: rgba(15, 23, 42, 0.04);
}

.hero-bottom-card-thumb {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.hero-bottom-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bottom-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hero-see-more-btn {
  display: block;
  width: fit-content;
  margin: 24px auto 0;
  padding: 10px 40px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50px;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
  text-decoration: none;
}

.hero-see-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.35);
  color: #ffffff;
}

/* Tablet & Smaller View (Laptops, iPads) */
@media (max-width: 1024px) {
  .hero-news-top-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-news-featured {
    height: 400px;
  }
  .hero-side-card {
    height: auto;
  }
  .hero-news-bottom-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}





/* ==================================================== */
/*          PREMIUM RESPONSIVE ARTICLE LAYOUT           */
/* ==================================================== */

/* Center reading elements on all screens (Breadcrumbs, Title, Header, Audio, Comments, Newsletter, Prev/Next, Related) */
.article-read-section {
  width: 100%;
  max-width: 800px;
  margin-left: 0;
  margin-right: auto;
  box-sizing: border-box;
}

/* Sidebar default fallback and wrapper */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.sidebar-widget {
  flex-shrink: 0;
}

/* Responsive Grid setup */
@media (min-width: 1024px) {
  .article-body-wrapper {
    display: grid !important;
    grid-template-columns: 2.20fr 1fr !important;
    gap: 48px !important;
    align-items: start !important;
  }
  .article-sidebar {
    position: sticky !important;
    top: 100px !important;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 8px;
  }
  /* Webkit custom scrollbar for sidebar (hidden by default, visible on hover) */
  .article-sidebar::-webkit-scrollbar {
    width: 4px;
  }
  .article-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }
  .article-sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
    transition: background 0.3s;
  }
  .article-sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 1023px) {
  .article-container {
    max-width: 800px !important;
  }
  .article-body-wrapper {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* ---- Previous / Next News Navigation ---- */
.article-prev-next-nav {
  display: flex;
  gap: 16px;
  margin: 32px 0;
  width: 100%;
}

.article-prev-next-nav .prev-nav-box,
.article-prev-next-nav .next-nav-box {
  flex: 1;
  display: flex;
}

.article-prev-next-nav a {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.article-prev-next-nav a:hover {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.light-theme .article-prev-next-nav a:hover {
  background: rgba(15, 23, 42, 0.02);
}

.article-prev-next-nav .nav-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.article-prev-next-nav .nav-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.article-prev-next-nav a:hover .nav-thumb {
  transform: scale(1.04);
  border-color: rgba(251, 191, 36, 0.4);
}

.article-prev-next-nav .nav-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.article-prev-next-nav .nav-title-text {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-prev-next-nav .prev-nav-box a:hover .nav-label {
  transform: translateX(-4px);
}

.article-prev-next-nav .next-nav-box a:hover .nav-label {
  transform: translateX(4px);
}

@media (max-width: 680px) {
  .article-prev-next-nav {
    flex-direction: column;
    gap: 12px;
  }
}

/* Sleek Premium Comments & Captcha Styles */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(30, 41, 59, 0.25);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.comment-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .comment-input-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .comment-form {
    padding: 16px;
  }
}

.comment-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.comment-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.comment-submit-btn {
  padding: 12px 24px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
  transition: var(--transition-smooth);
}

.comment-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.3);
}

@media (max-width: 600px) {
  .comment-submit-btn {
    width: 100%;
    align-self: stretch;
  }
}

/* Captcha container */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 8px;
  flex-wrap: wrap;
}

.captcha-question {
  flex-grow: 1;
  text-align: left;
}

.captcha-input {
  width: 80px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  text-align: center;
  font-weight: 700;
  outline: none;
  transition: var(--transition-smooth);
}

.captcha-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.15);
}

/* Light Theme Overrides for Comments & Captcha */
body.light-theme .comment-form {
  background: var(--card-bg);
  border-color: var(--card-border);
}

body.light-theme .comment-input {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
}

body.light-theme .captcha-container {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .captcha-input {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
}

/* Premium Redesigned Newsletter, Sidebar Widgets & Ratings */
.newsletter-subscription-box {
  margin: 40px 0;
  padding: 28px;
  background: linear-gradient(135deg, rgba(30, 41, 66, 0.45) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  grid-column: 1/-1;
}

body.light-theme .newsletter-subscription-box {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(248, 250, 252, 0.95) 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.2);
}

.newsletter-email-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.newsletter-email-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

body.light-theme .newsletter-email-input {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--text-primary);
}

/* Sidebar Hot News Widget */
.hot-news-widget {
  border: 1px solid var(--card-border) !important;
  background: var(--card-bg) !important;
}

.hot-news-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 12px;
  height: 52px;
  overflow: hidden;
}

.hot-news-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hot-news-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-title);
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hot-news-num.num-1 {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

body.light-theme .hot-news-num {
  background: rgba(0, 0, 0, 0.05);
  color: #64748b;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .hot-news-num.num-1 {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.hot-news-img {
  width: 64px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

/* Sidebar Ad Widget */
.ad-widget {
  background: var(--card-bg) !important;
  border-color: var(--card-border) !important;
}

.ad-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  text-align: right;
  letter-spacing: 0.5px;
  font-family: var(--font-title);
}

body.light-theme .ad-header {
  background: rgba(0, 0, 0, 0.02);
}

/* Article Rating Box */
.article-rating-box {
  background: var(--card-bg) !important;
  border-color: var(--card-border) !important;
}

/* Nested Thread replies indentation */
.reply-comment-box {
  margin-left: 50px;
  border-left: 2px solid var(--border-color);
  padding-left: 20px !important;
  background: rgba(255, 255, 255, 0.01);
}

@media (max-width: 768px) {
  .reply-comment-box {
    margin-left: 24px;
    padding-left: 12px !important;
  }
}

/* Horizontal scrolling interaction bar on mobile */
@media (max-width: 768px) {
  .article-interaction-bar {
    overflow: visible !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }
  .article-interaction-bar::-webkit-scrollbar {
    display: none !important;
  }
  .article-interaction-bar .left-group {
    flex-wrap: nowrap !important;
    gap: 12px !important;
  }
  .article-interaction-bar .right-group {
    margin-left: auto;
  }
}

/* ==================================================== */
/*          PREMIUM REDESIGNED ARTICLE HEADER CARD      */
/* ==================================================== */

/* Breadcrumbs styling */
.article-breadcrumbs {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.article-breadcrumbs a:hover {
  color: var(--text-primary);
}

.article-breadcrumbs span {
  color: var(--text-secondary);
}

/* Redesigned Glassmorphic Article Header Card (20% Opacity) */
.article-header {
  background: rgba(30, 41, 66, 0.2) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 24px 28px !important;
  margin-bottom: 16px !important;
  box-shadow: var(--shadow-sm) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .article-header {
    padding: 16px 20px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
  }
}

/* Audio Reader card block styling */
.audio-reader-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  padding: 14px 20px;
  background: rgba(30, 41, 66, 0.4) !important;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-sizing: border-box;
}

.audio-reader-left {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.audio-reader-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  overflow: hidden;
}

.audio-reader-title-text {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.audio-reader-card select:focus {
  border-color: var(--accent-color);
}

.audio-reader-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.audio-reader-controls select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

/* Audio reader card responsiveness */
@media (max-width: 600px) {
  .audio-reader-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }
  .audio-reader-controls {
    justify-content: flex-end;
  }
}

/* AI Key Takeaways summary card */
.ai-summary-card {
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.04) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1.5px dashed rgba(251, 191, 36, 0.3);
  border-radius: 16px;
  padding: 18px 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .ai-summary-card {
    margin-bottom: 12px;
  }
}

.ai-summary-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Light Theme styles overrides */
body.light-theme .article-breadcrumbs,
body.light-theme .article-breadcrumbs a {
  color: #64748b;
}

body.light-theme .article-breadcrumbs a:hover {
  color: #0f172a;
}

body.light-theme .article-breadcrumbs span {
  color: #334155;
}

body.light-theme .article-header {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: var(--shadow-sm) !important;
}

body.light-theme .audio-reader-card {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .audio-reader-title-text {
  color: #0f172a;
}

body.light-theme .audio-reader-controls select {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-theme .ai-summary-card {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.02) 0%, rgba(37, 99, 235, 0.02) 100%);
  border-color: rgba(217, 119, 6, 0.25);
}

body.light-theme .interaction-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

body.light-theme .btn-count {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

body.light-theme .interaction-btn.btn-copy-link {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

body.light-theme .interaction-btn.btn-copy-link:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Audio Control Button (Play/Pause) Base Style */
.audio-control-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.25);
  transition: var(--transition-smooth);
}

/* Audio Player Stop Button Base Style */
#tts-stop-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

#tts-stop-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Follow Category Button Style */
#follow-cat-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 11px;
  padding: 0 0 0 2px;
  font-weight: 700;
  outline: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

#follow-cat-btn:hover {
  color: #ffffff;
}

/* Follow Author Button Style */
#follow-author-btn {
  background: rgba(255, 191, 36, 0.12);
  border: 1px solid rgba(255, 191, 36, 0.25);
  color: var(--accent-color);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  font-family: inherit;
  transition: var(--transition-smooth);
  outline: none;
}

#follow-author-btn:hover {
  background: rgba(255, 191, 36, 0.2);
  border-color: rgba(255, 191, 36, 0.4);
}

/* Category Badge alignment */
#category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
}

/* Light Theme overrides for buttons */
body.light-theme #tts-stop-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}

body.light-theme #tts-stop-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

body.light-theme #follow-cat-btn {
  color: rgba(15, 23, 42, 0.6);
}

body.light-theme #follow-cat-btn:hover {
  color: #0f172a;
}

/* ==================================================== */
/*   RESPONSIVELY ADAPTED NAV & SYSTEM LAYOUT PATCHES   */
/* ==================================================== */

/* Logo, Bell & Auth Widget Default classes */
.logo {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1.5px;
}

#push-bell-widget {
  margin-left: 8px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.user-auth-widget {
  min-width: 90px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: 8px;
}

@keyframes skeleton-pulse {
  0% { opacity: 0.45; }
  50% { opacity: 0.9; }
  100% { opacity: 0.45; }
}

.auth-skeleton {
  width: 76px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  animation: skeleton-pulse 1.8s ease-in-out infinite;
}
body.light-theme .auth-skeleton {
  background: rgba(15, 23, 42, 0.08);
}

/* TABLET VIEWPORT ADJUSTMENTS (Between 768px and 1024px) */
@media (max-width: 1024px) {
  /* Cover Banner & Overlay height tweaks */
  .hero-cover-banner {
    height: 340px !important;
  }
  .hero-news-overlay {
    margin-top: -140px !important;
  }
  .hero-cover-branding {
    top: 32px !important;
    left: 32px !important;
  }
  .hero-cover-logo {
    font-size: 40px !important;
  }
  
  /* Homepage 3-column Layout collapses to 2-columns on tablet */
  .homepage-three-columns-layout {
    grid-template-columns: 1.2fr 1fr !important;
    grid-template-rows: auto !important;
    max-height: none !important;
    gap: 24px !important;
  }
  .column-live-updates {
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-height: 540px !important;
  }
  .column-popular-news {
    grid-column: 2 !important;
    grid-row: 1 !important;
    max-height: 540px !important;
  }
  .column-sidebar-widgets {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    overflow-y: visible !important;
    max-height: none !important;
  }
  
  /* Article detail sidebar spacing */
  .article-body-wrapper {
    gap: 28px !important;
  }
}

/* MOBILE VIEWPORT ADJUSTMENTS (Max-width 768px) */
@media (max-width: 768px) {
  /* Logo and navbar buttons sizing */
  .logo {
    font-size: 20px !important;
  }
  .nav-controls {
    gap: 8px !important;
  }
  #push-bell-widget {
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
    margin-left: 4px !important;
  }
  .user-auth-widget {
    min-width: 70px !important;
    height: 34px !important;
    margin-left: 4px !important;
  }
  .auth-skeleton {
    width: 60px !important;
    height: 24px !important;
  }
  
  /* Homepage Hero Banner & Overlay scale down */
  .hero-cover-banner {
    height: 240px !important;
  }
  .hero-news-overlay {
    margin-top: -60px !important;
  }
  .hero-cover-branding {
    top: 16px !important;
    left: 20px !important;
  }
  .hero-cover-logo {
    font-size: 28px !important;
    letter-spacing: 1.5px !important;
  }
  .hero-cover-tagline {
    font-size: 11px !important;
    margin-top: 4px !important;
  }
  .hero-news-container {
    padding: 14px !important;
    border-radius: 12px !important;
  }
  
  /* Featured card sizing inside overlay */
  .hero-news-featured {
    height: 320px !important;
  }
  .hero-featured-info {
    padding: 16px !important;
  }
  
  /* Hero side list scaling */
  .hero-news-side-stack {
    gap: 12px !important;
  }
  .hero-side-card {
    gap: 12px !important;
    padding: 10px !important;
    max-height: none !important;
  }
  .hero-side-card-thumb {
    width: 72px !important;
    height: 72px !important;
  }
  .hero-side-card-title {
    font-size: 13px !important;
  }
  .hero-side-card-summary {
    font-size: 11px !important;
  }
  
  /* 3-column widgets on mobile stack fully in 1 column */
  .homepage-three-columns-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .column-live-updates,
  .column-popular-news,
  .column-sidebar-widgets {
    grid-column: auto !important;
    grid-row: auto !important;
    max-height: none !important;
  }
  .column-sidebar-widgets {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  /* Social sharing interaction bar horizontal scroll wrapper */
  .article-interaction-bar {
    overflow: visible !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    scrollbar-width: none; /* Firefox */
  }
  .article-interaction-bar::-webkit-scrollbar {
    display: none; /* WebKit */
  }
  .article-interaction-bar .left-group,
  .article-interaction-bar .right-group {
    flex-shrink: 0 !important;
  }
}

/* VERY SMALL SCREENS (Max-width 480px) */
@media (max-width: 480px) {
  .logo {
    font-size: 18px !important;
  }
  .hero-cover-banner {
    height: 200px !important;
  }
  .hero-news-overlay {
    margin-top: -40px !important;
  }
  .hero-cover-logo {
    font-size: 24px !important;
  }
  .hero-news-featured {
    height: 260px !important;
  }
}

/* Light theme overrides for sticky interaction bar */
body.light-theme .article-interaction-bar {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04) inset !important;
}

/* Premium Centered 1:1 Facebook Widget */
.facebook-widget {
  display: flex;
  flex-direction: column;
}

.facebook-widget-header {
  background: #1877f2;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.facebook-widget-body {
  padding: 24px 16px;
  background: #ffffff;
  color: #1c1e21;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  flex-grow: 1;
  box-sizing: border-box;
}

.facebook-widget-body img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(24, 119, 242, 0.1);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.facebook-widget-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  width: 100%;
}

.facebook-widget-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1c1e21;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.facebook-widget-name:hover {
  text-decoration: underline;
}

.facebook-widget-followers {
  font-size: 12px;
  color: #606770;
}

.facebook-widget-btn {
  margin-top: 6px;
  background: #1877f2;
  border: none;
  padding: 8px 24px;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(24, 119, 242, 0.2);
}

.facebook-widget-btn:hover {
  background: #1565c0;
  transform: translateY(-1px);
}

@media (min-width: 1024px) {
  .facebook-widget {
    /* Disabled aspect-ratio to prevent widget content distortion/clipping and extra white space */
  }
}

/* Light Theme overrides for Dashboard & Home elements */
body.light-theme .for-you-locked-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .column-sidebar-widgets > div span,
body.light-theme .column-sidebar-widgets > div div,
body.light-theme .column-popular-news > div span,
body.light-theme .column-popular-news > div div {
  color: var(--text-secondary);
}

/* Print Stylesheet for Print-to-PDF Export (Task 18) */
@media print {
  header,
  footer,
  nav,
  .nav-bar,
  .sidebar,
  .column-sidebar-widgets,
  .column-popular-news,
  .ad-slot,
  .comments-container,
  .share-bar,
  .related-articles,
  #back-to-top-btn,
  .pdpa-consent-banner,
  .spotlight-modal,
  .games-chat-card,
  #comments-section,
  .comments-form,
  .floating-action-buttons,
  .article-actions-btn,
  .print-hide {
    display: none !important;
  }

  body, 
  html {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Sarabun', 'Georgia', 'Times New Roman', serif !important;
    font-size: 14pt !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  main,
  .main-content,
  .article-detail-container,
  .article-body-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  .article-title, h1 {
    font-size: 26pt !important;
    font-weight: bold !important;
    color: #000000 !important;
    margin-top: 0 !important;
    margin-bottom: 12pt !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 18pt !important;
    margin-top: 18pt !important;
    margin-bottom: 8pt !important;
  }

  h3 {
    font-size: 14pt !important;
    margin-top: 14pt !important;
    margin-bottom: 6pt !important;
  }

  p {
    margin-bottom: 12pt !important;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555555;
  }

  .article-hero-image img,
  .article-content img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    border-radius: 0 !important;
    border: 1px solid #ddd;
    margin: 10pt 0 !important;
  }

  h1, h2, h3, img {
    page-break-after: avoid;
  }
}

/* ==================================================== */
/*        ARTICLE PAGE POPULAR TAGS BAR STYLE          */
/* ==================================================== */
.article-popular-tags-bar {
  margin: 16px 0;
  padding: 12px 20px;
  background: rgba(30, 41, 66, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.popular-tags-title {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.popular-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.popular-tag-item {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.popular-tag-item:hover {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.2);
}

.popular-tag-count {
  font-size: 9px;
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 8px;
}

body.light-theme .article-popular-tags-bar {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .popular-tag-item {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}

body.light-theme .popular-tag-item:hover {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
}

/* ==================================================== */
/*             HOME PAGE TAG CLOUD CARD STYLES          */
/* ==================================================== */
.tag-cloud-card {
  padding: 20px;
  margin-bottom: 24px;
  background: rgba(30, 41, 59, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.tag-cloud-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.4);
}

body.light-theme .tag-cloud-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

body.light-theme .tag-cloud-card h4 {
  color: #0f172a !important;
}

body.light-theme .tag-cloud-card span,
body.light-theme .tag-cloud-card div {
  color: #334155;
}

/* ==================================================== */
/* AI NEWS DEBATER & PERSONA CHAT STYLES               */
/* ==================================================== */

/* ---- 1. Tab Navigation ---- */
.ai-debater-tabs {
  display: flex;
  flex-direction: row;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.ai-tab-btn {
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
  position: relative;
}

.ai-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.ai-tab-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.ai-tab-panel {
  display: none;
}

.ai-tab-panel.active {
  display: block;
}

/* ---- 2. Persona Selector ---- */
.ai-persona-selector {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ai-persona-selector::-webkit-scrollbar {
  display: none;
}

.ai-persona-card {
  width: 120px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: rgba(30, 41, 66, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  box-sizing: border-box;
}

.ai-persona-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.ai-persona-card .persona-avatar {
  font-size: 28px;
  line-height: 1;
}

.ai-persona-card .persona-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-persona-card .persona-role {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Persona active states with unique accent colors */
.ai-persona-card.active {
  border-width: 2px;
}

.ai-persona-card.persona-academic.active {
  border-color: #8b5cf6;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.ai-persona-card.persona-optimist.active {
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.ai-persona-card.persona-skeptic.active {
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2), 0 0 0 1px rgba(245, 158, 11, 0.1);
}

/* ---- 3. Chat Window ---- */
.ai-chat-window {
  max-height: 360px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.ai-chat-window::-webkit-scrollbar {
  width: 5px;
}

.ai-chat-window::-webkit-scrollbar-track {
  background: transparent;
}

.ai-chat-window::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.ai-chat-window::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---- 4. Chat Bubbles ---- */
.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  animation: fadeSlideUp 0.3s ease both;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
  border-bottom-right-radius: 4px;
  color: var(--text-primary);
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: rgba(30, 41, 66, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}

.chat-bubble .persona-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

.chat-bubble .persona-label.label-academic {
  color: #8b5cf6;
}

.chat-bubble .persona-label.label-optimist {
  color: #10b981;
}

.chat-bubble .persona-label.label-skeptic {
  color: #f59e0b;
}

/* ---- 5. Typing Indicator ---- */
.typing-indicator {
  align-self: flex-start;
  padding: 12px 16px;
  background: rgba(30, 41, 66, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  display: inline-block;
  border-radius: 50%;
  animation: typingBounce 0.6s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

/* ---- 6. Quick Prompt Chips ---- */
.ai-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.prompt-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.prompt-chip:hover {
  background: rgba(251, 191, 36, 0.15);
  transform: translateY(-1px);
}

/* ---- 7. Chat Input Area ---- */
.ai-chat-input-area {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-chat-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.ai-chat-input::placeholder {
  color: var(--text-muted);
}

.ai-chat-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.ai-chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-gradient);
  border: none;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.ai-chat-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.ai-chat-send-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ---- 8. Animations ---- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingBounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ---- 9. Light Theme Overrides ---- */
body.light-theme .ai-persona-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.1);
}

body.light-theme .chat-bubble.user {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
}

body.light-theme .chat-bubble.assistant {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .ai-chat-input {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-theme .prompt-chip {
  background: rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.15);
}

body.light-theme .ai-chat-window::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
}

body.light-theme .ai-chat-window {
  scrollbar-color: rgba(15, 23, 42, 0.15) transparent;
}

body.light-theme .typing-indicator {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .ai-debater-tabs {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .ai-tab-btn {
  color: #64748b;
}

body.light-theme .ai-tab-btn:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.04);
}

body.light-theme .ai-chat-input-area {
  border-top-color: rgba(15, 23, 42, 0.06);
}

/* ---- 10. Responsive ---- */
@media (max-width: 600px) {
  .ai-persona-card {
    width: 100px;
    min-width: 100px;
  }

  .ai-persona-card .persona-avatar {
    font-size: 24px;
  }

  .ai-persona-card .persona-name {
    font-size: 11px;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .ai-chat-window {
    max-height: 300px;
  }

  .ai-quick-prompts {
    gap: 6px;
  }

  .prompt-chip {
    font-size: 11px;
    padding: 5px 12px;
  }
}
