.student-scroll {
  height: 300vh;
  background-color: #000;
  padding: 0;
  position: relative;
}

.student-scroll .story-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

.student-scroll .story-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  /* background:
    radial-gradient(circle at 20% 20%, rgba(171, 210, 31, 0.18), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(247, 227, 6, 0.12), transparent 55%),
    linear-gradient(180deg, #050505, #000); */
  z-index: 0;
  pointer-events: none;
}

.student-scroll .story-intro {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 25px;
  z-index: 5;
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.student-scroll .story-intro h2 {
  font-size: clamp(32px, 5vw, 60px);
  color: #fff;
  margin: 0 0 15px;
  font-weight: 800;
}

.student-scroll .story-intro p {
  margin: 0 auto;
  font-size: 22px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 780px;
}

.student-scroll .story-hint {
  margin-top: 24px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  letter-spacing: 4px;
  color: rgba(187, 247, 56, 0.928);
}

.story-hint::after {
  content: "";
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, #cde96c, transparent);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.4;
    transform: scaleY(0.6);
  }
}

.student-scroll .story-slides {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.student-scroll .story-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  padding-top: 100px;
}

.student-scroll .story-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  z-index: 5;
}


.student-scroll .story-pin.started .story-intro {
  opacity: 0;
  transform: translateY(-20px);
  filter: blur(10px);
  pointer-events: none;
}

.student-scroll .story-pin.started .story-slides {
  opacity: 1;
}


#storyScroll .story-slide:nth-child(1) {
  background: linear-gradient(135deg, #000000, #0a0f00);
}

.student-scroll .fs_sliderHED {
  margin-bottom: 30px;
  position: relative;
  z-index: 6;
}

.student-scroll .fs_sliderHED h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  font-size: 40px;
  background: linear-gradient(90deg, #fff, #caef44, #c4f660);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.student-scroll .cert-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 960px;
  position: relative;
  z-index: 6;
  margin: 0 auto;
}

.student-scroll .cer_IMG {
  flex: 1 1 240px;
  max-width: 300px;
}

.student-scroll .cer_IMG img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border: 2px dashed #cde96c;
  border-radius: 8px;
  padding: 8px;
  background: #0a0a0a;
}

.student-scroll .cer_button {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  position: relative;
  z-index: 6;
}

.student-scroll .cer_BTN {
  padding: 10px 34px;
  color: #cde96c;
  font-weight: 700;
  font-size: 16px;
  background: #000;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(212, 250, 117, 0.5);
  transition: 0.35s ease;
  text-decoration: none;
}

.student-scroll .cer_BTN:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 28px rgba(196, 246, 96, 0.45), 0 0 60px rgba(247, 227, 6, 0.25);
  color: #fff;
}


.student-scroll .float-circles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.student-scroll .float-circles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  background: radial-gradient(circle at 30% 30%, rgb(230, 252, 186), rgba(223, 248, 173, 0.15), transparent);
  filter: blur(1px);
  animation: floatMove 4s ease-in-out infinite;
}

@keyframes floatMove {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(40px, -35px, 0) scale(1.08);
  }
}

.student-scroll .float-circles .c1 {
  width: 180px;
  height: 180px;
  left: 6%;
  top: 20%;
  animation-duration: 14s;
}

.student-scroll .float-circles .c2 {
  width: 120px;
  height: 120px;
  left: 25%;
  top: 70%;
  animation-duration: 11s;
  animation-delay: 1s;
}

.student-scroll .float-circles .c3 {
  width: 260px;
  height: 260px;
  right: 8%;
  top: 10%;
  animation-duration: 18s;
}

.student-scroll .float-circles .c4 {
  width: 140px;
  height: 140px;
  right: 18%;
  top: 65%;
  animation-duration: 12s;
  animation-delay: 2s;
}

.student-scroll .float-circles .c5 {
  width: 90px;
  height: 90px;
  left: 45%;
  top: 35%;
  animation-duration: 9s;
  animation-delay: .6s;
}

.student-scroll .float-circles .c6 {
  width: 210px;
  height: 210px;
  left: 60%;
  top: 80%;
  animation-duration: 16s;
  animation-delay: 1.4s;
}

#storyScroll .story-slide:nth-child(2) {
  background: linear-gradient(135deg, #000, #141702);
}

.student-scroll .snow_head {
  margin-bottom: 90px;
  position: relative;
  z-index: 6;
}

.student-scroll .snow_head h2 {
  color: #000;
  font-size: 26px;
  font-weight: 700;
  background: #cde96c;
  border-radius: 5px;
  padding: 6px 16px;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}


