/* =========================================================
   Kiddy Craft — TEST.css (cleaned)
   Notes:
   - Loaded via functions.php (child theme)
   - Organized by: Tokens → Base → Layout → Components → Sections → Elementor
   ========================================================= */

/* Design tokens */
:root {
  --primary: #ff9f80;
  --secondary: #9ed9f5;
  --accent: #ffe28a;
  --dark: #374151;
  --muted: #6b7280;
  --light-bg: #fff7f2;
  --white: #ffffff;
  --max-width: 1120px;
}

/* Base + reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Mitr", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: #fefdfc;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar #site-header {
  top: 32px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body.admin-bar html {
  scroll-padding-top: 142px;
}

/* Layout primitives */
.section {
  padding: 3.5rem 1.25rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #f97373;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.6;
}

.section--soft {
  background: #fff7f2;
}

.section-kicker {
  font-size: .95rem;
  color: #334155;
  margin-bottom: .35rem;
}

.section .pill,
.section .hero-chip {
  background: #ffffff;
  border: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.9),        
    0 4px 12px rgba(15,23,42,0.06);
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .78rem;
  color: #6b7280;
  cursor: default;
  user-select: none;
}

.section .pill:hover,
.section .hero-chip:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.9),
    0 4px 12px rgba(15,23,42,0.06);
  transform: none !important;
}

/* Grid utilities */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1.25rem;
}

/* Header / Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255,247,242,0.78);
  border-bottom: 1px solid rgba(249,115,115,0.12);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none !important;
}

.brand:hover,
.brand:focus {
  text-decoration: none !important;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  background: linear-gradient(145deg,#ff9f80,#ffb8c6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text-main {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
}

.brand-text-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none !important;
  color: var(--dark);
  transition: filter .2s ease, text-shadow .2s ease, opacity .2s ease, color .2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  text-decoration: none !important;
  color: #f97373;
  filter: brightness(1.12);
  text-shadow: 0 0 14px rgba(249,115,115,0.30);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg,#ff9f80,#ffb8c6);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.7);
  text-decoration: none !important;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus {
  text-decoration: none !important;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(248,113,113,0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.22rem;
  background: transparent;
  border: 0;
  padding: 0.45rem;
  margin-left: 0.2rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: #f97373;
}

header a,
header a:hover,
header a:focus,
header a:visited {
  text-decoration: none !important;
}

header a,
header a:visited,
.nav a,
.nav a:visited,
.nav-links a,
.nav-links a:visited,
.brand a,
.brand a:visited {
  text-decoration: none !important;
  text-decoration-thickness: auto;
  text-underline-offset: 0;
}

header a:hover,
header a:focus,
.nav a:hover,
.nav a:focus,
.nav-links a:hover,
.nav-links a:focus {
  text-decoration: underline !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  filter: brightness(1.08);
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* Buttons / Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  background: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #4b5563;
  border: 1px dashed rgba(248,113,113,0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #ffffff;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.btn-primary,
a.btn.btn-primary {
  color: #ffffff !important;
}

.btn-primary {
  background: linear-gradient(135deg, #ff9f80, #ffb8c6);
  box-shadow: 0 12px 24px rgba(248, 113, 113, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: #ffffff !important;
  box-shadow: 0 16px 30px rgba(248, 113, 113, 0.55);
}

.btn-secondary {
  background: #ffffff;
  color: #4b5563;
  border: 1px solid rgba(248,113,113,0.25);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  color: #fb6a63 !important;
  box-shadow: 0 16px 30px rgba(248, 113, 113, 0.55);
}

.elementor a.btn-primary,
.elementor a.btn-primary:visited,
.elementor a.btn-primary:hover,
.elementor a.btn-primary:active,
.elementor a.btn-primary:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 18px;
  padding: 1.15rem 1.15rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

.card-tag {
  display: inline-block;
  font-size: .85rem;
  color: #fb7185;
  margin-bottom: .45rem;
}

.card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: .45rem;
}

.card-text {
  font-size: .85rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

/* Hero section */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(248,113,113,0.18);
  color: #fb6a63;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to bottom,#fb6a63,#f97373);
}

