/* ============================================================
   OkiPoki – Ouderschap Blog
   Mobile-First Premium Design | v1.0.1
   ============================================================ */

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

/* ── 1. CSS Variables ──────────────────────────────────────── */
:root {
  --primary:          #FF6B35;
  --primary-dark:     #E5521C;
  --primary-light:    #FFF3EE;
  --secondary:        #1E3A5F;
  --secondary-light:  #2D5282;
  --accent:           #4ECDC4;
  --bg:               #FFFAF7;
  --bg-alt:           #F5EFE8;
  --white:            #FFFFFF;
  --text:             #1A202C;
  --text-muted:       #64748B;
  --border:           #E8DDD4;
  --gold:             #F59E0B;
  --gold-light:       #FEF3C7;
  --success:          #10B981;
  --error:            #EF4444;
  --shadow-sm:        0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:        0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:        0 8px 40px rgba(0,0,0,0.12);
  --shadow-primary:   0 4px 20px rgba(255,107,53,0.30);
  --radius-sm:        8px;
  --radius:           14px;
  --radius-lg:        20px;
  --radius-full:      9999px;
  --font-heading:     'Poppins', sans-serif;
  --font-body:        'Inter', sans-serif;
  --transition:       0.25s ease;
  --container:        1200px;
  --header-h:         72px;
}

/* ── 2. Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
img, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── 3. Accessibility ───────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 4. Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--narrow { max-width: 820px; }

/* ── 5. Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600; font-size: 0.925rem; line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}
.btn--secondary {
  background: var(--secondary); color: var(--white); border-color: var(--secondary);
}
.btn--secondary:hover { background: var(--secondary-light); border-color: var(--secondary-light); color: var(--white); }
.btn--outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--outline-white {
  background: transparent; color: var(--white); border-color: var(--white);
}
.btn--outline-white:hover { background: var(--white); color: var(--primary); }
.btn--lg   { padding: 1rem 2rem;   font-size: 1rem; }
.btn--sm   { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--full { width: 100%; }
.btn-link { background: none; border: none; padding: 0; color: var(--text-muted); font-size: 0.875rem; text-decoration: underline; cursor: pointer; }
.btn-link:hover { color: var(--text); }

/* ── 6. Cookie Banner ───────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: var(--secondary);
  display: flex;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;
}
.cookie-banner__text { color: var(--white); }
.cookie-banner__text strong { font-family: var(--font-heading); font-size: 1rem; }
.cookie-banner__text p { font-size: 0.875rem; margin-top: 0.25rem; opacity: 0.85; }
.cookie-banner__text a { color: var(--accent); }
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── 7. Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-logo { flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; }

/* Main Nav */
.main-nav { display: none; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: 0.5rem 0.75rem;
  font-family: var(--font-heading); font-weight: 500; font-size: 0.925rem;
  color: var(--text); border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }

/* Dropdown */
.nav-dropdown__menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 220px;
  box-shadow: var(--shadow-lg); padding: 0.5rem; z-index: 100;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu { display: block; }
.nav-dropdown__menu li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--text);
}
.nav-dropdown__menu li a:hover { background: var(--primary-light); color: var(--primary); }
.nav-count {
  background: var(--border); color: var(--text-muted);
  font-size: 0.7rem; padding: 0.1rem 0.45rem; border-radius: var(--radius-full);
}

