/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --color-primary: #1e3a8a;
  --color-primary-light: #3b82f6;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-dark: #0f172a;
  --color-dark-soft: #1e293b;
  --color-text: #1a1a1a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-bg: #f8fafc;
  --color-white: #ffffff;

  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --transition: all 0.25s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 1.3rem;
}

.logo-accent {
  color: var(--color-accent);
}

/* ============================================
   MAIN NAV
   ============================================ */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.main-nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
  position: relative;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.nav-cta {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem !important;
}

.nav-cta:hover {
  background-color: var(--color-primary-light);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition);
}

/* ============================================
   NAV DROPDOWNS
   ============================================ */
.nav-dropdown {
  position: relative;
}

/* Invisible bridge — prevents menu closing when moving cursor down */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
  color: var(--color-primary);
  background-color: #f1f5f9;
}

/* Chevron */
.nav-caret {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown panel */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: -16px;
  min-width: 280px;
  width: max-content;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow:
    0 20px 25px -5px rgba(15, 23, 42, 0.1),
    0 8px 10px -6px rgba(15, 23, 42, 0.05);
  padding: 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 100;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li {
  margin: 0;
  list-style: none;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  border-radius: 8px;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.nav-dropdown-menu a:hover {
  background-color: #f8fafc;
  color: var(--color-primary);
  transform: translateX(2px);
}

/* Hub link — highlighted */
.nav-dropdown-menu li:first-child {
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 6px;
  padding-bottom: 6px;
}

.nav-dropdown-menu li:first-child a {
  background-color: #eff6ff;
  color: var(--color-primary);
  font-weight: 600;
}

.nav-dropdown-menu li:first-child a:hover {
  background-color: #dbeafe;
  transform: none;
}

/* Two-column layout (Battery & DIY only) */
.nav-dropdown-menu.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 4px;
  width: 520px;
}

.nav-dropdown-menu.two-col li:first-child {
  grid-column: 1 / -1;
}

/* ============================================
   NAV DROPDOWNS — MOBILE ACCORDION
   ============================================ */
@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 1rem;
  }

  .nav-dropdown-menu,
  .nav-dropdown-menu.two-col {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-border);
    border-radius: 0;
    margin: 0 0 8px 12px;
    padding: 0;
    min-width: 0;
    width: 100%;
    max-height: none;
    overflow: visible;
    display: none;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown.active .nav-caret {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu a,
  .nav-dropdown-menu.two-col a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .nav-dropdown-menu li:first-child a {
    background-color: transparent;
    padding-left: 16px;
  }
}
/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  /* background-image: url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1920&q=80"); */
  background-image: url("../images/og-homepage.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 120px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(30, 58, 138, 0.85) 100%
  );
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  opacity: 0.9;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent);
}

.hero-stats span {
  font-size: 0.85rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   MAIN CONTENT / SECTIONS
   ============================================ */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section {
  margin-bottom: 100px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-dark);
  letter-spacing: -0.8px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  display: block;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-icon {
  font-size: 2.25rem;
  margin-bottom: 20px;
  display: inline-block;
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.category-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: var(--transition);
}

.category-card:hover .card-link {
  color: var(--color-accent-dark);
}

/* Featured articles */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.article-thumbnail {
  height: 200px;
  overflow: hidden;
  background: var(--color-bg);
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-thumbnail img {
  transform: scale(1.06);
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-primary);
  background: #eff6ff;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-dark);
  line-height: 1.4;
}

.article-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: var(--transition);
}

.read-more:hover {
  color: var(--color-accent-dark);
}

/* Trust section */
.trust-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  border: 1px solid var(--color-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.trust-item {
  text-align: center;
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.trust-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  background: linear-gradient(
    135deg,
    var(--color-dark) 0%,
    var(--color-primary) 100%
  );
  color: var(--color-white);
  padding: 80px 24px;
  text-align: center;
}

.newsletter-container {
  max-width: 620px;
  margin: 0 auto;
}

.newsletter-badge {
  display: inline-block;
  background-color: rgba(245, 158, 11, 0.2);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}

.newsletter p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 16px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 15px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
}

.newsletter-form button {
  background-color: var(--color-accent);
  color: var(--color-dark);
  border: none;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--color-accent-dark);
}

.form-note {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ============================================
   NEWSLETTER EMBED (Google Form)
   ============================================ */
.newsletter-embed {
  max-width: 640px;
  margin: 0 auto 16px;
  background: #ffffff;
  border-radius: 12px;
  padding: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.newsletter-embed iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #ffffff;
}

/* Responsive adjustment */
@media (max-width: 600px) {
  .newsletter-embed {
    padding: 2px;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-dark);
  color: #94a3b8;
  padding: 72px 24px 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-column h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--color-white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  margin-left: 24px;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

/* ============================================
   DEVELOPER CREDIT (Footer Bottom)
   ============================================ */

.footer-bottom .developer-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.footer-bottom .developer-credit .heart {
  color: #ef4444;
  display: inline-block;
  animation: heartBeat 1.5s ease-in-out infinite;
  font-size: 0.85rem;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.2);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.2);
  }
  70% {
    transform: scale(1);
  }
}

