/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  color: #333;
  background: #f9f9f9;
  overflow-x: hidden;
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

nav .logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #6eae96;
}

/* Hamburger default disembunyikan */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: #6eae96;
  border-radius: 3px;
  transition: 0.4s;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #6eae96;
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Overlay background */
.overlay-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 1040;
}

.overlay-bg.show {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Menu */
.overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -5px 0 20px rgba(0,0,0,0.2);
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 70px 30px;
  z-index: 1050;
}

.overlay.show {
  right: 0;
}

.overlay ul {
  flex-direction: column;
  gap: 25px;
  list-style: none;
}

.overlay ul li {
  opacity: 0;
  transform: translateX(50px);
  animation: slideItem 0.5s forwards;
}

.overlay ul li:nth-child(1) { animation-delay: 0.2s; }
.overlay ul li:nth-child(2) { animation-delay: 0.4s; }
.overlay ul li:nth-child(3) { animation-delay: 0.6s; }
.overlay ul li:nth-child(4) { animation-delay: 0.8s; }

@keyframes slideItem {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.overlay ul li a {
  font-size: 1.2em;
  color: #6eae96;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.overlay ul li a:hover {
  color: #4e8e73;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5em;
  color: #6eae96;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  color: red;
}

/* Hanya tampilkan hamburger di layar kecil */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  nav ul {
    display: none;
  }
}

/* Hero Section */
.hero {
  height: 130vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background: linear-gradient(to right, #6eae96, #4e8e73);
  color: white;
  animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
  font-size: 2em;
  margin-bottom: 20px;
  animation: bounce 2s ease;
}

.hero p {
  font-size: 1.2em;
  animation: fadeIn 2s ease-in-out;
}

.hero div {
  display: inline-block;
  background: linear-gradient(to right, #004aad, #007bff);
  color: white;
  font-size: 30px;
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 8px;
  position: relative;
  animation: slideUp 1.5s ease-in-out;
}

.hero div small {
  display: block;
  font-size: 14px;
  font-weight: normal;
  animation: slideUp 1.5s ease-in-out;
}

.hero div.tahun {
  display: inline-block;
  background: #f7931e;
  color: white;
  font-weight: bold;
  padding: 5px 15px;
  border-radius: 5px;
  margin-bottom: 8px;
  font-size: 14px;
  animation: slideUp 1.5s ease-in-out;
}

.logo {
  margin: 20px 0;
  animation: slideUp 1.5s ease-in-out;
}

.logo img {
  width: 150px;
  height: auto;
  animation: slideUp 1.5s ease-in-out;
}

    .ppdb-kartu {
      display: flex;
      justify-content: center;
      align-items: center;
      background: #f5f5f5; /* background abu-abu */
    }

    .ppdb-container {
      text-align: center;
    }

    .ppdblogo img {
      width: 200px; /* default di desktop */
      height: auto;
      display: block;
    }

    /* --- Responsive --- */
    @media (max-width: 768px) {
      .ppdblogo img {
        max-width: 100%; /* tablet */
      }
    }

    @media (max-width: 480px) {
      .ppdblogo img {
        max-width: 100%; /* HP kecil */
      }
    }

.iconlogo img {
  width: 50px;
  height: auto;
  animation: slideUp 1.5s ease-in-out;
}

.hero .title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 8px;
  animation: fadeIn 2s ease-in-out;
}

.hero .subtitle {
  font-size: 18px;
  font-weight: bold;
  font-style: italic;
  margin-bottom: 15px;
  animation: fadeIn 2s ease-in-out;
}

.hero .titlesekolah {
font-size: 23px;
font-weight: bold;
margin-bottom: 15px;
animation: fadeIn 2s ease-in-out;
}

.about .titlesekolah {
font-size: 23px;
font-weight: bold;
margin-bottom: 15px;
animation: fadeIn 2s ease-in-out;
}

.program .titlesekolah {
font-size: 23px;
font-weight: bold;
margin-bottom: 15px;
animation: fadeIn 2s ease-in-out;
}

.contact .titlesekolah {
font-size: 23px;
font-weight: bold;
margin-bottom: 15px;
animation: fadeIn 2s ease-in-out;
}

.hero .desc {
  font-size: 16px;
  margin-bottom: 20px;
  animation: fadeIn 2s ease-in-out;
}

.btn-container {
  display: flex;
  justify-content: space-between; /* satu kiri, satu kanan */
  align-items: center;
  max-width: 600px; /* optional */
  padding: 2px;
}

.btn {
  padding: 10px 16px; /* lebih ramping */
  margin: 0px 10px;
  background: white; /* tanpa background */
  color: #f7931e; /* warna teks */
  border: 2px solid #f7931e; /* opsional: kasih border outline */
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px; /* font size kecil */
  transition: 0.3s;
}

.btn:hover {
  background: #f7931e; /* baru muncul background saat hover */
  color: white;
  transform: scale(1.05);
}

.checklist {
  list-style: none;
  padding-left: 0;
  max-width: 600px;
}

.checklist li {
  margin-bottom: 12px;
  text-align: left;
  font-size: 16px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInSlide 0.6s forwards;
}

/* Animasi muncul bertahap */
.checklist li:nth-child(1) { animation-delay: 0.2s; }
.checklist li:nth-child(2) { animation-delay: 0.4s; }
.checklist li:nth-child(3) { animation-delay: 0.6s; }
.checklist li:nth-child(4) { animation-delay: 0.8s; }
.checklist li:nth-child(5) { animation-delay: 1s; }

.checklist i {
  color: green;
  margin-right: 10px;
  font-size: 18px;
  flex-shrink: 0;
}

@keyframes fadeInSlide {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-30px); }
  60% { transform: translateY(-15px); }
}



