/* Shared home page rules extracted from English, Traditional Chinese, and Arabic home styles. */
.nav-logo span { font-size: 1.7rem; }

.nav-links {
  display: flex; gap: 40px;
  list-style: none; padding: 0; margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-links a:hover { color: var(--green); }

.nav-cta {
  background: var(--green);
  color: white !important;
  padding: 9px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(76,175,125,0.3);
  transition: all 0.2s !important;
}

.nav-cta:hover { background: var(--green-dark) !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(76,175,125,0.4); }

.lang-btn {
  font-size: 0.78rem; font-weight: 800;
  padding: 5px 11px; border-radius: 50px;
  text-decoration: none;
  border: 2px solid transparent;
  color: var(--muted);
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
  background: none;
}

.lang-btn:hover { border-color: var(--green); color: var(--green); }

.lang-btn.active { background: var(--green); color: white; border-color: var(--green); }

.hero-bg-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-circles div {
  position: absolute;
  border-radius: 50%;
  opacity: 0.14;
  animation: drift 16s ease-in-out infinite;
}

.circle1 { width: 420px; height: 420px; background: var(--green); top: -120px; left: -110px; animation-delay: 0s; }

.circle2 { width: 320px; height: 320px; background: var(--orange); bottom: -90px; right: -70px; animation-delay: -5s; }

.circle3 { width: 220px; height: 220px; background: var(--yellow); top: 30%; right: 10%; animation-delay: -10s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.97); }
}

.hero-float img { width: 100%; height: auto; }

.float-1 { width: 180px; top: 12%; left: 4%; animation: floatY 5s ease-in-out infinite; }

.float-2 { width: 315px; top: 8%; right: 1%; animation: floatY 6s ease-in-out infinite; animation-delay: -2s; }

.float-3 { width: 165px; bottom: 10%; left: 6%; animation: floatY 4.5s ease-in-out infinite; animation-delay: -1s; }

.float-4 { width: 315px; bottom: 2%; right: 2%; animation: floatY 5.5s ease-in-out infinite; animation-delay: -3s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero-badge .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #E84855;
  box-shadow: 0 0 0 0 rgba(232,72,85,0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232,72,85,0.8); }
  70% { box-shadow: 0 0 0 10px rgba(232,72,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,72,85,0); }
}

.hero p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: #555;
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 32px;
}

.hero-emoji-row {
  font-size: 2.6rem;
  margin-bottom: 16px;
  letter-spacing: 8px;
  animation: wave 4s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 50px;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: 'Nunito', sans-serif;
  min-height: 48px;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.16); }

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

.btn-primary { background: var(--green); color: white; box-shadow: 0 6px 18px rgba(76,175,125,0.35); }

.btn-primary:hover { background: var(--green-dark); box-shadow: 0 14px 32px rgba(76,175,125,0.45); }

.btn-secondary { background: white; color: var(--text); border: 2px solid #E0D8CC; }

.btn-secondary:hover { border-color: var(--green); color: var(--green); }

.proof-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.proof-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.proof-divider {
  width: 1px; background: rgba(107,66,38,0.15);
  align-self: stretch;
}

.section-title .hl {
  color: var(--green);
  position: relative;
  display: inline-block;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  margin-bottom: 44px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  max-width: 960px;
  margin: 0 auto;
}

.channel-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: white;
  position: relative;
  height: 100%;
}

.channel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 3px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.3s;
}

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

.card-koko:hover::before { background: linear-gradient(135deg, var(--green), var(--yellow)); }

.card-arabic:hover::before { background: linear-gradient(135deg, var(--orange), var(--pink)); }

.card-header {
  padding: 32px 130px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  overflow: hidden;
  min-height: 238px;
}

.card-icon {
  width: 68px; height: 68px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.card-char-img {
  position: absolute;
  right: -6px;
  bottom: -4px;
  height: 130px;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.14));
  pointer-events: none;
  transition: transform 0.3s;
}

.channel-card:hover .card-char-img { transform: scale(1.08) rotate(-3deg); }

.card-koko .card-icon { background: var(--green); }

.card-arabic .card-icon { background: var(--orange); }

.card-tag {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}

.card-body {
  padding: 26px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-desc { color: #555; line-height: 1.7; margin-bottom: 24px; font-size: 0.98rem; }

.card-stats {
  display: flex;
  gap: 24px;
  margin-top: auto;
  margin-bottom: 26px;
  padding: 14px 0;
  border-top: 1px dashed rgba(107,66,38,0.12);
  border-bottom: 1px dashed rgba(107,66,38,0.12);
}

.stat { text-align: center; flex: 1; }

.stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 700; margin-top: 4px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 0;
  transition: gap 0.2s;
}

.channel-card:hover .card-link { gap: 14px; }

.card-koko .card-link { color: var(--green); }

.card-arabic .card-link { color: var(--orange); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,209,102,0.18), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon { transform: scale(1.15) rotate(-6deg); }

.feature-desc { color: #666; font-size: 0.95rem; line-height: 1.65; position: relative; }

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

.tab-btn {
  padding: 11px 28px;
  border-radius: 50px;
  border: 2px solid #E0D8CC;
  background: white;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
  min-height: 48px;
  display: inline-flex; align-items: center; gap: 6px;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: white;
  box-shadow: 0 6px 18px rgba(76,175,125,0.3);
}

.tab-btn.tab-arabic.active, .tab-btn.tab-arabic:hover {
  background: var(--orange); border-color: var(--orange);
  box-shadow: 0 6px 18px rgba(255,140,66,0.3);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto 40px;
  min-height: 90px;
}

.video-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  background: white;
}

.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #C8EDD8, #A8D5BE);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }

.video-card:hover .video-thumb img { transform: scale(1.06); }

.video-thumb::after {
  content: '▶';
  position: absolute;
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--green);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s, transform 0.25s;
}

