/* ===== sections.css ===== */

/* HERO */
.hero {
  position: relative;
  height: 690px;
  /* matches reference block height */
  overflow: hidden;
  background: #111827;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: contrast(1.02) saturate(1.05);
}

.hero__overlay {
  position: absolute;
  left: 32px;
  bottom: 46px;
  max-width: 520px;
  color: #0f172a;
}

.hero__title {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: .02em;
  font-weight: 800;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .55);
}

.hero__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(15, 23, 42, .9);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .55);
}

/* MESSAGE */
.message {
  padding: 80px 26px 70px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../picture/3.png') repeat center;
  background-size: 140px;
  background-color: #fdfaf6;
}

.message__inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Speech Bubble Components */
.speechBubble {
  position: relative;
  margin: 0 auto 32px;
  padding: 36px 40px;
  color: #0b1f3b;
  font-weight: 800;
  /* Organic speech bubble shape */
  clip-path: polygon(3% 12%, 8% 4%, 16% 8%, 24% 3%, 32% 9%, 42% 4%, 52% 9%, 62% 4%, 72% 10%,
      80% 5%, 88% 11%, 95% 7%, 98% 16%, 96% 26%, 99% 38%, 96% 50%, 99% 62%,
      95% 74%, 90% 86%, 82% 95%, 72% 93%, 62% 98%, 52% 93%, 42% 98%, 32% 93%,
      22% 97%, 12% 92%, 5% 86%, 2% 74%, 5% 62%, 2% 50%, 5% 38%, 2% 26%);
  animation: bubbleFloat 6s ease-in-out infinite;
}

/* Background layer with ink animation */
.speechBubble__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f5a623 0%, #f7b733 50%, #f5a623 100%);
  box-shadow:
    0 8px 20px rgba(245, 166, 35, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.1);
  /* Must inherit same clip-path as parent */
  clip-path: polygon(3% 12%, 8% 4%, 16% 8%, 24% 3%, 32% 9%, 42% 4%, 52% 9%, 62% 4%, 72% 10%,
      80% 5%, 88% 11%, 95% 7%, 98% 16%, 96% 26%, 99% 38%, 96% 50%, 99% 62%,
      95% 74%, 90% 86%, 82% 95%, 72% 93%, 62% 98%, 52% 93%, 42% 98%, 32% 93%,
      22% 97%, 12% 92%, 5% 86%, 2% 74%, 5% 62%, 2% 50%, 5% 38%, 2% 26%);
  z-index: 0;
  /* Ink painting animation using transform and opacity */
  transform-origin: left center;
  opacity: 0;
  animation:
    inkPaint 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
    brushReveal 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.speechBubble--primary .speechBubble__bg {
  background: linear-gradient(135deg, #f5a623 0%, #f8b739 50%, #f5a623 100%);
  animation-delay: 0.5s, 0.5s;
}

.speechBubble--secondary .speechBubble__bg {
  background: linear-gradient(135deg, #f7b733 0%, #fac24a 50%, #f7b733 100%);
  animation-delay: 1.2s, 1.2s;
}

@keyframes inkPaint {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes brushReveal {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}

@keyframes bubbleFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.speechBubble--primary {
  max-width: 580px;
}

.speechBubble--secondary {
  max-width: 640px;
  padding: 32px 38px;
  margin-bottom: 0;
}

.speechBubble__text {
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 0;
  animation: textFadeIn 1s ease forwards;
}

.speechBubble--primary .speechBubble__text {
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  animation-delay: 2.8s;
}

.speechBubble--secondary .speechBubble__text {
  font-size: 14px;
  line-height: 1.9;
  font-weight: 700;
  letter-spacing: 0.01em;
  animation-delay: 3.8s;
}

@keyframes textFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated Characters */
.message__character {
  position: absolute;
  z-index: 1;
  opacity: 0;
  animation: characterFloat 8s ease-in-out infinite;
}

.message__character img,
.message__characterIcon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  font-size: 48px;
  display: block;
}

/* Character Positions - Adjusted to avoid speech bubbles */
.message__character--2 {
  top: -2%;
  right: 10%;
  animation-delay: 1s;
}

.message__character--3 {
  top: 50%;
  left: 2%;
  animation-delay: 2s;
}

.message__character--4 {
  bottom: 3%;
  right: 8%;
  animation-delay: 3s;
}

@keyframes characterFloat {

  0%,
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }

  10%,
  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1);
  }
}

