/* ===========================
   Image Slider CSS
   =========================== */

.slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0d1b6e;
  height: 420px;
}

.slider-track {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Each slide takes 1/5 of the track = 20% = full viewport */
.slide {
  width: 20%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── Slide background themes ── */
.slide-1 {
  background: #0d1b6e;
}
/* Placeholder classroom image using a CSS pattern — replace src with your real image */
.slide-1::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('../js/assets/image.png') center/cover no-repeat;
  opacity: 1;
}

.slide-2 {
  background: #1b5e20;
}
.slide-2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('../js/assets/image1.png') center/cover no-repeat;
  opacity: 1;
}

.slide-3 {
  background: #e65100;
}
.slide-3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('../js/assets/image2.png') center/cover no-repeat;
  opacity: 1;
}

.slide-4 {
  background: #0d47a1;
}
.slide-4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('../js/assets/image2.png') center/cover no-repeat;
  opacity: 1;
}

.slide-5 {
  background: #4a148c;
}
.slide-5::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('../js/assets/image1.png') center/cover no-repeat;
  opacity: 1;
}

/* ── Slide Content ── */
.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 700px;
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-badge {
  display: inline-block;
  background: rgba(255, 213, 79, 0.22);
  border: 1px solid #ffd54f;
  color: #ffd54f;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.slide-content h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 300;
}

.slide-list {
  list-style: none;
  margin-bottom: 20px;
}
.slide-list li {
  font-size: 13px;
  color: #e8eaf6;
  padding: 3px 0;
}

.slide-badges-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.slide-cert {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  padding: 6px 14px;
  border-radius: 6px;
}

.slide-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}
.slide-stats div {
  text-align: center;
}
.slide-stats span {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #ffd54f;
}
.slide-stats div {
  font-size: 11px;
  color: #c5cae9;
}

.slide-cta {
  display: inline-block;
  background: #e53935;
  color: #fff;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.slide-cta:hover { background: #c62828; transform: scale(1.02); }

/* ── Arrow Buttons ── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  padding: 0;
}
.slider-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.08);
}
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* ── Dots ── */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.dot.active {
  background: #ffd54f;
  transform: scale(1.3);
}

/* ===========================
   Floating Sidebar CSS
   =========================== */

.floating-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fsb-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  transition: all 0.2s;
  border-radius: 0;
  position: relative;
}

.fsb-enquiry {
  background: #7b1fa2;
  width: 50px;
  height: 50px;
  padding: 0;
  font-size: 22px;
  border-radius: 0;
  margin-bottom: 0;
}
.fsb-enquiry i { font-size: 22px; }

.fsb-phone    { background: #1565c0; }
.fsb-whatsapp { background: #25d366; }
.fsb-insta    { background: #e1306c; }
.fsb-facebook { background: #1877f2; }
.fsb-youtube  { background: #ff0000; }

.fsb-item:hover {
  background-color: brightness(1.2);
  filter: brightness(1.2);
}

.fsb-item::before {
  display: none;
}

/* ── Responsive slider ── */
@media (max-width: 768px) {
  .slider-wrap { height: 300px; }
  .slide-content { padding: 0 50px 0 20px; }
  .slide-content h2 { font-size: 20px; }
  .slide-content p { font-size: 12px; }
  .slider-arrow { width: 38px; height: 38px; font-size: 24px; }
  .slide-stats { gap: 14px; }
  .slide-stats span { font-size: 18px; }
  .floating-sidebar { top: auto; bottom: 0; transform: none; flex-direction: row; width: 100%; justify-content: center; background: #1a1a2e; padding: 6px; gap: 6px; }
  .fsb-item { border-radius: 8px !important; margin-bottom: 0 !important; width: 42px; height: 42px; }
  .fsb-enquiry { writing-mode: horizontal-tb; width: auto; padding: 0 10px; font-size: 11px; border-radius: 8px !important; }
  .fsb-item::before { display: none; }
}