/* Header CTA */
.header-cta { font-size: 0.875rem; padding: 0.6rem 1.1rem; }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  padding: 0.5rem; border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-alt); }
.hamburger__line {
  display: block; width: 24px; height: 2.5px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.is-open .hamburger__line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open .hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .hamburger__line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── 8. Mobile Menu ─────────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; padding-bottom: 2rem;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.mobile-menu__close {
  font-size: 1.5rem; color: var(--text-muted);
  padding: 0.25rem 0.5rem; border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-menu__close:hover { background: var(--bg-alt); color: var(--text); }
.mobile-nav-links { padding: 1rem 0; }
.mobile-nav-links li a {
  display: block; padding: 0.9rem 1.5rem;
  font-family: var(--font-heading); font-size: 1rem; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav-links li a:hover { background: var(--primary-light); color: var(--primary); }
.mobile-nav-links .mobile-cta {
  color: var(--white); background: var(--primary); border-color: var(--primary);
  margin: 1rem 1.5rem; border-radius: var(--radius-full);
  text-align: center; display: block;
}
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
}
.mobile-overlay.is-visible { display: block; }

/* ── 9. Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 520px; display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,58,95,0.85) 0%, rgba(30,58,95,0.6) 100%);
}
.hero .container { position: relative; z-index: 1; padding: 5rem 1.25rem; }
.hero__content { max-width: 620px; color: var(--white); }
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem; font-size: 0.875rem; font-weight: 500;
  margin-bottom: 1.25rem; color: var(--white);
}
.hero__title {
  font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem); opacity: 0.9;
  margin-bottom: 2rem; max-width: 520px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero__stat { text-align: center; }
.hero__stat-num {
  display: block; font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800;
  color: var(--primary); text-shadow: none;
}
.hero__stat-label { font-size: 0.8rem; opacity: 0.8; }

/* Page Hero */
.page-hero { position: relative; overflow: hidden; min-height: 300px; display: flex; align-items: center; }
.page-hero--sm { min-height: 220px; }
.page-hero--light { background: var(--bg-alt); min-height: 160px; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(30,58,95,0.85) 0%, rgba(30,58,95,0.5) 100%);
}
.page-hero .container { position: relative; z-index: 1; padding: 3.5rem 1.25rem; }
.page-hero__content { max-width: 640px; color: var(--white); }
.page-hero__content--dark { color: var(--text); }
.page-hero__title {
  font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; margin-bottom: 0.75rem; line-height: 1.2;
}
.page-hero__subtitle { font-size: 1rem; opacity: 0.85; }

/* ── 10. Breadcrumb ─────────────────────────────────────────── */
.breadcrumb { margin-bottom: 1.25rem; }
.breadcrumb__list {
  display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center;
  list-style: none; font-size: 0.825rem;
}
.breadcrumb__list li { display: flex; align-items: center; color: rgba(255,255,255,0.7); }
.breadcrumb--dark .breadcrumb__list li { color: var(--text-muted); }
.breadcrumb__list li + li::before { content: '›'; margin-right: 0.25rem; opacity: 0.6; }
.breadcrumb__list a { color: rgba(255,255,255,0.85); transition: color var(--transition); }
.breadcrumb--dark .breadcrumb__list a { color: var(--primary); }
.breadcrumb__list a:hover { color: var(--white); }
.breadcrumb--dark .breadcrumb__list a:hover { color: var(--primary-dark); }

/* ── 11. Section Styles ─────────────────────────────────────── */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--primary); text-transform: uppercase;
  background: var(--primary-light); border-radius: var(--radius-full);
  padding: 0.3rem 0.9rem; margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-heading); font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700; color: var(--secondary); line-height: 1.25;
  margin-bottom: 0.75rem;
}
.section-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1rem; }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ── 12. Post Cards ─────────────────────────────────────────── */
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card__image-link { display: block; overflow: hidden; }
.post-card__image { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-alt); }
.post-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-card__category {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary); background: var(--primary-light);
  border-radius: var(--radius-full); padding: 0.2rem 0.65rem; margin-bottom: 0.6rem;
  width: fit-content;
}
.post-card__title {
  font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700;
  line-height: 1.35; margin-bottom: 0.6rem; color: var(--secondary);
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt { font-size: 0.875rem; color: var(--text-muted); flex: 1; margin-bottom: 1rem; }
.post-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; }
.post-card__date { font-size: 0.8rem; color: var(--text-muted); }
.post-card__link { font-size: 0.875rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.post-card__link:hover { color: var(--primary-dark); }

/* Posts Grid */
.posts-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* ── 13. Popular Posts ──────────────────────────────────────── */
.popular-posts { display: flex; flex-direction: column; gap: 1rem; }
.popular-post {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border-radius: var(--radius); padding: 1rem;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
}
.popular-post:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.popular-post__rank {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 800;
  color: var(--border); min-width: 3rem; text-align: center;
  line-height: 1;
}
.popular-post__image { width: 90px; height: 65px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.popular-post__image img { width: 100%; height: 100%; object-fit: cover; }
.popular-post__category { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: var(--primary); }
.popular-post__title { font-family: var(--font-heading); font-size: 0.925rem; font-weight: 600; line-height: 1.3; margin-top: 0.2rem; }
.popular-post__title a { color: var(--secondary); }
.popular-post__title a:hover { color: var(--primary); }
.popular-post__views { font-size: 0.775rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }

/* ── 14. Product Cards ──────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.product-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card__badge {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
  background: var(--gold); color: var(--white);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  padding: 0.25rem 0.65rem; border-radius: var(--radius-full);
}
.product-card__rank {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  background: var(--secondary); color: var(--white);
  font-family: var(--font-heading); font-size: 1rem; font-weight: 800;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.product-card__image-link { display: block; overflow: hidden; }
.product-card__image { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.product-card__stars { display: flex; align-items: center; gap: 0.1rem; }
.star { color: var(--border); font-size: 1rem; }
.star--filled { color: var(--gold); }
.product-card__rating { font-weight: 700; font-size: 0.875rem; color: var(--text); margin-left: 0.25rem; }
.product-card__reviews { font-size: 0.775rem; color: var(--text-muted); margin-left: 0.25rem; }
.product-card__title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--secondary); }
.product-card__description { font-size: 0.875rem; color: var(--text-muted); flex: 1; }
.product-card__price { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.product-card__cta { margin-top: auto; }

/* ── 15. Feature Cards ──────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-sm); text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card__icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.feature-card__title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.5rem; }
.feature-card__text { font-size: 0.9rem; color: var(--text-muted); }

/* ── 16. Affiliate Banner (in-post) ─────────────────────────── */
.affiliate-banner {
  background: linear-gradient(135deg, var(--primary-light) 0%, #FFF8F5 100%);
  border: 1px solid rgba(255,107,53,0.2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 1.25rem; margin: 2rem 0;
}
.affiliate-banner__inner { display: flex; flex-direction: column; gap: 1rem; }
.affiliate-banner__image { border-radius: var(--radius-sm); object-fit: cover; width: 100%; max-width: 200px; }
.affiliate-banner__tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--primary); letter-spacing: 0.06em; }
.affiliate-banner__title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin: 0.25rem 0; }
.affiliate-banner__desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.affiliate-banner__disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.75rem; font-style: italic; }

