/* Small YouTube-only refinements; retain the restored control page's CSS. */
.hero-personal-proof {
  display: flow-root;
  margin-top: 1.5rem;
}

.hero-personal-proof > p {
  line-height: 1.75;
}

.hero-promise-highlight {
  padding: 0.08em 0.22em;
  border-radius: 0.2rem;
  background-color: var(--color-pink-border);
  color: var(--color-navy-dark);
  font-weight: 700;
  text-decoration: none;
  white-space: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-promise-highlight--underlined {
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
}

.hero-personal-proof + .grid {
  margin-top: 2.5rem;
  gap: 1.5rem;
}

.hero-personal-photo {
  float: right;
  width: 6rem;
  height: 7rem;
  margin: 0 0 1rem 1.5rem;
  border: 1px solid var(--color-pink-border);
  border-radius: 0.75rem;
  object-fit: cover;
  object-position: 48% 35%;
}

.results-proof {
  align-self: start;
}

.results-carousel-title {
  color: var(--color-slate-900);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.results-carousel-source {
  margin-top: 0.625rem;
  color: var(--color-slate-600);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.student-testimonial-videos {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 1.5rem) / 2.4);
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.2rem 0.1rem 0.5rem;
}

@media (max-width: 359px) {
  .student-testimonial-videos {
    grid-auto-columns: calc((100% - 1.5rem) / 2.25);
  }
}

.student-testimonial-videos:focus-visible {
  outline: 2px solid var(--color-navy-dark);
  outline-offset: 3px;
}

.student-testimonial-video {
  min-width: 0;
  scroll-snap-align: start;
}

.student-testimonial-player {
  position: relative;
  container-type: inline-size;
}

.student-testimonial-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--color-pink-border);
  border-radius: 0.5rem;
  background: var(--color-slate-900);
  object-fit: contain;
}

.student-testimonial-video video:focus-visible {
  outline: 2px solid var(--color-navy-dark);
  outline-offset: 3px;
}

.student-video-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-pink-border);
  border-radius: 0.5rem;
  padding: 0;
  background: var(--color-slate-900);
  color: white;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}

.student-video-cover[hidden] {
  display: none;
}

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

.student-video-cover--duygu > img {
  object-position: center 35%;
}

.student-video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, var(--color-slate-900) 68%);
}

.student-video-cover-copy {
  position: absolute;
  z-index: 1;
  right: 6%;
  bottom: 7%;
  left: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.student-video-cover-headline {
  display: block;
  border-radius: 0.35rem;
  padding: 0.35em 0.5em;
  background: var(--color-navy);
  font-size: clamp(0.6rem, 5cqw, 0.875rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.student-video-cover-name {
  position: relative;
  padding-bottom: 0.25em;
  font-size: clamp(1.125rem, 13cqw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.student-video-cover-name::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 0;
  left: 5%;
  height: 0.1em;
  border-radius: 50%;
  background: var(--color-navy);
  transform: rotate(-3deg);
}

.student-video-cover-play {
  position: absolute;
  z-index: 1;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  padding-left: 0.1em;
  background: rgb(15 23 42 / 65%);
  font-size: 0.75rem;
}

.student-video-cover:hover .student-video-cover-play,
.student-video-cover[aria-busy="true"] .student-video-cover-play {
  background: var(--color-navy-dark);
}

.student-video-cover:focus-visible {
  outline: 3px solid var(--color-navy-dark);
  outline-offset: 3px;
}

.student-video-error {
  margin-top: 0.5rem;
  color: var(--color-slate-600);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.student-video-error a {
  color: var(--color-navy-dark);
  font-weight: 600;
  text-decoration: underline;
}

.results-carousel {
  display: grid;
  flex: none;
  min-height: 0;
  grid-template-rows: repeat(2, max-content);
  grid-auto-flow: column;
  grid-auto-columns: calc(100% - 1.5rem);
  align-items: start;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.2rem 0.1rem 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--color-navy) transparent;
}

.results-carousel.is-dragging {
  cursor: grabbing;
}

.results-carousel .result-score-document {
  display: block;
  height: auto;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.result-rank-caption {
  margin: 0;
  padding: 0.625rem 0.75rem 0.75rem;
  background: var(--color-pink-soft);
  color: var(--color-navy-dark);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-decoration-line: underline;
  text-decoration-color: var(--color-navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.results-carousel:focus-visible {
  outline: 2px solid var(--color-navy-dark);
  outline-offset: 2px;
}

.hero-video-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1rem;
}

.hero-video-column > section {
  flex: 1;
}

.refund-guarantee {
  position: relative;
  width: fit-content;
  margin: 1rem auto 0.4rem;
  padding: 0 0.2rem 0.45rem;
  color: var(--color-navy-dark);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-align: center;
}

.refund-guarantee::after {
  content: "";
  position: absolute;
  inset: auto -0.15rem 0;
  height: 0.5rem;
  border-bottom: 3px solid var(--color-navy);
  border-radius: 50%;
  transform: rotate(-1.5deg);
  pointer-events: none;
}

/* Match the reference's 1s Tailwind bounce, with a separate 1s ping. */
@keyframes whatsapp-reference-bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes whatsapp-reference-ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.whatsapp-reference-bounce {
  animation: whatsapp-reference-bounce 1s infinite;
}

.whatsapp-reference-bounce .whatsapp-live::before {
  inset: 0;
  border: 0;
  background: #25d366;
  opacity: 0.3;
  animation: whatsapp-reference-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes banner-cta-pulse {
  0%,
  100% {
    background-color: rgb(0 0 0 / 0.12);
    box-shadow: 0 0 0 0 rgb(255 255 255 / 0);
    transform: scale(1);
  }

  50% {
    background-color: rgb(0 0 0 / 0.26);
    box-shadow: 0 0 0 0.3rem rgb(255 255 255 / 0.18);
    transform: scale(1.035);
  }
}

[data-track="banner_cta_click"] {
  animation: banner-cta-pulse 2.4s ease-in-out infinite;
}

[data-track="banner_cta_click"]:is(:hover, :focus-visible) {
  animation-play-state: paused;
}

@media (min-width: 640px) {
  .hero-personal-proof + .grid {
    gap: 2rem;
  }

  .hero-personal-photo {
    width: 8rem;
    height: 9rem;
    margin-left: 2rem;
  }

  .results-carousel-source {
    font-size: 0.875rem;
  }

  .results-carousel-title {
    font-size: 1.125rem;
  }

  .refund-guarantee {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-track="banner_cta_click"],
  .whatsapp-reference-bounce,
  .whatsapp-reference-bounce .whatsapp-live::before {
    animation: none;
  }

  .whatsapp-reference-bounce .whatsapp-live::before {
    opacity: 0;
  }
}
