/*
Theme Name: KidPediaPlay
Theme URI: https://kidpediaplay.com
Author: KidPediaPlay Team
Author URI: https://kidpediaplay.com
Description: A bilingual family activity and parenting platform covering indoor games, outdoor adventures, online fun, kids gear, and family life.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kidpediaplay
Tags: blog, education, family, kids, parenting, bilingual, responsive
*/

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  --mint: #4AC7A8;
  --mint-light: #B8F2E6;
  --mint-pale: #E8FAF5;
  --yellow: #FFE08A;
  --yellow-dark: #c89000;
  --yellow-pale: #FFFBEC;
  --pink: #FF8C94;
  --pink-dark: #A03040;
  --pink-pale: #FFF0F1;
  --teal-pale: #D4F5ED;
  --navy: #4B4E6D;
  --navy-light: #EEEEF4;
  --white: #fff;
  --text: #2D2F45;
  --muted: #6B7080;
  --border: #e4e4ec;
  --gap: 32px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ─────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────── */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-gap {
  height: var(--gap);
  background: var(--white);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--mint-light);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-kid   { font-size: 21px; font-weight: 900; color: var(--mint); }
.logo-pedia { font-size: 21px; font-weight: 900; color: var(--yellow-dark); }
.logo-play  { font-size: 21px; font-weight: 900; color: var(--pink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.current-menu-item {
  color: var(--navy);
  background: var(--mint-light);
}

.main-nav a.current-menu-item {
  color: var(--mint);
  font-weight: 700;
}

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

.lang-toggle {
  display: flex;
  background: var(--mint-light);
  border-radius: 20px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
}

.lang-toggle a,
.lang-toggle button {
  border: none;
  background: none;
  padding: 5px 13px;
  cursor: pointer;
  color: var(--navy);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}

.lang-toggle a.active,
.lang-toggle button.active {
  background: var(--mint);
  color: #fff;
  border-radius: 20px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--navy);
  padding: 4px;
}

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.hero-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 420px;
}

.hero-left { display: flex; flex-direction: column; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--navy);
  margin-bottom: 16px;
}

.hero-title em {
  color: var(--mint);
  font-style: normal;
}

.hero-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hero-cat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: block;
}

.hero-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 199, 168, 0.12);
  border-color: var(--mint);
}

.hero-cat-card .ico {
  font-size: 26px;
  margin-bottom: 6px;
}

.hero-cat-card p {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.hero-illustration {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ─────────────────────────────────────────
   ARTICLE / POST CARDS
───────────────────────────────────────── */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
}

.card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image.emoji-fallback {
  font-size: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}

.card-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
  flex: 1;
}

.card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.age-pill {
  display: inline-block;
  border: 1.5px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px;
  color: var(--navy);
  background: var(--white);
}

/* Featured card (middle card accent) */
.article-card.featured { border: 2px solid var(--mint); }

/* ─────────────────────────────────────────
   SECTION SHELLS
───────────────────────────────────────── */
.section-shell {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--navy);
}