/* Disclaimer bars */
.affiliate-article-disclaimer, .affiliate-disclaimer-top {
  background: var(--gold-light); border: 1px solid rgba(245,158,11,0.3);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  font-size: 0.85rem; color: var(--text); margin-bottom: 1.5rem;
}
.affiliate-disclaimer-bar {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: var(--gold-light); border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  margin: 1.5rem 0; font-size: 0.85rem;
}
.affiliate-disclaimer-bar__icon { font-size: 1.1rem; flex-shrink: 0; }
.affiliate-disclaimer-bar a { color: var(--primary); }

/* ── 17. Newsletter Section ─────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  padding: 3.5rem 0;
}
.newsletter-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 2rem; text-align: center;
}
.newsletter-text { color: var(--white); }
.newsletter-title { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; }
.newsletter-subtitle { font-size: 1rem; opacity: 0.85; max-width: 460px; }
.newsletter-form { width: 100%; max-width: 480px; }
.newsletter-input-group { display: flex; gap: 0; border-radius: var(--radius-full); overflow: hidden; box-shadow: var(--shadow-lg); }
.newsletter-input {
  flex: 1; padding: 0.9rem 1.25rem; border: none; font-family: var(--font-body); font-size: 1rem;
  outline: none; background: var(--white); color: var(--text); min-width: 0;
}
.newsletter-btn { flex-shrink: 0; padding: 0.9rem 1.5rem; border-radius: 0; font-size: 0.9rem; }
.newsletter-privacy { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 0.75rem; }
.newsletter-privacy a { color: var(--accent); }
.newsletter-message { margin-top: 0.75rem; font-size: 0.9rem; font-weight: 500; min-height: 1.5rem; color: var(--white); }

/* ── 18. Blog Layout ────────────────────────────────────────── */
.blog-layout { display: flex; flex-direction: column; gap: 2.5rem; }
.blog-main { min-width: 0; }
.blog-sidebar { display: none; }

