/* assets/css/pages/guidedreading.css */

body[data-page="guidedreading"],
body[data-page="guidedreading"] .guided-page{
  overflow-x: clip;
}

.guided-section{
  box-sizing: border-box;
  padding: 110px 24px 36px 24px;
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: start;
  scroll-margin-top: 96px;
}

@media (max-width: 768px){
  .guided-section{
    scroll-margin-top: 72px;
  }
}

@media (max-width: 520px){
  .guided-section{
    padding: 78px 20px 28px 20px;
  }
}

.guided-kicker{
  font-family: "Cormorant SC", serif;
  color: #ffffff;
  margin-bottom: 6px;
  text-align: center;
}

.guided-line-big{
  display: block;
  font-size: 3em;
  letter-spacing: 0.12em;
  position: relative;
}

@keyframes guidedScanBand{
  0%   { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}

.guided-kicker .guided-line-big::after{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0,255,255,0) 0%,
    rgba(0,255,255,0) 42%,
    rgba(0,255,255,1) 48%,
    rgba(255,0,255,1) 52%,
    rgba(255,0,255,0) 58%,
    rgba(255,0,255,0) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: guidedScanBand 2.2s linear infinite;
}

.guided-text{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 880px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(16px, 4vw, 20px);
  line-height: 1.55;
  margin-top: 0;
  margin-bottom: 0;
  color: rgba(255,255,255,0.85);
}

.guided-intro{
  margin-bottom: 6px;
}

.guided-video{
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 6px;
}

.guided-video-shell{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  aspect-ratio: 120 / 163;
  width: min(92vw, 320px);
  max-height: calc(100svh - 260px);
}

.guided-player{
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

@media (max-width: 520px){
  .guided-video-shell{
    width: min(92vw, 300px);
    max-height: calc(100svh - 240px);
  }
}

@keyframes guidedGlowShift{
  0%,100%{ background-position: 0% 0%; }
  50%{ background-position: 100% 0%; }
}

.guided-cta-wrap{
  margin-top: 10px;
}

.guided-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 220ms ease, color 220ms ease;
}

.guided-cta::before{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(
    90deg,
    rgba(0,255,255,0.95),
    rgba(255,0,255,0.95)
  );
  background-size: 200% 100%;
  animation: guidedGlowShift 2.8s ease-in-out infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.75;
  pointer-events: none;
  z-index: -1;
}

.guided-cta:hover{
  transform: translateY(-1px);
  box-shadow:
    0 0 14px rgba(0,255,255,0.20),
    0 0 20px rgba(255,0,255,0.14);
  color: #ffffff;
}

.guided-cta:active{
  transform: translateY(0px);
}

.guided-cta:focus-visible{
  outline: 2px solid rgba(0,255,255,0.75);
  outline-offset: 4px;
}