.hero-title {
  font-size: 1.95rem;
  line-height: 1.4;
  margin-bottom: 0.7rem;
  color: #111827;
}

.hero-title span {
  color: #f97373;
}

.hero-lead {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.hero-right-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 1.5rem 1.35rem 1.3rem;
  box-shadow: 0 18px 40px rgba(15,23,42,0.14);
  border: 1px solid rgba(148,163,184,0.22);
  overflow: hidden;
}

.hero-right-tag {
  font-size: 0.8rem;
  color: #fb6a63;
  margin-bottom: 0.4rem;
}

.hero-right-tag-emoji {
  font-size: 1.5rem;
  color: #fb6a63;
  margin-bottom: 0.4rem;
}

.hero-right-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.3rem;
  margin-bottom: 0.35rem;
  color: #111827;
}

.hero-right-body {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.hero-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid rgba(148,163,184,0.4);
  color: #4b5563;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  opacity: 0.3;
}

.hero-bg-1 {
  width: 130px;
  height: 130px;
  background: #9ed9f5;
  top: -45px;
  right: -45px;
}

.hero-bg-2 {
  width: 120px;
  height: 120px;
  background: #ffe28a;
  bottom: -40px;
  left: -35px;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Services section */
.service-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #111827;
}

.service-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  max-width: 640px;
  margin-bottom: 1.2rem;
}

.service-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg,#ff9f9f 0%, #ffd6df 100%);
  padding: 3.2rem 0;
}

.cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.2rem;
  align-items: center;
}

.cta-title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.35rem, 3.2vw, 2.00rem);
  line-height: 1.12;
  font-weight: 450;
  color: #fff;
  text-shadow: 0 12px 30px rgba(0,0,0,0.14);
}

.cta-title-soft {
  font-weight: 450;
  opacity: 0.75;
}

.cta-lead,.cta-note {
  font-size: 1.0rem;
  margin: 0 0 0.9rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.75;
  max-width: 56ch;
}

.cta-note {
  margin-bottom: 0;
  opacity: 0.92;
}

.cta-card-main {
  background: #fff;
  border-radius: 22px;
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
  border: 1px solid rgba(15,23,42,0.06);
}

.cta-card-title {
  margin: 0 0 0.6rem;
  font-size: 1.10rem;
  font-weight: 600;
  color: var(--dark);
}

.cta-card-lead {
  font-size: 1.00rem;
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.5;
}

.cta-linebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.22);
}

.cta-linebox-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.cta-line-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(34,197,94,0.22);
  overflow: hidden;
}

.cta-line-badge .cta-line-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.cta-line-meta {
  min-width: 0;
}

.cta-line-label {
  font-size: 1.05rem;
  color: rgba(17,24,39,0.55);
  font-weight: 500;
}

.cta-line-id {
  font-size: 1.05rem;
  font-weight: 500;
  color: #0f5132;
}

.cta-line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  background: #14b87a;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(20,184,122,0.22);
  transition: filter .2s ease, transform .2s ease;
}

.cta-line-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.cta-chips {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cta-chip {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,0.08);
  color: rgba(17,24,39,0.70);
  font-size: 0.82rem;
  font-weight: 400;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(15,23,42,0.08);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 2.5rem;
}

.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 550;
  color: var(--dark);
  margin: 0 0 0.6rem;
}

.footer-brand-subtitle {
  font-size: 0.85rem;
  color: var(--dark);
  margin: 0 0 0.6rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.footer-col h4 {
  margin: 0 0 0.9rem;
  font-size: 1.10rem;
  font-weight: 400;
  color: var(--dark);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--dark);
  text-decoration: none !important;
  font-size: 0.8rem;
  opacity: 0.9;
  transition: opacity .2s ease, filter .2s ease;
}

.footer-links a:hover {
  opacity: 1;
  filter: brightness(1.08);
}

.footer-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-meta a {
  text-decoration: none;
  color: inherit;
}

.footer-meta a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1rem 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(15,23,42,0.06);
}

/* =========================================================
   Resources / Knowledge Hub (Elementor)
   Scope: .section--resources only
   Uses your classes:
   - section-inner, section-kicker, section-title, section-lead
   - blog-grid, blog-card, blog-title, blog-meta, blog-excerpt, blog-readmore
   ========================================================= */