/* Search bar */
.hero-search {
  display: flex; border-radius: var(--radius-full);
  overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  max-width: 480px; margin-top: 1.5rem;
}
.hero-search__input {
  flex: 1; padding: 0.9rem 1.25rem; border: none; font-size: 1rem;
  background: var(--white); color: var(--text); outline: none; min-width: 0;
}
.hero-search__btn {
  padding: 0.9rem 1.25rem; background: var(--primary); color: var(--white); flex-shrink: 0;
  border-radius: 0; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.hero-search__btn:hover { background: var(--primary-dark); }

/* Search results */
.search-results-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0.5rem; margin-bottom: 1.5rem; padding: 0.75rem 1rem;
  background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.search-results-count { font-size: 0.9rem; }
.search-clear { font-size: 0.85rem; color: var(--text-muted); }
.search-clear:hover { color: var(--error); }

/* ── 19. Sidebar Widgets ────────────────────────────────────── */
.sidebar-widget {
  background: var(--white); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.sidebar-widget--affiliate { text-align: center; }
.sidebar-widget__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-light); }
.sidebar-widget__label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--primary); letter-spacing: 0.06em; }
.sidebar-category-list { display: flex; flex-direction: column; gap: 0; }
.sidebar-category-list__item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border);
}
.sidebar-category-list__item:last-child { border-bottom: none; }
.sidebar-category-list__item a { font-size: 0.9rem; color: var(--text); transition: color var(--transition); }
.sidebar-category-list__item a:hover { color: var(--primary); }
.sidebar-category-list__count {
  font-size: 0.75rem; background: var(--bg-alt);
  color: var(--text-muted); padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}
.sidebar-search { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-full); overflow: hidden; }
.sidebar-search__input { flex: 1; padding: 0.6rem 0.9rem; border: none; outline: none; font-size: 0.9rem; background: transparent; min-width: 0; }
.sidebar-search__btn { padding: 0.6rem 0.9rem; background: var(--primary); color: var(--white); font-weight: 600; flex-shrink: 0; }
.sidebar-affiliate-link { display: block; margin-top: 0.75rem; }
.sidebar-affiliate-link img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 0.75rem; }
.sidebar-affiliate-disclaimer { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── 20. Pagination ─────────────────────────────────────────── */
.pagination { margin-top: 2.5rem; }
.pagination__list { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.pagination__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 0.75rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
  color: var(--text); background: var(--white);
  transition: all var(--transition);
}
.pagination__link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.pagination__link--active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.pagination__link--active:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }

/* ── 21. Empty State ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state__icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.empty-state h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── 22. Blog Post Article ──────────────────────────────────── */
.post-article__header { padding: 3rem 0 2rem; }
.post-article__category { display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); background: var(--primary-light); border-radius: var(--radius-full); padding: 0.3rem 0.8rem; margin-bottom: 1rem; }
.post-article__title { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; color: var(--secondary); line-height: 1.2; margin-bottom: 1rem; }
.post-article__excerpt { font-size: 1.1rem; color: var(--text-muted); border-left: 3px solid var(--primary); padding-left: 1rem; margin-bottom: 1.25rem; }
.post-article__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--text-muted); }
.post-article__meta-item { display: flex; align-items: center; gap: 0.35rem; }
.post-article__meta-item a { color: var(--primary); }
.post-article__featured-image { margin-bottom: 0; overflow: hidden; }
.post-article__featured-image .post-article__img { width: 100%; max-height: 520px; object-fit: cover; }

/* Post content typography */
.post-content { margin: 2rem 0; }
.post-content h2 {
  font-family: var(--font-heading); font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700; color: var(--secondary); margin: 2rem 0 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-light);
}
.post-content h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--secondary); margin: 1.5rem 0 0.75rem; }
.post-content p { margin-bottom: 1.25rem; color: var(--text); line-height: 1.75; }
.post-content ul, .post-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; line-height: 1.65; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content strong { font-weight: 700; color: var(--secondary); }
.post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow-sm); }
.post-content blockquote {
  border-left: 4px solid var(--primary); margin: 1.5rem 0;
  padding: 1rem 1.25rem; background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text);
}
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post-content table th, .post-content table td { padding: 0.75rem; border: 1px solid var(--border); text-align: left; }
.post-content table th { background: var(--bg-alt); font-weight: 700; }