/* Section head */
.sectionHead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 54px 22px 22px;
}

.sectionHead__mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.sectionHead__title {
  margin: 12px 0 12px;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
}

.sectionHead__num {
  font-size: 44px;
  color: #ffb000;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  vertical-align: middle;
  margin: 0 6px;
}

.sectionHead__sub {
  margin: 0 auto;
  max-width: 560px;
  color: #1f2937;
  line-height: 1.9;
  font-size: 12.8px;
}

.sectionHead--compact {
  padding-bottom: 12px;
}

/* Carousel */
.carousel {
  position: relative;
  padding: 18px 22px 56px;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 18px;
  transition: transform .35s ease;
  will-change: transform;
}

.carousel__btn {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, .18);
  background: #fff;
  box-shadow: var(--shadowSm);
  color: #111827;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
}

.carousel__btn--prev {
  left: 18px;
}

.carousel__btn--next {
  right: 18px;
}

.reasonCard {
  flex: 0 0 calc(100% - 44px);
  max-width: calc(100% - 44px);
  display: flex;
  justify-content: center;
}

.reasonCard__box {
  width: 520px;
  background: #fff;
  border: 2px solid rgba(15, 23, 42, .10);
  box-shadow: var(--shadowSm);
  padding: 26px 26px 20px;
  position: relative;
  border-bottom: 6px solid var(--gold);
  overflow: hidden;
}

.reasonCard__no {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 54px;
  color: #ffb000;
  margin-bottom: 6px;
}

.reasonCard__title {
  font-weight: 800;
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 6px;
}

.reasonCard__desc {
  color: #334155;
  line-height: 1.75;
  font-size: 13px;
  margin-bottom: 14px;
}

.reasonCard__img {
  width: 100%;
  max-width: 100%;
  height: 230px;
  object-fit: cover;
  border: 2px solid rgba(15, 23, 42, .12);
}

/* Tap section */
.tapSection {
  padding: 50px 22px 0;
}

.tapSection__inner {
  text-align: center;
}

.tapSection__title {
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--navy);
  font-size: 26px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .85);
}

.tapGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 10px 6px 34px;
}

.tapCard {
  position: relative;
  height: 250px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  perspective: 1200px;
}

.tapCard__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2, .7, .15, 1);
  box-shadow: var(--shadowSm);
  border: 1px solid rgba(15, 23, 42, .10);
  overflow: hidden;
}

.tapCard__front {
  background: #cbd5e1;
  background-position: center center;
  background-size: cover;
}

.tapCard__back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.tapCard__back::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(251, 191, 36, 0.2);
  border-radius: 50%;
  z-index: 0;
}

.tapCard__back::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: rgba(251, 191, 36, 0.15);
  border-radius: 50%;
  z-index: 0;
}

/* Icon styling */
.tapCard__icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  position: relative;
  z-index: 1;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.tapCard__backTitle {
  display: block;
  font-weight: 900;
  color: #b45309;
  font-size: 19px;
  margin-bottom: 0;
  text-align: center;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.02em;
}

.tapCard__backText {
  display: block;
  color: #78350f;
  line-height: 1.9;
  font-size: 14px;
  text-align: center;
  max-width: 90%;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.tapCard.is-flipped .tapCard__front {
  transform: rotateY(180deg);
}

.tapCard.is-flipped .tapCard__back {
  transform: rotateY(360deg);
}

/* Photo strip - Continuous Infinite Scroll */
.photoStrip {
  margin-top: 8px;
  padding: 0 0 18px;
  overflow: hidden;
}

.photoStrip__row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  width: max-content;
}

.photoStrip__row img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  flex-shrink: 0;
}

/* Top row: continuous right to left */
.photoStrip__row--top {
  animation: scrollRightToLeft 15s linear infinite;
}

/* Bottom row: continuous left to right */
.photoStrip__row--bottom {
  animation: scrollLeftToRight 15s linear infinite;
}

@keyframes scrollRightToLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-200px * 3 - 12px * 3));
  }
}

@keyframes scrollLeftToRight {
  0% {
    transform: translateX(calc(-200px * 3 - 12px * 3));
  }

  100% {
    transform: translateX(0);
  }
}

