/* =====================================================
   InsightLo — Shared Styles
   ===================================================== */

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

:root {
  --indigo:  #312E81;
  --indigo2: #4338CA;
  --teal:    #0D9488;
  --teal2:   #14B8A6;
  --amber:   #F59E0B;
  --ink:     #111827;
  --gray:    #6B7280;
  --gray2:   #9CA3AF;
  --light:   #F3F4F6;
  --white:   #FFFFFF;
  --bg:      #F9F8FF;

  /* Category colors */
  --cat1: #7C3AED;  /* Relationships & Psychology */
  --cat2: #059669;  /* Health & Wellness */
  --cat3: #D97706;  /* Personal Finance */
  --cat4: #2563EB;  /* Career & Productivity */
  --cat5: #DC2626;  /* True Crime & Mystery */

  --cat1-dark: #4C1D95;
  --cat2-dark: #065F46;
  --cat3-dark: #78350F;
  --cat4-dark: #1E3A8A;
  --cat5-dark: #7F1D1D;

  --cat1-light: rgba(124,58,237,0.08);
  --cat2-light: rgba(5,150,105,0.08);
  --cat3-light: rgba(217,119,6,0.08);
  --cat4-light: rgba(37,99,235,0.08);
  --cat5-light: rgba(220,38,38,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(49,46,129,0.08);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--indigo);
  letter-spacing: -0.02em;
}

.nav-logo-text span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: all 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

.nav-link:hover { background: var(--light); color: var(--ink); }

.nav-link--quiz {
  font-weight: 600;
  color: var(--teal);
}

.nav-link--quiz:hover {
  background: rgba(13,148,136,0.08);
  color: var(--teal);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-search {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.nav-search:hover { background: #E5E7EB; }

.nav-cta {
  background: var(--teal);
  color: white;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-cta:hover { background: #0B8276; }

/* ——— User dropdown (logged-in) ——— */
.nav-user-menu { position: relative; }
.nav-avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; cursor: pointer; border: 2px solid var(--light);
  padding: 0; background: none; transition: border-color 0.15s;
}
.nav-avatar-btn:hover { border-color: var(--cat1); }
.nav-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.nav-user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 260px; background: white;
  border-radius: 16px; padding: 8px;
  box-shadow: 0 8px 32px rgba(49,46,129,0.15);
  border: 1px solid rgba(49,46,129,0.08);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  z-index: 200;
}
.nav-user-menu.open .nav-user-dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.nav-user-info {
  padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
}
.nav-user-info strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.nav-user-info span { font-size: 12px; color: var(--gray2); }
.nav-user-divider { height: 1px; background: var(--light); margin: 4px 0; }
.nav-user-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  transition: background 0.12s; cursor: pointer;
  text-decoration: none;
}
.nav-user-link:hover { background: var(--light); }
.nav-user-logout {
  width: 100%; border: none; background: none;
  text-align: left; font-family: 'DM Sans', sans-serif;
  color: #DC2626;
}

/* ===================== PILL STRIP ===================== */
.pill-strip {
  background: #F0EFF8;
  border-bottom: 1px solid rgba(49,46,129,0.07);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pill-strip::-webkit-scrollbar { display: none; }

.pill-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pill {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s;
}

.pill:hover { opacity: 0.85; }

/* ===================== SECTION HEADERS ===================== */
.section-wrap {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 32px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-bar {
  width: 4px;
  height: 22px;
  border-radius: 2px;
}

.section-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: gap 0.15s;
}

.section-see-all:hover { gap: 8px; }

/* ===================== CATEGORY SECTION ===================== */
.cat-section {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 32px;
}

.cat-header {
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  margin-bottom: 16px;
}

.cat-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cat-header-icon { font-size: 28px; }

.cat-header-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.cat-header-desc {
  font-size: 12.5px;
  opacity: 0.75;
  margin-top: 2px;
}

.cat-see-all {
  font-size: 12.5px;
  font-weight: 700;
  color: white;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, gap 0.15s;
}

.cat-see-all:hover { opacity: 1; gap: 8px; }

.cat-grid {
  display: grid;
  gap: 16px;
}

.cat-grid-3col { grid-template-columns: 2fr 1fr 1fr; }
.cat-grid-2col { grid-template-columns: 2fr 1fr; }

.cat-featured {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 12px rgba(49,46,129,0.06);
  text-decoration: none;
}

/* Category label only for mobile, hidden on desktop */
.cat-featured-cat { display: none; }

.cat-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(49,46,129,0.12);
}

.cat-featured-thumb {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-featured-body {
  padding: 20px 22px 24px;
}

.cat-featured-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 10px;
}

.cat-featured-excerpt {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 14px;
}

.cat-smalls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-small-card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 10px rgba(49,46,129,0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cat-small-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(49,46,129,0.1);
}

.cat-small-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.35;
}

.cat-small-meta { font-size: 11px; color: var(--gray); }

/* ===================== ARTICLE CARD (Shared) ===================== */
.article-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 12px rgba(49,46,129,0.06);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(49,46,129,0.13);
}