.student-scroll .snow-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.student-scroll .snow-layer span {
  position: absolute;
  top: -20px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  filter: blur(0.3px);
  opacity: var(--opacity);
  animation: snowFall var(--dur) linear infinite;
  left: var(--x);
}

@keyframes snowFall {
  0% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(110vh);
  }
}

.student-scroll .gallery {
  position: relative;
  width: 300px;
  height: 200px;
  margin: 0 auto;
  transform-style: preserve-3d;
  animation: spinGallery 30s linear infinite;
  z-index: 6;
  margin-top: 50px;
}

.student-scroll .gallery:hover {
  animation-play-state: paused;
}

@keyframes spinGallery {
  0% {
    transform: perspective(1000px) rotateY(0deg);
  }

  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}

.student-scroll .gallery span {
  position: absolute;
  inset: 0;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(400px);
  -webkit-box-reflect: below 0px linear-gradient(transparent, transparent, #0004);
}

.student-scroll .gallery span img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
}

.student-scroll .gallery_button {
  display: flex;
  justify-content: center;
  margin-top: 130px;
  z-index: 6;
  position: relative;
}

.student-scroll .GLY_btn {
  padding: 12px 28px;
  font-weight: 800;
  font-size: 16px;
  color: #000;
  background: #fff;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.student-scroll .GLY_btn:hover {
  transform: translateY(-2px);
}

.after-section {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #000, #111);
  font-size: 22px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 4px;
}
  .student-scroll .cert-slider-wrap {
  width: 100%;
  padding: 0 15px;
}

  .student-scroll .cert-grid .cer_IMG {
  padding: 0 10px;
}
  .student-scroll .cert-grid .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #cde96c !important;
  color: #000000 !important;
  font-weight: bold !important;
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

  .student-scroll .cert-grid .owl-nav .owl-prev {
  left: -15px;
}

  .student-scroll .cert-grid .owl-nav .owl-next {
  right: -15px;
}

  .student-scroll .cert-grid .owl-dots {
  text-align: center;
  margin-top: 14px;
}

  .student-scroll .cert-grid .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  margin: 0 4px;
}

  .student-scroll.cert-grid .owl-dots .owl-dot.active span {
  background: #c4f660;
}

  .student-scroll .owl-carousel .owl-dots.disabled, .owl-carousel .owl-nav.disabled {
    display:block !important;
}
/* ===========================
   LIGHTBOX POPUP
=========================== */
.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  padding: 20px;
}

.img-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.img-lightbox img {
  max-width: min(900px, 92vw);
  max-height: 85vh;
  border-radius: 14px;
  border: 2px solid rgba(205, 233, 108, 0.6);
  box-shadow: 0 0 40px rgba(205, 233, 108, 0.25);
  object-fit: contain;
}

.img-lightbox .lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-weight: 700;
  transition: 0.2s ease;
}

.img-lightbox .lb-close:hover {
  transform: scale(1.1);
  color: #cde96c;
}


@media (min-width:1700px) and (max-width:1900px) {
  .student-scroll .fs_sliderHED h2 {
    font-size: 45px;
  }
  .student-scroll .cer_BTN {
    font-size: 20px;
  }
  .student-scroll .GLY_btn {
    font-size: 20px;
  }
}

/* mobile responsive */
@media (max-width: 990px) {
.student-scroll .cert-grid .owl-dots {
    text-align: center;
    margin-top: 0px;
}

.student-scroll .cer_button {
    margin-top: 11px;
}
.student-scroll .cer_IMG img {
    height: 350px;
}
.student-scroll .fs_sliderHED h2 {
    font-size: 30px;
}
.student-scroll .fs_sliderHED {
    margin-bottom: 8px;
}
  .student-scroll .story-slide {
    padding: 50px 20px 0px 20px;
  }
  .student-scroll .cer_IMG {
    max-width: 100%;
}
.student-scroll .cert-grid .cer_IMG {
    padding: 0 40px;
}
}


/* responsive star */
@media (max-width: 768px) {
  .student-scroll .gallery span {
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(240px);
  }
  .student-scroll .gallery {
    width: 220px;
    height: 150px;
  }
  .student-scroll .gallery_button {
    margin-top: 100px;
  }
}

@media (min-width:1200px) and (max-width:1399px) {
  .student-scroll .story-intro h2 {
    font-size: 35px;
  }
  .student-scroll .story-intro p {
    font-size: 20px;
  }
  .student-scroll .snow_head {
    margin-bottom: 26px;
  }
  .student-scroll .cer_IMG img {
    height: 380px;
  }
}

