:root {
   --pink:       #b72359;
  --pink-light:  #E896C0;
  --pink-dark:   #a5095f;
  --pink-pale:   #FEF0F8;
  --pink-soft:   #F5C0DC;
  --yellow:      #FFE066;
  --yellow-dark: #F5C518;
  --dark:        #670140;
  --text:        #3D1830;
  --gray:        #7A6080;
  --bg:          #FCF0F8;
  --border:      #F5C0DC;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
.ff-fredoka { font-family: 'Fredoka One', cursive !important; }

/* BACK TO TOP */
#btt {
  position: fixed; bottom: 28px; right: 28px; z-index: 1050;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--pink); color: white; border: none;
  font-size: 1.2rem; box-shadow: 0 4px 16px rgba(224,32,32,.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; cursor: pointer;
}
#btt.show { opacity: 1; pointer-events: all; }
#btt:hover { transform: translateY(-3px); }

/* NAVBAR */
.navbar { border-bottom: 3px solid var(--pink-soft); box-shadow: 0 2px 16px rgba(224,32,32,.10); }
.navbar-brand img.logo-img { height: 52px; width: auto; object-fit: contain; }
.nav-link {
  font-weight: 700; font-size: .9rem; color: var(--text) !important;
  border-bottom: 2.5px solid transparent; transition: color .2s, border-color .2s;
}
.nav-link:hover { color: var(--pink) !important; border-color: var(--pink-soft); }
.btn-nav-cta {
  background: var(--pink) !important; color: white !important;
  border-radius: 25px; font-weight: 800; font-size: .88rem;
  padding: 8px 20px; border: none;
  box-shadow: 0 3px 10px rgba(224,32,32,.3); transition: background .2s, transform .15s;
}
.btn-nav-cta:hover { background: var(--pink-dark) !important; transform: translateY(-1px); }

