.tpl-layout-kids .sec-gallery{order:10}

/* --- KIDS SCHOOL OVERHAUL STYLES --- */
.tpl-layout-kids {
  font-family: 'Fredoka', sans-serif !important;
  background-color: #fffbf2 !important; /* Soft warm cream */
  background-image: radial-gradient(rgba(245,158,11,0.18) 1.5px, transparent 1.5px) !important;
  background-size: 24px 24px !important;
}

.tpl-layout-kids h1, .tpl-layout-kids h2, .tpl-layout-kids h3, .tpl-layout-kids h4, .tpl-layout-kids h5, .tpl-layout-kids h6, .tpl-layout-kids .tpl-brand, .tpl-layout-kids .tpl-nav-link {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 700 !important;
}

.tpl-layout-kids .tpl-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 4px dashed #f59e0b !important;
}

.tpl-layout-kids .tpl-hero {
  border-bottom: 8px dashed #ec4899;
}

.tpl-layout-kids .tpl-hero:before {
  background: linear-gradient(135deg, rgba(15,58,122,0.85) 0%, rgba(236,72,153,0.35) 100%) !important;
}

.tpl-layout-kids .tpl-pill {
  background: #ec4899 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  transform: rotate(-1.5deg);
  box-shadow: 0 4px 10px rgba(236,72,153,0.3);
}

.tpl-layout-kids .tpl-title {
  color: #fff !important;
  text-shadow: 2px 2px 0px #0f3a7a;
}

.tpl-layout-kids .tpl-hero-panel {
  border: 4px solid #f59e0b !important;
  border-radius: 28px !important;
  background: #fffefb !important;
  box-shadow: 0 20px 40px rgba(245,158,11,0.15) !important;
  transform: rotate(1.2deg);
}

.tpl-layout-kids .tpl-panel-head i {
  background: #fffbeb !important;
  color: #f59e0b !important;
  border: 2px dashed #f59e0b !important;
  border-radius: 50% !important;
}

.tpl-layout-kids .tpl-metric {
  background: #fff !important;
  border: 3px solid #bfdbfe !important;
  border-radius: 24px !important;
  text-align: center;
  box-shadow: 0 8px 0px #bfdbfe;
  transition: transform 0.2s;
}

.tpl-layout-kids .tpl-metric:nth-child(1) { border-color: #fbcfe8 !important; box-shadow: 0 8px 0px #fbcfe8; }

.tpl-layout-kids .tpl-metric:nth-child(2) { border-color: #fef08a !important; box-shadow: 0 8px 0px #fef08a; }

.tpl-layout-kids .tpl-metric:nth-child(3) { border-color: #bbf7d0 !important; box-shadow: 0 8px 0px #bbf7d0; }

.tpl-layout-kids .tpl-metric:hover {
  transform: translateY(-4px);
}

.tpl-layout-kids .tpl-trust-inner {
  border: 4px dashed #bfdbfe !important;
  border-radius: 28px !important;
  background: #fff !important;
}

.tpl-layout-kids .tpl-trust-item {
  background: #fffbf2 !important;
  border-radius: 20px !important;
  border: 2px solid #bfdbfe !important;
}

.tpl-layout-kids .tpl-trust-item:nth-child(even) {
  border-color: #fbcfe8 !important;
}

.tpl-layout-kids .tpl-signature-card {
  border-radius: 28px !important;
  border: 3px solid #fbcfe8 !important;
  background: #fff !important;
  box-shadow: 0 10px 0px #fbcfe8 !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tpl-layout-kids .tpl-signature-card:nth-child(2) {
  border-color: #bbf7d0 !important;
  box-shadow: 0 10px 0px #bbf7d0 !important;
  transform: rotate(1deg);
}

.tpl-layout-kids .tpl-signature-card:nth-child(3) {
  border-color: #fef08a !important;
  box-shadow: 0 10px 0px #fef08a !important;
  transform: rotate(-1deg);
}

.tpl-layout-kids .tpl-signature-card:nth-child(4) {
  border-color: #bfdbfe !important;
  box-shadow: 0 10px 0px #bfdbfe !important;
  transform: rotate(1.5deg);
}

.tpl-layout-kids .tpl-signature-card:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 14px 0px rgba(0,0,0,0.05) !important;
}

.tpl-layout-kids .tpl-card, .tpl-layout-kids .tpl-product {
  border: 3px solid #bfdbfe !important;
  border-radius: 28px !important;
  box-shadow: 0 12px 0px #bfdbfe !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tpl-layout-kids .tpl-card:hover, .tpl-layout-kids .tpl-product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 0px #bfdbfe !important;
}

.tpl-layout-kids .tpl-card-icon {
  background: #eff6ff !important;
  border: 2px dashed #bfdbfe !important;
}

/* Dynamic Text Contrast Fixes for Kids Layout */
.tpl-layout-kids .tpl-metric strong {
  color: #1e3a8a !important; /* Dark blue text */
}
.tpl-layout-kids .tpl-metric span {
  color: #4b5563 !important; /* Grey text */
}
.tpl-layout-kids .tpl-signature-card h3 {
  color: #0f172a !important;
}
.tpl-layout-kids .tpl-signature-card p {
  color: #475569 !important;
}
.tpl-layout-kids .tpl-card h3, .tpl-layout-kids .tpl-product h4 {
  color: #0f172a !important;
}
.tpl-layout-kids .tpl-card p, .tpl-layout-kids .tpl-product p {
  color: #475569 !important;
}

/* Contact Panel Override */
.tpl-layout-kids .tpl-contact {
  background: #fffbeb !important;
  color: #1e293b !important;
  border-top: 4px dashed #f59e0b !important;
}
.tpl-layout-kids .tpl-contact h2,
.tpl-layout-kids .tpl-contact h3,
.tpl-layout-kids .tpl-contact p,
.tpl-layout-kids .tpl-contact span,
.tpl-layout-kids .tpl-contact a {
  color: #0f172a !important;
}
.tpl-layout-kids .tpl-contact-card {
  border: 3px solid #bfdbfe !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 0px #bfdbfe !important;
}
.tpl-layout-kids .tpl-contact-card i {
  color: #f59e0b !important;
}