/* Strength blocks */
.strengths {
  padding: 26px 0 40px;
}

.strengthBlock {
  position: relative;
  padding: 0 22px 28px;
}

/* Animation wrapper - contains both media and card */
.strengthBlock__animWrap {
  position: relative;
  width: 100%;
}

/* Initial state - perfect circle at left edge */
.strengthBlock__animWrap.animate-ready {
  opacity: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  transform: translateX(-150px);
  margin: 0 auto;
}

/* Trigger animation - Faster, smoother duration */
.strengthBlock__animWrap.animate-in {
  animation: ballBounce 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Staggered animation delays for sequential reveal */
.strengthBlock:nth-child(2) .strengthBlock__animWrap.animate-in {
  animation-delay: 0.4s;
}

.strengthBlock:nth-child(3) .strengthBlock__animWrap.animate-in {
  animation-delay: 0.8s;
}

/* Ball bounce animation - smooth and natural physics */
@keyframes ballBounce {

  /* 0% - Start: Circle at left, invisible */
  0% {
    opacity: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    transform: translateX(-160px) scale(0.9, 1.1);
  }

  /* 10% - Appear and move fast */
  10% {
    opacity: 1;
    transform: translateX(-100px) scale(1.1, 0.9);
  }

  /* 35% - Hit right wall (Squash) */
  35% {
    transform: translateX(110px) scale(0.85, 1.15);
  }

  /* 45% - Rebound back towards center (Stretch) */
  45% {
    transform: translateX(40px) scale(1.05, 0.95);
  }

  /* 55% - Settle in center/Stop (Slight Overshoot correction) */
  55% {
    transform: translateX(0px) scale(1, 1);
    width: 120px;
    height: 120px;
    border-radius: 50%;
  }

  /* 60% - Pre-expansion pause/anticipation */
  60% {
    transform: translateX(0px) scale(0.95, 0.95);
    width: 120px;
    height: 120px;
    border-radius: 50%;
  }

  /* 75% - Fluffy Open (Expansion with overshoot) */
  /* 75% - Fluffy Open (Expansion with overshoot) */
  75% {
    transform: translateX(0px) scale(1.02);
    width: 100%;
    height: auto;
    border-radius: 20px;
  }

  /* 85% - Slight bounce back from expansion */
  85% {
    transform: translateX(0px) scale(0.99);
    width: 100%;
    border-radius: 12px;
  }

  /* 100% - Final State */
  100% {
    transform: translateX(0px) scale(1);
    width: 100%;
    height: auto;
    border-radius: 16px;
    opacity: 1;
  }
}

.strengthBlock__media {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid rgba(0, 0, 0, .06);
}

.strengthBlock__ghost {
  position: absolute;
  left: 22px;
  top: 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .55);
  text-transform: none;
  mix-blend-mode: overlay;
}

.strengthBlock__card {
  position: relative;
  margin: -46px auto 0;
  width: calc(100% - 44px);
  background: #fff;
  box-shadow: var(--shadowSm);
  border: 1px solid rgba(15, 23, 42, .10);
  display: grid;
  grid-template-columns: 10px 1fr;
  min-height: 128px;
  border-radius: 12px;
}

.strengthBlock__bar {
  background: #1d4ed8;
}

.strengthBlock__content {
  padding: 18px 18px 16px;
}

.strengthBlock__content h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
}

.strengthBlock__content p {
  margin: 0;
  color: #334155;
  line-height: 1.85;
  font-size: 13px;
}

/* Daily */
.daily {
  background: #fff;
  padding: 54px 0 0;
}

.daily__head {
  text-align: center;
  padding: 0 22px 18px;
}

.daily__mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.daily__title {
  margin: 12px 0 10px;
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
}

.daily__sub {
  margin: 0 auto;
  max-width: 560px;
  color: #1f2937;
  line-height: 1.9;
  font-size: 12.8px;
}

.daily__stage {
  margin-top: 18px;
  padding: 36px 22px 56px;
  background: linear-gradient(180deg, #bfe9d6 0%, #cfeee0 40%, #dff4ea 100%);
  position: relative;
  overflow: hidden;
}

.daily__collage {
  position: relative;
  height: 440px;
  max-width: 560px;
  margin: 0 auto;
}

.polaroid {
  position: absolute;
  width: 250px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadowMd);
  border: 1px solid rgba(15, 23, 42, .10);
}

