/* Gentle Genius homepage learner showcase carousel */
/*
 * Homepage typography guardrails.
 * These values intentionally match the compact production hero and use
 * !important because the shared site stylesheet also declares hero type
 * with !important. Keeping them here makes glass and production render
 * consistently even when their shared CSS versions differ.
 */
.home-hero #home-title {
  max-width: none !important;
  font-size: clamp(1.75rem, 2.45vw, 2.2rem) !important;
  line-height: 1.12 !important;
  margin: 0 0 14px !important;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.home-hero > .home-hero-grid > div:first-child > h2 {
  font-size: clamp(1.15rem, 1.65vw, 1.4rem) !important;
  line-height: 1.25 !important;
  margin: 0 0 14px !important;
}

.home-hero > .home-hero-grid > div:first-child > p {
  font-size: clamp(0.9rem, 1vw, 1rem) !important;
  line-height: 1.55 !important;
  margin-bottom: 1rem !important;
}

.home-hero .home-panel > h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem) !important;
  line-height: 1.18 !important;
  margin: 0 0 12px !important;
}

.home-hero .home-panel > h3 {
  font-size: clamp(1rem, 1.15vw, 1.12rem) !important;
  line-height: 1.3 !important;
  margin: 12px 0 10px !important;
}

.home-hero .home-panel > p,
.home-hero .home-panel .home-feature {
  font-size: clamp(0.85rem, 0.95vw, 0.95rem) !important;
  line-height: 1.45 !important;
}

.home-hero .home-eyebrow {
  font-size: 0.78rem !important;
}

/*
 * IMPORTANT: Do not override the existing homepage typography here.
 * The site's main stylesheet owns the hero heading, subheading and body font sizes.
 * This keeps the previously tuned font-size adjustments intact.
 */

.gg-home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.gg-play-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #0e2841 !important;
  background: #ffffff !important;
}

.gg-play-video-btn span,
.home-hero .gg-play-video-btn span {
  color: #0e2841 !important;
  -webkit-text-fill-color: #0e2841 !important;
}

.home-hero .gg-play-video-btn:hover,
.home-hero .gg-play-video-btn:focus-visible {
  color: #0e2841 !important;
}

.gg-home-showcase {
  margin-top: 2rem;
  width: 100%;
}

.gg-showcase-heading {
  margin-bottom: 0.9rem;
}

.gg-showcase-heading h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  color: #fff;
}

.gg-showcase-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8c48e;
}

.gg-showcase-carousel {
  position: relative;
  width: 100%;
  min-height: 335px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gg-showcase-track {
  position: relative;
  width: min(100%, 640px);
  height: 300px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(14, 40, 65, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 44px rgba(6, 27, 43, 0.22);
}

.gg-showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(28px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
  overflow: hidden;
  background: #0e2841;
}

.gg-showcase-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.gg-showcase-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gg-showcase-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 40, 65, 0.96) 0%, rgba(14, 40, 65, 0.55) 35%, rgba(14, 40, 65, 0.06) 68%);
  pointer-events: none;
}

.gg-showcase-caption {
  position: absolute;
  z-index: 3;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.15rem;
  color: #fff;
  display: grid;
  gap: 0.25rem;
}

.gg-showcase-caption strong {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.15;
}

.gg-showcase-caption small {
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.gg-showcase-type {
  justify-self: start;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: #ff8a2a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gg-video-play {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 4px;
  color: #0e2841;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(6, 27, 43, 0.32);
  font-size: 1.55rem;
}

.gg-showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(14, 40, 65, 0.68);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.gg-showcase-arrow:hover,
.gg-showcase-arrow:focus-visible {
  background: #156082;
  transform: translateY(-50%) scale(1.06);
}

.gg-showcase-prev { left: -0.6rem; }
.gg-showcase-next { right: -0.6rem; }

.gg-showcase-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.42rem;
  width: min(92%, 520px);
}

.gg-showcase-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.gg-showcase-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: #ff8a2a;
}

.gg-showcase-note {
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.home-video-panel {
  margin-top: 0.65rem !important;
  padding-top: 1rem !important;
  padding-bottom: 1.15rem !important;
  overflow: hidden;
}

.home-video-panel .home-section-heading {
  margin-bottom: 0.8rem;
}

.home-video-panel .home-eyebrow {
  margin-bottom: 0.55rem !important;
}

.home-video-panel .home-section-heading h2 {
  margin: 0 0 0.35rem !important;
}

.home-video-panel .home-section-heading p {
  margin-bottom: 0 !important;
}

.home-video-frame {
  overflow: hidden;
  border-radius: 18px;
  background: #061b2b;
  box-shadow: 0 14px 34px rgba(6, 27, 43, 0.18);
}

.home-video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

@media (max-width: 1180px) {
}

@media (max-width: 900px) {
  .home-hero #home-title {
    font-size: clamp(1.75rem, 5.8vw, 2.35rem) !important;
  }

  .home-hero > .home-hero-grid > div:first-child > h2 {
    font-size: clamp(1.1rem, 3.8vw, 1.35rem) !important;
  }


  .gg-showcase-track {
    width: calc(100% - 3rem);
  }

  .gg-showcase-prev { left: 0; }
  .gg-showcase-next { right: 0; }
}

@media (max-width: 640px) {
  .gg-home-cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .gg-home-cta-row > a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .gg-showcase-carousel {
    min-height: 300px;
  }

  .gg-showcase-track {
    height: 260px;
    width: calc(100% - 2.2rem);
    border-radius: 20px;
  }

  .gg-showcase-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .gg-showcase-caption {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .gg-showcase-caption small {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gg-showcase-slide,
  .gg-showcase-arrow,
  .gg-showcase-dot {
    transition: none !important;
  }
}

/* v7 hero layout refinements: 44/56 desktop split only */
.home-hero .home-hero-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr) !important;
  gap: clamp(24px, 3.5vw, 46px) !important;
  align-items: start !important;
}

.gg-home-right-column {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.gg-home-package-panel {
  align-self: start;
  width: 100%;
  box-sizing: border-box;
}

.home-clearer-section {
  margin-top: 1.35rem;
  padding-top: 0.15rem;
}

.home-hero .home-clearer-section h3 {
  font-size: clamp(1.18rem, 1.45vw, 1.42rem) !important;
  line-height: 1.22 !important;
  margin: 0 0 0.75rem !important;
}

.home-hero .home-clearer-section p {
  font-size: clamp(0.82rem, 0.9vw, 0.92rem) !important;
  line-height: 1.45 !important;
  margin: 0 0 0.9rem !important;
}

.home-hero .home-clearer-section p:last-child {
  margin-bottom: 0 !important;
}

/* Keep the learner showcase heading compact so the visual content leads. */
.home-hero .gg-showcase-heading h2,
#gg-showcase-title {
  font-size: clamp(0.98rem, 1.25vw, 1.15rem) !important;
  line-height: 1.2 !important;
  margin-top: 0.12rem !important;
}

.home-hero .gg-showcase-kicker {
  font-size: 0.66rem !important;
  letter-spacing: 0.07em !important;
}

@media (max-width: 1050px) {
  .home-hero .home-hero-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr) !important;
  }
}

@media (max-width: 900px) {
  .home-hero .home-hero-grid {
    grid-template-columns: 1fr !important;
  }

  .gg-home-right-column {
    width: 100%;
  }
}
