/*
 Theme Name:   Tech Portal Pakistan
 Theme URI:    https://techportal.27.jugaar.ai
 Description:  Professional tech news portal theme
 Author:       Tech Portal Team
 Template:     colormag
 Version:      3.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  techportal-child
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Colors */
  --bg-primary: #0B1120;
  --bg-secondary: #111827;
  --bg-card: #1A1F36;
  --bg-card-hover: #222845;
  --bg-surface: #1E2440;
  --border-subtle: #2A3152;
  --border-hover: #3B4575;

  --text-primary: #E8ECF1;
  --text-secondary: #9BA3B5;
  --text-muted: #6B7394;

  --accent: #00D4AA;
  --accent-hover: #00E8BB;
  --accent-blue: #00A3FF;
  --accent-glow: rgba(0, 212, 170, 0.15);

  --red: #EF4444;
  --orange: #F59E0B;
  --purple: #8B5CF6;
  --blue: #3B82F6;
  --green: #10B981;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(0,212,170,0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent-hover);
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.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: 1000;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo .logo-mobile {
  display: none;
}

/* Primary Nav */
.primary-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-1);
}

.primary-nav a {
  display: block;
  padding: var(--space-2) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--text-primary);
  background: var(--bg-surface);
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-search {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

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

.btn-search kbd {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  background: var(--bg-primary);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-2);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 16/9;
  cursor: pointer;
}

.hero-main .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-6);
  background: linear-gradient(to top, rgba(11,17,32,0.95) 0%, transparent 100%);
}

.hero-main .hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.hero-main h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-3);
  color: #fff;
}

.hero-main .hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.hero-side-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.hero-side-card .card-thumb {
  width: 120px;
  min-width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-surface);
}

.hero-side-card .card-body h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side-card .card-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-side-card .card-meta .source {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-block {
  padding: var(--space-12) 0;
}

.section-block + .section-block {
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.section-header .section-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.section-header h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-it { background: rgba(0,163,255,0.15); color: var(--accent-blue); }
.tag-startup { background: rgba(245,158,11,0.15); color: var(--orange); }
.tag-cyber { background: rgba(139,92,246,0.15); color: var(--purple); }
.tag-ai { background: rgba(0,212,170,0.15); color: var(--accent); }
.tag-live { background: rgba(239,68,68,0.15); color: var(--red); }

.section-header .view-all {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--transition-fast);
}

.section-header .view-all:hover {
  color: var(--accent);
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

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

.article-card .card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-surface);
}

.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.article-card .card-image .card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(11,17,32,0.85);
  backdrop-filter: blur(8px);
  color: #fff;
}

.article-card .card-body {
  padding: var(--space-5);
}

.article-card .card-body h3 {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.article-card:hover .card-body h3 {
  color: var(--accent);
}

.article-card .card-body p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.article-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.article-card .card-source {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
}

.article-card .card-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Card with no image (compact) */
.article-card-compact {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.article-card-compact:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.article-card-compact .compact-body h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.article-card-compact:hover .compact-body h4 {
  color: var(--accent);
}

.article-card-compact .compact-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.article-card-compact .compact-meta .source {
  color: var(--accent);
  font-weight: 600;
}

/* News list (text only) */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.news-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item .list-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--border-subtle);
  min-width: 36px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.news-list-item:hover .list-number {
  color: var(--accent);
}

.news-list-item .list-content h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.news-list-item:hover .list-content h4 {
  color: var(--accent);
}

.news-list-item .list-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.news-list-item .list-meta .source {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   VIDEO CARDS
   ============================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.video-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

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

.video-card .video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface);
}

.video-card .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.video-card .video-thumb .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(0,212,170,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.video-card:hover .play-icon {
  opacity: 1;
}

.video-card .play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

.video-card .video-duration {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  background: rgba(11,17,32,0.85);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.video-card .video-body {
  padding: var(--space-3) var(--space-4);
}

.video-card .video-body h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.video-card:hover .video-body h4 {
  color: var(--accent);
}

.video-card .video-body .video-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Show More Button */
.show-more-wrap {
  text-align: center;
  padding: var(--space-8) 0 var(--space-4);
}

.btn-show-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-show-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-show-more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-show-more.expanded svg {
  transform: rotate(180deg);
}

/* Hidden videos */
.video-hidden {
  display: none;
}

.video-visible {
  display: block;
}

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */
.breaking-ticker {
  background: linear-gradient(135deg, rgba(0,212,170,0.08) 0%, rgba(0,163,255,0.08) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3) 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--red);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  animation: pulse-subtle 2s ease-in-out infinite;
}

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

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

.ticker-scroll {
  display: flex;
  gap: var(--space-8);
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}

.ticker-scroll a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.ticker-scroll a:hover {
  color: var(--accent);
}

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

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-16);
}