/* Section spacing */
#resources.section--resources,
.section--resources{
  padding: 56px 0;
}

/* Section header */
.section--resources .section-kicker{
  font-size: .95rem;
  color: #334155;
  margin: 0 0 .35rem 0;
}

.section--resources .section-title{
  letter-spacing: -0.02em !important;
  margin: 0 0 10px 0 !important;
  font-size: 1.7rem;
  font-weight: 600;
  color: #f97373;
}

.section--resources .section-lead{
  margin: 0 0 22px 0 !important;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 680px !important;
  line-height: 1.6;
}

/* Loop grid layout (Elementor Loop Container) */
.section--resources .blog-grid .elementor-loop-container{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch;
}

@media (max-width: 1024px){
  .section--resources .blog-grid .elementor-loop-container{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px){
  .section--resources .blog-grid .elementor-loop-container{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Card */
.section--resources .blog-card{
  background: #ffffff !important;
  border: 1px solid rgba(15,23,42,.06) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  box-shadow: 0 18px 34px rgba(15,23,42,.08) !important;

  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Normalize spacing inside card (Elementor often adds margins) */
.section--resources .blog-card :is(h1,h2,h3,h4,h5,h6,p,div,ul,ol){
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.section--resources .blog-card > * + *{
  margin-top: 10px !important;
}

/* -------------------------
   Title (IMPORTANT FIX)
   Elementor prints the real text inside .elementor-heading-title
   so we style that element, not only the wrapper.
   ------------------------- */

/* Wrapper: keep clean */
.section--resources .blog-title{
  margin: 0 !important;
}

/* Actual heading text */
.section--resources .blog-title .elementor-heading-title{
  font-size: 1.15rem !important;
  font-weight: 450 !important;
  line-height: 1.35 !important;
  /* letter-spacing: -0.01em; */
  margin: 0 !important;
}

/* Title link */
.section--resources .blog-title .elementor-heading-title a{
  color: #0f172a !important;
  text-decoration: none !important;
}
.section--resources .blog-title .elementor-heading-title a:hover{
  color: #f97373 !important;
}

/* Meta */
.section--resources .blog-meta{
  margin: 0 !important;
  font-size: 12.5px !important;
  color: #9ca3af !important;
}

/* Excerpt */
.section--resources .blog-excerpt{
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #4b5563 !important;
}

/* Push readmore to bottom */
.section--resources .blog-readmore{
  margin-top: auto !important;
  padding-top: 10px;
}

/* Read more link / Elementor button (single source of truth) */
.section--resources .blog-readmore a,
.section--resources .blog-readmore .elementor-button{
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;

  display: inline-block;
  color: #16a34a !important;
  font-weight: 450;
  font-size: 16px;
  text-decoration: none !important;
}

/* Make sure text inside Elementor button follows */
.section--resources .blog-readmore .elementor-button-text{
  color: inherit !important;
  opacity: 1 !important;
}

/* Hover */
.section--resources .blog-readmore a:hover,
.section--resources .blog-readmore .elementor-button:hover{
  color: #16a34a !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* Fix: visited links fading/disappearing */
.section--resources .blog-readmore a:visited,
.section--resources .blog-readmore .elementor-button:visited{
  color: #16a34a !important;
  opacity: 1 !important;
}

/* Optional: keep visited state same on hover */
.section--resources .blog-readmore a:hover:visited,
.section--resources .blog-readmore .elementor-button:hover:visited{
  color: #16a34a !important;
}

/* Mobile typography tweaks */
@media (max-width: 640px){
  .section--resources .blog-title .elementor-heading-title{
    font-size: 1.0rem !important;
  }
  .section--resources .blog-excerpt{
    font-size: 13.5px !important;
  }
}

/* WordPress / Elementor state helpers */
.current-menu-item > a,
.current_page_item > a,
.current-menu-ancestor > a {
  text-decoration: none !important;
}

/* Responsive / breakpoints */
@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    justify-content: flex-start;
    padding: 0.75rem 1rem 1rem;
    background: rgba(255,247,242,0.92);
    border-bottom: 1px solid rgba(249,115,115,0.12);
    backdrop-filter: blur(18px);
  }

  header.is-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.65rem 0.6rem;
    border-radius: 12px;
  }

  .site-nav a:hover,
    .site-nav a:focus {
    background: rgba(249,115,115,0.10);
    text-shadow: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }
}

@media (min-width: 1025px) {
  .section--resources .elementor-loop-container.elementor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: minmax(0,1fr);
    gap: 2rem;
  }

  .grid-3, .grid-4 {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2.3rem 1.1rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-top: 2.2rem;
  }
}

@media (max-width: 980px) {
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .cta-title {
    max-width: 20ch;
  }
}

@media (max-width: 960px) {
  header.nav-open .nav-inner {
    flex-wrap: wrap;
  }

  header.nav-open nav {
    display: block !important;
    width: 100%;
    order: 10;
    margin-top: .6rem;
  }

  header.nav-open nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    padding: .8rem;
    background: rgba(255,247,242,0.92);
    border: 1px solid rgba(249,115,115,0.14);
    border-radius: 16px;
  }

  header.nav-open .nav-cta {
    display: inline-flex !important;
    order: 11;
    margin-top: .6rem;
  }
}

@media (max-width: 1024px) {
  .section--resources .blog-grid .elementor-loop-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .section--resources .blog-grid .elementor-loop-container {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 1025px) {
  .section--resources .elementor-loop-container.elementor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar #site-header {
    top: 46px;
  }
}

@media (max-width: 782px) {
  body.admin-bar html {
    scroll-padding-top: 156px;
  }
}

/* =========================================================
   Knowledge Hub – Category Navigation (Glow Buttons)
   ========================================================= */

.kb-topics{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 20px 0 36px;
}

/* Glow button base */
.kb-topics a{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;
  border-radius: 999px;

  background: #ffffff;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;

  border: 1px solid rgba(248, 113, 113, 0.25);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 10px 28px rgba(15, 23, 42, 0.06);

  transition:
    transform .18s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    color .22s ease;
}

/* soft glow layer */
.kb-topics a::before{
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(248, 113, 113, 0.28) 0%,
    rgba(248, 113, 113, 0.00) 60%
  );
  opacity: 0;
  filter: blur(10px);
  transition: opacity .22s ease;
  z-index: -1;
}

