/*
Theme Name: Birthday Templates Hub
Theme URI: https://canvatemplatebirthday.com
Description: Custom affiliate theme for Canva birthday templates — Playfair Display + DM Sans, rose/gold palette, Pinterest-optimised article layouts.
Version: 3.43
Author: CanvaTemplateBirthday
Text Domain: canva-birthday
*/

/* ══════════════════════════════════════════
   CSS VARIABLES
══════════════════════════════════════════ */
:root {
  --bg:          #FAF7F2;
  --bg2:         #F2ECE2;
  --bg-dark:     oklch(20% 0.015 50);
  --ink:         oklch(22% 0.02 50);
  --ink-soft:    oklch(48% 0.015 50);
  --ink-muted:   oklch(68% 0.012 50);
  --rose:        #2A2520;
  --rose-light:  oklch(94% 0.005 50);
  --gold:        oklch(65% 0.12 75);
  --gold-light:  oklch(94% 0.04 75);
  --green:       oklch(55% 0.07 145);
  --green-light: oklch(94% 0.03 145);
  --radius:      14px;
  --shadow:      0 2px 16px oklch(20% 0.02 260 / 0.08);
  --shadow-lg:   0 8px 40px oklch(20% 0.02 260 / 0.14);
  --max-width:   1140px;
  --article-width: 760px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

#page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

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

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 99px; }

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════
   URGENCY TICKER
══════════════════════════════════════════ */
.urgency-ticker {
  background: var(--rose);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}