.section-title .accent-pink  { color: var(--pink); }
.section-title .accent-mint  { color: var(--mint); }
.section-title .accent-yellow{ color: var(--yellow-dark); }
.section-title .accent-picks { color: #E03050; }

.see-all-btn {
  background: var(--white);
  border: 2px solid var(--text);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.15s;
  white-space: nowrap;
}

.see-all-btn:hover {
  background: var(--text);
  color: var(--white);
}

.view-all-btn {
  display: inline-block;
  margin-top: 2rem;
  background: var(--yellow);
  color: var(--navy);
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.view-all-btn:hover { opacity: 0.88; }

.view-all-btn.outline-pink {
  background: var(--white);
  color: var(--pink-dark);
  border: 2px solid var(--pink-dark);
}

/* ─────────────────────────────────────────
   SECTION COLOUR VARIANTS
───────────────────────────────────────── */

/* Indoor — white bg, pink accent */
.section-indoor { background: var(--white); }
.section-indoor .article-card        { border: 1.5px solid var(--border); }
.section-indoor .card-image          { background: var(--mint-pale); }
.section-indoor .article-card.featured { border: 2px solid var(--mint); }
.section-indoor .article-card.featured .card-image { background: var(--mint-light); }
.section-indoor .card-tag            { background: #FFE4E6; color: #A03040; }

/* Outdoor — white bg, mint accent */
.section-outdoor { background: var(--white); }
.section-outdoor .article-card       { border: 1.5px solid var(--border); }
.section-outdoor .card-image         { background: var(--teal-pale); }
.section-outdoor .article-card.featured { border: 2px solid var(--mint); }
.section-outdoor .article-card.featured .card-image { background: var(--mint-light); }
.section-outdoor .card-tag           { background: var(--mint-light); color: #063328; }

/* Online — white bg, yellow accent */
.section-online { background: var(--white); }
.section-online .article-card        { border: 1.5px solid var(--border); }
.section-online .card-image          { background: var(--yellow-pale); }
.section-online .article-card.featured { border: 2px solid var(--yellow); }
.section-online .article-card.featured .card-image { background: var(--yellow); }
.section-online .card-tag            { background: #FFF8DC; color: #7A4F00; }

/* Picks — pink bg */
.section-picks { background: var(--pink-pale); }
.section-picks .section-title        { color: #5C1020; }
.section-picks .article-card         { border: 2px solid #FFCDD1; }
.section-picks .card-image           { background: #FFD6DA; }
.section-picks .article-card.featured { border: 2px solid var(--pink); }
.section-picks .article-card.featured .card-image { background: var(--pink); }
.section-picks .card-tag             { background: var(--pink); color: #5C1020; }

/* ─────────────────────────────────────────
   FAMILY LIFE SECTION
───────────────────────────────────────── */
.section-family {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.family-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
}

.family-main-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.family-tabs-row {
  display: flex;
  align-items: center;
}

.tab-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.15s;
  flex-shrink: 0;
}

.tab-arrow:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.tabs-list {
  display: flex;
  margin: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}

.tabs-list::-webkit-scrollbar { display: none; }

.tab-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 0;
  margin-right: 32px;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}

.tab-item.active,
.tab-item:focus-visible {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: 800;
}

.family-cards-area {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
}

.family-tab-panel { display: none; }
.family-tab-panel.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.family-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}

.family-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.family-card-img {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  overflow: hidden;
}

.family-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-card-body { padding: 14px 16px 18px; }

.family-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.family-card-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--navy-light);
  color: var(--navy);
  display: inline-block;
}

.family-card-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.family-card-meta { font-size: 12px; color: var(--muted); }

.view-all-family {
  display: inline-block;
  margin: 0.5rem 2rem 2.5rem;
  background: var(--yellow);
  color: var(--navy);
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.view-all-family:hover { opacity: 0.88; }

/* ─────────────────────────────────────────
   NEWSLETTER SECTION
───────────────────────────────────────── */
.newsletter-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.newsletter-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
  color: var(--navy);
}

.newsletter-desc {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 14px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--mint);
}

.newsletter-form button {
  background: var(--yellow);
  color: var(--navy);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  transition: opacity 0.15s;
}

.newsletter-form button:hover { opacity: 0.88; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--white);
  border-top: 1.5px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.2rem 0;
  font-size: 12px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--mint); }

.footer-copy {
  font-size: 11px;
  color: #aaa;
}

/* ─────────────────────────────────────────
   SINGLE POST (ARTICLE PAGE)
───────────────────────────────────────── */
.article-page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--mint);
  font-weight: 600;
}

.breadcrumb .sep { color: var(--border); }

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.article-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--mint-pale);
  color: #0A3D2E;
}

.article-tag.outdoor { background: var(--teal-pale); color: #063328; }
.article-tag.indoor  { background: var(--mint-pale); color: #0A3D2E; }
.article-tag.online  { background: var(--yellow-pale); color: #7A4F00; }
.article-tag.family  { background: var(--navy-light); color: var(--navy); }
.article-tag.picks   { background: var(--pink-pale); color: #5C1020; }

.article-h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--navy);
  margin-bottom: 1rem;
}

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

.article-meta strong { color: var(--text); }

.age-badge {
  background: var(--navy-light);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.article-featured-image {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  object-fit: cover;
  display: block;
}

.article-featured-image.emoji-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  background: var(--mint-pale);
}

/* Article body typography */
.article-body { font-size: 16px; line-height: 1.8; color: var(--text); }

.article-body h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.article-body p { margin-bottom: 1.25rem; color: #3A3D55; }

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.5rem;
  list-style: initial;
}

.article-body li { margin-bottom: 0.5rem; color: #3A3D55; }

.article-body a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-tip {
  background: var(--mint-pale);
  border-left: 4px solid var(--mint);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  font-size: 15px;
  color: #0A3D2E;
  line-height: 1.6;
}

.article-tip strong { font-weight: 800; }

/* Article footer: tags + share */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.share-label { font-size: 13px; font-weight: 600; color: var(--muted); }

.share-btn {
  background: var(--navy-light);
  color: var(--navy);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  transition: background 0.15s;
}

.share-btn:hover { background: var(--mint-light); }

/* Related posts */
.related-posts {
  margin-top: 4rem;
}

.related-posts-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.4px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.related-card-image {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--mint-pale);
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-body { padding: 12px 14px; }

.related-card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 6px;
  background: var(--mint-pale);
  color: #0A3D2E;
}

.related-card-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

/* ─────────────────────────────────────────
   CATEGORY / ARCHIVE PAGE
───────────────────────────────────────── */
.category-hero {
  padding: 3.5rem 0 0;
  background: var(--mint-pale);
}

.category-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.category-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0F8060;
  margin-bottom: 12px;
}

.category-h1 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #0A3D2E;
  margin-bottom: 12px;
  line-height: 1.1;
}