.article-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-thumb-num {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: rgba(255,255,255,0.18);
  line-height: 1;
}

.article-body-content {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.35;
  flex: 1;
}

.article-meta {
  font-size: 11.5px;
  color: var(--gray);
  margin-top: 4px;
}

/* ===================== QUIZ CARD ===================== */
.quiz-card {
  border-radius: 18px;
  padding: 28px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.18s;
}

.quiz-card:hover { transform: translateY(-4px); }

.quiz-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* quiz-card overlay removed */

.quiz-card-content { position: relative; z-index: 2; }

.quiz-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.quiz-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: white;
  line-height: 1.3;
  margin-bottom: 12px;
}

.quiz-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform 0.15s;
}

.quiz-card:hover .quiz-start-btn { transform: translateX(2px); }

/* ===================== NEWSLETTER ===================== */
.newsletter-section {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 32px;
}

.newsletter-box {
  background: var(--indigo);
  border-radius: 24px;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(13,148,136,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 50%, rgba(124,58,237,0.2) 0%, transparent 50%);
}

.newsletter-content { position: relative; z-index: 1; }

.newsletter-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal2);
  margin-bottom: 12px;
}

.newsletter-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.newsletter-sub {
  font-size: 14.5px;
  color: rgba(255,255,255,0.65);
  max-width: 420px;
  line-height: 1.6;
}

.newsletter-form { position: relative; z-index: 1; flex-shrink: 0; }

.newsletter-input-wrap {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 8px 8px 8px 20px;
  align-items: center;
  width: 480px;
  flex-wrap: wrap;
}

.newsletter-input {
  background: none;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: white;
  flex: 1;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.45); }

.newsletter-btn {
  background: var(--amber);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: opacity 0.15s;
  font-family: 'DM Sans', sans-serif;
}

.newsletter-btn:hover { opacity: 0.9; }

.newsletter-note {
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
  text-align: center;
}

/* ===================== SIDEBAR (Shared) ===================== */
.sidebar {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 20px;
}

.sidebar-card {
  background: white; border-radius: 16px;
  padding: 22px; box-shadow: 0 1px 12px rgba(49,46,129,0.07);
}

.sidebar-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}

.sidebar-title::before {
  content: ''; display: block;
  width: 3px; height: 14px; border-radius: 2px;
  background: var(--cat1);
}

/* Sidebar quiz CTA */
.sidebar-quiz {
  background: linear-gradient(135deg, var(--cat1), #5B21B6);
  border-radius: 16px; padding: 22px;
  color: white; cursor: pointer;
  transition: transform 0.15s;
}

.sidebar-quiz:hover { transform: translateY(-2px); }

.sidebar-quiz-label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 8px;
}

.sidebar-quiz-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 15px; line-height: 1.3; margin-bottom: 14px;
}

.sidebar-quiz-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: white; color: var(--cat1);
  padding: 8px 16px; border-radius: 8px;
  font-size: 12.5px; font-weight: 700;
}