.footer-bottom .developer-credit a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-bottom .developer-credit a:hover {
  color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.footer-bottom .developer-credit a .credit-icon {
  display: inline-block;
  transition: transform 0.4s ease;
  font-size: 0.9rem;
}

.footer-bottom .developer-credit a:hover .credit-icon {
  transform: rotate(-10deg) scale(1.15);
}

@media (max-width: 768px) {
  .footer-bottom .developer-credit {
    justify-content: center;
    width: 100%;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    box-shadow: var(--shadow-md);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .hero {
    padding: 80px 20px 70px;
  }

  .hero-stats {
    gap: 32px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .trust-section {
    padding: 48px 24px;
  }

  .newsletter h2 {
    font-size: 1.6rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links a {
    margin: 0 12px;
  }
}

/* ============================================
   ARTICLE PAGE STYLES
   ============================================ */

/* --- Article Hero --- */
.article-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 60px 24px 50px;
}

.article-hero-container {
  max-width: 820px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: #94a3b8;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #f59e0b;
}

.breadcrumbs span {
  margin: 0 8px;
}

.breadcrumbs .current {
  color: #ffffff;
}

.article-category {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.article-dek {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 32px;
}

.article-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-icon {
  font-size: 1rem;
}

/* --- Featured Image --- */
.article-featured-image {
  max-width: 1000px;
  margin: -30px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.image-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* --- Article Layout --- */
.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
}

/* --- Table of Contents --- */
.article-toc {
  position: relative;
}

.toc-sticky {
  position: sticky;
  top: 100px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.toc-sticky h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.toc-sticky ul {
  list-style: none;
}

.toc-sticky li {
  margin-bottom: 10px;
}

.toc-sticky a {
  font-size: 0.9rem;
  color: var(--color-text);
  transition: color 0.2s;
  display: block;
  padding: 4px 0;
}

.toc-sticky a:hover {
  color: var(--color-primary);
}

/* --- Article Content --- */
.article-content {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}

.article-content .lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #334155;
  font-weight: 500;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-top: 56px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  scroll-margin-top: 100px;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 32px;
  margin-bottom: 14px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content strong {
  color: var(--color-dark);
  font-weight: 700;
}

.article-content ol,
.article-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
}

/* --- Callout Boxes --- */
.callout {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 28px 0;
  font-size: 1rem;
  line-height: 1.6;
}

.callout-info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e3a8a;
}

.callout-tip {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  color: #14532d;
}

.callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 0.95rem;
}

.cost-table thead {
  background: #f1f5f9;
}

.cost-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.cost-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  color: #334155;
}

.cost-table tbody tr:last-child td {
  border-bottom: none;
}

.cost-table tbody tr:hover {
  background: #f8fafc;
}

/* --- Comparison Grid --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.comparison-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.comparison-card-highlight {
  border-color: var(--color-primary);
  background: #f8fafc;
}

.comparison-card h3 {
  font-size: 1.1rem !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--color-primary);
  margin-bottom: 16px !important;
}

.comparison-card ul {
  list-style: none;
  padding: 0;
}

.comparison-card li {
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* --- Tips List --- */
.tips-list {
  counter-reset: tips;
  list-style: none;
  padding: 0;
}

.tips-list li {
  counter-increment: tips;
  position: relative;
  padding-left: 52px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.tips-list li::before {
  content: counter(tips);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* --- FAQ --- */
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 14px;
  margin-bottom: 0;
  color: #475569;
  font-size: 0.95rem;
}

/* --- Author Box --- */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 56px 0;
}

.author-avatar {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.author-box strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.author-box p {
  font-size: 0.9rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

/* --- Related Articles --- */
.related-articles {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.related-articles h2 {
  font-size: 1.4rem !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.related-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  display: block;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.related-card h3 {
  font-size: 1rem !important;
  font-weight: 700;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  line-height: 1.4;
  color: var(--color-dark);
}

/* --- Responsive Article --- */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px 60px;
  }

  .article-toc {
    display: none;
  }

  .article-hero h1 {
    font-size: 2rem;
  }

  .article-dek {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.4rem;
    margin-top: 44px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .article-hero {
    padding: 40px 20px 36px;
  }

  .article-hero h1 {
    font-size: 1.65rem;
  }

  .article-meta {
    gap: 12px;
    font-size: 0.8rem;
  }

  .article-featured-image {
    margin-top: -20px;
  }

  .article-content {
    font-size: 1rem;
  }

  .cost-table {
    font-size: 0.85rem;
  }

  .cost-table th,
  .cost-table td {
    padding: 10px 12px;
  }
}

/* ============================================
   US LOCALIZATION STYLES
   ============================================ */

/* US Edition Badge in Logo */
.us-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1e3a8a, #b91c1c);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 0.5px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* US pricing hint on article category tag */
.article-category {
  /* Keep existing styles, this just re-declares in case of override */
  text-transform: none;
  letter-spacing: 0.3px;
}

/* Footer contact block */
.footer-contact {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 16px;
  color: #94a3b8;
}

.footer-contact strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* Slightly stronger "Made in USA" footer line */
.footer-bottom p {
  font-weight: 500;
}

/* ============================================
   GLOBAL WELCOME CALLOUT
   ============================================ */
.callout-global {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #78350f;
}
