/* ══════════════════════════════════════════
   OVERLAY
══════════════════════════════════════════ */
#sp-overlay{
  position:fixed;
  inset:0;
  background:rgba(5,15,50,0.88);
  backdrop-filter:blur(6px);
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  animation:spFadeIn .4s ease forwards;
}

#sp-overlay.sp-hide{
  animation:spFadeOut .4s ease forwards;
  pointer-events:none;
}

@keyframes spFadeIn{from{opacity:0}to{opacity:1}}
@keyframes spFadeOut{from{opacity:1}to{opacity:0}}

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */

#sp-modal{
  background:#fff;
  border-radius:20px;
  width:min(700px,95vw);
  max-height:94vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow:0 40px 100px rgba(0,0,60,0.6);
  animation:spUp .5s cubic-bezier(.22,1,.36,1) forwards;
  position:relative;
}

@keyframes spUp{
  from{opacity:0;transform:translateY(50px) scale(.96)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

/* ══════════════════════════════════════════
   CLOSE BUTTON
══════════════════════════════════════════ */

#sp-close{
  position:absolute;
  top:12px;
  right:14px;
  width:32px;
  height:32px;
  background:rgba(255,255,255,0.18);
  border:2px solid rgba(255,255,255,0.55);
  color:#fff;
  font-size:17px;
  border-radius:50%;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:20;
  transition:background .2s,transform .25s;
}

#sp-close:hover{
  background:rgba(255,255,255,0.38);
  transform:rotate(90deg);
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */

#sp-header{
  background:linear-gradient(135deg,#071d5c 0%,#1546b0 55%,#0c2e8a 100%);
  padding:22px 20px 16px;
  text-align:center;
  flex-shrink:0;
  position:relative;
}

#sp-header::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg,#f5c030,#ffe570,#f5c030);
}

.sp-logo-ring{
  width:72px;
  height:72px;
  border-radius:50%;
  background:#fff;
  padding:5px;
  margin:0 auto 9px;
  box-shadow:0 4px 18px rgba(0,0,0,0.3);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.sp-logo-ring img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:50%;
}

.sp-school-name{
  font-family:"SN Pro", sans-serif;
  font-size:clamp(18px,2.8vw,25px);
  font-weight:700;
  color:#fff;
  margin:0 0 4px;
}

.sp-address{
  font-family:"SN Pro", sans-serif;
  font-size:15px;
  color:rgba(255,255,255,0.78);
  margin:0;
}

/* ══════════════════════════════════════════
   GREETING
══════════════════════════════════════════ */

#sp-greeting{
  background:linear-gradient(90deg,#fffbec,#fffff8,#fffbec);
  border-bottom:1px solid #f0d566;
  padding:11px 20px;
  text-align:center;
}

.sp-g-title{
  font-family:"SN Pro", sans-serif;
  font-size:clamp(12px,2.2vw,18px);
  color:#0b2260;
  font-weight:700;
}

.sp-g-body{
  font-family:"SN Pro", sans-serif;
  font-size:12px;
  color:#444;
  line-height:1.5;
}

.sp-stars{
  color:#f5c030;
  font-size:18px;
  letter-spacing:4px;
}

/* ══════════════════════════════════════════
   TABS
══════════════════════════════════════════ */

#sp-tabs{
  display:flex;
  background:#0b2260;
}

.sp-tab{
  flex:1;
  padding:10px 6px;
  font-family:"SN Pro", sans-serif;
  font-size:13px;
  font-weight:800;
  color:rgba(255,255,255,0.5);
  background:transparent;
  border:none;
  cursor:pointer;
  letter-spacing:.8px;
}

.sp-tab.active{
  color:#fff;
  background:rgba(255,255,255,0.09);
}

/* =================================
   VIEWPORT
================================= */

#sp-viewport{
  width:100%;
  height:520px;
  overflow:hidden;
  position:relative;
  background:#f4f6ff;
  border-radius:12px;
}

/* =================================
   TRACK
================================= */

#sp-track{
  display:flex;
  width:300%;
  height:100%;
  transition:transform .6s ease;
}

/* =================================
   SLIDE
================================= */

.sp-slide{
  width:100%;
  padding:20px;
  overflow-y:auto;
  box-sizing:border-box;
}

/* scrollbar */

.sp-slide::-webkit-scrollbar{
  width:6px;
}

.sp-slide::-webkit-scrollbar-thumb{
  background:#b6c4ff;
  border-radius:10px;
}

/* =================================
   HEADING
================================= */

.sp-slide-heading{
  text-align:center;
  font-size:26px;
  font-weight:700;
  margin-bottom:20px;
}

/* =================================
   GRID
================================= */

.sp-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

/* =================================
   CARD
================================= */

.sp-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 5px 16px rgba(0,0,0,0.12);
  border:1px solid #dde4f5;
  text-align:center;
  padding-bottom:12px;
  transition:all .3s;
}

.sp-card:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 26px rgba(0,0,0,0.2);
}

/* =================================
   IMAGE
================================= */

.sp-card-img{
  width:100%;
  aspect-ratio:/4;
  background:#d4defc;
}

.sp-card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* =================================
   TEXT
================================= */

.sp-card-name{
  font-size:15px;
  color:#c0007a;
  font-weight:700;
  margin-top:8px;
}

.sp-card-grade{
  font-size:14px;
  color:#1a4eb8;
  font-weight:700;
}

.sp-card-scores{
  font-size:13px;
  color:#1a6b1a;
  line-height:1.8;
}

.sp-badge{
  display:inline-block;
  background:linear-gradient(90deg,#f5c030,#ffe570);
  color:#5a3800;
  font-size:12px;
  font-weight:800;
  padding:3px 10px;
  border-radius:20px;
  margin-top:4px;
}

/* =================================
   DOT PAGINATION
================================= */

#sp-bottom{
  display:flex;
  justify-content:center;
  padding:12px;
  background:#0b2260;
}

.sp-dot-row{
  display:flex;
  gap:10px;
}

.sp-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(255,255,255,0.4);
  cursor:pointer;
  transition:.3s;
}

.sp-dot.active{
  background:#f5c030;
  transform:scale(1.4);
}

/* =================================
   TABLET
================================= */

@media (max-width:1024px){

.sp-grid{
grid-template-columns:repeat(2,1fr);
}

#sp-viewport{
height:500px;
}

}

/* =================================
   MOBILE
================================= */

@media (max-width:600px){

.sp-grid{
grid-template-columns:repeat(1,1fr);
}

#sp-viewport{
height:460px;
}

.sp-slide-heading{
font-size:20px;
}

}

/* ══════════════════════════════════════════
   TABLET RESPONSIVE
══════════════════════════════════════════ */

@media (max-width:1024px){

  #sp-modal{
    width:92vw;
  }

  .sp-card{
    width:calc(50% - 10px);
  }

  .sp-school-name{
    font-size:18px;
  }

}

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE
══════════════════════════════════════════ */

@media (max-width:600px){

  #sp-modal{
    border-radius:14px;
    width:96vw;
  }

  .sp-card{
    width:calc(50% - 8px);
    min-width:auto;
  }

  .sp-card-name{
    font-size:11px;
  }

  .sp-card-grade{
    font-size:9px;
  }

}

/* ══════════════════════════════════════════
   SMALL MOBILE
══════════════════════════════════════════ */

@media (max-width:420px){

  .sp-card{
    width:100%;
  }

  .sp-logo-ring{
    width:60px;
    height:60px;
  }

  .sp-school-name{
    font-size:16px;
  }

}