.kb-topics a:hover{
  transform: translateY(-1px);
  border-color: rgba(248, 113, 113, 0.55);
  color: #0f172a;

  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 16px 44px rgba(248, 113, 113, 0.18),
    0 12px 28px rgba(15, 23, 42, 0.10);
}

.kb-topics a:hover::before{
  opacity: 1;
}

.kb-topics a.is-active{
  background: linear-gradient(180deg, rgba(255, 228, 230, 0.92), rgba(255, 255, 255, 1));
  border-color: rgba(248, 113, 113, 0.65);
  color: #0f172a;

  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 18px 52px rgba(248, 113, 113, 0.22),
    0 12px 28px rgba(15, 23, 42, 0.10);
}

@media (max-width: 640px){
  .kb-topics{
    gap: 8px 10px;
    margin-bottom: 28px;
  }
  .kb-topics a{
    padding: 9px 14px;
    font-size: 0.88rem;
  }
}

/* Fix: prevent visited links from fading/disappearing (Elementor Button) */
.kb-topics a:visited{
  color: #334155 !important;
  opacity: 1 !important;
}

.kb-topics a:visited .elementor-button-text{
  color: inherit !important;
  opacity: 1 !important;
}

/* (Optional) keep hover text color consistent even after visited */
.kb-topics a:hover,
.kb-topics a:hover:visited{
  color: #0f172a !important;
}

.kb-topics .elementor-button,
.kb-topics .elementor-button:visited{
  color: #334155 !important;
  opacity: 1 !important;
}

