:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #111827;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --success: #059669;
  --warning: #d97706;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; }

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.wide-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: linear-gradient(135deg, #0c2340 0%, #1a3a6e 100%);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { margin: 0; }
.logo a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
}
nav { display: flex; align-items: center; gap: 4px; }
nav > a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.2s;
  font-weight: 500;
}
nav > a:hover { background: rgba(255,255,255,0.12); }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s;
  font-weight: 500;
}
.dropdown-toggle:hover { background: rgba(255,255,255,0.12); }
.dropdown-toggle .arrow { font-size: 0.7rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  padding: 6px 0;
  margin-top: 4px;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--primary); }

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; color: #d1d5db; }

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 64px 24px 56px;
  background: linear-gradient(135deg, #0c2340 0%, #1a3a6e 50%, #1a56db 100%);
  color: white;
  border-radius: var(--radius);
  margin: 24px 0 0;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero-sub {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 8px;
  font-weight: 500;
}
.hero-desc {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 28px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}
.hero-stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Trust Bar */
.trust-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.trust-icon { font-size: 1.1rem; }

/* Sections */
.section { margin: 48px 0; }
.section-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  color: #0c2340;
  display: inline-block;
}

/* Niche Grid */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.niche-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  text-decoration: none;
  color: inherit;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.niche-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--niche-accent, var(--primary));
}
.niche-card:hover {
  border-color: var(--niche-accent, var(--primary));
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.niche-emoji-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--niche-grad-1, #e0e7ff), var(--niche-grad-2, #c7d2fe));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.niche-card h3 {
  color: #0c2340;
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.niche-stats { margin-bottom: 10px; }
.niche-top-pick {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-bottom: 12px;
  flex-grow: 1;
}
.niche-cta {
  font-size: 0.88rem;
  color: var(--niche-accent, var(--primary));
  font-weight: 600;
  margin-top: auto;
}

/* Badges */
.badge {
  display: inline-block;
  background: #e0e7ff;
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 6px;
}
.badge-green { background: #d1fae5; color: #065f46; }
.niche-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product cards (homepage - horizontal) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.product-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-thumb {
  width: 140px;
  min-height: 160px;
  background: linear-gradient(135deg, var(--niche-grad-1, #e0e7ff), var(--niche-grad-2, #c7d2fe));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.product-emoji { font-size: 2.4rem; }
.product-price-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.product-info h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #0c2340;
}
.product-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.stars { color: #f59e0b; font-size: 0.95rem; letter-spacing: 1px; }
.rating-text { color: var(--text-light); font-size: 0.82rem; }
.reviews { color: var(--text-light); font-size: 0.8rem; }
.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 10px;
}
.price { font-size: 1.3rem; font-weight: 700; color: var(--success); margin-right: 8px; }

/* CTA button */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: opacity 0.2s, transform 0.2s;
  text-align: center;
}
.cta-button:hover { opacity: 0.9; transform: translateY(-1px); }

/* Article cards (homepage) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: white;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-thumb {
  height: 100px;
  background: linear-gradient(135deg, var(--niche-grad-1, #e0e7ff), var(--niche-grad-2, #c7d2fe));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.article-emoji { font-size: 2rem; }
.article-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-body h3 {
  font-size: 1rem;
  color: #0c2340;
  margin-bottom: 6px;
  line-height: 1.4;
}
.article-meta {
  font-size: 0.83rem;
  color: var(--text-light);
  margin: 0;
  margin-top: auto;
}

/* Niche Hero Banner */
.niche-hero {
  text-align: center;
  padding: 48px 24px 40px;
  background: linear-gradient(135deg, var(--niche-grad-1, #e0e7ff), var(--niche-grad-2, #c7d2fe));
  border-radius: var(--radius);
  margin: 24px 0 8px;
  border: 1px solid var(--border);
}
.niche-hero-emoji { font-size: 3rem; margin-bottom: 12px; }
.niche-hero h1 {
  font-size: 2rem;
  color: #0c2340;
  margin-bottom: 10px;
}
.niche-hero p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Niche product cards (horizontal) */
.niche-products-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-card-h {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.product-card-h:hover { box-shadow: var(--shadow-md); }
.product-thumb-h {
  width: 150px;
  min-height: 120px;
  background: linear-gradient(135deg, var(--niche-grad-1, #e0e7ff), var(--niche-grad-2, #c7d2fe));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-thumb-h .product-emoji { font-size: 2.2rem; }
.product-info-h {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.product-info-h h3 { font-size: 1.05rem; margin-bottom: 8px; color: #0c2340; }
.product-meta-h {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* Niche article list (styled cards) */
.niche-articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-list-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.article-list-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--niche-accent, var(--primary));
}
.article-list-thumb {
  width: 80px;
  min-height: 80px;
  background: linear-gradient(135deg, var(--niche-grad-1, #e0e7ff), var(--niche-grad-2, #c7d2fe));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.article-list-emoji { font-size: 1.5rem; }
.article-list-info {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.article-list-info h3 {
  font-size: 1rem;
  color: #0c2340;
  margin-bottom: 4px;
  line-height: 1.4;
}
.article-type-inline {
  display: inline-block;
  background: var(--bg-alt);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Article list items (category pages fallback) */
.article-list-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.article-list-item h3 { margin-bottom: 4px; }
.article-list-item h3 a { color: #0c2340; text-decoration: none; font-size: 1.05rem; }
.article-list-item h3 a:hover { color: var(--primary); }

/* Article content */
article { padding: 32px 0; }
article h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 16px; color: #0c2340; }
article h2 { font-size: 1.45rem; margin: 32px 0 16px; padding-top: 16px; border-top: 1px solid var(--border); color: #0c2340; }
article h3 { font-size: 1.15rem; margin: 24px 0 12px; color: #1a3a6e; }
article p { margin-bottom: 16px; }
article ul, article ol { margin: 16px 0; padding-left: 24px; }
article li { margin-bottom: 8px; }
article img { max-width: 100%; height: auto; border-radius: var(--radius); }
article table { width: 100%; border-collapse: collapse; margin: 20px 0; }
article th, article td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
article th { background: var(--bg-alt); font-weight: 700; font-size: 0.9rem; }
article blockquote {
  border-left: 4px solid var(--primary);
  margin: 20px 0;
  padding: 12px 20px;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-light);
}

/* Disclosure banner */
.disclosure-banner {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #92400e;
}
.disclosure-banner a { color: #92400e; }

/* Related articles */
.related-section { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border); }
.related-section h2 { font-size: 1.4rem; margin-bottom: 20px; color: #0c2340; border: none; padding: 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-align: center;
}
.related-card:hover {
  border-color: var(--niche-accent, var(--primary));
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.related-emoji { font-size: 1.8rem; margin-bottom: 8px; }
.related-card h3 { font-size: 1rem; color: #0c2340; margin-bottom: 6px; }

/* Footer */
footer {
  background: #0c2340;
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  margin-top: 60px;
}
footer h4 { color: white; margin-bottom: 12px; font-size: 1rem; }
footer p { font-size: 0.88rem; line-height: 1.6; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.amazon-disclaimer { margin-top: 6px; font-size: 0.78rem; }

/* Email Capture */
.email-capture {
  background: linear-gradient(135deg, #1e40af, #7c3aed);
  padding: 48px 0;
}
.email-capture-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.email-capture-text h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: white;
  margin: 0 0 6px 0;
}
.email-capture-text p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 0.95rem;
}
.email-capture-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.email-capture-form input[type="email"] {
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.95rem;
  min-width: 260px;
  outline: none;
  transition: border-color 0.2s;
}
.email-capture-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.email-capture-form input[type="email"]:focus { border-color: white; }
.email-capture-form button {
  padding: 12px 24px;
  background: white;
  color: #1e40af;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.email-capture-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 40px 16px 36px; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 1.4rem; }
  .trust-bar-inner { gap: 16px; }
  .trust-item { font-size: 0.8rem; }
  .niche-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .niche-emoji-circle { width: 44px; height: 44px; font-size: 1.3rem; }
  .products-grid { grid-template-columns: 1fr; }
  .product-thumb { width: 110px; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .email-capture { padding: 32px 0; }
  .email-capture-inner { flex-direction: column; text-align: center; }
  .email-capture-form { flex-direction: column; width: 100%; }
  .email-capture-form input[type="email"] { min-width: auto; width: 100%; }
  article h1 { font-size: 1.5rem; }
  .niche-hero h1 { font-size: 1.6rem; }
  .product-card-h { flex-direction: column; }
  .product-thumb-h { width: 100%; min-height: 100px; }
}

@media (max-width: 480px) {
  .niche-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .trust-bar-inner { flex-direction: column; gap: 8px; align-items: center; }
  .product-card { flex-direction: column; }
  .product-thumb { width: 100%; min-height: 120px; }
  .article-list-card { flex-direction: column; }
  .article-list-thumb { width: 100%; min-height: 60px; }
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0c2340;
    padding: 12px;
    gap: 4px;
  }
  nav.open .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.1);
    margin-top: 4px;
  }
  nav.open .dropdown-menu a { color: rgba(255,255,255,0.9); }
  .mobile-menu-btn { display: block; }
}