.category-description {
  font-size: 16px;
  color: #1A6A52;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.category-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.category-stat-num {
  font-size: 32px;
  font-weight: 900;
  color: #0A3D2E;
  letter-spacing: -0.5px;
}

.category-stat-label {
  font-size: 12px;
  color: #2A7A5A;
  font-weight: 600;
  margin-top: 2px;
}

/* Filter bar */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.filter-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar-inner::-webkit-scrollbar { display: none; }

.filter-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  background: var(--mint-pale);
  color: #0A3D2E;
  flex-shrink: 0;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: var(--mint);
  background: var(--mint-light);
}

/* Category card grid */
.category-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
}

.category-card-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: var(--mint-pale);
  overflow: hidden;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body { padding: 16px 18px 20px; }

.category-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.category-card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--mint-pale);
  color: #0A3D2E;
}

.category-card-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.category-card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.category-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.category-card-age {
  border: 1.5px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px;
  color: var(--navy);
}

/* Pagination / load more */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.load-more-btn {
  background: var(--white);
  border: 2px solid var(--text);
  color: var(--text);
  padding: 13px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.15s;
}

.load-more-btn:hover {
  background: var(--text);
  color: var(--white);
}

.posts-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 3rem;
}

.posts-pagination a,
.posts-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  transition: all 0.15s;
}

.posts-pagination a:hover { border-color: var(--mint); color: var(--mint); }
.posts-pagination .current { background: var(--mint); color: var(--white); border-color: var(--mint); }

/* ─────────────────────────────────────────
   CONTACT PAGE
───────────────────────────────────────── */
.contact-page-top {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem 0;
}

.contact-page-top .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 8px;
}

.contact-h1 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--navy);
  padding-bottom: 2rem;
}

.contact-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.contact-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contact-methods { display: flex; flex-direction: column; gap: 1rem; }

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: border-color 0.15s;
}

.contact-method:hover { border-color: var(--mint); }

.contact-method-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-method-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.contact-method-value { font-size: 13px; color: var(--muted); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label { font-size: 13px; font-weight: 700; color: var(--text); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--mint);
}

.form-textarea { height: 130px; line-height: 1.6; }
.form-select { cursor: pointer; }

.form-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.form-note a {
  color: var(--mint);
  font-weight: 600;
}

.form-submit {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  transition: background 0.15s;
  align-self: flex-start;
}

.form-submit:hover { background: #3A3D5C; }

/* ─────────────────────────────────────────
   PAGE TEMPLATE (static pages)
───────────────────────────────────────── */
.page-content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.page-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--navy);
  margin-bottom: 2rem;
}

.page-body { font-size: 16px; line-height: 1.8; color: #3A3D55; }
.page-body h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 2rem 0 1rem; }
.page-body p  { margin-bottom: 1.25rem; }
.page-body ul { margin: 0 0 1.25rem 1.5rem; list-style: disc; }
.page-body li { margin-bottom: 0.5rem; }
.page-body a  { color: var(--mint); text-decoration: underline; }

/* ─────────────────────────────────────────
   SEARCH RESULTS
───────────────────────────────────────── */
.search-header {
  padding: 3rem 0 0;
  border-bottom: 1px solid var(--border);
}

.search-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.search-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}

.search-subtitle { color: var(--muted); font-size: 14px; }

.search-no-results {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
}

.search-no-results h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────
   404 PAGE
───────────────────────────────────────── */
.not-found-wrap {
  text-align: center;
  padding: 8rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.not-found-emoji { font-size: 72px; margin-bottom: 1.5rem; }
.not-found-title { font-size: 32px; font-weight: 900; color: var(--navy); margin-bottom: 12px; }
.not-found-desc  { color: var(--muted); font-size: 16px; margin-bottom: 2rem; line-height: 1.7; }
.not-found-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  padding: 13px 32px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.not-found-btn:hover { opacity: 0.88; }

/* ─────────────────────────────────────────
   WIDGET AREAS (sidebar etc.)
───────────────────────────────────────── */
.widget-area { display: flex; flex-direction: column; gap: 2rem; }

.widget {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--white);
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET (≤900px)
───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2.5rem 2rem;
    gap: 2rem;
  }

  .hero-illustration { height: 280px; }
  .hero-title { font-size: 30px; }

  .grid-3,
  .category-grid,
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .family-tab-panel.active { grid-template-columns: repeat(2, 1fr); }

  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }

  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--mint-light); padding: 1rem 2rem; gap: 4px; }

  .menu-toggle { display: flex; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE (≤600px)
───────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-title { font-size: 26px; }
  .hero-category-grid { grid-template-columns: repeat(2, 1fr); }

  .grid-3,
  .category-grid,
  .related-grid,
  .family-tab-panel.active { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  .category-stats { gap: 1.5rem; }
  .category-h1 { font-size: 28px; }
  .article-h1 { font-size: 26px; }
}