/* =========================================================
   Kiddy Craft — Single Post + CTA (FINAL, cleaned)
   Purpose:
   - Replace ALL old "Single Post – Knowledge Hub" + "CTA (Single Post)" blocks in TEST.css
   - Fix: post-inner width too narrow, typography hierarchy, CTA border alignment, 65/35 layout,
          secondary button smaller, hide chips
   How to use:
   1) Open TEST.css
   2) DELETE these old blocks (everything related to):
      - "Single Post – Knowledge Hub"
      - "CTA (Single Post)"
      - any "Polish pass / HOTFIX / FINAL FIX" you previously appended
   3) Paste this whole file content at the END of TEST.css (or merge into the same place)
   ========================================================= */

/* =========================================================
   1) Single Post – Knowledge Hub (layout + typography)
   Required Elementor CSS Class on the outer container:
   - post-shell  (for the whole post section)
   - post-inner  (for the inner wrapper that holds title/meta/content)
   - post-title  (Post Title widget wrapper)
   - post-meta   (Post Info widget wrapper)
   - post-featured (Featured Image wrapper)
   - post-content  (Post Content widget wrapper)
   ========================================================= */

.post-shell{
  padding: 56px 0 72px;
}

/* IMPORTANT: make post-inner match overall site width */
.post-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Make the reading column comfortable (centered) */
.post-title,
.post-meta,
.post-featured,
.post-content{
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Title */
.post-title .elementor-heading-title{
  margin: 0 !important;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #0f172a;
}

/* Meta */
.post-meta{
  margin-top: 12px;
  font-size: .92rem;
  color: #64748b;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.post-meta a{
  color: inherit;
  text-decoration: none;
}
.post-meta a:hover{
  color: #f97373;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Featured image */
.post-featured{
  margin-top: 22px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15,23,42,.10);
}
.post-featured img{
  width: 100%;
  height: auto;
  display: block;
}

/* Content typography */
.post-content{
  margin-top: 22px;
  color: #334155;
  font-size: 0.85rem;
  line-height: 1.9;
}

.post-content p{ margin: 0 0 18px 0; }

.post-content h2{
  margin: 34px 0 12px;
  font-size: 1.00rem;
  line-height: 1.28;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.post-content h3{
  margin: 24px 0 10px;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #0f172a;
}

.post-content ul,
.post-content ol{
  margin: 0 0 18px 20px;
  padding: 0;
}
.post-content li{ margin: 8px 0; }
.post-content li::marker{ color: rgba(249,115,115,0.8); }

/* Mobile */
@media (max-width: 640px){
  .post-shell{ padding: 44px 0 60px; }
  .post-inner{ padding: 0 .9rem; }
  .post-title .elementor-heading-title{ line-height: 1.22; }
  .post-content{ font-size: 1.02rem; line-height: 1.85; }
}


/* =========================================================
   2) CTA (Single Post) — Soft, aligned, 65/35
   Required HTML structure (classes):
   - cta-section cta-section--post
     - cta-inner
       - cta-left
       - cta-card
         - cta-actions
           - a.cta-line-btn (primary)
           - a.cta-secondary-btn (secondary)
         - (optional) .cta-footnote
   Notes:
   - If your old HTML still has .cta-chips, this CSS will hide it.
   ========================================================= */

.cta-section.cta-section--post{
  padding: 2.2rem 0;
  background: none !important;
}

.cta-section.cta-section--post .cta-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0rem;

  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) !important; /* ~65/35 */
  gap: 0 !important;

  border-radius: 24px !important;
  border: 1px solid rgba(248,113,113,0.22) !important; /* thin pink outer frame */
  box-shadow: 0 18px 44px rgba(15,23,42,.08) !important;
  overflow: hidden !important;
  align-items: stretch !important;
}

/* Left side */
.cta-section.cta-section--post .cta-left{
  padding: 28px 26px !important;
  background: linear-gradient(180deg, rgba(255,228,230,0.9), rgba(255,241,242,0.55)) !important;
  color: #0f172a !important;
  /*border-radius: 24px !important;*/
}

/* Make left text readable (not white) */
.cta-section.cta-section--post .cta-left .cta-title,
.cta-section.cta-section--post .cta-left .cta-lead,
.cta-section.cta-section--post .cta-left .cta-note{
  color: #0f172a !important;
  text-shadow: none !important;
}

.cta-section.cta-section--post .cta-left .cta-title{
  margin: 0 0 10px 0 !important;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem) !important;
  line-height: 1.22 !important;
  font-weight: 450 !important;
}