/* Sidebar ad */
.sidebar-ad {
  background: var(--light); border-radius: 14px;
  padding: 20px; text-align: center;
  border: 1.5px dashed #D1D5DB;
  min-height: 250px; display: flex;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 6px;
}

.sidebar-ad-label { font-size: 10px; color: #C4C4C4; letter-spacing: 0.1em; text-transform: uppercase; }
.sidebar-ad-size { font-size: 11px; color: #D1D5DB; }

/* Sidebar newsletter */
.sidebar-newsletter {
  background: var(--indigo); border-radius: 16px;
  padding: 22px; position: relative; overflow: hidden;
}

.sidebar-newsletter::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(13,148,136,0.25), transparent 60%);
}

.sidebar-newsletter-icon { font-size: 28px; margin-bottom: 10px; position: relative; z-index: 1; }

.sidebar-newsletter-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 15px; color: white; line-height: 1.3;
  margin-bottom: 6px; position: relative; z-index: 1;
}

.sidebar-newsletter-sub {
  font-size: 12.5px; color: rgba(255,255,255,0.55);
  margin-bottom: 14px; line-height: 1.5; position: relative; z-index: 1;
}

.sidebar-newsletter-input {
  width: 100%; background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: white;
  font-family: 'DM Sans', sans-serif;
  outline: none; margin-bottom: 8px;
  position: relative; z-index: 1;
}

.sidebar-newsletter-input::placeholder { color: rgba(255,255,255,0.4); }

.sidebar-newsletter-btn {
  width: 100%; background: var(--amber); color: var(--ink);
  border: none; border-radius: 10px; padding: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  position: relative; z-index: 1;
  font-family: 'DM Sans', sans-serif;
}

/* ===================== AD UNIT (ACTIVE) ===================== */
.ad-unit {
  margin: 28px 0; text-align: center;
}
.ad-unit-label {
  font-size: 9px; color: var(--gray2);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
}

/* ===================== AD SLOT PLACEHOLDER (DEV ONLY) ===================== */
.ad-slot-placeholder {
  background: rgba(245,158,11,0.04); border-radius: 12px;
  padding: 20px; margin: 28px 0;
  text-align: center; border: 2px dashed rgba(245,158,11,0.25);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  min-height: 80px;
}
.ad-slot-ph-icon { color: rgba(245,158,11,0.4); }
.ad-slot-ph-label {
  font-size: 9px; color: rgba(245,158,11,0.6);
  letter-spacing: 0.15em; text-transform: uppercase;
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif; font-weight: 800;
}
.ad-slot-ph-name {
  font-size: 11px; color: rgba(245,158,11,0.5);
  font-family: monospace;
}
.ad-slot-ph-size {
  font-size: 10px; color: rgba(245,158,11,0.35); margin-top: 2px;
}

/* Sidebar variant */
.ad-slot-placeholder.sidebar-ad-slot {
  min-height: 200px; margin: 16px 0;
}

/* Keep legacy ad-placeholder for backward compat */
.ad-placeholder {
  background: var(--light); border-radius: 12px;
  padding: 20px; margin: 32px 0;
  text-align: center; border: 1.5px dashed #D1D5DB;
}
.ad-placeholder-text {
  font-size: 11px; color: var(--gray2);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
}
.ad-placeholder-size {
  font-size: 12px; color: #C4C4C4; margin-top: 4px;
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 32px 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--gray2);
}

.breadcrumb a { color: var(--gray2); cursor: pointer; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--cat1); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current { color: var(--cat1); font-weight: 600; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--ink);
  margin-top: 72px;
  padding: 56px 32px 36px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.footer-logo-text span { color: var(--teal2); }

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
}

.footer-social-btn:hover { background: rgba(255,255,255,0.14); }

.footer-col-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: white;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover { color: rgba(255,255,255,0.8); }

.footer-link-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: color 0.15s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ===================== MOBILE BOTTOM NAV ===================== */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(49,46,129,0.09);
  padding: 8px 0 env(safe-area-inset-bottom, 12px);
}

