/* ============================================
   CROCKSHOCK NEWS — PREMIUM STYLESHEET
   Mobile-first | Core Web Vitals Optimized
   v3.0 — Glassmorphism, Micro-animations, Premium
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;

  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-border: #e5e7eb;
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-text-muted: #9ca3af;
  --color-accent: #1a1a2e;
  --color-accent-hover: #16213e;
  --color-link: #2563eb;
  --color-header-bg: rgba(255, 255, 255, .97);
  --color-card-bg: #ffffff;
  --color-article-body: #374151;

  --color-tech: #6366f1;
  --color-business: #059669;
  --color-sports: #dc2626;
  --color-entertainment: #d946ef;
  --color-india: #f59e0b;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, .08), 0 2px 6px -2px rgba(0, 0, 0, .05);
  --shadow-lg: 0 12px 28px -6px rgba(0, 0, 0, .12), 0 4px 8px -4px rgba(0, 0, 0, .06);
  --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, .15), 0 8px 16px -6px rgba(0, 0, 0, .08);
  --glass-border: 1px solid rgba(255, 255, 255, .12);
  --glass-bg: rgba(255, 255, 255, .6);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --header-height: 60px;
  --max-width: 1200px;
  --content-width: 780px;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  --color-bg: #0a0c14;
  --color-surface: #121524;
  --color-border: #1c2035;
  --color-text: #e8eaf0;
  --color-text-secondary: #9ea3b8;
  --color-text-muted: #555a72;
  --color-accent: #e8eaf0;
  --color-accent-hover: #c8cad4;
  --color-link: #818cf8;
  --color-header-bg: rgba(10, 12, 20, .88);
  --color-card-bg: #121524;
  --color-article-body: #c5c8d6;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 12px 28px -6px rgba(0, 0, 0, .5);
  --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, .6);
  --glass-border: 1px solid rgba(255, 255, 255, .05);
  --glass-bg: rgba(18, 21, 36, .7);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: var(--glass-border);
  height: var(--header-height);
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  white-space: nowrap;
}

.logo-icon {
  font-size: 1.5rem;
}

/* Header actions (dark mode toggle) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px 8px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-text);
  transition: background .15s, border-color .15s;
}

.theme-toggle:hover {
  background: var(--color-surface);
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop nav */
.main-nav {
  display: none;
  flex: 1;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 6px 14px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-text);
  background: var(--color-surface);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: 24px 16px;
  overflow-y: auto;
  transition: background .25s ease;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:first-child {
  border-top: 1px solid var(--color-border);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-link);
}

/* ---------- Page Hero / Header ---------- */
.page-hero {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
}

.page-hero .tagline {
  font-size: .95rem;
  color: var(--color-text-secondary);
  margin-top: 6px;
}

/* ---------- Trending Bar ---------- */
.trending-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  overflow: hidden;
  transition: background .25s ease;
}

.trending-bar .container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trending-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 3px 8px;
  background: var(--color-border);
  border-radius: 3px;
}

.trending-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.trending-list::-webkit-scrollbar {
  display: none;
}

.trending-list a {
  font-size: .8rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: color .15s;
}

.trending-list a:hover {
  color: var(--color-link);
}

/* ---------- Featured Article (Hero Card) ---------- */
.featured-article {
  margin: 24px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #000;
  cursor: pointer;
}

.featured-article a {
  display: block;
  position: relative;
}

.featured-image-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.featured-article:hover .featured-image-wrapper img {
  transform: scale(1.03);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  color: #fff;
}

.featured-overlay .category-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 3px;
  margin-bottom: 10px;
}

.featured-overlay h2 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.featured-overlay .description {
  font-size: .85rem;
  color: rgba(255, 255, 255, .8);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-overlay .meta {
  font-size: .75rem;
  color: rgba(255, 255, 255, .6);
  margin-top: 8px;
}

/* ---------- Section Title ---------- */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  padding: 20px 0 14px;
  border-bottom: 2px solid var(--color-text);
  margin-bottom: 20px;
}

/* ---------- Article Grid ---------- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 0 32px;
}

/* Article Card */
.article-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  transition: box-shadow .25s ease, transform .25s ease, background .25s ease, border-color .25s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
}

.article-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: box-shadow .25s ease, transform .4s cubic-bezier(.25, .46, .45, .94), background .25s ease, border-color .25s ease, opacity .5s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px) scale(1.01);
  border-color: var(--color-link);
}

.article-card a {
  display: block;
}

.card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-surface);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.article-card:hover .card-image img {
  transform: scale(1.04);
}

.card-content {
  padding: 14px 16px 16px;
}

.category-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 3px;
  color: #fff;
}

.category-badge[data-category="technology"] {
  background: var(--color-tech);
}

.category-badge[data-category="business"] {
  background: var(--color-business);
}

.category-badge[data-category="sports"] {
  background: var(--color-sports);
}

.category-badge[data-category="entertainment"] {
  background: var(--color-entertainment);
}