.polaroid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.polaroid--a {
  left: 0;
  top: 0;
  transform: rotate(-7deg);
}

.polaroid--b {
  right: 0;
  top: 18px;
  transform: rotate(7deg);
}

.polaroid--c {
  left: 24px;
  bottom: 0;
  transform: rotate(6deg);
}

.polaroid--d {
  right: 36px;
  bottom: 10px;
  transform: rotate(-6deg);
}

/* Card Dealing Animation */
.daily__collage .polaroid {
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
  will-change: transform, opacity;
}

/* Off-screen positions */
.daily__collage .polaroid--a {
  transform: translate(-120%, -120%) rotate(-200deg) scale(0.5);
}

.daily__collage .polaroid--b {
  transform: translate(120%, -120%) rotate(200deg) scale(0.5);
}

.daily__collage .polaroid--c {
  transform: translate(-120%, 120%) rotate(-200deg) scale(0.5);
}

.daily__collage .polaroid--d {
  transform: translate(120%, 120%) rotate(200deg) scale(0.5);
}

/* Triggered State */
.daily__collage.is-visible .polaroid {
  opacity: 1;
}

.daily__collage.is-visible .polaroid--a {
  transform: translate(0, 0) rotate(-7deg) scale(1);
  transition-delay: 0.1s;
}

.daily__collage.is-visible .polaroid--b {
  transform: translate(0, 0) rotate(7deg) scale(1);
  transition-delay: 0.4s;
}

.daily__collage.is-visible .polaroid--c {
  transform: translate(0, 0) rotate(6deg) scale(1);
  transition-delay: 0.7s;
}

.daily__collage.is-visible .polaroid--d {
  transform: translate(0, 0) rotate(-6deg) scale(1);
  transition-delay: 1.0s;
}

.daily__cta {
  text-align: center;
  margin-top: 24px;
}

/* Instructors */
.instructors {
  padding: 54px 22px 60px;
}

.instructors__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.instructors__mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.instructors__title {
  margin: 12px 0 10px;
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
}

.instructors__sub {
  margin: 0 auto;
  max-width: 560px;
  color: #334155;
  line-height: 1.9;
  font-size: 13px;
}

.instructors__carouselWrap {
  margin-top: 32px;
  overflow: hidden;
  position: relative;
}

.instructors__carousel {
  display: flex;
  gap: 18px;
  animation: instructorScroll 40s linear infinite;
  will-change: transform;
}

@keyframes instructorScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-220px * 7 - 18px * 7));
  }
}

.instructorCard {
  flex: 0 0 220px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: var(--shadowSm);
  border-radius: var(--radiusCard);
  padding: 20px 16px 18px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructorCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}


.instructorCard__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.instructorCard__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.instructorCard__rating .stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
}

.instructorCard__rating .rating-value {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #0f172a;
}

.instructorCard__desc {
  margin: 0;
  color: #475569;
  line-height: 1.7;
  font-size: 12.5px;
  font-weight: 600;
}

.instructors__cta {
  text-align: center;
  margin-top: 32px;
}

.instructors__cta .btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 999px;
}

/* Flow */
.flow {
  padding: 54px 22px 60px;
}

.flow__head {
  text-align: center;
}

.flow__mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.flow__title {
  margin: 12px 0 10px;
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
}

.flow__sub {
  margin: 0 auto;
  max-width: 560px;
  color: #1f2937;
  line-height: 1.9;
  font-size: 12.8px;
}

.flowGrid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
  position: relative;
  padding: 8px 0 0;
}

.flowCard {
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadowSm);
  border: 1px solid rgba(15, 23, 42, .10);
  padding: 18px 18px 14px;
  border-radius: var(--radiusCard);
  min-height: 250px;
}

.flowCard__no {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 52px;
  color: #6d83ff;
  line-height: 1;
  margin-bottom: 10px;
}

.flowCard__title {
  margin: 0 0 10px;
  font-weight: 900;
  color: #0f172a;
  font-size: 16px;
}

.flowCard__thumb {
  width: 98px;
  height: 98px;
  background: #d1d5db;
  margin: 12px auto 14px;
}

.flowCard__text {
  margin: 0;
  color: #111827;
  line-height: 1.8;
  font-size: 13px;
  text-align: center;
}

