/* =============================================
   VoltSens – Electric Vehicle Portal
   Main Light Theme Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --primary-glow: rgba(2, 132, 199, 0.15);
  
  --secondary: #0d9488;
  --secondary-light: #ccfbf1;
  
  --accent: #10b981;
  --accent-orange: #f59e0b;
  --danger: #ef4444;

  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-elevated: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --border: #e2e8f0;
  --border-bright: #38bdf8;

  --shadow-card: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-glow: 0 10px 30px rgba(2, 132, 199, 0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

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

.section-pad { padding: 70px 0; }
.bg-dark-section { background: #f1f5f9; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
}
.btn-ghost {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.btn-ghost:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}
.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* HEADER */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.navbar {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.logo-icon { font-size: 1.4rem; }
.logo-accent { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-dark);
  background: var(--primary-light);
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.dropdown-menu li a:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.search-btn {
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--radius-sm);
}
.search-btn:hover { color: var(--primary); background: var(--primary-light); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 16px 24px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
#searchInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* HERO */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 60px;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
}
.hero-bg-animation { display: none; }
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; }
.hero-stats { display: flex; align-items: center; gap: 32px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.stat-suffix { color: var(--primary-dark); font-weight: 800; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.hero-car-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.hero-car-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-card-info {
  padding: 18px 24px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.hero-card-info p { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }
.hero-scroll { display: none; }

/* NEWS TICKER */
.news-ticker {
  background: #e0f2fe;
  border-top: 1px solid #bae6fd;
  border-bottom: 1px solid #bae6fd;
  padding: 10px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 14px;
  margin: 0 20px;
  border-radius: 4px;
}
.ticker-wrapper { overflow: hidden; flex: 1; }
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  animation: ticker 38s linear infinite;
}
.ticker-content span { margin-right: 40px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTION HEADER */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding: 4px 14px;
  border-radius: 50px;
  background: var(--primary-light);
  border: 1px solid #bae6fd;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* CATEGORIES WITH TOP PHOTOS */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.14);
}
.cat-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f1f5f9;
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover .cat-card-img img {
  transform: scale(1.06);
}
.cat-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.8);
}
.cat-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cat-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.cat-card-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}
.cat-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.cat-arrow {
  transition: transform 0.2s ease;
}
.category-card:hover .cat-arrow {
  transform: translateX(4px);
}

/* FEATURED ARTICLES */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.feature-main {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.feature-main:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.feature-img-wrap { position: relative; overflow: hidden; }
.feature-img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.feature-main:hover .feature-img-wrap img { transform: scale(1.04); }
.feature-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
}
.feature-content { padding: 28px; }
.feature-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.meta-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 50px;
}
.meta-read { font-size: 0.78rem; color: var(--text-muted); }
.feature-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.feature-content p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.feature-footer { display: flex; align-items: center; justify-content: space-between; }
.author-info { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.author-avatar {
  width: 28px; height: 28px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
}

.feature-side { display: flex; flex-direction: column; gap: 16px; }
.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--primary); transform: translateX(4px); }
.feature-card a { display: flex; gap: 16px; }
.fc-img { width: 110px; flex-shrink: 0; overflow: hidden; }
.fc-img img { width: 100%; height: 100%; object-fit: cover; }
.fc-content { flex: 1; padding: 14px 14px 14px 0; }
.fc-content h3 { font-size: 0.9rem; font-weight: 700; line-height: 1.4; color: var(--text-primary); margin: 4px 0 10px; }