.cta-section.cta-section--post .cta-left .cta-lead,
.cta-section.cta-section--post .cta-left .cta-note{
  margin: 0 0 12px 0 !important;
  line-height: 1.75 !important;
  color: rgba(15,23,42,0.85) !important;
}

/* Right side (card) */
.cta-section.cta-section--post .cta-card{
  padding: 26px 24px !important;
  background: #fff !important;
  border-left: 1px solid rgba(15,23,42,0.06) !important; /* subtle divider */
  box-shadow: none !important;
}

/* Actions: stack buttons */
.cta-section.cta-section--post .cta-actions{
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 10px !important;
}

/* Primary button (LINE) — keep your current style, just make sure it's full width */
.cta-section.cta-section--post .cta-line-btn{
  width: 100% !important;
  justify-content: center !important;
}

/* Secondary button — smaller than primary */
.cta-section.cta-section--post .cta-secondary-btn{
  width: 100% !important;
  justify-content: center !important;

  padding: 0.58rem 0.95rem !important;
  border-radius: 14px !important;
  font-size: 0.8rem !important;
  font-weight: 380 !important;

  background: #ffffff !important;
  border: 1px solid rgba(249,115,115,0.8) !important;
  color: rgba(15,23,42,0.88) !important;
  text-decoration: none !important;

  transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}

.cta-section.cta-section--post .cta-secondary-btn:hover{
  border-color: rgba(249,115,115,0.45) !important;
  filter: brightness(1.02);
  transform: translateY(-1px);
}

/* Hide chips if they still exist in HTML */
.cta-section.cta-section--post .cta-chips{
  display: none !important;
}

/* Optional small footnote line under buttons */
.cta-section.cta-section--post .cta-footnote{
  margin-top: 10px !important;
  font-size: 0.92rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
}

/* Responsive: stack columns */
@media (max-width: 900px){
  .cta-section.cta-section--post .cta-inner{
    grid-template-columns: 1fr !important;
  }
  .cta-section.cta-section--post .cta-card{
    border-left: 0 !important;
    border-top: 1px solid rgba(15,23,42,0.06) !important;
  }
}

/* =========================================================
   FINAL OVERRIDE — FIX Thai word wrapping on Mobile
   Scope: Knowledge Hub / Resources (Loop Grid cards)
   Target: iOS Safari / Mobile browsers
   ========================================================= */

@media (max-width: 767px){

  /* 1) RESET การตัดคำทั้งหมดใน section นี้ (override theme + Elementor) */
  .section--resources,
  .section--resources *{
    text-wrap: normal !important;
    -webkit-text-wrap: normal !important;

    word-break: normal !important;
    overflow-wrap: normal !important;

    white-space: normal !important;
    line-break: loose !important;

    hyphens: none !important;
    -webkit-hyphens: none !important;
  }

  /* 2) เจาะจง Title + Excerpt ที่ Elementor render จริง */
  .section--resources .elementor-widget-theme-post-title .elementor-heading-title,
  .section--resources .elementor-widget-theme-post-title .elementor-heading-title a,
  .section--resources .elementor-widget-theme-post-excerpt,
  .section--resources .elementor-widget-theme-post-excerpt .elementor-widget-container,
  .section--resources .elementor-widget-theme-post-excerpt p{
    display: block !important;
    white-space: normal !important;
  }

  /* 3) FIX flex / grid bug บน iOS (สำคัญมาก) */
  .section--resources .blog-card,
  .section--resources .blog-card *{
    min-width: 0 !important;
  }

  /* 4) อนุญาตให้ “เฉพาะลิงก์ / URL” แตกบรรทัดได้ (กันล้นการ์ด) */
  .section--resources a[href],
  .section--resources code,
  .section--resources pre{
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-break: auto !important;
  }
}

/* ===============================
   FIX: Thai word wrapping on Mobile
   Target: Loop Grid post title
   =============================== */

