
/* ============================================
   PRIMENEWS - Global CSS Variables & Styles
   ============================================ */

:root {
  /* Brand Colors */
  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #e74c3c;
  --secondary: #2c3e50;
  --secondary-light: #34495e;
  --accent: #f39c12;
  --accent-light: #f1c40f;

  /* Light Mode Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #eef0f2;
  --bg-card: #ffffff;
  --bg-hover: #f1f3f4;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --border-color: #e2e8f0;
  --border-light: #f0f0f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);

  /* Typography */
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: #0f1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #1c2128;
  --bg-card: #161b22;
  --bg-hover: #21262d;
  --text-primary: #e6edf3;
  --text-secondary: #b1bac4;
  --text-muted: #8b949e;
  --text-light: #6e7681;
  --border-color: #30363d;
  --border-light: #21262d;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.6);
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Selection */
::selection {
  background-color: var(--primary);
  color: white;
}

/* ============================================
   LAYOUT
   ============================================ */

.news-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-gap {
  padding: var(--spacing-2xl) 0;
}

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
  background: var(--secondary);
  color: #adb5bd;
  font-size: 12px;
  font-family: var(--font-sans);
  padding: 6px 0;
  border-bottom: 2px solid var(--primary);
}

[data-theme="dark"] .top-bar {
  background: #0d1117;
}

.top-bar a {
  color: #adb5bd;
  transition: color var(--transition-fast);
}

.top-bar a:hover {
  color: #fff;
}

.top-bar .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: #adb5bd;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.top-bar .social-icon:hover {
  background: var(--primary);
  color: white;
}

/* Breaking News Ticker */
.breaking-news-bar {
  background: var(--primary);
  color: white;
  padding: 8px 0;
  overflow: hidden;
}

.breaking-label {
  background: var(--secondary);
  color: white;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-wrapper {
  overflow: hidden;
  flex: 1;
}

.ticker-content {
  display: flex;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  padding: 0 40px;
  font-size: 13px;
  font-weight: 500;
}

.ticker-item::before {
  content: '●';
  margin-right: 12px;
  font-size: 8px;
  vertical-align: middle;
  opacity: 0.7;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
}

.site-logo span {
  color: var(--secondary);
}

[data-theme="dark"] .site-logo span {
  color: var(--text-primary);
}

.site-logo .logo-tagline {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.header-ad-banner {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  height: 90px;
  max-width: 728px;
}

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

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.header-icon-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.header-icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.dark-toggle {
  background: var(--bg-tertiary);
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.dark-toggle:hover {
  background: var(--accent);
  color: white;
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
  background: var(--secondary);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .main-nav {
  background: #161b22;
  border-bottom: 1px solid var(--border-color);
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
  color: #e0e0e0;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255,255,255,0.08);
  border-bottom-color: var(--primary);
}

.nav-link .nav-arrow {
  font-size: 10px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-primary);
  min-width: 220px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.nav-dropdown a:hover {
  color: var(--primary);
  background: var(--bg-hover);
  padding-left: 24px;
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 700px;
  background: var(--bg-primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border-top: 3px solid var(--primary);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-col h6 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.mega-menu-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mega-menu-col a:hover {
  color: var(--primary);
  padding-left: 8px;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  background: var(--bg-primary);
  padding: 24px 0 32px;
}

.hero-slider-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: relative;
  height: 480px;
  overflow: hidden;
  cursor: pointer;
}

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

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

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.hero-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  color: white;
}

.hero-slide-content .category-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hero-slide-content h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 14px;
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.slider-dot.active {
  background: var(--primary);
  width: 24px;
}

/* Hero Sidebar Articles */
.hero-sidebar-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.hero-side-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-base);
  flex: 1;
  overflow: hidden;
}

.hero-side-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.hero-side-card img {
  width: 90px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.hero-side-card-body {
  flex: 1;
  min-width: 0;
}

.hero-side-card-body .category-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.hero-side-card-body h4 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.hero-side-card-body .meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

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

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 28px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.view-all-btn:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   NEWS CARDS
   ============================================ */

/* Standard Card */
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.news-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

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

.news-card .card-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.news-card .card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-card:hover .card-title {
  color: var(--primary);
}

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

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

.news-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card .card-meta .author {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Featured Large Card */
.featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  height: 420px;
}

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

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

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.featured-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: white;
}

.featured-card-content .category-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.featured-card-content h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: white;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card-content .meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}

/* Compact Card (List Style) */
.compact-card {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.compact-card:hover {
  padding-left: 6px;
}

.compact-card .rank {
  font-size: 22px;
  font-weight: 900;
  color: var(--border-color);
  font-family: var(--font-display);
  min-width: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.compact-card img {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.compact-card-body h5 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}

.compact-card:hover .compact-card-body h5 {
  color: var(--primary);
}

.compact-card-body .meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

/* Video Card */
.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background var(--transition-fast);
}

.video-card:hover .video-play-btn {
  background: rgba(0,0,0,0.5);
}

.play-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.video-card:hover .play-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.video-card .card-body {
  padding: 14px;
}

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

.video-card:hover .card-title {
  color: var(--primary);
}

/* Opinion Card */
.opinion-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  padding: 20px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.opinion-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary);
}

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