.footer-main {
  padding: var(--space-12) 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
}

.footer-brand .footer-logo {
  margin-bottom: var(--space-4);
}

.footer-brand .footer-logo img {
  height: 36px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-5);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--space-3);
}

.footer-col ul a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-newsletter p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.newsletter-form {
  display: flex;
  gap: var(--space-2);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

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

.newsletter-form button {
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--bg-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

.footer-bottom {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}

.footer-bottom-links a {
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post {
  padding: var(--space-12) 0;
}

.single-post .post-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-10);
}

.single-post .post-category {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.single-post .post-header h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--space-5);
}

.single-post .post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.single-post .post-meta .source {
  color: var(--accent);
  font-weight: 600;
}

.single-post .post-featured-image {
  max-width: 900px;
  margin: 0 auto var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-surface);
}

.single-post .post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post .post-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-secondary);
}

.single-post .post-content h2,
.single-post .post-content h3 {
  color: var(--text-primary);
  margin: var(--space-10) 0 var(--space-5);
}

.single-post .post-content h2 {
  font-size: var(--text-2xl);
}

.single-post .post-content h3 {
  font-size: var(--text-xl);
}

.single-post .post-content p {
  margin-bottom: var(--space-6);
}

.single-post .post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-post .post-content ul,
.single-post .post-content ol {
  margin: var(--space-5) 0;
  padding-left: var(--space-6);
}

.single-post .post-content li {
  margin-bottom: var(--space-3);
}

.single-post .post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-primary);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for grids */
.card-grid .article-card:nth-child(2) { transition-delay: 0.08s; }
.card-grid .article-card:nth-child(3) { transition-delay: 0.16s; }
.card-grid .article-card:nth-child(4) { transition-delay: 0.24s; }
.card-grid .article-card:nth-child(5) { transition-delay: 0.32s; }
.card-grid .article-card:nth-child(6) { transition-delay: 0.4s; }

.video-grid .video-card:nth-child(2) { transition-delay: 0.06s; }
.video-grid .video-card:nth-child(3) { transition-delay: 0.12s; }
.video-grid .video-card:nth-child(4) { transition-delay: 0.18s; }

/* ============================================
   PAGINATION & NO RESULTS
   ============================================ */
.pagination-wrap {
  padding: var(--space-10) 0 var(--space-6);
  text-align: center;
}

.pagination-wrap .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pagination-wrap .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-wrap .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.pagination-wrap .prev,
.pagination-wrap .next {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.no-results {
  text-align: center;
  padding: var(--space-16) 0;
  color: var(--text-muted);
}

.no-results svg {
  margin-bottom: var(--space-6);
}

.no-results h2 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.no-results p {
  font-size: var(--text-sm);
}

/* ============================================
   PAGE LAYOUTS (About, Contact, Policies)
   ============================================ */
.page-hero {
  padding: var(--space-16) 0 var(--space-10);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(0,212,170,0.03) 0%, transparent 100%);
}

.page-hero-inner {
  max-width: 600px;
  margin: 0 auto;
}

.page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: var(--space-6);
}

.page-hero h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.page-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.page-content-section {
  padding: var(--space-12) 0;
}

/* Info Card Grid */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

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

.info-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.info-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.info-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.info-card-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
}

.info-card-list li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.info-card-list li:last-child {
  border-bottom: none;
}

.info-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.info-card-list-ordered {
  counter-reset: item;
}

.info-card-list-ordered li {
  counter-increment: item;
}

.info-card-list-ordered li::before {
  content: counter(item);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--accent-glow);
  border: 1px solid rgba(0,212,170,0.3);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.contact-email:hover {
  background: rgba(0,212,170,0.2);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* Page-specific video template */
.page-content-section .video-grid {
  margin-top: var(--space-6);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    padding: var(--space-4);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: 999;
    overflow-y: auto;
  }

  .primary-nav.open {
    transform: translateX(0);
  }

  .primary-nav ul {
    flex-direction: column;
    gap: var(--space-1);
  }

  .primary-nav a {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }

  .btn-search kbd {
    display: none;
  }

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

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

  .info-card-grid,
  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: var(--space-10) 0 var(--space-8);
  }

  .page-hero h1 {
    font-size: var(--text-2xl);
  }

  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .single-post .post-header h1 {
    font-size: var(--text-2xl);
  }

  .ticker-scroll {
    animation-duration: 25s;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero-main h2 {
    font-size: var(--text-xl);
  }

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

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card-hover) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

/* ============================================
   CATEGORY PAGE
   ============================================ */
.category-header {
  padding: var(--space-10) 0;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.category-header h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.category-header p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

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