.urgency-ticker__track {
  display: flex;
  gap: 48px;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.urgency-ticker__item {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
#site-header {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200,195,185,0.4);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.site-title .icon { font-size: 22px; }

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

.nav-links a {
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  transition: transform 0.15s, opacity 0.15s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links .current-menu-item a,
.nav-links .current-page-ancestor a {
  background: var(--rose-light);
  color: var(--rose);
  font-weight: 600;
}

.nav-cta {
  display: inline-block;
  margin-left: 8px;
  background: var(--rose);
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 99px;
  text-decoration: none;
  transition: transform 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px oklch(42% 0.13 25 / 0.35);
}

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  font-size: 22px;
}

/* ══════════════════════════════════════════
   FRONT PAGE HERO
══════════════════════════════════════════ */
.fp-hero {
  background: linear-gradient(160deg, #faf8f5 0%, #fce8f0 60%, #faf7ee 100%);
  background: linear-gradient(160deg, oklch(97% 0.02 60) 0%, oklch(96% 0.04 350) 60%, oklch(97% 0.03 80) 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.fp-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.fp-hero__glow--rose {
  top: -60px; right: -80px;
  width: 360px; height: 360px;
  background: oklch(90% 0.06 25 / 0.25);
  background: rgba(220,100,140,0.25);
}

.fp-hero__glow--gold {
  bottom: -40px; left: -60px;
  width: 280px; height: 280px;
  background: oklch(92% 0.1 80 / 0.2);
  background: rgba(200,165,60,0.2);
}

.fp-hero__eyebrow {
  display: inline-block;
  background: var(--rose-light);
  color: var(--rose);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.fp-hero__title {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  max-width: 820px;
  margin: 0 auto 18px;
}

.fp-hero__title em {
  color: var(--rose);
  font-style: italic;
}

.fp-hero__lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.fp-hero__proof {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.fp-hero__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.fp-hero__trust {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 8px;
}

.fp-hero__trust .trust-stat {
  flex: 0 0 auto;
}

/* Quiz section */
.fp-quiz-section {
  padding: 64px 0;
  background: var(--bg2);
}

.fp-quiz {
  background: linear-gradient(135deg, var(--rose-light), var(--gold-light));
  border: 1.5px solid oklch(89% 0.04 25);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.fp-quiz__progress {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.fp-quiz__prog-bar {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: oklch(42% 0.13 25 / 0.2);
  transition: background 0.3s;
}

.fp-quiz__prog-bar--active { background: var(--rose); }

.fp-quiz__label {
  font-size: 11px;
  color: var(--rose);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fp-quiz__question {
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.fp-quiz__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fp-quiz__opt {
  background: white;
  border: 1.5px solid oklch(42% 0.13 25 / 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s, opacity 0.15s;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, 'DM Sans', sans-serif;
}

.fp-quiz__opt:hover {
  border-color: var(--rose);
  background: var(--rose-light);
}

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #f9f8f5 0%, #fbeef2 60%, #faf8f0 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: oklch(42% 0.13 25 / 0.12);
  filter: blur(60px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(196,154,20,0.1);
  filter: blur(50px);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--rose-light);
  color: var(--rose);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  max-width: 820px;
  margin: 0 auto 18px;
}

.hero__title em {
  color: var(--rose);
  font-style: italic;
}

.hero__lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.hero__social-proof {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__trust {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-stat { text-align: center; }

.trust-stat__number {
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.trust-stat__label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 99px;
  text-decoration: none;
  transition: transform 0.18s;
  cursor: pointer;
  border: none;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, 'DM Sans', sans-serif;
}

.btn--primary {
  background: var(--rose);
  color: #fff;
  font-size: 16px;
  padding: 16px 36px;
  box-shadow: 0 6px 24px oklch(42% 0.13 25 / 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px oklch(42% 0.13 25 / 0.45);
}

.btn--secondary {
  background: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(150,145,140,0.3);
  color: var(--ink);
  font-size: 16px;
  padding: 16px 36px;
}

.btn--secondary:hover {
  background: white;
}

.btn--sm {
  font-size: 13px;
  padding: 10px 20px;
}

.btn--gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 6px 24px rgba(196,154,20,0.35);
}

/* ══════════════════════════════════════════
   SECTION HEADINGS
══════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header__titles h2 {
  font-size: 32px;
  font-weight: 700;
}

.section-header__titles p {
  color: var(--ink-soft);
  margin-top: 4px;
}

.section-link {
  color: var(--rose);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.section-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   TEMPLATE CARDS
══════════════════════════════════════════ */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.template-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s;
  background: #fff;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.template-card__preview {
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.template-card__title-overlay {
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.template-card__cat-overlay {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  opacity: 0.7;
}

.template-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  color: #fff;
  z-index: 2;
}

.template-card__badge--free { background: var(--green); }
.template-card__badge--pro  { background: var(--gold); }

.template-card__footer {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.template-card__info-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}

.template-card__info-cat {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.template-card__cta {
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 10px;
}

/* ══════════════════════════════════════════
   CATEGORY GRID
══════════════════════════════════════════ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: var(--radius);
  padding: 24px 16px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.category-card__emoji { font-size: 28px; }
.category-card__name  { font-weight: 600; font-size: 14px; color: var(--ink); }
.category-card__count { font-size: 12px; color: var(--ink-muted); }

/* ══════════════════════════════════════════
   POST CARDS
══════════════════════════════════════════ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.post-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.post-card__thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--rose-light), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__thumb-placeholder {
  font-size: 12px;
  font-family: monospace;
  color: var(--ink-muted);
  position: relative;
  z-index: 1;
}

.post-card__body {
  padding: 20px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-card__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
}

.post-card__read-time {
  font-size: 11px;
  color: var(--ink-muted);
}

.post-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.post-card__excerpt {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
}

.post-card__footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.post-card__date { font-size: 11px; color: var(--ink-muted); }
.post-card__read-more { font-size: 13px; color: var(--rose); font-weight: 600; }

/* ══════════════════════════════════════════
   AFFILIATE BANNER
══════════════════════════════════════════ */
.aff-banner {
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--gold-light) 100%);
  border: 1.5px solid oklch(42% 0.13 25 / 0.2);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.aff-banner::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--rose);
  opacity: 0.08;
  pointer-events: none;
}

.aff-banner__title {
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.aff-banner__desc {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 560px;
}

.aff-banner--dark {
  background: var(--bg-dark);
  border: none;
  text-align: center;
  padding: 72px 0;
}

.aff-banner--dark .aff-banner__title { color: white; font-size: 28px; }
.aff-banner--dark .aff-banner__desc  { color: rgba(200,205,220,0.85); font-size: 17px; margin: 0 auto; max-width: 500px; }

/* ══════════════════════════════════════════
   FREE vs PRO TABLE
══════════════════════════════════════════ */
.fvp-section {
  padding: 72px 0;
  background: var(--bg2);
}

.fvp-table {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.fvp-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--bg-dark);
}

.fvp-header__feature {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(200,205,220,0.8);
}

.fvp-header__col {
  padding: 16px 20px;
  text-align: center;
}

.fvp-header__col--free .fvp-col-title { font-size: 13px; font-weight: 700; color: white; }
.fvp-header__col--free .fvp-col-price { font-size: 11px; color: rgba(200,205,220,0.7); margin-top: 2px; }

.fvp-header__col--pro {
  background: var(--rose);
}

.fvp-header__col--pro .fvp-col-title { font-size: 13px; font-weight: 700; color: white; }
.fvp-header__col--pro .fvp-col-price { font-size: 11px; color: rgba(255,255,255,0.8); margin-top: 2px; }

.fvp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #f0ede8;
}

.fvp-row:last-child { border-bottom: none; }

.fvp-row--alt { background: #faf9f7; }

.fvp-row__label {
  padding: 13px 20px;
  font-size: 13px;
  color: var(--ink-soft);
}

.fvp-row__cell {
  padding: 13px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

.fvp-row__cell--yes-free { color: var(--green); }
.fvp-row__cell--yes-pro  { color: var(--rose);  }
.fvp-row__cell--no       { color: var(--ink-muted); }

.fvp-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 18px 20px;
  gap: 10px;
  background: var(--bg2);
}

.fvp-cta-label {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
}

.fvp-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  padding: 10px;
  border-radius: 99px;
  text-decoration: none;
}

.fvp-cta-btn--free {
  background: var(--bg2);
  border: 1.5px solid rgba(150,145,140,0.3);
  color: var(--ink);
}

.fvp-cta-btn--pro {
  background: var(--rose);
  color: #fff;
}

/* ══════════════════════════════════════════
   TRENDING GRID
══════════════════════════════════════════ */
.trending-section { padding: 72px 0; }

.trending-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.trending-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.trending-live-badge {
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.trending-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  transition: transform 0.2s;
  position: relative;
}

.trending-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.trending-card__rank {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: var(--bg-dark);
  color: #fff;
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-weight: 800;
  font-size: 13px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trending-card__new {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 99px;
  letter-spacing: 0.06em;
}

.trending-card__preview {
  height: 150px;
  position: relative;
  overflow: hidden;
}

.trending-card__preview-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 0 16px;
  line-height: 1.4;
}

.trending-card__footer {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trending-card__info-title {
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.3;
}

.trending-card__downloads {
  font-size: 10px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ══════════════════════════════════════════
   SECTIONS — padding
══════════════════════════════════════════ */
.section { padding: 72px 0; }
.section--alt { background: var(--bg2); }
.section--dark {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* ══════════════════════════════════════════
   ARTICLE / SINGLE POST
══════════════════════════════════════════ */
.article-wrap {
  padding: 48px 0 80px;
}

.article-breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--ink-muted);
}

.article-breadcrumb a { color: var(--rose); font-weight: 500; }
.article-breadcrumb span { color: var(--ink-muted); }

.article-header { margin-bottom: 32px; }

.article-cat-badge {
  display: inline-block;
  background: var(--rose-light);
  color: var(--rose);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.article-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.article-lead {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid #ece9e3;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.article-hero-img {
  height: 280px;
  background: linear-gradient(135deg, var(--rose-light), var(--gold-light));
  border-radius: var(--radius);
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Pinterest hero image — 2:3 tall format */
.article-pin-hero {
  display: flex;
  justify-content: center;
  margin: 28px 0 32px;
  position: relative;
}

.article-pin-hero img {
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}


/* Article body content */
.article-body {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.85;
}

.article-body h2 {
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 14px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
}

.article-body p { margin-bottom: 18px; }

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body li { line-height: 1.7; }

.article-body strong { color: var(--ink); }

.article-body a {
  color: var(--rose);
  text-decoration: underline;
}

.article-body a.ctb-cta-btn {
  color: white;
  text-decoration: none;
}

.article-body blockquote {
  border-left: 4px solid var(--rose);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--rose-light);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--ink);
}

/* How-to steps */
.how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.how-to-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0;
  background: white;
  border: 1.5px solid #ece9e3;
  border-radius: 10px;
  overflow: hidden;
}

.how-to-step__num {
  background: var(--rose);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-weight: 800;
  font-size: 15px;
}

.how-to-step__content { padding: 12px 14px; }
.how-to-step__title { font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 3px; }
.how-to-step__desc  { font-size: 12px; color: var(--ink-soft); line-height: 1.6; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }

.faq-item {
  background: white;
  border: 1.5px solid #ece9e3;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
}

.faq-item summary {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary .faq-icon {
  color: var(--rose);
  flex-shrink: 0;
}

.faq-item p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0ede8;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: oklch(42% 0.13 25 / 0.15);
  z-index: 200;
}

.reading-progress__bar {
  height: 100%;
  background: var(--rose);
  width: 0%;
  transition: width 0.08s linear;
}

/* Table of contents */
.toc {
  background: var(--bg2);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 28px;
  border: 1px solid #ece9e3;
}

.toc__title {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 10px;
}

.toc ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.toc li {
  font-size: 13px;
}

.toc a {
  color: var(--rose);
  text-decoration: none;
}

.toc a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   PINFLOW ARTICLE BLOCKS
   All styling for PinFlow-generated content.
   PinFlow uses only class names — no inline styles.
   To restyle for a new site: update these rules only.
══════════════════════════════════════════ */

.quick-answer {
  background: var(--rose-light);
  border-left: 4px solid var(--rose);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 6px;
}

.key-insight {
  border-left: 3px solid var(--rose);
  padding: 12px 16px;
  margin: 20px 0;
  background: var(--rose-light);
  border-radius: 0 6px 6px 0;
}

.ctb-toc {
  background: var(--bg2);
  border: 1px solid #ece9e3;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}

.ctb-toc p {
  font-weight: 600;
  margin: 0 0 8px;
}

.ctb-toc ol,
.ctb-toc ul {
  margin: 0;
  padding-left: 20px;
}

.ctb-toc li {
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.ctb-toc a {
  color: var(--rose);
  text-decoration: none;
}

.ctb-toc a:hover { text-decoration: underline; }

.ctb-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.ctb-comparison-table thead tr {
  background: var(--bg2);
}

.ctb-comparison-table th,
.ctb-comparison-table td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ece9e3;
  font-size: 14px;
}

/* ── Product cards grid ────────────────────────────── */
.ctb-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.ctb-product-card {
  border: 2px solid #ece9e3;
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 24px;
  background: linear-gradient(120deg, var(--rose-light), var(--bg2));
  display: flex;
  flex-direction: column;
  transition: transform 0.18s;
  cursor: pointer;
}

.ctb-product-card:hover {
  box-shadow: 0 8px 32px oklch(42% 0.13 25 / 0.18);
  transform: translateY(-2px);
}

.ctb-product-card a {
  display: block;
  text-align: center;
}

/* Image: show full CF preview at natural proportions (580x387) */
.ctb-product-card img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block;
  margin: 0 0 14px;
  border-radius: 8px;
}

.ctb-product-card h3 {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.35;
}

.ctb-product-card p {
  font-size: 13px;
  line-height: 1.65;
  flex: 1;
}

/* CTA button — full width, pushed to bottom of card */
.ctb-cta-btn {
  display: block;
  background: var(--rose);
  color: white;
  padding: 13px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  margin-top: auto;
  text-align: center;
  box-sizing: border-box;
}

.ctb-cta-btn:hover {
  opacity: 0.9;
  color: white;
}

/* Trust micro-copy below each card button */
.ctb-cards-grid .ctb-product-card::after {
  content: '✓ Free trial · No credit card needed';
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 7px;
}

/* Mobile: single column */
@media (max-width: 680px) {
  .ctb-cards-grid {
    grid-template-columns: 1fr;
  }
  .ctb-product-card img {
    width: 100% !important;
    height: auto !important;
  }
}

.ctb-promo-img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  margin: 20px 0;
  display: block;
}

/* Related posts */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.related-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
  text-decoration: none;
  display: block;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.related-card__cat {
  font-size: 11px;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 6px;
}

.related-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-card__read { font-size: 12px; color: var(--rose); font-weight: 500; }

/* Share bar */
.share-bar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.share-bar__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s;
}

.share-btn:hover { transform: translateY(-1px); }

.share-btn--pinterest { background: #E60023; }
.share-btn--facebook  { background: #1877F2; }
.share-btn--twitter   { background: #000; }
.share-btn--copy      { background: var(--bg2); color: var(--ink-soft); border: 1.5px solid #e0ddd8; cursor: pointer; }

/* Email capture */
.email-capture {
  background: white;
  border: 1.5px solid #ece9e3;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  text-align: center;
}

.email-capture__icon  { font-size: 24px; margin-bottom: 8px; }
.email-capture__title { font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.email-capture__desc  { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; max-width: 340px; margin-left: auto; margin-right: auto; }

.email-capture__form {
  display: flex;
  gap: 8px;
  max-width: 380px;
  margin: 0 auto 8px;
}

.email-capture__input {
  flex: 1;
  padding: 11px 16px;
  border-radius: 99px;
  border: 1.5px solid #ddd;
  font-size: 14px;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}

.email-capture__input:focus { border-color: var(--rose); }

.email-capture__note { font-size: 11px; color: var(--ink-muted); }

/* Bottom article CTA — large dark block */
.aff-banner-bottom {
  background: var(--bg-dark);
  border-radius: 16px;
  padding: 44px 32px;
  margin: 36px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aff-banner-bottom__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.aff-banner-bottom__glow--rose {
  width: 220px; height: 220px;
  top: -60px; right: -60px;
  background: oklch(42% 0.13 25 / 0.18);
}

.aff-banner-bottom__glow--gold {
  width: 180px; height: 180px;
  bottom: -50px; left: -50px;
  background: rgba(196,154,20,0.12);
}

.aff-banner-bottom__inner { position: relative; }

.aff-banner-bottom__emoji {
  font-size: 36px;
  margin-bottom: 12px;
}

.aff-banner-bottom__title {
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 10px;
}

.aff-banner-bottom__desc {
  color: rgba(200,205,220,0.85);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.btn--lg {
  font-size: 16px;
  padding: 16px 36px;
}

/* ══════════════════════════════════════════
   BLOG PAGE
══════════════════════════════════════════ */
.blog-page { padding: 56px 0 80px; }

.blog-page__header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-page__header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
}

.blog-page__header p {
  color: var(--ink-soft);
  margin-top: 10px;
  font-size: 17px;
}

.blog-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.blog-search {
  width: 100%;
  max-width: 480px;
  padding: 13px 20px;
  border-radius: 99px;
  border: 1.5px solid #ddd;
  background: white;
  font-size: 15px;
  outline: none;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, 'DM Sans', sans-serif;
  transition: border-color 0.15s;
}

.blog-search:focus { border-color: var(--rose); }

.blog-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-cat-btn {
  background: white;
  color: var(--ink-soft);
  border: 1.5px solid #ddd;
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, 'DM Sans', sans-serif;
}

.blog-cat-btn:hover,
.blog-cat-btn.active {
  background: var(--rose);
  color: white;
  border-color: var(--rose);
}

/* ══════════════════════════════════════════
   ARCHIVE / CATEGORY PAGE
══════════════════════════════════════════ */
.archive-header {
  background: linear-gradient(135deg, var(--rose-light), var(--gold-light));
  padding: 48px 0;
  margin-bottom: 48px;
  text-align: center;
}

.archive-header h1 {
  font-size: 40px;
  font-weight: 800;
}

.archive-header p {
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ══════════════════════════════════════════
   QUIZ SECTION
══════════════════════════════════════════ */
.quiz-section {
  padding: 64px 0;
  background: var(--bg2);
}

.quiz-section .container { max-width: 680px; }

.quiz-section__header {
  text-align: center;
  margin-bottom: 28px;
}

.quiz-section__header h2 {
  font-size: 28px;
  font-weight: 700;
}

.quiz-section__header p {
  color: var(--ink-soft);
  margin-top: 6px;
}

.quiz-box {
  background: linear-gradient(135deg, var(--rose-light), var(--gold-light));
  border: 1.5px solid oklch(42% 0.13 25 / 0.2);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.quiz-progress__bar {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: oklch(42% 0.13 25 / 0.2);
  transition: background 0.3s;
}

.quiz-progress__bar--done { background: var(--rose); }

.quiz-label {
  font-size: 11px;
  color: var(--rose);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.quiz-question {
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-option {
  background: white;
  border: 1.5px solid oklch(42% 0.13 25 / 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s, opacity 0.15s;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, 'DM Sans', sans-serif;
}

.quiz-option:hover {
  border-color: var(--rose);
  background: var(--rose-light);
}

/* ══════════════════════════════════════════
   FLOATING CTA
══════════════════════════════════════════ */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  opacity: 0;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}

.floating-cta.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.floating-cta a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--rose);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 6px 24px oklch(42% 0.13 25 / 0.45);
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   COOKIE CONSENT
══════════════════════════════════════════ */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: white;
  border-top: 1px solid #ece9e3;
  box-shadow: 0 -4px 32px rgba(20,20,40,0.12);
  padding: 20px 24px;
  display: none;
  animation: slideUp 0.4s ease;
}

#cookie-consent.visible { display: block; }

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-text { flex: 1; min-width: 260px; }
.cookie-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cookie-desc  { font-size: 12px; color: var(--ink-soft); line-height: 1.6; }

.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }

.cookie-btn {
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #e0ddd8;
  background: none;
  color: var(--ink-soft);
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, 'DM Sans', sans-serif;
  transition: transform 0.15s, opacity 0.15s;
}

.cookie-btn:hover { border-color: var(--rose); color: var(--rose); }

.cookie-btn--accept {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
  font-weight: 700;
}

.cookie-btn--accept:hover {
  background: oklch(32% 0.13 25);
}

/* ══════════════════════════════════════════
   EXIT POPUP
══════════════════════════════════════════ */
#exit-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

#exit-popup.visible { display: flex; }

.exit-popup__box {
  background: white;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.exit-popup__close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink-muted);
  line-height: 1;
}

.exit-popup__emoji { font-size: 44px; margin-bottom: 12px; }

.exit-popup__title {
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.2;
}

.exit-popup__body {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.exit-popup__proof {
  display: flex;
  gap: 10px;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.exit-popup__dismiss {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 12px;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, 'DM Sans', sans-serif;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#site-footer {
  background: var(--bg-dark);
  color: rgba(200,205,220,0.85);
  padding: 52px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 12px;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(160,165,180,0.85);
}

.footer-col-title {
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav { display: flex; flex-direction: column; gap: 8px; }

.footer-nav a,
.footer-nav-btn {
  color: rgba(160,165,180,0.85);
  font-size: 13px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, 'DM Sans', sans-serif;
  transition: color 0.15s;
}

.footer-nav a:hover,
.footer-nav-btn:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: rgba(120,125,140,0.85);
}

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

.footer-legal a {
  color: rgba(120,125,140,0.85);
  text-decoration: none;
  font-size: 11px;
}

.footer-legal a:hover { color: white; }

.footer-aff-link {
  color: var(--rose) !important;
  text-decoration: none;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   404 / SEARCH
══════════════════════════════════════════ */
.error-page {
  text-align: center;
  padding: 100px 24px;
}

.error-page__emoji { font-size: 64px; margin-bottom: 20px; }
.error-page__title { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.error-page__text  { color: var(--ink-soft); font-size: 17px; margin-bottom: 32px; max-width: 460px; margin-left: auto; margin-right: auto; }

.search-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 32px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 13px 20px;
  border-radius: 99px;
  border: 1.5px solid #ddd;
  font-size: 15px;
  outline: none;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, 'DM Sans', sans-serif;
}

.search-form input:focus { border-color: var(--rose); }

.search-form button {
  background: var(--rose);
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, 'DM Sans', sans-serif;
}

/* ══════════════════════════════════════════
   PAGES (Privacy, Terms)
══════════════════════════════════════════ */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.page-content h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-content__updated {
  color: var(--ink-muted);
  font-size: 13px;
  margin-bottom: 36px;
}

.page-content section { margin-bottom: 28px; }

.page-content section h2 {
  font-family: Georgia, 'Playfair Display', Cambria, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-content section p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.85;
  white-space: pre-line;
}

/* ══════════════════════════════════════════
   WP ALIGNMENT CLASSES
══════════════════════════════════════════ */
.aligncenter { margin: 0 auto; display: block; }
.alignleft   { float: left; margin: 0 20px 20px 0; }
.alignright  { float: right; margin: 0 0 20px 20px; }
.alignwide   { width: 100%; }
.alignfull   { width: 100vw; margin-left: calc(-50vw + 50%); }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

/* Article sidebar collapses on tablet */
@media (max-width: 900px) {
  .single-layout { grid-template-columns: 1fr !important; }
  .single-sidebar { display: none !important; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .template-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .post-grid { grid-template-columns: 1fr; }
  .section-header { gap: 8px; }

  /* Mobile nav dropdown */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #ece9e3;
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 49;
  }

  .fvp-header { grid-template-columns: 1fr 1fr !important; }
  .fvp-row    { grid-template-columns: 1fr 1fr !important; }
  .fvp-col-feature { display: none !important; }
  .fvp-cta-row { grid-template-columns: 1fr 1fr !important; }
  .fvp-cta-label { display: none !important; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero__buttons { flex-direction: column; align-items: stretch; }
  .hero__buttons .btn { text-align: center; width: 100%; }
  .hero__trust { gap: 16px; }
  .quiz-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-legal { justify-content: center; }
  .exit-popup { display: none !important; }
  .trending-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .related-grid { grid-template-columns: 1fr; }
  .article-meta { gap: 8px; }
  .cookie-inner { flex-direction: column; gap: 12px; }
  .email-capture__form { flex-direction: column; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 12px; }
}

/* ══════════════════════════════════════════
   POST TAGS
══════════════════════════════════════════ */
.ctb-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}
.ctb-post-tag {
  display: inline-block;
  background: var(--bg2);
  border: 1.5px solid oklch(88% 0.03 350);
  color: var(--rose);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 99px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ctb-post-tag:hover {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}

/* Card hover — replaces inline onmouseover/onmouseout JS */
.ctb-card-hover {
  transition: transform 0.2s;
}
.ctb-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px oklch(20% 0.02 260 / 0.14);
}