.opinion-author img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary);
}

.opinion-author-info h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.opinion-author-info span {
  font-size: 11px;
  color: var(--text-muted);
}

.opinion-card .quote-icon {
  font-size: 40px;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 4px;
  font-family: Georgia, serif;
}

.opinion-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opinion-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   CATEGORY SECTIONS
   ============================================ */

.category-section {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.category-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.category-secondary-articles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 24px;
}

.sidebar-widget-header {
  background: var(--secondary);
  color: white;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .sidebar-widget-header {
  background: #30363d;
}

.sidebar-widget-body {
  padding: 16px;
}

/* Ad Widget */
.ad-placeholder {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px;
}

.ad-placeholder .ad-icon {
  font-size: 24px;
  opacity: 0.4;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-badge:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Category Filter Tabs */
.category-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.cat-tab.active,
.cat-tab:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   PHOTO GALLERY
   ============================================ */

.gallery-grid {
  columns: 3;
  column-gap: 12px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  border-radius: var(--radius-2xl);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  background: rgba(192,57,43,0.15);
  pointer-events: none;
}

.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-input:focus {
  border-color: var(--primary);
}

.newsletter-btn {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(192,57,43,0.4);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--secondary);
  color: #adb5bd;
  padding-top: 48px;
}

[data-theme="dark"] .site-footer {
  background: #0d1117;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--primary);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #8d9db5;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: #adb5bd;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #8d9db5;
  font-size: 13px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: white;
  padding-left: 6px;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 0;
}

.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7a8d;
}

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

.footer-bottom-links a {
  color: #6b7a8d;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: white;
}

/* ============================================
   ARTICLE DETAIL PAGE
   ============================================ */

.article-hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.article-body {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.article-body h2, .article-body h3 {
  color: var(--text-primary);
  margin: 32px 0 16px;
}

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

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 18px;
}