/* HERO SLIDER */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider .carousel { position: relative; }
.hero-slider .carousel-inner { position: relative; width: 100%; overflow: hidden; }
.carousel-item {
  height: 80vh; min-height: 600px;
  padding: 0;
  position: relative;
  align-items: center;
}
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: flex !important;
}
.slide-inner-wrap {
  width: 100%; height: 100%;
  display: flex; align-items: center;
  padding: 3.5rem 5rem;
}
.slide-1 { background: linear-gradient(135deg, #740549 0%, #da3873 55%, #da6f8d 100%); }
.slide-2 { background: linear-gradient(135deg,  #82163d 0%, #ad295a 55%, #be5271 100%);}
.slide-3 { background: linear-gradient(135deg, #601530 0%, #B03060 55%, #E07090 100%); }
.slide-deco-1, .slide-deco-2 { position: absolute; border-radius: 50%; pointer-events: none; }
.slide-deco-1 { top: -80px; right: -80px; width: 380px; height: 380px; background: rgba(255,255,255,.05); }
.slide-deco-2 { bottom: -100px; left: 5%; width: 260px; height: 260px; background: rgba(255,224,102,.10); }
.slide-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: .82rem; font-weight: 800; padding: 5px 14px;
  border-radius: 25px; border: 1px solid rgba(255,255,255,.3); letter-spacing: .05em;
}
.slide-title {
  font-family: 'Fredoka One', cursive; font-size: 3.0rem; color: #fff;
  line-height: 1.12; text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.slide-title span { color: #FFE060; }
.slide-sub {
  color: rgba(255,255,255,.88); font-size: 1.05rem;
  line-height: 1.7; font-weight: 600; max-width: 440px;
}
.btn-hero-primary {
  background: var(--yellow); color: var(--dark); border: none;
  border-radius: 30px; font-weight: 800; font-size: .98rem;
  padding: 12px 28px; box-shadow: 0 4px 20px rgba(255,224,102,.4);
  transition: transform .15s, box-shadow .15s; font-family: 'Nunito', sans-serif;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255,224,102,.5); color: var(--dark); }
.btn-hero-outline {
  background: rgba(255,255,255,.18); color: white;
  border: 2px solid rgba(255,255,255,.4); border-radius: 30px;
  font-weight: 700; font-size: .92rem; padding: 11px 26px;
  transition: background .2s; font-family: 'Nunito', sans-serif;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.28); color: white; }

/* Hero image side */
.hero-img-wrap {
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(17,17,17,.4);
  height: 72vh; max-height: 580px; width: 100%;
}
.hero-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Carousel Controls */
.carousel-control-prev, .carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px; top: 50%; 
  transform: translateY(-50%);
  border-radius: 50%; 
  background: rgba(255,255,255,.22) !important;
  backdrop-filter: blur(8px); 
  border: 2px solid rgba(255,255,255,.45);
  opacity: 1; bottom: auto; 
  z-index: 20; 
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.carousel-control-prev { left: 24px; }
.carousel-control-next { right: 24px; }
.carousel-control-prev:hover, .carousel-control-next:hover { background: rgba(255,255,255,.38) !important; }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 20px; height: 20px; }
.carousel-indicators { bottom: 24px; margin-bottom: 0; }
.carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.4); transition: width .3s, border-radius .3s, background .3s; margin: 0 4px;
}
.carousel-indicators .active { width: 28px; border-radius: 4px; background: white; }
.slider-progress { position: absolute; top: 0; left: 0; height: 3px; background: rgba(255,255,255,.5); z-index: 10; }
.slide-counter { position: absolute; top: 22px; right: 80px; z-index: 10; font-size: .82rem; font-weight: 800; color: rgba(255,255,255,.75); letter-spacing: .05em; }

/* STATS BAR */
.stats-header { background: var(--pink-pale); border-bottom: 1px solid var(--border); }
.stats-header h5 { font-family: 'Fredoka One', cursive; color: var(--pink-dark); letter-spacing: .03em; }
.stat-item { border-right: 2px dashed var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Fredoka One', cursive; font-size: 2.6rem; color: var(--pink); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--gray); font-weight: 700; }

/* SECTION COMMONS */
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pink); color: white;
  font-size: .78rem; font-weight: 800; padding: 4px 14px;
  border-radius: 20px; letter-spacing: .07em;
}
.section-title { font-family: 'Fredoka One', cursive; font-size: 2.3rem; color: var(--dark); line-height: 1.25; }
.section-title span { color: var(--pink); }
.section-sub { color: var(--gray); font-size: 1rem; font-weight: 600; line-height: 1.6; }

/* DIM CARDS */
.dim-card {
  border-radius: 20px; padding: 1.6rem 1.3rem; color: white;
  position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s;
  cursor: default; height: 100%;
}
.dim-card::after {
  content: ''; position: absolute; bottom: -20px; right: -20px;
  width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.18);
}
.dim-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.dim-card .dc-icon { font-size: 1.7rem; }
.dim-card h5 { font-weight: 800; font-size: .97rem; }
.dim-card p { font-size: .85rem; opacity: .85; line-height: 1.45; font-weight: 600; }
.d1 { background: #b41b68; } 
.d2 { background: #b72359; } 
.d3 { background: #b72359; }
.d4 { background: #b41b68; } 
.d5 { background: #b41b68; } 
.d6 { background: #b72359; color: #3D1830 !important; }
.d7 { background: #b72359;} 
.d8 { background: #b41b68;}
        

/* TIMELINE */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--pink-soft), var(--pink), var(--pink-soft)); border-radius: 3px;
}
.tl-item { position: relative; margin-bottom: 2.2rem; padding-left: 2rem; }
.tl-dot {
  position: absolute; left: -2.3rem; top: .2rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--pink); border: 3px solid white;
  box-shadow: 0 0 0 3px var(--pink-soft); z-index: 1; margin-left: 11px;
}
.tl-dot.done { background: var(--pink-dark); }
.tl-dot.active-dot { background: var(--yellow-dark); box-shadow: 0 0 0 4px rgba(255,224,102,.35); }
.tl-card {
  background: white; border: 1.5px solid var(--border); border-radius: 16px;
  padding: 1.3rem 1.5rem; transition: transform .2s, box-shadow .2s;
}
.tl-card:hover { transform: translateX(4px); box-shadow: 0 6px 20px rgba(224,32,32,.10); }
.tl-date { font-size: .78rem; font-weight: 800; color: var(--pink); letter-spacing: .06em; text-transform: uppercase; }
.tl-title { font-weight: 800; font-size: 1.02rem; color: var(--dark); }
.tl-desc { font-size: .87rem; color: var(--gray); line-height: 1.55; font-weight: 600; }
.badge-done { background: #ccc !important; color: #555 !important; }
.badge-active { background: var(--yellow-dark) !important; color: var(--dark) !important; }
.badge-coming { background: var(--pink) !important; color: white !important; }

/* MANFAAT TABS */
.manfaat-tabs .nav-link {
  border: 2px solid var(--border) !important; background: white;
  color: var(--gray) !important; border-radius: 25px !important;
  font-weight: 700; font-size: .88rem; padding: 8px 20px; transition: all .2s;
}
.manfaat-tabs .nav-link.active { background: var(--pink) !important; border-color: var(--pink) !important; color: white !important; }
.manfaat-tabs .nav-link:hover:not(.active) { border-color: var(--pink) !important; color: var(--pink) !important; }
.manfaat-item { background: white; border: 1px solid var(--border); border-radius: 14px; }
.check-circle {
  width: 22px; height: 22px; min-width: 22px; background: var(--pink);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: .72rem; font-weight: 800;
}
.manfaat-item p { font-size: .88rem; font-weight: 600; color: var(--text); }

/* DOWNLOAD SECTION */
.download-section { background: linear-gradient(60deg, var(--pink-dark) 100px, var(--pink) 100%); }
.dl-card {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px; color: white; text-decoration: none; transition: background .2s, transform .15s;
}
.dl-card:hover { background: rgba(255,255,255,.22); transform: translateX(5px); color: white; }
.dl-icon-box {
  width: 44px; height: 44px; min-width: 44px; background: var(--yellow);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--dark);
}
.dl-card h6 { font-weight: 800; font-size: .95rem; }
.dl-card small { opacity: .8; font-weight: 600; }

/* TABLE SECTION */
.peserta-section { background: white; }
#tabelSekolah_wrapper .dataTables_filter input { border: 2px solid var(--border); border-radius: 10px; font-family: 'Nunito', sans-serif; }
#tabelSekolah_wrapper .dataTables_length select { border: 2px solid var(--border); border-radius: 10px; font-family: 'Nunito', sans-serif; }
.table-dark { background: var(--pink-dark) !important; }
.table-bordered th, .table-bordered td { vertical-align: middle; font-size: .88rem; font-weight: 600; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: var(--pink-pale); }

/* BTN PESERTA */
.btn-peserta {
  background: linear-gradient(90deg, var(--pink-dark), var(--pink));
  color: white; border: none; border-radius: 30px;
  font-family: 'Fredoka One', cursive; font-size: 1rem;
  padding: 12px 32px; box-shadow: 0 4px 18px rgba(224,32,32,.35);
  transition: opacity .2s, transform .15s;
}
.btn-peserta:hover { opacity: .9; transform: translateY(-2px); color: white; }

/* FORM MODAL */
.modal-content { border-radius: 24px; border: none; box-shadow: 0 20px 60px rgba(140, 6, 60, 0.25); }
.modal-header { border-bottom: none; padding: 1.8rem 1.8rem .5rem; }
.modal-header h4 { font-family: 'Fredoka One', cursive; font-size: 1.9rem; color: var(--pink-dark); }
.modal-body { padding: 1rem 1.8rem 1.8rem; }
.form-label { font-size: .85rem; font-weight: 800; color: var(--dark); }
.form-control, .form-select {
  border: 2px solid var(--border); border-radius: 12px;
  background: var(--pink-pale); font-family: 'Nunito', sans-serif; font-weight: 600; color: var(--text);
}
.form-control:focus, .form-select:focus { border-color: var(--pink); background: white; box-shadow: 0 0 0 3px rgba(224,32,32,.12); }
.form-section-label { font-size: .78rem; font-weight: 800; color: var(--pink); letter-spacing: .07em; border-bottom: 1.5px dashed var(--border); padding-bottom: .5rem; }
.btn-submit-form {
  width: 100%; background: linear-gradient(90deg, var(--pink-dark), var(--pink));
  color: white; border: none; border-radius: 30px; font-family: 'Fredoka One', cursive;
  font-size: 1.1rem; padding: 13px; box-shadow: 0 4px 18px rgba(224,32,32,.35);
  transition: opacity .2s, transform .15s;
}
.btn-submit-form:hover { opacity: .9; transform: translateY(-2px); color: white; }
.success-block { text-align: center; padding: 2rem 1rem; }
.success-block .s-icon { font-size: 3.5rem; }
.success-block h4 { font-family: 'Fredoka One', cursive; font-size: 1.8rem; color: var(--pink-dark); }

/* FOOTER */
footer { background: var(--dark); }
footer h5 { font-family: 'Fredoka One', cursive; color: #FFD020; }
footer p, footer a { font-size: .88rem; color: rgba(255,255,255,.65); font-weight: 600; }
footer a { text-decoration: none; display: block; margin-bottom: .4rem; }
footer a:hover { color: var(--pink-light); }
.footer-brand { font-family: 'Fredoka One', cursive; font-size: 1.5rem; color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.4); font-weight: 600; }
.social-btn {
  width: 36px; height: 36px; background: rgba(255,255,255,.12); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; text-decoration: none; transition: background .2s;
}
.social-btn:hover { background: var(--pink); color: white; }

@media (max-width: 991px) {
  .carousel-item { height: auto; min-height: 100svh; }
  .slide-inner-wrap { padding: 5rem 1.5rem 3rem; flex-direction: column; }
  .hero-img-wrap { height: 42vw; min-height: 220px; max-height: 340px; }
  .slide-title { font-size: 2.2rem; }
}
.badge-done {
  background-color: #6c757d;
}

.active-dot {
  background-color: #28a745;
}

.panduan-photo {
  width: 100%; border-radius: 16px;
  object-fit: cover; height: 220px;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  border: 3px solid rgba(255,255,255,.25);
  display: block;
}


.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.75s cubic-bezier(.22,1,.36,1), transform 0.75s cubic-bezier(.22,1,.36,1);
}
.reveal.from-left  { transform: translateX(-52px); }
.reveal.from-right { transform: translateX(52px); }
.reveal.from-bottom{ transform: translateY(52px); }
.reveal.scale-in   { transform: scale(0.92); }
.reveal.visible {
  opacity: 1 !important;
  transform: translate(0,0) scale(1) !important;
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }
.reveal-delay-5 { transition-delay: 0.58s; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, #6B2060 0%, #B84080 55%, #E896C0 100%);
  padding: 2.8rem 2rem 2.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,224,102,.08);
}
.ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.18);
  color: white;
  font-size: .76rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,.3);
  letter-spacing: .07em;
  margin-bottom: .9rem;
}
.ph-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: white;
  margin-bottom: .4rem;
  position: relative;
  z-index: 1;
}
.ph-title span { color: #FFD6F0; }
.ph-sub {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ===== FORM WRAPPER ===== */
.form-page-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ===== SECTION CARDS ===== */
.sec-card {
  background: white;
  border-radius: 18px;
  border: 1.5px solid var(--border, #EDD5E5);
  margin-bottom: 1.4rem;
  overflow: hidden;
}
.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .9rem 1.4rem;
  border-bottom: 1.5px solid var(--border, #EDD5E5);
  background: var(--pink-pale, #FEF0F8);
}
.sec-head-title {
  font-family: 'Fredoka One', cursive;
  font-size: .95rem;
  color: var(--pink-dark, #6B2060);
  margin: 0;
}
.sec-body { padding: 1.4rem; }

/* ===== FORM CONTROLS ===== */
.form-label { font-size: .83rem; font-weight: 800; color: var(--dark, #2A1020); margin-bottom: 4px; }
.form-control, .form-select {
  border: 1.5px solid var(--border, #EDD5E5);
  border-radius: 10px;
  background: var(--pink-pale, #FEF0F8);
  font-family: 'Nunito', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text, #3D1830);
  padding: .6rem .9rem;
  transition: border-color .2s, background .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--pink, #B84080);
  background: white;
  box-shadow: 0 0 0 3px rgba(184,64,128,.1);
  outline: none;
}
textarea.form-control { resize: vertical; min-height: 90px; }

/* ===== PESERTA BLOCK ===== */
.peserta-block {
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  background: var(--pink-pale, #FEF0F8);
  border: 1.5px solid var(--border, #EDD5E5) !important;
}
.peserta-label {
  font-size: .74rem;
  font-weight: 800;
  color: var(--pink, #B84080);
  letter-spacing: .06em;
  margin-bottom: .75rem;
}

/* ===== SUBMIT BUTTON ===== */
.btn-submit-form {
  width: 100%;
  background: linear-gradient(90deg, var(--pink-dark, #6B2060), var(--pink, #B84080));
  color: white;
  border: none;
  border-radius: 30px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  padding: 13px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(184,64,128,.35);
  transition: transform .15s, opacity .2s;
  margin-top: .5rem;
}
.btn-submit-form:hover { opacity: .9; transform: translateY(-2px); color: white; }

/* ===== SUCCESS ===== */
.success-block {
  text-align: center;
  padding: 3rem 1.5rem;
  background: white;
  border-radius: 18px;
  border: 1.5px solid var(--border, #EDD5E5);
  margin-top: 1rem;
}
.success-block .s-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-block h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: var(--pink-dark, #6B2060);
  margin-bottom: .6rem;
}

/* ===== NOT OPEN / CLOSED ===== */
.status-card {
  max-width: 520px;
  margin: 3rem auto;
  text-align: center;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(107,32,96,.15);
}
.status-card-head {
  background: linear-gradient(135deg, #a5095f 0%, #b04a74 100%);
  padding: 2.2rem 2rem 1.8rem;
}
.status-card-head h3 {
  font-family: 'Fredoka One', cursive;
  color: white;
  font-size: 1.8rem;
  margin: 0;
}
.status-card-body { padding: 1.8rem 2rem 2rem; }
.status-info-box {
  background: #FFF0F0;
  border: 2px dashed #FFBABA;
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #2D0000;
  line-height: 1.7;
}
.status-info-box span {
  color: #a5095f;
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #a5095f, #cb638e);
  color: white;
  border: none;
  border-radius: 30px;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  padding: 11px 32px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(165,9,95,.3);
  transition: transform .15s;
  cursor: pointer;
  margin-top: .4rem;
}
.btn-back:hover { transform: translateY(-2px); color: white; }

/* ===== BREADCRUMB ===== */
.form-breadcrumb {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray, #7A6080);
  margin-bottom: 1.5rem;
}
.form-breadcrumb a { color: var(--pink, #B84080); text-decoration: none; }
.form-breadcrumb a:hover { text-decoration: underline; }