/* cap-kids.css */

/* ── Page wrapper ── */
.kids-page {
  min-height: 100vh;
  background-color: #062726;
  display: flex;
  flex-direction: column;
}

/* ── Hero ── */
.kids-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
  overflow: hidden;
  background: #000;
}

.kids-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kids-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 50%, rgba(0, 0, 0, 0.4));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 2rem;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .kids-hero__overlay {
    padding: 3rem 4rem;
  }
}

.kids-hero__title-block {
  margin: 0 0 4rem 4rem;
}

@media (min-width: 768px) {
  .kids-hero__title-block {
    margin: 0 0 5rem 6rem;
  }
}

@media (min-width: 1024px) {
  .kids-hero__title-block {
    margin: 0 0 6rem 9rem;
  }
}

.kids-hero__title-small {
  display: block;
  font-family: 'Muli', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
}

.kids-hero__title-large {
  font-family: 'IvyJournal', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.2;
  color: rgb(255, 255, 255);
  margin: 0;
  letter-spacing: -0.02em;
}

/* ── Main content block ── */
.kids-main {
  flex: 1;
  width: 100%;
  background-color: #F2F3F4;
  padding: 2rem 1.5rem 3rem;
}

.kids-main__inner {
  max-width: 800px;
  margin: 0 auto;
}

.kids-heading {
  font-family: 'IvyJournal', serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  color: rgb(0, 68, 57);
  margin: 0 0 1rem;
}

.kids-text {
  font-family: 'Muli', serif;
  font-size: 1rem;
  line-height: 1.65;
  color: rgb(41, 41, 41);
  margin: 0;
}

/* ── Video section ── */
.kids-video-section {
  width: 100%;
  background-color: #F2F3F4;
  padding: 0;
  display: flex;
  justify-content: center;
}

.kids-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Preview button (visible when NOT playing) */
.kids-video-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #000;
  display: block;
}

.kids-video-btn.is-hidden {
  display: none;
}

.kids-video-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kids-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  pointer-events: none;
}

.kids-video-btn:hover .kids-play-icon {
  background: #fff;
}

.kids-play-icon::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 24px solid #062726;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

/* iframe (hidden until playing) */
.kids-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

.kids-video-iframe.is-playing {
  display: block;
}