@media (max-width: 767px) {

  /* ตัวครอบ title */
  .section--resources
  .blog-card
  .blog-title,
  
  /* h3 */
  .section--resources
  .blog-card
  .blog-title h3,
  
  /* link */
  .section--resources
  .blog-card
  .blog-title h3 a {
    display: block !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-break: auto !important;
  }

  /* กัน flex บีบ */
  .section--resources
  .blog-card {
    flex-wrap: wrap !important;
  }

}

/* =========================================
   FIX THAI WRAP (Tablet/Mobile + narrow width)
   Knowledge Hub / Loop Grid title
   - Stop breaking Thai words mid-word
   - Use proper flex min-width:0 instead
   ========================================= */

/* ครอบช่วงกว้างที่เริ่มแคบ (รวม chrome ย่อหน้าต่าง + มือถือ) */
@media (max-width: 1024px) {

  /* 1) คืนค่าให้ "ตัดบรรทัดแบบธรรมชาติของภาษาไทย" */
  .section--resources .blog-card .blog-title .elementor-heading-title,
  .section--resources .blog-card .blog-title .elementor-heading-title a {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;     /* สำคัญ: ห้าม anywhere */
    line-break: auto !important;
    hyphens: none !important;
  }

  /* 2) ถ้าการ์ด/inner เป็น flex ให้ยอม "ยืด-หด" ได้ถูกต้อง */
  .section--resources .blog-card,
  .section--resources .blog-card .e-con-inner,
  .section--resources .blog-card .elementor-widget-wrap {
    min-width: 0 !important;              /* จุดจบของ flex บีบแล้วทำให้ต้องตัดคำ */
  }

  /* 3) กัน title/link โดนบีบ */
  .section--resources .blog-card .blog-title,
  .section--resources .blog-card .blog-title * {
    min-width: 0 !important;
  }
}

/* (Optional) ถ้าบางเครื่องยังพยายามตัดแปลก ๆ ให้บังคับเฉพาะมือถืออีกชั้น */
@media (max-width: 767px) {
  .section--resources .blog-card .blog-title .elementor-heading-title a {
    overflow-wrap: break-word !important; /* ใช้ break-word แบบปลอดภัยกว่า anywhere */
  }
}

/* =========================
   WHY KIDDY CRAFT (Our Approach) — CLEAN FINAL
   Replace ALL previous WHY section blocks with this ONE.
   ========================= */

.section--why{
  position: relative;
  z-index: 0; /* สร้าง stacking context */
  padding: 0 0 50px;
  margin-block-end: 75px;
}

/* Soft background decor */
.section--why::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(900px 380px at 20% 0%, rgba(249,115,115,.14), transparent 60%),
    radial-gradient(800px 360px at 90% 30%, rgba(249,115,115,.10), transparent 55%);
  opacity: .85;
  pointer-events:none;
  z-index: -1;   /* ⭐ สำคัญ */
}

/* Soft fade-out to blend section edge (no hard divider lines) */
.section--why::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-10px;
  height: 300px;
  background: linear-gradient(
  to top,
  rgba(249,115,115,.15),
  rgba(249,115,115,.06),
  rgba(249,115,115,0)
  );
  pointer-events:none;
  z-index: -1;   /* ⭐ สำคัญ */
}

/* Wrapper */
.section--why .why-wrap{
  position: relative;
}

/* ===== Head (match cards width) ===== */
.section--why .why-head{
  position: relative;
  max-width: 1200px;                 /* key: align with cards */
  margin: 0 auto 0 auto;
  padding: 20px 20px;
  text-align: left;
}

/* Kill nav header background bleed */
.section--why header.why-head{
  background: none !important;
  background-color: transparent !important;
}
.section--why header.why-head{
  background-image: linear-gradient(
    to bottom,
    rgba(249,115,115,.10),
    rgba(249,115,115,0)
  );
  border: none;
  box-shadow: none;
}
.section--why header.why-head{
  position: relative;
  z-index: 1;
}

.section--why .why-grid{
  position: relative;
  z-index: 2;
}

.section--why .why-kicker{
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  color: #475569;
  letter-spacing: .02em;
}