.video-card:hover .video-thumb::after { opacity: 1; transform: scale(1); }

.video-info { padding: 16px 18px; background: white; }

.video-ep {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}

.video-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.4;
}

.view-more { text-align: center; }

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  counter-reset: step;
}

.rhythm-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  counter-increment: step;
  transition: transform 0.3s;
}

.rhythm-card:hover { transform: translateY(-4px); }

.rhythm-emoji { font-size: 2.4rem; margin-bottom: 12px; margin-top: 8px; }

.rhythm-desc { color: #666; font-size: 0.9rem; line-height: 1.55; }

.parents-content {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.parents-text > p {
  color: #555;
  line-height: 1.75;
  margin-bottom: 26px;
  font-size: 1.02rem;
}

.tip-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.tip-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.98rem;
  color: #444;
  line-height: 1.5;
  padding: 14px 16px;
  background: rgba(255,255,255,0.55);
  border-radius: 14px;
  border-left: 4px solid var(--green);
  transition: transform 0.2s, background 0.2s;
}

.tip-list li:hover { transform: translateX(4px); background: white; }

.tip-list li:nth-child(2) { border-left-color: var(--orange); }

.tip-list li:nth-child(3) { border-left-color: var(--yellow); }

.tip-list li:nth-child(4) { border-left-color: var(--blue); }

.tip-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }

.parents-visual {
  background: white;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.parents-visual::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 200px; height: 200px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.18;
}

.parents-visual > * { position: relative; z-index: 1; }

.parents-visual .big-emoji { font-size: 4.5rem; margin-bottom: 18px; display: block; }

.parents-visual > p { color: #666; font-size: 0.95rem; line-height: 1.65; margin-bottom: 4px; }

.newsletter-cta-btn {
  margin-top: 22px;
  padding: 16px 36px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background 0.2s, transform 0.2s;
  min-height: 48px;
  box-shadow: 0 4px 14px rgba(76,175,125,0.3);
  display: inline-flex; align-items: center; gap: 8px;
}

.newsletter-cta-btn:hover { background: var(--green-dark); transform: translateY(-2px); }

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-title {
  font-family: 'Baloo 2', cursive; font-size: 1.35rem;
  color: var(--brown); margin-bottom: 6px;
}

.modal-check.checked { border-color: var(--green); background: rgba(76,175,125,0.08); color: var(--green-dark); }

.modal-check.checked .check-dot {
  border-color: var(--green); background: var(--green);
}

.modal-submit {
  width: 100%; padding: 15px;
  background: var(--green); color: white; border: none;
  border-radius: 50px; font-weight: 800; font-size: 1rem;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(76,175,125,0.3);
  margin-top: 8px;
}

.modal-submit:hover { background: var(--green-dark); transform: translateY(-1px); }

@media (max-width: 600px) {
  .modal-box { padding: 28px 22px 24px; }
  .modal-checks { flex-direction: column; }
}

.faq-list {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}

.faq-item {
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] { border-color: var(--green); box-shadow: var(--shadow-sm); }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--green);
  transition: transform 0.25s;
  flex-shrink: 0;
  font-weight: 400;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 24px 22px;
  color: #555;
  line-height: 1.7;
  font-size: 0.98rem;
}

.about-inner { max-width: 720px; margin: 0 auto; }

.about .big-emoji { font-size: 4.5rem; margin-bottom: 22px; display: block; }

.about p {
  color: #555;
  line-height: 1.85;
  font-size: 1.06rem;
  margin-bottom: 18px;
}

.channels-logos {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brown);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.logo-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

footer::before {
  content: '🐾 🐾 🐾 🐾 🐾 🐾 🐾 🐾 🐾 🐾 🐾 🐾 🐾 🐾';
  position: absolute;
  top: 0; left: 0; right: 0;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 18px;
  color: rgba(255,209,102,0.25);
  padding: 12px 0;
  white-space: nowrap;
  overflow: hidden;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
  padding-top: 32px;
}

.footer-brand .nav-logo { color: var(--yellow); margin-bottom: 14px; display: inline-flex; }

.footer-brand p { font-size: 0.9rem; line-height: 1.75; color: #C8B8A8; max-width: 320px; }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  color: #C8B8A8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-col a:hover { color: white; padding-left: 4px; }

.footer-socials { display: flex; gap: 10px; margin-top: 16px; }

.footer-socials a {
  width: 44px; height: 44px;
  background: rgba(255,209,102,0.12);
  border: 1.5px solid rgba(255,209,102,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--yellow);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.footer-socials a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--brown);
  transform: translateY(-3px);
  padding-left: 0;
}

.footer-socials svg { width: 18px; height: 18px; display: block; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: #A89888;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.subscribe-inner {
  max-width: 560px;
  margin: 0 auto;
}

.subscribe-inner p {
  color: #555;
  font-size: 1.04rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.cta-bar {
  max-width: 700px;
  margin: 0 auto;
}

.cta-bar p {
  color: rgba(255,255,255,0.88);
  font-size: 1.06rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.btn-white {
  background: white;
  color: var(--green-dark);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.btn-white:hover { background: #f5fff8; box-shadow: 0 14px 32px rgba(0,0,0,0.22); }

.f-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.f-links a {
  color: #C8B8A8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.f-links a:hover { color: white; }

.f-copy {
  font-size: 0.82rem;
  color: #A89888;
}