/* COMPARISON SECTION */
.comparison-cards {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.comp-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.ev-card { border-color: #bae6fd; }
.comp-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.comp-icon { font-size: 2rem; }
.comp-header h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.comp-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.comp-value.good { color: var(--accent); font-weight: 800; }
.comp-value.bad { color: var(--danger); font-weight: 800; }
.comp-vs { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text-muted); }
.comparison-cta { text-align: center; margin-top: 36px; }

/* ARTICLES GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.article-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.art-img { position: relative; overflow: hidden; }
.art-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.4s ease; }
.article-card:hover .art-img img { transform: scale(1.05); }
.art-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.art-body { padding: 20px; }
.art-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.article-card:hover .art-body h3 { color: var(--primary-dark); }
.art-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.load-more-wrap { text-align: center; }

/* NEWSLETTER */
.newsletter-card {
  background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-xl);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.nl-icon { font-size: 3rem; margin-bottom: 12px; }
.newsletter-content h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.newsletter-content p { color: var(--text-secondary); margin-bottom: 24px; max-width: 480px; }
.nl-form { display: flex; gap: 10px; margin-bottom: 12px; }
.nl-form input {
  flex: 1;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  max-width: 320px;
}
.nl-form input:focus { border-color: var(--primary); }
.nl-note { font-size: 0.78rem; color: var(--text-muted); }
.nl-stats { display: flex; flex-direction: column; gap: 16px; }
.nl-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  box-shadow: var(--shadow-card);
}
.nl-stat span { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); font-family: var(--font-display); }
.nl-stat small { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

/* FOOTER */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-weight: 700; font-size: 0.85rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 0.875rem; color: var(--text-secondary); }
.footer-col ul a:hover { color: var(--primary-dark); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--primary-glow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; }

/* ARTICLE PAGE STYLES */
.article-hero {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 40px;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}
.article-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.article-category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.article-hero-subtitle { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.article-meta-row { display: flex; align-items: center; gap: 20px; font-size: 0.85rem; color: var(--text-muted); padding-top: 16px; border-top: 1px solid var(--border); }

.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 48px 0; }
.article-featured-img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 32px; overflow: hidden; border: 1px solid var(--border); }
.article-content { font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); }
.article-content h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text-primary); margin: 36px 0 14px; }
.article-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin: 24px 0 10px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; }
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--text-primary); font-weight: 700; }
.article-content .info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
  color: var(--text-primary);
}
.article-content .info-box strong { color: var(--primary-dark); }
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.875rem; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.article-content th { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; padding: 10px 14px; text-align: left; }
.article-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }

/* Sidebar */
.article-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-widget { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-card); }
.sidebar-widget h3 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.toc-list a { font-size: 0.85rem; color: var(--text-secondary); padding: 4px 8px; display: block; border-left: 2px solid transparent; }
.toc-list a:hover { color: var(--primary-dark); border-left-color: var(--primary); background: var(--primary-light); }
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-item { display: flex; gap: 10px; align-items: center; }
.related-item img { width: 60px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-item a { font-size: 0.825rem; font-weight: 600; color: var(--text-primary); }

/* CATEGORY HERO */
.category-hero { padding: calc(var(--header-h) + 40px) 0 40px; background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%); border-bottom: 1px solid var(--border); text-align: center; }
.category-hero h1 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.filter-bar { display: flex; gap: 10px; padding: 24px 0; }
.filter-btn { padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; background: #ffffff; border: 1px solid var(--border); color: var(--text-secondary); }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); }

/* ARTICLE ENHANCED COMPONENTS */
.reading-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  z-index: 1100;
  transition: width 0.1s ease;
}

.article-intro-box {
  background: #f0f9ff;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
}

.img-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 10px 0 4px;
}