.section--why .why-title{
  margin: 0 0 12px 0;
  font-size: 2.05rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.section--why .why-heart{
  color: #f97373;
  margin-right: .35rem;
}

.section--why .why-brand{
  color: #f97373;
  font-weight: 450;
}

.section--why .why-lead{
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #475569;
  max-width: 760px;                  /* key: keep readable */
}

/* ===== Promise badges (NOT buttons) ===== */
.section--why .why-promise{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.section--why .why-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 0;                 /* not a pill button */
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: .98rem;
  line-height: 1.55;
  color: #475569;
}

.section--why .why-badge-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(249,115,115,.28);
  box-shadow: 0 6px 14px rgba(15,23,42,.08);
  border: 1px solid rgba(249,115,115,.18);
}

/* ===== Cards grid ===== */
.section--why .why-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 8px;
}

.section--why .why-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 22px;
  padding: 18px 18px 16px 18px;
  box-shadow: 0 18px 34px rgba(15,23,42,.08);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.section--why .why-card::before{
  content:"";
  position:absolute;
  inset: -2px;
  background:
    radial-gradient(520px 220px at 10% 0%, rgba(249,115,115,.14), transparent 60%),
    radial-gradient(420px 200px at 100% 25%, rgba(249,115,115,.10), transparent 60%);
  opacity: .55;
  pointer-events:none;
}

.section--why .why-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(15,23,42,.12);
  border-color: rgba(249,115,115,.22);
}

.section--why .why-card-top{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
}

.section--why .why-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(249,115,115,.12);
  border: 1px solid rgba(249,115,115,.18);
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
  font-size: 20px;
}

.section--why .why-eyebrow{
  margin: 0;
  font-size: 1rem;
  color: #f97373;
  font-weight: 450;
  letter-spacing: .01em;
}

.section--why .why-card-title{
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #0f172a;
  position: relative;
}

.section--why .why-card-text{
  margin: 0 0 12px 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #475569;
  position: relative;
}

/* Bullets */
.section--why .why-bullets{
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: .95rem;
  line-height: 1.6;
  position: relative;
}

.section--why .why-bullets li{
  margin: 0;
}

.section--why .why-bullets li + li{
  margin-top: 8px;
}

/* ===== Bottom note (soft, less “statement-y”) ===== */
.section--why .why-note{
  margin: 16px auto 0 auto;
  max-width: 1200px;
  padding: 0 8px;
}

.section--why .why-note-inner{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 14px 28px rgba(15,23,42,.06);
}

.section--why .why-note-title{
  margin: 0 0 6px 0;
  font-size: 1.2rem;
  font-weight: 450;
  color: #334155;
  letter-spacing: .01em;
}

.section--why .why-note-quote{
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .section--why{ padding: 56px 0 52px; }
  .section--why .why-title{ font-size: 1.85rem; }
  .section--why .why-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px){
  .section--why{ padding: 44px 0 46px; }
  .section--why .why-title{ font-size: 1.55rem; }
  .section--why .why-lead{ font-size: 1rem; }
  .section--why .why-grid{ grid-template-columns: 1fr; }
  .section--why .why-note-inner{ border-radius: 16px; }
  .section--why .why-badge{ font-size: .98rem; }
  .section--why .why-note-quote{ font-size: .98rem; }
}

/* =========================
   WHY – Belief note (Soft Center)
   ========================= */

/* ครอบทั้งหมดให้อยู่กึ่งกลาง */
.section--why .why-note,
.section--why .why-note-inner{
  text-align: center;
}

/* จำกัดความกว้าง เพื่อให้อ่านสบาย */
.section--why .why-note-inner{
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;   /* sweet spot สำหรับข้อความยาว */
  padding-left: 12px;
  padding-right: 12px;
}

/* หัวข้อ: ชัด แต่ไม่แข็ง */
.section--why .why-note-title{
  margin-bottom: 6px;
  font-size: 1.1 rem;
  font-weight: 450;
  letter-spacing: .01em;
  color: #f97373;
}

/* ประโยคหลัก: นุ่ม อ่านลื่น */
.section--why .why-note-quote{
  margin: 0 auto;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
}

/* มือถือ: ลดขนาดนิดนึง */
@media (max-width: 767px){
  .section--why .why-note-inner{
    max-width: 92%;
  }

  .section--why .why-note-quote{
    font-size: .98rem;
  }
}