.article-body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.article-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.share-btn.facebook { background: #1877f2; color: white; }
.share-btn.twitter { background: #1da1f2; color: white; }
.share-btn.whatsapp { background: #25d366; color: white; }
.share-btn.linkedin { background: #0a66c2; color: white; }
.share-btn:hover { opacity: 0.9; transform: translateY(-2px); }

.reading-time-bar {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.author-card-lg {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-card-lg img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--primary);
}

.author-stats {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.author-stats .stat {
  text-align: center;
}

.author-stats .stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.author-stats .stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   SEARCH PAGE
   ============================================ */

.search-bar-lg {
  display: flex;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary);
}

.search-bar-lg input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-size: 16px;
  background: var(--bg-card);
  color: var(--text-primary);
}

.search-bar-lg button {
  padding: 16px 28px;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.search-bar-lg button:hover {
  background: var(--primary-dark);
}

/* Filter Sidebar */
.filter-widget {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.filter-widget h6 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.filter-option:hover {
  color: var(--primary);
}

.filter-option input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
  font-family: var(--font-sans);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(192,57,43,0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--primary);
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-nav span.separator {
  color: var(--border-color);
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================================
   WEATHER WIDGET
   ============================================ */

.weather-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #adb5bd;
}

.weather-widget .temp {
  font-weight: 700;
  color: white;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-nav {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dashboard-nav-item:last-child {
  border-bottom: none;
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
  background: var(--primary);
  color: white;
}

.dashboard-nav-item i {
  width: 20px;
  font-size: 16px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  margin: 0 auto 12px;
}

.stat-card .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   SKELETON LOADING
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

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

.skeleton-img {
  width: 100%;
  padding-top: 60%;
}

.skeleton-title {
  height: 20px;
  margin-bottom: 8px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 6px;
}

.skeleton-text:last-child {
  width: 70%;
}

/* ============================================
   MODAL / LIGHTBOX
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   TABS
   ============================================ */

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.tab-btn {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  margin-bottom: -2px;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ============================================
   ACCORDION
   ============================================ */

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  background: var(--bg-card);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--bg-hover);
}

.accordion-icon {
  font-size: 18px;
  transition: transform var(--transition-base);
  color: var(--text-muted);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  background: var(--bg-secondary);
}

.accordion-item.open .accordion-body {
  max-height: 300px;
}

.accordion-body-inner {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideInRight 0.3s ease;
  font-size: 14px;
  color: var(--text-primary);
}

.toast.success { border-left-color: #27ae60; }
.toast.error { border-left-color: var(--primary); }
.toast.info { border-left-color: #3498db; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   404 PAGE
   ============================================ */

.page-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}

.error-code {
  font-size: clamp(80px, 15vw, 150px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  font-family: var(--font-display);
  opacity: 0.2;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-danger { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }

[data-theme="dark"] .alert-success { background: rgba(40,167,69,0.15); color: #6fcf97; }
[data-theme="dark"] .alert-danger { background: rgba(220,53,69,0.15); color: #ff6b6b; }
[data-theme="dark"] .alert-info { background: rgba(23,162,184,0.15); color: #56ccf2; }
[data-theme="dark"] .alert-warning { background: rgba(255,193,7,0.15); color: #f2c94c; }

/* ============================================
   COMMENTS
   ============================================ */

.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

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

.comment-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

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

.comment-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.comment-actions {
  display: flex;
  gap: 12px;
}

.comment-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.comment-action-btn:hover {
  color: var(--primary);
}

/* Reply Comment */
.comment-reply {
  margin-left: 58px;
  margin-top: 8px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--border-color);
}

/* ============================================
   LIVE BADGE
   ============================================ */

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: white;
  animation: pulse-dot 1s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 1199px) {
  .mega-menu {
    width: 560px;
  }

  .news-container {
    max-width: 1100px;
  }
}

@media (max-width: 1399px) {
  .site-logo { font-size: 30px; }
}

@media (max-width: 991px) {
  .nav-list {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
    align-items: center;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--secondary);
    z-index: var(--z-modal);
    transition: left var(--transition-base);
    overflow-y: auto;
    padding: 0;
  }

  .mobile-nav.open {
    left: 0;
  }

  [data-theme="dark"] .mobile-nav {
    background: #161b22;
  }

  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: var(--z-modal-backdrop);
    display: none;
  }

  .mobile-nav-overlay.active {
    display: block;
  }

  .hero-slide {
    height: 320px;
  }

  .hero-slide-content h2 {
    font-size: 18px;
  }

  .newsletter-section {
    padding: 32px 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .gallery-grid {
    columns: 2;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .top-bar .hide-mobile {
    display: none !important;
  }

  .hero-slide {
    height: 260px;
  }

  .hero-slide-content {
    padding: 20px;
  }

  .section-title {
    font-size: 18px;
  }

  .news-container {
    padding: 0 12px;
  }

  .featured-card {
    height: 300px;
  }

  .gallery-grid {
    columns: 2;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .newsletter-section {
    padding: 24px 16px;
  }
}

@media (max-width: 575px) {
  .hero-slide {
    height: 220px;
  }

  .hero-slide-content {
    padding: 14px;
  }

  .hero-slide-content h2 {
    font-size: 15px;
  }

  .hero-slide-content p {
    display: none;
  }

  .gallery-grid {
    columns: 1;
  }

  .article-share-bar {
    gap: 6px;
  }

  .share-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

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

.text-primary-color { color: var(--primary); }
.text-muted-color { color: var(--text-muted); }
.bg-primary-color { background-color: var(--primary); }
.border-primary-color { border-color: var(--primary); }

.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.hover-scale { transition: transform var(--transition-base); }
.hover-scale:hover { transform: scale(1.02); }

.hover-lift { transition: transform var(--transition-base), box-shadow var(--transition-base); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll reveal applied on load */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dividers */
.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 24px 0;
}

/* Loading Spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Progress Bar */
.progress-bar-wrapper {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* Category Color Indicators */
.cat-politics { color: #e74c3c; }
.cat-business { color: #27ae60; }
.cat-technology { color: #3498db; }
.cat-sports { color: #f39c12; }
.cat-entertainment { color: #9b59b6; }
.cat-health { color: #1abc9c; }
.cat-science { color: #2980b9; }
.cat-world { color: #e67e22; }
.cat-lifestyle { color: #e91e63; }
.cat-education { color: #34495e; }

.badge-politics { background: #e74c3c; }
.badge-business { background: #27ae60; }
.badge-technology { background: #3498db; }
.badge-sports { background: #f39c12; }
.badge-entertainment { background: #9b59b6; }
.badge-health { background: #1abc9c; }
.badge-science { background: #2980b9; }
.badge-world { background: #e67e22; }
.badge-lifestyle { background: #e91e63; }
.badge-education { background: #34495e; }

/* Mobile nav link styles */
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.05);
}

.mobile-nav-header {
  background: var(--primary);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Inline ad */
.inline-ad {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 24px 0;
}

/* Profile page */
.profile-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  padding: 40px;
  border-radius: var(--radius-xl);
  color: white;
  position: relative;
  overflow: hidden;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  border: 4px solid var(--primary);
  object-fit: cover;
}

/* Contact Page */
.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(192,57,43,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  margin: 0 auto 14px;
}

/* Privacy, Terms pages */
.legal-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-content h2 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 17px;
  margin: 20px 0 10px;
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Login/Register pages */
.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  max-width: 440px;
  margin: 0 auto;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  margin-bottom: 8px;
}

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

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

.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 10px;
}

.social-login-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-hover);
}

/* Map Placeholder */
.map-placeholder {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
  font-size: 14px;
  color: var(--text-muted);
  flex-direction: column;
  gap: 10px;
}

.map-placeholder i {
  font-size: 36px;
  opacity: 0.4;
}

/* Advertise page */
.ad-package-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 2px solid var(--border-color);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.ad-package-card.featured {
  border-color: var(--primary);
  position: relative;
}

.ad-package-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.ad-package-card .price {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-display);
}

.ad-package-card .price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.ad-package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Counter animation */
.counter-number {
  font-size: 40px;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-display);
}

/* Trending number badges */
.trending-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Image overlay effects */
.img-overlay-dark {
  position: relative;
  overflow: hidden;
}

.img-overlay-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  transition: background var(--transition-base);
}

.img-overlay-dark:hover::after {
  background: rgba(0,0,0,0.15);
}

/* ============================================
   ENHANCED ANIMATIONS & POLISH
   ============================================ */

/* Smooth page transitions */
#main-content {
  animation: pageIn 0.3s ease;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card hover enhancements */
.news-card:hover .card-title {
  color: var(--primary);
}

/* Category section hover */
.category-section {
  transition: box-shadow var(--transition-base);
}

.category-section:hover {
  box-shadow: var(--shadow-md);
}

/* Video card glow */
.video-card:hover {
  box-shadow: 0 8px 32px rgba(192,57,43,0.15);
}

/* Opinion card quote */
.opinion-card:hover .quote-icon {
  opacity: 0.4;
}

/* Nav link underline animation */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

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

/* Hero slide image parallax hint */
.hero-slide {
  will-change: transform;
}

/* Featured card shimmer */
.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.featured-card:hover::before {
  opacity: 1;
}

/* Sidebar widget header gradient */
.sidebar-widget-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

[data-theme="dark"] .sidebar-widget-header {
  background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
}

/* Breaking news pulse */
.breaking-news-bar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* Newsletter section stars decoration */
.newsletter-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Tag badge hover lift */
.tag-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Dashboard stat card hover */
.stat-card {
  transition: all var(--transition-base);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Hero slide gradient overlay enhancement */
.hero-slide-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 80%, transparent 100%);
}

/* Ticker animation improvement */
@keyframes ticker {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Footer link hover arrow */
.footer-links a::before {
  content: '›';
  margin-right: 6px;
  transition: margin var(--transition-fast);
}

.footer-links a:hover::before {
  margin-right: 10px;
}

.footer-links a i {
  display: none;
}

/* Scrollbar for webkit */
::-webkit-scrollbar {
  width: 5px;
}

/* Section title border animation */
.section-title::before {
  transition: height var(--transition-base);
}

/* Form focus ring */
.form-control:focus {
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

/* Button press effect */
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Mobile nav smooth shadow */
.mobile-nav {
  box-shadow: 4px 0 32px rgba(0,0,0,0.5);
}

/* Lightbox controls hover */
.modal-overlay button:hover {
  background: rgba(255,255,255,0.2) !important;
}

/* Author card link */
.author-card-lg:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

/* Profile hero decoration */
.profile-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(192,57,43,0.1);
  pointer-events: none;
}

.profile-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

/* Compact card hover */
.compact-card {
  transition: padding-left var(--transition-fast), box-shadow var(--transition-fast);
}

.compact-card:hover {
  padding-left: 8px;
}

/* Print styles */
@media print {
  .main-nav,
  .top-bar,
  .breaking-news-bar,
  .sidebar,
  .site-footer,
  .back-to-top,
  .article-share-bar,
  .ad-placeholder {
    display: none !important;
  }
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}