.article-faq-section {
  margin: 48px 0 32px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.article-faq-section h2 { margin-top: 0 !important; font-size: 1.4rem !important; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.faq-item p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0; }

.author-bio-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px 0 20px;
}
.author-bio-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.author-bio-text h4 { font-size: 1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.author-bio-text p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

.fact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.fact-item:last-child { border-bottom: none; }
.fact-label { color: var(--text-muted); }
.fact-val { font-weight: 700; color: var(--primary-dark); }

.related-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.related-item:last-child { border-bottom: none; }
.rel-thumb { width: 72px; height: 50px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f1f5f9; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-info { flex: 1; min-width: 0; }
.rel-cat { font-size: 0.7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.rel-info h4 { font-size: 0.825rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-item:hover h4 { color: var(--primary-dark); }
.rel-date { font-size: 0.72rem; color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .categories-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .categories-grid, .articles-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .comparison-cards { flex-direction: column; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .author-bio-card { flex-direction: column; text-align: center; }
  .floating-share-bar { display: flex; }
}

/* ===== SKIP-TO-CONTENT (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* ===== KEYBOARD FOCUS STYLES (Accessibility) ===== */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ===== DARK MODE TOGGLE BUTTON ===== */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.theme-toggle:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

/* ===== SOCIAL SHARE BUTTONS ===== */
.share-widget { background: #f8fafc; }
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
  background: #ffffff;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.whatsapp-btn:hover { background: #dcfce7; border-color: #22c55e; color: #15803d; }
.twitter-btn:hover { background: #e0f2fe; border-color: #0ea5e9; color: #0369a1; }
.telegram-btn:hover { background: #e0f2fe; border-color: #38bdf8; color: #0284c7; }
.linkedin-btn:hover { background: #dbeafe; border-color: #3b82f6; color: #1d4ed8; }
.copy-btn:hover { background: #f3e8ff; border-color: #a855f7; color: #7e22ce; }

/* ===== FLOATING MOBILE SHARE BAR ===== */
.floating-share-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  padding: 8px 16px;
  gap: 8px;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.float-share {
  flex: 1;
  max-width: 80px;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 1.3rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: #1e293b;
  transition: all 0.15s ease;
}
.float-share:hover { transform: scale(1.1); }
.float-share.whatsapp:hover { background: #22c55e; }
.float-share.twitter:hover { background: #0ea5e9; }
.float-share.telegram:hover { background: #38bdf8; }
.float-share.copy:hover { background: #a855f7; }

/* ===== FOOTER SOCIAL ICONS ===== */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-sm: 0 1px 6px rgba(0,0,0,0.2);
}
[data-theme="dark"] body { background: var(--bg-primary); color: var(--text-primary); }
[data-theme="dark"] .header { background: rgba(15,23,42,0.95); border-bottom-color: #334155; }
[data-theme="dark"] .card, [data-theme="dark"] .sidebar-widget { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .article-hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
[data-theme="dark"] .article-intro-box { background: #1e293b; border-left-color: var(--primary); }
[data-theme="dark"] .article-faq-section { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .author-bio-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .footer { background: #020617; }
[data-theme="dark"] .newsletter-card { background: linear-gradient(135deg, #0f172a, #1e293b); }
[data-theme="dark"] .category-card, [data-theme="dark"] .article-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .share-btn { background: #1e293b; border-color: #475569; color: #e2e8f0; }
[data-theme="dark"] .share-widget { background: #1e293b; }
[data-theme="dark"] .comp-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .news-ticker { background: #1e293b; }
[data-theme="dark"] .theme-toggle { border-color: #475569; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: #334155;
  }
}

/* ===== REDUCED MOTION (Accessibility) ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-content { animation: none !important; }
}

/* ===== PRINT STYLESHEET ===== */
@media print {
  .header, .footer, .back-to-top, .hamburger, .nav-right, .floating-share-bar,
  .share-widget, .newsletter-section, .news-ticker, .article-sidebar,
  .reading-progress-bar, .skip-link, .theme-toggle { display: none !important; }
  body { background: #ffffff !important; color: #000000 !important; font-size: 12pt; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .article-layout { grid-template-columns: 1fr !important; }
  .article-hero { background: none !important; color: #000 !important; padding: 16px 0; }
  .article-content { font-size: 11pt; line-height: 1.6; }
  .article-content a { color: #000; text-decoration: underline; }
  .article-content a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  img { max-width: 100% !important; page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; }
  .article-faq-section { border: 1px solid #ccc; }
}