.mobile-bottom-nav-inner {
  display: flex; align-items: center; justify-content: space-around;
}

.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; cursor: pointer; flex: 1; padding: 4px 0;
}

.mobile-nav-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}

.mobile-nav-label { font-size: 9.5px; color: var(--gray); font-weight: 500; }

.mobile-quiz-btn {
  width: 46px; height: 46px;
  background: var(--teal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: -22px;
  box-shadow: 0 4px 16px rgba(13,148,136,0.4);
  cursor: pointer; flex-shrink: 0;
}

/* ===================== UTILITY CLASSES ===================== */
.read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--gray);
}

.tag-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
}

/* Thumb gradient backgrounds */
.bg-rel  { background: linear-gradient(135deg, #3B1D8A 0%, #6D28D9 100%); }
.bg-hlth { background: linear-gradient(135deg, #065F46 0%, #059669 100%); }
.bg-fin  { background: linear-gradient(135deg, #78350F 0%, #D97706 100%); }
.bg-car  { background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%); }
.bg-tc   { background: linear-gradient(135deg, #7F1D1D 0%, #DC2626 100%); }
.bg-mix  { background: linear-gradient(135deg, #1F2937 0%, #374151 100%); }

/* Emoji illustration on thumb */
.thumb-emoji {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  opacity: 0.2;
  font-size: 48px;
}

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-item {
  padding: 6px 12px; border-radius: 20px;
  background: var(--light); font-size: 12px;
  color: var(--gray); font-weight: 500; cursor: pointer;
  transition: all 0.15s;
}

.tag-item:hover { background: var(--cat1-light); color: var(--cat1); }
.tag-item.hot { background: var(--cat1-light); color: var(--cat1); }

/* ===================== SEARCH OVERLAY ===================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
  position: relative;
}

.search-close {
  position: absolute;
  top: -80px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  padding: 8px;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}

.search-close:hover {
  background: var(--light);
  color: var(--ink);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  transition: border-color 0.2s;
}

.search-input-wrap:focus-within {
  border-color: var(--indigo);
}

.search-input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
}

.search-input::placeholder {
  color: var(--gray);
}

.search-suggestions {
  margin-top: 28px;
}

.search-suggestion-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 14px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tag {
  padding: 6px 14px;
  border: 1.5px solid;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.search-tag:hover {
  transform: translateY(-1px);
  background: var(--light);
}

/* ===================== NEWSLETTER TOAST ===================== */
.nl-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--indigo);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(49,46,129,0.25);
  z-index: 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.nl-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nl-toast.error {
  background: #DC2626;
}

/* ===================== SCROLL TO TOP ===================== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--indigo);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(49,46,129,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.15s;
  z-index: 150;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--indigo2);
  transform: translateY(-2px);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 76px; }

  /* Tighten horizontal padding */
  .navbar-inner { padding: 0 16px; }
  .section-wrap,
  .cat-section,
  .quiz-section,
  .newsletter-section,
  .latest-section { padding: 0 16px; }
  .pill-strip-inner { padding: 8px 16px; }
  .footer { padding: 40px 16px 28px; }

  /* Category sections — match template responsive */
  .cat-grid { grid-template-columns: 1fr; }
  .cat-smalls { flex-direction: row; flex-wrap: wrap; }
  .cat-smalls .cat-small-card { flex: 1; min-width: 140px; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .newsletter-box {
    flex-direction: column;
    padding: 40px 28px;
    gap: 24px;
    text-align: center;
  }

  .newsletter-input-wrap { width: 100%; flex-direction: column; padding: 12px; }
  .newsletter-input-wrap .newsletter-input { width: 100% !important; max-width: 100% !important; }
  .newsletter-input-wrap .newsletter-btn { width: 100%; border-radius: 10px; }
  .newsletter-sub { max-width: 100%; }

  /* Scroll to top above mobile nav */
  .scroll-top-btn { bottom: 90px; right: 20px; }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .newsletter-title { font-size: 24px; }
  .cat-smalls { flex-direction: column; }
  .cat-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