.category-badge[data-category="india"] {
  background: var(--color-india);
}

.card-content h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 8px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-text);
}

.card-content .description {
  font-size: .85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--color-text-muted);
}

.card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

/* ---------- Load More ---------- */
.load-more-wrap {
  text-align: center;
  padding: 16px 0 48px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.load-more-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.load-more-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.load-more-btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

.load-more-btn.loading .spinner {
  display: inline-block;
}

.load-more-btn.loading {
  pointer-events: none;
  opacity: .7;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Error State ---------- */
.error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .error-banner {
  background: #2d1b1b;
  border-color: #5c2626;
  color: #fca5a5;
}

.error-banner button {
  margin-left: auto;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .8rem;
  white-space: nowrap;
}

/* ---------- Article Page ---------- */
.article-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 16px 0;
}

.article-header .category-badge {
  margin-bottom: 14px;
}

.article-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 14px;
}

.article-header .article-desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--color-text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.article-meta .author {
  font-weight: 600;
  color: var(--color-text);
}

.article-featured-image {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 16px;
}

.article-featured-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 16px 48px;
}

.article-body p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-article-body);
  margin-bottom: 22px;
}

.article-body h2 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 36px 0 16px;
  letter-spacing: -0.01em;
}

.article-body blockquote {
  border-left: 3px solid var(--color-link);
  margin: 24px 0;
  padding: 12px 20px;
  font-style: italic;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body ul,
.article-body ol {
  margin: 16px 0;
  padding-left: 24px;
  list-style: disc;
}

.article-body li {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-article-body);
  margin-bottom: 6px;
}

/* Share bar */
.share-bar {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-bar span {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.share-btn:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

/* Related Articles */
.related-section {
  background: var(--color-surface);
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  transition: background .25s ease;
}

.related-section .section-title {
  border-bottom-color: var(--color-text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: rgba(255, 255, 255, .85);
  padding: 48px 0 24px;
  transition: background .25s ease;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #818cf8, #d946ef, #f59e0b);
}

[data-theme="dark"] .site-footer {
  background: linear-gradient(135deg, #06080f 0%, #0a0e1a 50%, #0d1424 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.6;
}

.footer-links h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .5);
}

.footer-links a {
  display: block;
  font-size: .875rem;
  color: rgba(255, 255, 255, .75);
  padding: 4px 0;
  transition: color .15s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
  text-align: center;
  font-size: .75rem;
  color: rgba(255, 255, 255, .4);
}

/* ---------- Scroll to Top ---------- */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, visibility .25s, transform .25s, background .15s;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--color-accent-hover);
}

[data-theme="dark"] .scroll-to-top {
  background: #3b3f54;
  color: #e4e6f0;
}

[data-theme="dark"] .scroll-to-top:hover {
  background: #4b5068;
}

/* ---------- Loading skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-border) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card .card-image {
  background: var(--color-surface);
}

.skeleton-card .skeleton-line {
  height: 14px;
  margin: 8px 16px;
  border-radius: 4px;
}

.skeleton-card .skeleton-line:first-child {
  width: 50px;
  height: 18px;
  margin-top: 14px;
}

.skeleton-card .skeleton-line:nth-child(2) {
  width: 90%;
}

.skeleton-card .skeleton-line:nth-child(3) {
  width: 75%;
}

.skeleton-card .skeleton-line:last-child {
  width: 40%;
  margin-bottom: 16px;
}

/* Article page skeleton */
.skeleton-article-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 16px 0;
}

.skeleton-article-header .skeleton-line {
  margin: 0 0 12px;
}

.skeleton-article-header .skeleton-line:nth-child(1) {
  width: 80px;
  height: 22px;
}

.skeleton-article-header .skeleton-line:nth-child(2) {
  width: 100%;
  height: 28px;
}

.skeleton-article-header .skeleton-line:nth-child(3) {
  width: 85%;
  height: 28px;
}

.skeleton-article-header .skeleton-line:nth-child(4) {
  width: 60%;
  height: 16px;
  margin-top: 8px;
}

.skeleton-article-img {
  max-width: var(--content-width);
  margin: 24px auto;
  padding: 0 16px;
}

.skeleton-article-img .skeleton {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
}

.skeleton-article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 16px;
}

.skeleton-article-body .skeleton-line {
  margin: 0 0 14px;
}

.skeleton-article-body .skeleton-line:nth-child(odd) {
  width: 100%;
  height: 14px;
}

.skeleton-article-body .skeleton-line:nth-child(even) {
  width: 90%;
  height: 14px;
}

/* ---------- 404 / Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 80px 16px;
}

.empty-state h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.empty-state a {
  color: var(--color-link);
  font-weight: 600;
}

/* ---------- RESPONSIVE — Tablet (>=768px) ---------- */
@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }

  .featured-overlay h2 {
    font-size: 1.75rem;
  }

  .featured-overlay {
    padding: 32px;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .article-header h1 {
    font-size: 2.25rem;
  }

  .article-header {
    padding-top: 40px;
  }
}

