
/* Reset & Font */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* Popup */
/* Overlay background */
.popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.popup-content {
  background: #fff;
  padding: 1.5em;
  border-radius: 8px;
  text-align: center;
  width: 100%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

/* Smooth fade-in animation */
@keyframes popupFadeIn {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close button */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: indianred;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
  background: #f9f9f9;
  color: #666;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Heading */
.popup-content h2 {
  font-size: 1.75rem;
  margin-top: 10px;
  margin-bottom: 1rem;
  color: #2c3e50;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

/* Body layout */
.popup-body {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Text section */
.popup-text {
  flex: 2;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Image section */
.popup-photo {
  flex: 1;
  text-align: center;
}

.popup-photo img {
  max-width: 130px;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  border: 3px solid #ddd;
  background: white;
}

/* Kepala sekolah name */
.nama-kepala {
  margin-top: 0.75rem;
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
}

.nama-kepala small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .popup-body {
    flex-direction: column;
  }

  .popup-photo img {
    max-width: 100px;
  }
}


/* Header */
.site-header {
  background: #004080;
  position: sticky;
  top: 0;
  z-index: 1000;
  color: white;
  padding: 0.5em 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1em;
}

.site-header .logo {
  height: 70px;
  margin-left: 220px;
}

.site-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  line-height: 1;
}

.site-title h1 {
  font-size: 2em;
  margin: 0;
  font-weight: 700;
}

.site-title p {
  font-size: 0.8em;
  margin: 0;
  font-weight: 400;
  color: #fff;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  height: 400px;
  margin-bottom: 20px;
}

.welcome-container,
.slider-container,
.wilayah-container {
  flex: 1;
  min-width: 300px;
}

.welcome-container {
  background: linear-gradient(135deg, #ADD8E6, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.welcome-text {
  max-width: 600px;
  text-align: left;
}

.welcome-text h2 {
  font-size: 35px;
  color: #555;
  margin-bottom: 0px;
}

.welcome-text h1 {
  font-size: 30px;
  color: #1a237e;
  margin-bottom: 5px;
  line-height: 1.4;
}

.welcome-text .subtext {
  font-size: 16px;
  color: #444;
  font-style: italic;
  margin-bottom: 0px;
}

.slider-container {
  overflow: hidden;
  position: relative;
}

.slider {
  height: 100%;
}

.slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)), url('/assets/depan.jpg');
}

.btn-daftar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  margin-top: 20px;
  background: linear-gradient(135deg, #0066ff, #0052cc);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  line-height: 1.2;
}

.btn-daftar i {
  font-size: 16px;
  position: relative;
  top: 1px; /* Naikkan ikon agar presisi dengan teks */
  transition: transform 0.3s ease;
}

.btn-daftar:hover {
  background: linear-gradient(135deg, #0052cc, #003d99);
  box-shadow: 0 6px 18px rgba(0, 82, 204, 0.3);
  transform: translateY(-2px);
}

.btn-daftar:hover i {
  transform: translateX(5px);
}

/* Section Container */
.section-container {
  margin-top: 3rem;
}

.kuota-container,
.jadwal-container,
.jalur-container,
.cara-container,
.syarat-container {
  width: 80%;
  margin: 0 auto;
  padding: 5px 5px;
  box-sizing: border-box;
}

.kuota-container {
    margin-tp: 50px;
}

.syarat-container {
  display: flex;
  margin-top: 5px;
  margin-bottom: 20px;
  gap: 10px;
}

.judul {
  font-size: 2rem;
  color: #004080;
  margin-top: 0px;rg
  margin-bottom: 10px;
  font-weight: bold;
  text-align: center;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Jadwal Container */
.jadwal-container {
  margin-top: 0px;
}

.cards.jadwal {
  display: flex;
  margin-top: 0px;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow-x: hidden;
  gap: 1rem;
}

.cards.jadwal .card {
  flex: 0 0 calc((100% - (5 * 1rem)) / 6);
  box-sizing: border-box;
  min-width: 250px;
}

.scroll-wrapper {
  position: relative;
  overflow-x: auto;
  padding: 0px 10px; /* beri ruang untuk tombol */
}

.scroll-buttons {
  position: relative;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #004080;
  border: 1px solid #ccc;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 2;
  font-size: 18px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.3s;
}

.scroll-btn:hover {
  background: #f1f1f1;
}

.scroll-btn.left {
  left: 10px;
}

.scroll-btn.right {
  right: 10px;
}

/* Jalur Container */
.cards.jalur {
  display: flex;
  margin-top: 0px;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow-x: hidden;
  gap: 1rem;
}

.cards.jalur .card {
  flex: 0 0 calc((100% - (5 * 1rem)) / 4);
  box-sizing: border-box;
  min-width: 250px;
}

/* Wilayah Container */

.wilayah-container {
  padding: 10px 20px;
  text-align: center;
}

.wilayah-container .subjudul {
  display: inline-block;
  background: linear-gradient(90deg, #dfefff, #eaf7ff);
  padding: 10px 20px;
  border-radius: 30px;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  margin-top: 0px;
  transition: transform 0.3s ease;
}

.wilayah-container .judul {
  margin-bottom: 10px;
}

.cards.wilayah {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.card-wilayah {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 20px;
  width: 240px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card-wilayah:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.icon-circle-wilayah {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: #3498db;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle-wilayah i {
  color: #ffffff;
  font-size: 26px;
}

.card-wilayah p {
  font-size: 18px;
  color: #2c3e50;
  font-weight: 600;
  margin: 0;
}

/* Kuota */
.card-kuota-utama {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-kuota-utama:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 64, 128, 0.15);
}

.grid-jalur {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.jalur-item h4 {
  font-size: 1.1rem;
  color: #004080;
  margin: 0.75rem 0 0.3rem;
}

.jalur-item p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

.icon-circle-kuota img {
  height: 90px;       /* Atur tinggi tetap */
  width: auto;        /* Biarkan lebar mengikuti rasio */
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.note-card {
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 0px;
  background: #f4f9ff;
  padding: 1rem 1.5rem;
  border-left: 5px solid #004080;
  border-radius: 0.75rem;
  color: #003060;
  font-size: 0.95rem;
}

.card.cara {
  grid-column: 1 / -1;
  text-align: center;
  background-color: #f0f8ff;
  color: #003366;
  font-weight: bold;
}

/* Icon Circle Umum */
.icon-circle {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background-color: #e0f0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.icon-circle img {
  width: 32px;
  height: 32px;
}

.card:hover .icon-circle {
  background-color: #cce5ff;
  transform: scale(1.1);
}

/* Syarat dan Video */
.text-center {
  text-align: center;
}

.card-syarat {
  flex: 1 1 45%;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.card-syarat h3 {
  font-size: 1.4rem;
  margin-top: 0px;
  margin-bottom: 15px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 5px;
  color: #2c3e50;
  text-align: center;
}

.card-syarat ul {
  list-style: decimal inside;
  line-height: 1.6;
  color: #333;
}

.card-syarat a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.card-syarat a:hover {
  text-decoration: underline;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 10px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.custom-list {
  list-style: none !important;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.custom-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: #2c3e50;
  line-height: 1.6;
  border-left: 3px solid #3498db;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 12px 16px 12px 40px;
  transition: background 0.3s ease;
}

.custom-list li:hover {
  background-color: #eaf6ff;
}

.custom-list li::before {
  content: "✔";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #3498db;
  font-weight: bold;
  font-size: 1rem;
}

.custom-list a {
  color: #2980b9;
  text-decoration: underline;
}

.custom-list a:hover {
  color: #1c5980;
}

.note-card {
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  margin-top: 20px;
  margin-bottom: 0px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 15px;
  color: #856404;
  width: flex;
}

/* Footer */
footer {
  background: linear-gradient(to right, #1e1e2f, #2a2a3d);
  color: #ffffff;
  padding: 20px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logos {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  margin-bottom: 10px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.footer-info h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
}

.footer-info p {
  margin: 5px 0 0;
  font-size: 0.95rem;
  color: #ccc;
  text-align: center;
}

.footer-social {
  margin-bottom: 20px;
}

.footer-social .social-icon {
  display: inline-block;
  margin: 0 10px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
  background-color: #007bff;
  color: #fff;
  transform: scale(1.1);
}

.footer-bottom {
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  color: #ccc;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .site-header .container {
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0 1rem;
    width: 100%;
  }

  .site-header .logo {
    height: 60px;
    margin-left: 0;
    margin-bottom: 0.5em;
  }

  .site-title {
    text-align: center;
    gap: 0.25em;
  }

  .site-title h1 {
    font-size: 1.8em;
  }

  .site-title p {
    font-size: 0.7em;
    display: none;
  }

  .hero-section {
    flex-direction: column;
    height: auto;
    margin-bottom: 5px;
  }

  .welcome-container,
  .slider-container {
    width: 100%;
    height: 50vh;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .welcome-text {
    text-align: left;
    margin-left: 20px;
  }

  .welcome-text h2 {
    font-size: 25px;
  }

  .welcome-text h1 {
    font-size: 20px;
  }

  .slider-container {
    display: none;
  }

  .judul {
    font-size: 1.5em;
  }

  .slide-text {
    bottom: 20px;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    max-width: 90%;
  }

  .slide-text h2 {
    font-size: 1.2rem;
  }

  /* Footer Responsive */
  footer {
    padding-top: 0px;
    padding-bottom: 0px;
  }

  .footer-container {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 10px;
  }

  .footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
  }

  .footer-social .social-icon {
    margin: 5px;
    width: 36px;
    height: 36px;
    font-size: 16px;
    line-height: 36px;
  }

  .footer-bottom {
    font-size: 13px;
    padding-top: 0px;
  }

  /* Responsive section padding */
  .syarat-container {
    flex-direction: column;
    width: 90%;
    gap: 20px;
  }

  .jalur-container {
    flex-direction: column;
    width: 90%;
    gap: 20px;
  }

  .jadwal-container {
    width: 90%;
    gap: 20px;
    margin-top: 0px;
  }

  .kuota-container, {
    width: 70%;
  }

  .card-syarat {
    flex: 1 1 100%;
  }

  /* Jadwal Cards Scroll */
  .cards.jadwal {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    width: 100%;
  }

  .cards.jadwal .card {
    flex: 0 0 auto;
    min-width: 90%;
    max-width: 90%;
    box-sizing: border-box;
  }

  .cards.jalur {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-top: 0px;
    width: 100%;
  }

  .cards.jalur .card {
    flex: 0 0 auto;
    width: 280px; /* Tetapkan lebar sama persis untuk semua card */
    scroll-snap-align: start;
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  /* Samakan tinggi antar kartu dengan tinggi minimum */
  .cards.jalur .card p {
    flex-grow: 1;
    display: flex;
    align-items: stretch;
  }

  /* Tombol panah scroll (posisi absolut agar tidak menghalangi scroll area) */
  .scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background: #004080;
    color: white;
    border: none;
    font-size: 24px;
    padding: 0.3em 0.6em;
    cursor: pointer;
    border-radius: 50%;
  }

  .scroll-btn.left {
    left: 10px;
  }

  .scroll-btn.right {
    right: 10px;
  }

  /* Kuota cards stack */
  .cards.kuota {
    flex-direction: column;
    align-items: center;
  }

  .cards.kuota .card {
    width: 100%;
    max-width: 300px;
  }

  .popup-body {
    flex-direction: column;
    align-items: center;
  }

  .popup-text {
    text-align: justify;
  }

  .cards.wilayah {
    flex-direction: column;
    align-items: center;
  }

  .card-wilayah {
    width: 90%;
    max-width: 400px;
  }

  .wilayah-container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .wilayah-container .judul {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .wilayah-container .subjudul {
    margin-bottom: 15px;
  }

  .card-wilayah {
    width: 90%;
  }

  .icon-wilayah {
    font-size: 24px;
  }

  .scroll-btn {
    padding: 6px 10px;
    font-size: 16px;
  }
}