/* ================================
   GS NET ACADEMY HERO SLIDER
   Fixed to match actual HTML classes:
   .hero-slider, .hero-slider__track, .hero-slider__slide,
   .is-active, .hero-slider__arrow, .hero-slider__dots, .hero-slider__dot
   ================================ */

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden; /* zaroori: koi bhi slide isse bahar nahi jaani chahiye */
  background: #0b1330;
}

/* Track holds slides; height is set dynamically via JS (updateSliderHeight) */
.hero-slider__track {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: height 0.35s ease; /* smooth height change jab slide switch ho */
}

/* Each slide sits absolutely on top of track so scrollHeight measure ho sake
   aur non-active slides document flow se bahar rahein */
.hero-slider__slide {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-slider__slide.is-active {
  position: relative; /* flow me aata hai taaki track ki height isi ke hisaab se ho */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* -------------------- ARROWS -------------------- */

.hero-slider__arrow {
  position: absolute;
  z-index: 20;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(11, 19, 48, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-slider__arrow svg {
  width: 20px;
  height: 20px;
}

.hero-slider__arrow:hover {
  background: #e8b74b;
  color: #0b1330;
  transform: translateY(-50%) scale(1.08);
}

.hero-slider__arrow--prev {
  left: 16px;
}

.hero-slider__arrow--next {
  right: 16px;
}

@media (max-width: 650px) {
  .hero-slider__arrow {
    width: 36px;
    height: 36px;
  }

  .hero-slider__arrow--prev {
    left: 8px;
  }

  .hero-slider__arrow--next {
    right: 8px;
  }
}

/* -------------------- DOTS -------------------- */

.hero-slider__dots {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 16px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.hero-slider__dot.is-active {
  width: 27px;
  border-radius: 999px;
  background: #e8b74b;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide {
    transition: none;
  }

  .hero-slider__track {
    transition: none;
  }
}




/* ===== Mobile/tablet (1023px tak): slider static, arrows/dots hide ===== */
.hero-slider--static .hero-slider__arrow,
.hero-slider--static .hero-slider__dots { display: none !important; }

/* ===== Slide 4 : UPPCS ===== */
.up4-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  color: #fff;
  background: linear-gradient(135deg, #131b2e 0%, #0c1222 100%);
}
.up4-hero::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(254, 166, 25, .12);
  filter: blur(60px);
  pointer-events: none;
}
.up4-hero h2, .up4-hero p, .up4-hero ul { margin: 0; }

.up4-wrap {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.up4-left { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

.up4-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,221,184,.25);
  color: #ffddb8;
}
.up4-title {
  font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em;
  color: #fff;
}
.up4-amber { color: #ffddb8; font-style: normal; }
.up4-sub { font-size: 26px; font-weight: 700; color: #dae2fd; }
.up4-lead { font-size: 15px; line-height: 1.65; color: #bec6e0; max-width: 680px; }
.up4-lead strong { color: #ffddb8; }

.up4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; }
.up4-box {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.up4-box small { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #bec6e0; }
.up4-box b { font-size: 15px; color: #fff; }
.up4-box b s { font-size: 12px; font-weight: 500; color: #bec6e0; margin-left: 4px; }
.up4-box span { font-size: 12px; color: rgba(190,198,224,.85); }
.up4-box .up4-green { color: #6ffbbe; font-weight: 600; }

.up4-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.up4-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 13.5px; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.up4-btn:hover { transform: translateY(-2px); }
.up4-btn--gold { background: #fea619; color: #684000; }
.up4-btn--gold:hover { background: #ffddb8; color: #684000; }
.up4-btn--ghost { background: rgba(255,255,255,.1); color: #dae2fd; border: 1px solid rgba(255,255,255,.15); }
.up4-btn--ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

.up4-checks {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, auto); gap: 8px 18px;
  font-size: 12.5px; color: #bec6e0;
}

.up4-right { display: flex; justify-content: center; }
.up4-card {
  width: 100%; max-width: 480px;
  background: #000;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.up4-card__top { background: #fea619; color: #684000; padding: 9px 18px; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.up4-card__img { position: relative; height: 340px; background: #1a2238; }
.up4-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up4-card__shade { position: absolute; inset: 0; background: linear-gradient(to top, #000 0%, rgba(0,0,0,.35) 50%, transparent 100%); }
.up4-card__txt { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.up4-card__txt b { font-size: 17px; color: #fff; }
.up4-live { align-self: flex-start; background: #ba1a1a; color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 4px; letter-spacing: .05em; }
.up4-card__bot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: #131b2e;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12.5px; color: #dae2fd;
}
.up4-card__bot b { color: #6ffbbe; }

/* 1024px – 1279px: thoda compact */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .up4-wrap { padding: 0 32px; gap: 28px; }
  .up4-title { font-size: 34px; }
  .up4-sub { font-size: 20px; }
  .up4-grid { grid-template-columns: repeat(2, 1fr); }
  .up4-checks { grid-template-columns: repeat(2, auto); }
  .up4-card__img { height: 280px; }
}