.flowMascot {
  position: absolute;
  top: 118px;
  width: 86px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.flowMascot img {
  width: 86px;
  height: auto;
  object-fit: contain;
}

.flowMascot--left {
  left: -16px;
}

.flowMascot--right {
  right: -16px;
  top: 250px;
}

/* Diagnosis / Quiz */
.diagnosis {
  padding: 54px 22px 58px;
}

.diagnosis__head {
  text-align: left;
  padding: 0 4px 22px;
}

.diagnosis__mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.diagnosis__title {
  margin: 8px 0 8px;
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
}

.diagnosis__sub {
  margin: 0;
  color: #334155;
  line-height: 1.9;
  font-size: 13px;
}

.quiz {
  margin-top: 18px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: var(--shadowSm);
  border-radius: var(--radiusPanel);
  padding: 26px 22px 22px;
}

.quiz__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #0f172a;
}

.quiz__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .12);
  margin: 10px 0 20px;
  overflow: hidden;
}

.quiz__barFill {
  height: 100%;
  width: 33%;
  background: var(--navy);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ... existing styles ... */

/* Quiz Result Design */
.quizResultCard {
  text-align: center;
  padding: 10px 0;
  animation: fadeIn 0.8s ease backwards;
}

.quizResultCard__label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 12px;
  font-weight: 700;
}

.quizResultCard__plan {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 16px;
  color: var(--navy);
  line-height: 1.3;
}

.quizResultCard__plan--premium {
  color: #d97706;
}

.quizResultCard__plan--standard {
  color: #0f172a;
}

.quizResultCard__plan--light {
  color: #059669;
}

.quizResultCard__reason {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin: 0 auto 24px;
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
  text-align: left;
}

/* Quiz Result Buttons Layout */
.quizResultsBtns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.quizResultsBtns .btn {
  flex: 1;
  min-width: 140px;
  padding: 14px 20px;
  justify-content: center;
}

.quizResultCard__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.quizResetBtn {
  background: none;
  border: none;
  text-decoration: underline;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  transition: color 0.2s;
}

.quizResetBtn:hover {
  color: #64748b;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz__q {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}

.quiz__opts {
  display: grid;
  gap: 14px;
}

.quizOpt {
  border: 2px solid rgba(15, 23, 42, .12);
  background: #fff;
  border-radius: var(--radiusPill);
  padding: 18px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  text-align: left;
}

.quizOpt:hover {
  transform: translateY(-1px);
  border-color: rgba(12, 46, 87, .35);
}

.quizOpt.is-selected {
  border-color: rgba(12, 46, 87, .70);
  background: rgba(12, 46, 87, .06);
}

.quiz__result {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, .10);
}

.quiz__resultTitle {
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
}

.quiz__resultBody {
  color: #334155;
  line-height: 1.85;
  font-size: 13px;
  margin-bottom: 14px;
}

/* Pricing */
.pricing {
  padding: 54px 22px 70px;
  background: url('../picture/3.png') repeat center;
  background-size: 140px;
  background-color: #fdfaf6;
}

.pricing__head {
  text-align: left;
  max-width: 560px;
}

.pricing__mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.pricing__title {
  margin: 8px 0 10px;
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
}

.pricing__sub {
  margin: 0;
  color: #334155;
  line-height: 1.9;
  font-size: 13px;
}

.priceTableWrap {
  margin-top: 22px;
  overflow: auto;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: var(--shadowSm);
  padding: 14px;
}

.priceTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px 10px;
  /* pill-like spacing */
  min-width: 560px;
}

.priceTable th,
.priceTable td {
  text-align: center;
  padding: 14px 10px;
  font-weight: 900;
}

.priceTable thead th {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
}

.priceTable tbody th {
  background: rgba(15, 23, 42, .06);
  border-radius: 10px;
  color: var(--navy);
}

.priceTable tbody td {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadowSm);
}

.priceRed {
  color: #ef4444;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
}

.priceTable small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  margin-top: 4px;
}

.dotRow {
  margin: 26px auto 18px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.dotRow span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--navy);
  opacity: .92;
}

.recommendBtn {
  text-align: center;
  margin: 8px 0 34px;
}

/* Plans */
/* --- Plan Carousel Layout --- */
.planCarouselWrap {
  position: relative;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 40px;
}

.planCarousel {
  overflow: hidden;
  padding: 40px 0;
}

