:root {
  --primary: #008751;
  --primary-dark: #00582e;
  --primary-light: #33bb78;
  --red: var(--primary);
  --red-dark: var(--primary-dark);
  --black: #0a0a0a;
  --dark: #1a1a2e;
  --darker: #111;
  --gray-900: #1a1a1a;
  --gray-800: #2d2d2d;
  --gray-700: #404040;
  --gray-600: #666;
  --gray-500: #999;
  --gray-400: #b3b3b3;
  --gray-300: #ccc;
  --gray-200: #e6e6e6;
  --gray-100: #f2f2f2;
  --gray-50: #fafafa;
  --white: #fff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 100%;
  --header-height: 120px;
}

[data-theme="dark"] {
  --bg: var(--darker);
  --bg-card: var(--gray-900);
  --bg-elevated: var(--gray-800);
  --bg-hover: var(--gray-700);
  --text: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #777;
  --border: #333;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.6);
  --overlay: rgba(0,0,0,0.8);
}

:root {
  --bg: var(--white);
  --bg-card: var(--white);
  --bg-elevated: var(--gray-50);
  --bg-hover: var(--gray-100);
  --text: #111;
  --text-secondary: #555;
  --text-muted: #999;
  --border: var(--gray-200);
  --overlay: rgba(0,0,0,0.6);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .site-header {
  background: var(--darker);
}

.header-top {
  border-bottom: 3px solid var(--primary);
}

.header-top .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}

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

.menu-toggle {
  font-size: 1.25rem;
  color: var(--text);
  padding: 8px;
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-icon {
  color: var(--primary);
  font-size: 1.75rem;
}

.logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}

.logo-text {
  background: linear-gradient(135deg, var(--primary), #33bb78);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  gap: 4px;
}

.nav-list a {
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: all var(--transition);
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
  background: rgba(0, 135, 81, 0.12);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-right button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.header-right button:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 8px;
  padding-right: 8px;
  border-right: 1px solid var(--border);
}
.header-social .social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.header-social .social-icon:hover {
  color: var(--primary);
  background: rgba(0, 135, 81, 0.12);
}

/* Search bar */
.search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.search-bar.open {
  max-height: 64px;
}

.search-bar .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 12px;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.125rem;
  padding: 12px 0;
  outline: none;
  color: var(--text);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar button {
  font-size: 1.25rem;
  color: var(--text-muted);
  padding: 8px;
}

/* Breaking news */
.breaking-news {
  background: var(--black);
  color: var(--white);
  height: 36px;
  overflow: hidden;
}

.breaking-news .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 16px;
}

.breaking-label {
  background: var(--primary);
  padding: 2px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  flex-shrink: 0;
  animation: pulse-label 2s infinite;
}

@keyframes pulse-label {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

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

.breaking-text {
  display: block;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  animation: ticker 25s linear infinite;
  padding-left: 100%;
}

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

/* ─── Category Bar ─── */
.category-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.category-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* ─── Hero Section ─── */
.hero-section {
  padding: 32px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 2fr 1fr;
  gap: 24px;
}

.hero-video {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.hero-video-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-video-label i {
  font-size: 0.875rem;
}

/* Hero card large */
.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition);
}