/* ---------- RESPONSIVE — Desktop (>=1024px) ---------- */
@media (min-width: 1024px) {
  .featured-overlay h2 {
    font-size: 2rem;
  }

  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-header h1 {
    font-size: 2.5rem;
  }

  .article-body p {
    font-size: 1.15rem;
  }
}

/* ---------- RESPONSIVE — Large Desktop (>=1200px) ---------- */
@media (min-width: 1200px) {
  .article-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-size: .8rem;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: '›';
  margin: 0 8px;
  color: var(--color-text-muted);
  font-size: .9rem;
}

.breadcrumbs a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color .15s;
}

.breadcrumbs a:hover {
  color: var(--color-link);
  text-decoration: underline;
}

.breadcrumbs li:last-child {
  color: var(--color-text);
  font-weight: 500;
}

/* ---------- Static Page Content ---------- */
.page-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--color-text);
}

.page-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  border-left: 3px solid var(--color-link);
  padding-left: 16px;
}

.page-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--color-text);
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--color-text);
}

.page-content p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-article-body);
  margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content li {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-article-body);
  margin-bottom: 6px;
}

.page-content a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color .15s;
}

.page-content a:hover {
  text-decoration-color: var(--color-link);
}

.legal-content h2 {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0 32px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color .2s, box-shadow .2s;
}

.contact-card:hover {
  border-color: var(--color-link);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.contact-card h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  padding: 0;
  border: none;
}

.contact-card p {
  font-size: .9rem;
  margin-bottom: 12px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-link) !important;
  padding: 6px 14px;
  border: 1px solid var(--color-link);
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}

.contact-email:hover {
  background: var(--color-link);
  color: #fff !important;
}

/* ---------- About Page ---------- */
.about-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0 32px;
}

@media (min-width: 768px) {
  .about-categories {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .about-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-category-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform .2s, box-shadow .2s;
}

.about-category-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.about-category-item h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.about-category-item p {
  font-size: .9rem;
  margin: 0;
  color: var(--color-text-secondary);
}

/* ---------- Breaking News Ticker ---------- */
.breaking-news-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 100%);
  overflow: hidden;
  height: 38px;
  position: relative;
}

[data-theme="dark"] .breaking-news-bar {
  background: linear-gradient(90deg, #0f0d24 0%, #1a1745 100%);
}

.breaking-label {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: #dc2626;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  position: relative;
}

.breaking-label::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 0;
  border-left: 12px solid #dc2626;
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 16px;
}

.ticker-content {
  display: flex;
  gap: 48px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-content a {
  font-size: .82rem;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
  transition: color .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-content a:hover {
  color: #fff;
}

.ticker-content a::before {
  content: '•';
  color: #818cf8;
  font-size: 1.2rem;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-content:hover {
  animation-play-state: paused;
}

/* ---------- Category Cards ---------- */
.category-cards-section {
  padding: 32px 0;
}

.category-cards-section .section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-text);
  display: inline-block;
  color: var(--color-text);
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .category-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .category-cards-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

.category-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

.category-card .cat-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.category-card .cat-name {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-card .cat-count {
  font-size: .7rem;
  opacity: .8;
}

.category-card[data-category="technology"] {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.category-card[data-category="business"] {
  background: linear-gradient(135deg, #059669, #047857);
}

.category-card[data-category="sports"] {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.category-card[data-category="entertainment"] {
  background: linear-gradient(135deg, #d946ef, #c026d3);
}

.category-card[data-category="india"] {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* ---------- Reading Time ---------- */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  color: var(--color-text-muted);
}

.reading-time::before {
  content: '📖';
  font-size: .9rem;
}

/* ---------- Newsletter ---------- */
.footer-newsletter {
  margin-top: 20px;
}

.footer-newsletter h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .5);
}

.footer-newsletter p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 12px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: .85rem;
  font-family: var(--font-primary);
  outline: none;
  transition: border-color .2s, background .2s;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, .35);
}

.newsletter-form input[type="email"]:focus {
  border-color: #818cf8;
  background: rgba(255, 255, 255, .12);
}

.newsletter-form button {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: #6366f1;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  white-space: nowrap;
  font-family: var(--font-primary);
}

.newsletter-form button:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.newsletter-form button:active {
  transform: translateY(0);
}

/* ---------- Card Scroll Animations ---------- */
.category-card,
.featured-article {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.25, .46, .45, .94);
}

.category-card.visible,
.featured-article.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Category card shimmer hover */
.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  transition: left .5s ease;
}

.category-card:hover::after {
  left: 100%;
}

/* ---------- Print ---------- */
@media print {

  .site-header,
  .site-footer,
  .trending-bar,
  .related-section,
  .load-more-wrap,
  .scroll-to-top,
  .share-bar {
    display: none;
  }

  .article-body p {
    font-size: 12pt;
    color: #000;
  }

  body {
    background: #fff;
    color: #000;
  }
}