/* Share buttons */
.post-share { margin: 2.5rem 0; padding: 1.5rem; background: var(--bg-alt); border-radius: var(--radius); }
.post-share__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.post-share__buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.post-share__btn {
  padding: 0.5rem 1.1rem; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600;
  color: var(--white); transition: opacity var(--transition);
}
.post-share__btn:hover { opacity: 0.85; color: var(--white); }
.post-share__btn--facebook  { background: #1877F2; }
.post-share__btn--twitter   { background: #1DA1F2; }
.post-share__btn--pinterest { background: #E60023; }
.post-share__btn--whatsapp  { background: #25D366; }

/* Author box */
.post-author {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; margin: 2rem 0;
}
.post-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post-author__name { font-family: var(--font-heading); font-weight: 700; display: block; }
.post-author__bio { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── 23. About Page ─────────────────────────────────────────── */
.about-mission { display: flex; flex-direction: column; gap: 2.5rem; }
.about-mission__image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-values { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.about-value { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; }
.about-value__icon { color: var(--success); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.team-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.team-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; text-align: center; padding: 2rem 1.5rem; }
.team-card__image img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.25rem; border: 4px solid var(--primary-light); }
.team-card__name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--secondary); }
.team-card__role { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin: 0.25rem 0 0.75rem; }
.team-card__bio { font-size: 0.875rem; color: var(--text-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat-card__number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat-card__label { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }
.disclosure-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.disclosure-box h2 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 1rem; color: var(--secondary); }
.disclosure-box p { font-size: 0.9rem; margin-bottom: 0.75rem; color: var(--text-muted); }

/* ── 24. Services Page ──────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); text-align: center;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.service-card:hover { border-bottom-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card__title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.5rem; }
.service-card__text { font-size: 0.9rem; color: var(--text-muted); }

/* ── 25. Contact Page ───────────────────────────────────────── */
.contact-layout { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-info__title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin-bottom: 1rem; }
.contact-info__intro { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-info__items { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-info__detail strong { display: block; font-weight: 700; margin-bottom: 0.1rem; }
.contact-info__detail a { color: var(--primary); }
.contact-social { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.3rem; }
.contact-social a { color: var(--primary); font-size: 0.9rem; }
.contact-reasons { margin-top: 1.5rem; }
.contact-reasons h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--secondary); }
.contact-reasons ul { list-style: disc; padding-left: 1.25rem; }
.contact-reasons li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.contact-form-wrapper { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); }
.contact-form__title { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700; color: var(--secondary); margin-bottom: 1.5rem; }

/* ── 26. Form Elements ──────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text); }
.required { color: var(--error); }
.form-control {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: var(--white);
  color: var(--text); transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.12); }
.form-control--textarea { resize: vertical; min-height: 140px; }
.form-group--checkbox { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; color: var(--text-muted); }
.form-checkbox input { margin-top: 3px; accent-color: var(--primary); cursor: pointer; }
.form-checkbox a { color: var(--primary); }
.form-message { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; }
.form-message--success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.form-message--error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

/* ── 27. Legal Pages ────────────────────────────────────────── */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-intro { background: var(--bg-alt); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 2rem; font-size: 0.95rem; }
.legal-content h2 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--secondary); margin: 2rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
.legal-content h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--secondary); margin: 1.25rem 0 0.5rem; }
.legal-content p { font-size: 0.95rem; margin-bottom: 1rem; color: var(--text); line-height: 1.75; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { font-size: 0.95rem; margin-bottom: 0.4rem; }
.legal-content a { color: var(--primary); text-decoration: underline; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.875rem; }
.cookie-table th, .cookie-table td { padding: 0.65rem 0.9rem; border: 1px solid var(--border); }
.cookie-table th { background: var(--bg-alt); font-weight: 700; text-align: left; }
.cookie-table code { background: var(--bg-alt); padding: 0.15rem 0.35rem; border-radius: 4px; font-size: 0.8rem; }
.cookie-settings-btn-wrapper { margin: 1rem 0; }

/* ── 28. Sitemap ────────────────────────────────────────────── */
.sitemap-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.sitemap-section { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.sitemap-section--wide { grid-column: 1 / -1; }
.sitemap-section__title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-light); }
.sitemap-list { display: flex; flex-direction: column; gap: 0.4rem; }
.sitemap-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.sitemap-list a { font-size: 0.9rem; color: var(--primary); }
.sitemap-list a:hover { color: var(--primary-dark); text-decoration: underline; }
.sitemap-list--articles li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.sitemap-date { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* ── 29. Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--secondary); color: rgba(255,255,255,0.85); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand .footer-logo img { filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-tagline { font-size: 0.875rem; opacity: 0.75; max-width: 280px; line-height: 1.65; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.25rem; }
.footer-social a { color: rgba(255,255,255,0.6); transition: color var(--transition); display: flex; align-items: center; }
.footer-social a:hover { color: var(--accent); }
.footer-nav__title { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white); margin-bottom: 1rem; }
.footer-nav__list { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav__list a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-nav__list a:hover { color: var(--accent); }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0; margin: 0 0 1.25rem;
}
.footer-disclaimer p { font-size: 0.8rem; opacity: 0.7; line-height: 1.65; }
.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding-bottom: 2rem; text-align: center;
}
.footer-copyright { font-size: 0.825rem; opacity: 0.6; }
.footer-legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-legal-links a, .footer-legal-links .btn-link { font-size: 0.825rem; color: rgba(255,255,255,0.6); }
.footer-legal-links a:hover, .footer-legal-links .btn-link:hover { color: var(--accent); }