.planTrack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: transform 0.4s ease;
}

/* --- Plan Card Design --- */
.planCard {
  flex: 0 0 300px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0.6;
  transform: scale(0.9);
  position: relative;
}

.planCard.is-center {
  opacity: 1;
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(15, 23, 42, 0.2);
  background: rgba(255, 255, 255, 0.98);
}

@media (max-width: 768px) {
  .planCard {
    flex: 0 0 85%;
  }
}

.planCard--light {
  border-top: 4px solid #059669;
}

.planCard--std {
  border-top: 4px solid var(--navy);
}

.planCard--prem {
  border-top: 4px solid #d97706;
}

.planCard--std.is-center {
  border: 2px solid var(--navy);
}

.planCard__head {
  margin-bottom: 20px;
}

.planCard__badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.planCard__crown {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

.planCard__title {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
}

.planCard__note {
  display: block;
  font-size: 12px;
  color: #64748b;
  font-weight: normal;
  margin-top: 4px;
}

.planCard__body {
  font-size: 13px;
  text-align: left;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 24px;
}

.planCard__body ul {
  list-style: none;
  padding: 0;
}

.planCard__body li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

.planCard__body li:last-child {
  border-bottom: none;
}

.planCard__body b {
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}

.planCard__cta {
  width: 100%;
  padding: 14px;
  font-size: 14px;
}

.planCard__cta--light {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.planCard__cta--std {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.planCard__cta--prem {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

.planArrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  color: var(--navy);
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s;
}

.planArrow:hover {
  background: var(--navy);
  color: #fff;
}

.planArrow--prev {
  left: 0;
}

.planArrow--next {
  right: 0;
}

.planHint {
  margin-top: 18px;
  text-align: center;
}

.planHint__inner {
  display: inline-block;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: var(--shadowSm);
  padding: 12px 16px;
  font-weight: 800;
  color: #0f172a;
}

.planHint__star {
  margin-right: 8px;
}

/* Contact */
.contact {
  padding: 54px 22px 60px;
}

.contact__head {
  text-align: center;
}

.contact__mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.contact__title {
  margin: 10px 0 8px;
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
}

.contact__sub {
  margin: 0 0 18px;
  color: #334155;
  font-size: 13px;
}

.contactForm {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: var(--shadowSm);
  border-radius: var(--radiusPanel);
  padding: 22px 22px 20px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field span {
  font-weight: 900;
  color: #0f172a;
  font-size: 13px;
}

.field em {
  color: #ef4444;
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, .14);
  background: #fff;
  padding: 12px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.btn--send {
  width: 100%;
  justify-content: center;
  padding: 14px 16px;
}

.sendIcon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
}

/* FAQ */
/* FAQ */
.faq {
  padding: 54px 22px 90px;
  background: #fff;
}

.faq__head {
  text-align: center;
  padding-bottom: 24px;
}

.faq__mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.faq__title {
  margin: 10px 0 8px;
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
}

.faq__sub {
  margin: 0 auto;
  max-width: 520px;
  color: #334155;
  font-size: 13px;
  line-height: 1.9;
}

.faqList {
  max-width: 700px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Question Item */
.faqItem {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  padding: 20px 24px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faqItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  border-color: rgba(15, 23, 42, 0.15);
}

.faqItem[aria-expanded="true"] {
  background: #fffbeb;
  /* Light yellow tint when open */
  border-color: #fca5a5;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Q Marker */
.faqItem::before {
  content: "Q";
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #0f172a;
  /* Navy */
  color: #fff;
  border-radius: 50%;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
}

/* Toggle Icon */
.faqItem::after {
  content: "+";
  margin-left: auto;
  font-size: 24px;
  color: #94a3b8;
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1;
}

.faqItem[aria-expanded="true"]::after {
  transform: rotate(45deg);
  color: #ef4444;
}

/* Item Text */
.faqItem span {
  flex: 1;
  line-height: 1.5;
  font-size: 15px;
}

/* Answer Panel */
.faqPanel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-top: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  margin-top: -6px;
  /* Overlap nicely */
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.faqPanel[hidden] {
  display: none;
}

.faqPanel:not([hidden]) {
  display: block;
  animation: faqSlideDown 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes faqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faqPanel p {
  padding: 20px 24px 24px 72px;
  /* Indent to align with text */
  margin: 0;
  color: #334155;
  line-height: 1.8;
  font-size: 14px;
  position: relative;
}

/* A Marker */
.faqPanel p::before {
  content: "A";
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #ef4444;
  /* Red */
  line-height: 1.8;
  /* Match P line-height approx */
}

/* Floating CTA */
.floatCta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: calc(100% - 48px);
  max-width: 620px;
  display: flex;
  justify-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 14px 18px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.floatCta.is-on {
  opacity: 1;
  pointer-events: auto;
  animation: floatIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.floatCta .btn {
  flex: 1;
  max-width: 280px;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: all 0.2s ease;
  justify-content: center;
}

.floatCta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Spacer */
.bottomSpacer {
  height: 72px;
}


/* ===== Hero (image-perfect target) ===== */
.hero--copy {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.hero--copy::after {
  border-radius: 0;
}

.hero--copy .hero__bg {
  border-radius: 0;
  z-index: 0;
}

.heroLetters {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .26;
}

.hero--copy .heroText {
  z-index: 3;
}

.heroMenu--mobile {
  display: none;
}

/* ===== Scroll-triggered Title Animations ===== */

/* Initial state - hidden and offset to the left */
.animate-ready {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated state - slide in from left */
.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Enhanced Title Styling ===== */

/* Base enhanced title styling */
.sectionHead__title,
.tapSection__title,
.daily__title,
.flow__title,
.diagnosis__title,
.pricing__title,
.contact__title,
.faq__title {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* REASONS section - Blue gradient */
.reasons .sectionHead__title {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.reasons .sectionHead__title::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 40px;
  height: 40px;
  background: rgba(96, 165, 250, 0.3);
  border-radius: 50%;
  z-index: -1;
}

/* MESSAGE section would use existing speech bubble styling */

/* TAP/FUN section - Yellow gradient */
.tapSection__title {
  background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 50%, #fbbf24 100%);
  color: #78350f;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.tapSection__title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 35px;
  height: 35px;
  background: rgba(252, 211, 77, 0.4);
  border-radius: 50%;
  z-index: -1;
}

/* STRENGTHS section - Navy gradient */
.strengths .sectionHead__title {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e40af 100%);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* DAILY section - Green gradient */
/* DAILY section - Green gradient */
.daily .sectionHead__title {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #10b981 100%);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* FLOW section - Purple gradient */
/* FLOW section - Purple gradient */
.flow .sectionHead__title {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #8b5cf6 100%);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* DIAGNOSIS section - Orange gradient */
/* DIAGNOSIS section - Orange gradient */
.diagnosis .sectionHead__title {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* PRICING section - Red gradient */
/* PRICING section - Red gradient */
.pricing .sectionHead__title {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 50%, #ef4444 100%);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* CONTACT section - Teal gradient */
/* CONTACT section - Teal gradient */
.contact .sectionHead__title {
  background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 50%, #14b8a6 100%);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* FAQ section - Indigo gradient */
/* FAQ section - Indigo gradient */
.faq .sectionHead__title {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #6366f1 100%);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* INSTRUCTORS section - Coral gradient */
.instructors .sectionHead__title {
  background: linear-gradient(135deg, #fb7185 0%, #fda4af 50%, #fb7185 100%);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* =========================================
   FLOW SECTION REDESIGN
   ========================================= */

.flow {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

/* Background 2.png with low opacity */
.flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../picture/2.png") repeat center;
  background-size: 300px;
  opacity: 0.2;
  /* Very thin/light */
  z-index: 0;
  pointer-events: none;
}

.flowGrid {
  position: relative;
  z-index: 1;
  max-width: 800px;
  /* Wider for 2 cols */
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 2 Columns */
  gap: 24px;
  padding: 0 20px;
}

/* Response for Mobile: Stack on very small screens, but keep 2x2 if possible or user requested 2x2 specifically. 
   Usually stacking is better for <600px. I'll make it responsive but default to 2x2 on standard width */
@media (max-width: 600px) {
  .flowGrid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Mascot Animation (Appear/Disappear) */
.flowMascot__img {
  width: 80px;
  height: auto;
  animation: mascotFade 4s infinite alternate ease-in-out;
}

.flowMascot {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.flowMascot--left {
  top: -50px;
  left: -10px;
  margin: 0;
}

.flowMascot--right {
  bottom: -50px;
  right: -10px;
  margin: 0;
}

@keyframes mascotFade {

  0%,
  15% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }

  35%,
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Flow Card Design */
.flowCard {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 32px 24px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
  backdrop-filter: blur(4px);
}

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

.flowCard__no {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 16px;
  padding: 6px 20px;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  letter-spacing: 0.05em;
}

.flowCard__title {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 16px;
}

.flowCard__text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

/* Animated Thumbnails (CSS Graphics) */
.flowCard__thumb {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.animIcon {
  position: relative;
  width: 80px;
  height: 80px;
}

/* 01 Mail Icon */
.animIcon--mail .mailEnv {
  width: 60px;
  height: 40px;
  background: #f59e0b;
  border-radius: 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 0 #d97706;
}

.animIcon--mail .mailEnv::before {
  /* Flap */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  border-top: 20px solid #fbbf24;
  /* Closed color */
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  transform-origin: top;
  animation: mailFlap 2s infinite ease-in-out;
}

@keyframes mailFlap {

  0%,
  10% {
    transform: rotateX(0);
  }

  /* Closed */
  50%,
  60% {
    transform: rotateX(180deg);
  }

  /* Open */
  100% {
    transform: rotateX(0);
  }
}

/* 02 Calendar Icon */
.animIcon--cal .calPaper {
  width: 50px;
  height: 50px;
  background: #fff;
  border: 2px solid #374151;
  border-radius: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.animIcon--cal .calPaper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: #ef4444;
}

.animIcon--cal .calCheck {
  width: 14px;
  height: 24px;
  border-bottom: 4px solid #10b981;
  border-right: 4px solid #10b981;
  position: absolute;
  top: 55%;
  left: 50%;
  margin-top: -4px;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: checkPop 2s infinite ease-out;
}

@keyframes checkPop {

  0%,
  20% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
  }

  40%,
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(1.2);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }
}

/* 03 Chat Icon */
.animIcon--chat .chatBubble {
  width: 36px;
  height: 28px;
  border-radius: 14px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

.animIcon--chat .chatBubble::after {
  content: "...";
  font-size: 18px;
  line-height: 0;
  padding-bottom: 8px;
}

.animIcon--chat .chatBubble--L {
  background: #3b82f6;
  top: 15px;
  left: 0;
  border-bottom-left-radius: 2px;
  animation: chatPop 2.5s infinite;
}

.animIcon--chat .chatBubble--R {
  background: #10b981;
  bottom: 15px;
  right: 0;
  border-bottom-right-radius: 2px;
  animation: chatPop 2.5s infinite 1.25s;
  /* Delay */
}

@keyframes chatPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  15% {
    transform: scale(1.1);
    opacity: 1;
  }

  25% {
    transform: scale(1);
  }

  85% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}

/* 04 Flag Icon */
.animIcon--flag .flagPole {
  width: 4px;
  height: 60px;
  background: #94a3b8;
  border-radius: 2px;
  position: absolute;
  left: 20px;
  top: 10px;
}

.animIcon--flag .flagCloth {
  width: 40px;
  height: 30px;
  background: #f43f5e;
  position: absolute;
  top: 0;
  left: 4px;
  border-radius: 0 4px 4px 0;
  transform-origin: left;
  animation: flagWave 1.5s infinite ease-in-out alternate;
}

@keyframes flagWave {
  0% {
    transform: scaleX(0.8) skewY(10deg);
  }

  100% {
    transform: scaleX(1) skewY(-5deg);
  }
}

/* INSTRUCTORS */
.instructors {
  background: url('../picture/1.png') repeat center;
  background-size: 140px;
  background-color: #fffbeb;
  padding: 54px 22px;
}

/* Contact Success Modal */
.contactModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contactModal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.contactModal[aria-hidden="true"] {
  display: none;
}

.contactModal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.contactModal__content {
  position: relative;
  background: #ffffff;
  width: 90%;
  max-width: 400px;
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.contactModal.is-open .contactModal__content {
  transform: scale(1);
}

.contactModal__icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  /* Green tint */
  color: #16a34a;
  /* Green 600 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contactModal__title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.contactModal__message {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.6;
}

.contactModal__close {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: flex;
  /* Ensure button centering */
  justify-content: center;
  /* Ensure button centering */
}