.hero-main:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.hero-main .hero-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-main:hover .hero-image {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hero-overlay .article-category {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border-radius: 3px;
}

.hero-overlay h2 {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Hero sidebar cards */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-side-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

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

.hero-side-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-side-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side-card .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

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

/* Hero side: sport scores */
.hero-side-sport {
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.hero-side-sport:hover {
  box-shadow: var(--shadow-md);
}
.hero-side-sport-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.hero-side-sport-header i {
  font-size: 0.8125rem;
}
.sport-match {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}
.sport-match:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sport-match .team {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.sport-match .team.home { text-align: left; }
.sport-match .team.away { text-align: right; }
.sport-match .score {
  font-weight: 800;
  font-size: 0.9375rem;
  text-align: center;
  min-width: 36px;
  color: var(--text);
  flex-shrink: 0;
}
.sport-match .status {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  text-align: center;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  min-width: 34px;
}
.sport-match .status.live {
  background: #16a34a;
  color: #fff;
  animation: pulse-label 1.5s infinite;
}
.sport-match .status.ft {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

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

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--primary);
  font-size: 1rem;
}

.view-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.view-all:hover {
  gap: 10px;
}

/* ─── Three-Column Layout ─── */
.page-wrap {
  padding: 32px 0;
}

.page-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.sidebar-left-col {
  width: 250px;
  flex-shrink: 0;
}

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

.sidebar-right-col {
  width: 300px;
  flex-shrink: 0;
}

.sidebar-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sidebar-box:last-child {
  margin-bottom: 0;
}

.sidebar-box h3 {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-box h3 i {
  color: var(--primary);
  font-size: 0.75rem;
}

/* Sidebar: category nav */
.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-cat-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.sidebar-cat-list a:hover,
.sidebar-cat-list a.active {
  background: rgba(0, 135, 81, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-cat-list a i {
  width: 16px;
  text-align: center;
  font-size: 0.8125rem;
}

/* Sidebar: mini list (headlines / trending) */
.sidebar-mini-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity var(--transition);
}

.sidebar-mini-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-mini-item:hover {
  opacity: 0.8;
}

.sidebar-mini-item .mini-num {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.3;
  flex-shrink: 0;
  line-height: 1.2;
  min-width: 24px;
}

.sidebar-mini-item h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-mini-item .mini-meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Sidebar: trending big numbers */
.sidebar-trend-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity var(--transition);
}

.sidebar-trend-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-trend-item:hover {
  opacity: 0.8;
}

.sidebar-trend-item .trend-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.25;
  flex-shrink: 0;
  line-height: 1;
  min-width: 32px;
}

.sidebar-trend-item h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.sidebar-trend-item .trend-meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sidebar: featured mini cards */
.sidebar-feat-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity var(--transition);
}

.sidebar-feat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-feat-item:hover {
  opacity: 0.8;
}

.sidebar-feat-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-feat-item h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.sidebar-feat-item .feat-meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Sidebar: newsletter */
.sidebar-newsletter {
  text-align: center;
}

.sidebar-newsletter p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.newsletter-row {
  display: flex;
  gap: 8px;
}

.newsletter-row input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  background: var(--bg);
  color: var(--text);
}

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

.newsletter-row button {
  padding: 10px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.newsletter-row button:hover {
  background: var(--primary-dark);
}

/* Sidebar: social */
.sidebar-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sidebar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  transition: all var(--transition);
}

.sidebar-social a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.social-fb { background: #1877f2; }
.social-tw { background: #1da1f2; }
.social-ig { background: #e4405f; }
.social-yt { background: #ff0000; }

.sidebar-social a i {
  font-size: 1rem;
}

/* Sidebar: opinion poll */
.sidebar-poll p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}
.poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.poll-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.poll-options label:hover {
  background: rgba(0, 135, 81, 0.08);
  border-color: var(--primary);
}
.poll-options input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}
.poll-submit {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.poll-submit:hover {
  background: var(--primary-dark);
}
.poll-thanks {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #16a34a;
  text-align: center;
  margin-bottom: 14px;
  padding: 8px;
  background: #f0fdf4;
  border-radius: var(--radius);
}
[data-theme="dark"] .poll-thanks {
  background: #052e16;
  color: #86efac;
}
.poll-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
}
.poll-result-label {
  width: 70px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-secondary);
}
.poll-bar-bg {
  flex: 1;
  height: 18px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}
.poll-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.poll-result-pct {
  width: 36px;
  text-align: right;
  font-weight: 700;
  color: var(--text);
}
.poll-total {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Sidebar: ad */
.sidebar-ad {
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ─── Featured Poll (main section) ─── */
.poll-featured {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.poll-featured-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
}
.poll-featured-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 135, 81, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.poll-featured-icon i {
  font-size: 1.25rem;
  color: var(--primary);
}
.poll-featured-header h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.poll-featured-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.poll-featured .poll-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.poll-featured .poll-submit {
  width: auto;
  padding: 12px 32px;
  margin-top: 12px;
}
.poll-featured .poll-thanks {
  font-size: 0.9375rem;
  padding: 10px 16px;
}

/* ─── News Grid / Cards ─── */
.trending-section,
.featured-section {
  padding: 40px 0 0;
}

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

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

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

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

.news-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

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

.news-card-body {
  padding: 16px 20px 20px;
}

.news-card .article-category {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

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

.news-card .meta i {
  margin-right: 4px;
}

/* Trending card variation */
.trending-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
}

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

.trending-card .trending-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 8px;
}

.trending-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-card .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ─── Category Sections ─── */
.categories-section {
  padding: 40px 0;
}

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

.category-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.category-block h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-block h3 i {
  color: var(--primary);
}

.category-block-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity var(--transition);
}

.category-block-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.category-block-item:hover {
  opacity: 0.8;
}

.category-block-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.category-block-item .item-text h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-block-item .item-text span {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
  font-size: 0.9375rem;
}

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

.footer-links h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
}

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

.footer-links ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.8125rem;
}