/* ── 30. Error Page ─────────────────────────────────────────── */
.error-page { padding: 6rem 0; text-align: center; }
.error-page__number { font-family: var(--font-heading); font-size: 8rem; font-weight: 800; color: var(--primary-light); line-height: 1; }
.error-page__title { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--secondary); margin-bottom: 1rem; }
.error-page__text { color: var(--text-muted); max-width: 420px; margin: 0 auto 2rem; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.5rem; }
.error-page__suggestions { background: var(--bg-alt); display: inline-block; border-radius: var(--radius); padding: 1.5rem 2rem; text-align: left; }
.error-page__suggestions h2 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--secondary); }
.error-page__suggestions ul { list-style: disc; padding-left: 1.25rem; }
.error-page__suggestions li { margin-bottom: 0.4rem; }
.error-page__suggestions a { color: var(--primary); font-size: 0.9rem; }

/* ── 31. Back To Top ────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 1.5rem; z-index: 500;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 1.2rem; font-weight: 700;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all var(--transition);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ── 32. Responsive ─────────────────────────────────────────── */
@media (min-width: 576px) {
  .posts-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-posts { display: grid; grid-template-columns: repeat(2, 1fr); }
  .cookie-banner__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 768px) {
  .main-nav { display: flex; align-items: center; flex: 1; justify-content: center; }
  .hamburger { display: none; }
  .header-cta { display: inline-flex; }
  .newsletter-inner { flex-direction: row; text-align: left; }
  .newsletter-text { flex: 1; }
  .contact-layout { flex-direction: row; align-items: flex-start; }
  .contact-info { flex: 1; }
  .contact-form-wrapper { flex: 1.2; }
  .about-mission { flex-direction: row; align-items: center; }
  .about-mission__image { flex: 1; }
  .about-mission__content { flex: 1; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .affiliate-banner__inner { flex-direction: row; align-items: center; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .blog-layout { flex-direction: row; }
  .blog-main { flex: 1; }
  .blog-sidebar { display: block; width: 300px; flex-shrink: 0; }
  .posts-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(5, 1fr); }
  .popular-posts { grid-template-columns: repeat(4, 1fr); }
  .sitemap-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .header-cta { display: none; }
  .products-grid { grid-template-columns: 1fr; }
}