.program-kartu {
  display: flex;
  justify-content: center;
}

.program-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.program-image img {
  width: 450px;   /* atur ukuran sesuai kebutuhan */
  height: auto;
  border-radius: 10px; /* biar agak lembut sudutnya */
  object-fit: cover;
}

.ppdb-kartu {
  width: 100%;
}

.ppdb-container {
  display: flex;
  justify-content: center; /* pusat horizontal */
  align-items: center;     /* pusat vertikal (opsional) */
  min-height: 200px;       /* atur tinggi sesuai kebutuhan */
}

.ppdblogo img {
  width: 350px; /* biar gak terlalu besar */
  height: auto;
}

.program-image-smk img {
  width: 275px;   /* atur ukuran sesuai kebutuhan */
  height: auto;
  border-radius: 10px; /* biar agak lembut sudutnya */
  object-fit: cover;
}

.kartu {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 500px;
  width: 100%;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  display: flex;
  align-items: center;
  margin: 12px 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.list li:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.list i {
  color: white;
  background: #4CAF50;
  border-radius: 50%;
  padding: 8px;
  font-size: 14px;
  margin-right: 12px;
  flex-shrink: 0;
}

.list p {
  color: white;
  background: linear-gradient(135deg, #004aad, #007bff);
  padding: 8px 15px;
  border-radius: 8px;
  display: inline-block;
  margin: 0;
  font-weight: bold;
}



@media (max-width: 768px) {
  .program-container {
    flex-direction: column;   /* susun vertikal di mobile */
    text-align: left;
  }

  .program-image img {
    width: 100%;  /* perkecil gambar agar muat */
    margin-bottom: 15px;
  }

  .program-image-smk img {
    width: 100%;  /* perkecil gambar agar muat */
    margin-bottom: 15px;
  }

  .kartu {
    max-width: 100%;  /* isi penuh layar mobile */
    padding: 20px;
  }

  .list li {
    flex-direction: row; /* tetap icon kiri, teks kanan */
    justify-content: flex-start;
  }
}

/* Sections */
section {
  max-width: 1200px;
  margin: auto;
  padding: 100px 20px;
}

.about, .program, .contact {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

.about.show, .program.show, .contact.show {
  opacity: 1;
  transform: translateY(0);
}

.about h2, .program h2, .contact h2 {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
  color: #f7931e;
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: 0.4s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}
    
.contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input,
.contact textarea,
.contact input[type="radio"],
.contact select {
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s;
  font-size: 14px;
}

.contact input:focus,
.contact textarea:focus,
.contact input[type="radio"]:focus,
.contact select:focus {
  border-color: #6eae96;
  box-shadow: 0 0 8px rgba(0,119,255,0.2);
}


footer {
  background: linear-gradient(to right, #6eae96, #4e8e73);
  color: #fff;
  padding: 50px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-logo img {
  height: 60px;
  margin-right: 10px;
  vertical-align: middle;
}

.footer-logo p {
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-social a {
  display: inline-block;
  margin-right: 10px;
  color: #fff;
  font-size: 16px;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #f7931e;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid #f7931e;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: #f7931e;
}

.footer-column p {
  margin: 8px 0;
  font-size: 14px;
}

.footer-column p i {
  margin-right: 8px;
  color: #f7931e;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #fff;
  padding-top: 15px;
  font-size: 14px;
  color: #fff;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr; /* tablet = 2 kolom */
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr; /* hp = 1 kolom */
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto 10px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-column h3 {
    margin-top: 20px;
  }

  .footer-map iframe {
    height: 200px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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