/* ═══════════════════════════════════════
   ARTICLE PAGE
   ═══════════════════════════════════════ */
.article-page {
  padding: 32px 0 60px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

.article-loading {
  text-align: center;
  padding: 80px 0;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.article-category {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.article-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.article-author {
  font-weight: 600;
  color: var(--primary);
}

.article-image-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.article-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
}

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

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.tag {
  padding: 6px 14px;
  background: var(--bg-elevated);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

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

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-share span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-size: 0.9375rem;
}

.share-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.article-error {
  text-align: center;
  padding: 80px 0;
}

.article-error i {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.article-error h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.article-error p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ─── Sidebar ─── */
.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary);
}

.related-item,
.trending-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity var(--transition);
}

.related-item:last-child,
.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-item:hover,
.trending-item:hover {
  opacity: 0.8;
}

.related-item img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.related-item h4,
.trending-item h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.related-item .meta,
.trending-item .meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.trending-item .trending-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.3;
  flex-shrink: 0;
  line-height: 1;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1200px) {
  .sidebar-left-col { width: 220px; }
  .sidebar-right-col { width: 250px; }
  .page-row { gap: 20px; }
}

@media (max-width: 1024px) {
  .sidebar-left-col { display: none; }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-video-wrap {
    padding-top: 48%;
    max-height: 300px;
  }
  .hero-video {
    order: -1;
  }
  .hero-main .hero-image {
    height: 350px;
  }
  .hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 64px;
  }

  :root {
    --header-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: max-height 0.4s ease;
    z-index: 999;
  }

  [data-theme="dark"] .main-nav {
    background: var(--darker);
  }

  .main-nav.open {
    max-height: calc(100vh - 64px);
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
    gap: 8px 10px;
    list-style: none;
    margin: 0;
  }

  .nav-list li {
    list-style: none;
    margin: 0;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: all var(--transition);
  }

  .nav-list a:hover,
  .nav-list a.active {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
  }

  .hero-main .hero-image {
    height: 250px;
  }

  .hero-overlay {
    padding: 24px 20px 20px;
  }

  .hero-overlay h2 {
    font-size: 1.25rem;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    grid-template-columns: 120px 1fr;
  }

  .hero-side-card img {
    height: 80px;
  }

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

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

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

  .page-row { flex-direction: column; }
  .sidebar-right-col { display: none; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .breaking-news {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-main .hero-image {
    height: 200px;
  }

  .hero-side-card {
    grid-template-columns: 100px 1fr;
    padding: 12px;
  }

  .hero-side-card img {
    height: 70px;
  }

  .hero-overlay h2 {
    font-size: 1.0625rem;
  }

  .news-card-body {
    padding: 12px 16px 16px;
  }
}
