* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: #1d1d1d;
  overflow-x: hidden;
}
#tentang,
#program,
#pendaftaran,
#FAQ,
#kontak {
  scroll-margin-top: 100px;
}
/* Tombol hamburger */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Style */
header {
  height: 50px;
  border-bottom: 2px solid #ddd;
  padding: 15px 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #f5eeee;
  z-index: 999;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  height: 40px;
}
.logo h4 {
  color: #21a370;
  font-weight: 700;
}
nav {
  display: flex;
  gap: 1rem;
}
nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover {
  color: #137547;
}
.btn-daftar {
  background-color: #21a370;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
}
.btn-daftar:hover {
  background-color: #1a8e45;
}

/* Section Hero */
.hero {
  width: 100%;
  height: 600px;
  background: url("/assets/img/zaatun-najah.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 12, 12, 0.715);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  max-width: 800px;
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 3rem;
}
.btn-hero {
  background-color: #21a370;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s;
}
.btn-hero:hover {
  background-color: #1a8e45;
}

/* Main Section */
main .section {
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-bottom: 20px;
}
.section h2{
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #21a370;
}

/* Section Tentang */
.main-tentang {
  max-width: 90%;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.main-tentang h2 {
  color: #21a370;
}
.text {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: #736a6a;
}
.card {
  background-color: #e9f9f0;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  width: 260px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.252);
  text-align: center;
  transition: transform 0.3s;
  margin: 10px 0;
}
.card:hover {
  transform: translateY(-5px);
}
.card i {
  font-size: 3rem;
  color: #137547;
  margin-bottom: 1rem;
}
.card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1d1d1d;
}
.card p {
  font-size: 0.95rem;
  color: #564d4d;
  line-height: 1.4;
}

/* Section Program */
.main-program {
  background-color: #e3fbee;
}
.main-program h2 {
  margin-bottom: 2rem;
}
.program-card {
  width: 90%;
  text-align: start;
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #4b57519b;
  max-width: 300px;
  transition: transform 0.3s;
  margin: 10px 0;
}
.program-card:hover {
  transform: translateY(-5px);
}
.program-card i {
  font-size: 2.5rem;
  color: #137547;
  margin-bottom: 1rem;
}
.program-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1d1d1d;
}
.program-card p {
  font-size: 0.95rem;
  color: #564d4d;
  line-height: 1.4;
}
.program-info {
  margin-top: 4rem;
}
.info-card {
  width: 40%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  background-color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 4px 4px 0 #b7d6c7;
  text-align: center;
  margin-bottom: 10px;
}
.info-card h4 {
  font-size: 1rem;
  font-weight: 500;
  color: #1d1d1d;
  line-height: 1.5;
}
.highlight {
  color: #1a8e45;
  font-weight: 700;
}
.btn-materi {
  background-color: #23a455;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 2px 2px 0 #b7d6c7;
  transition: background-color 0.3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.btn-materi:hover {
  background-color: #1a8e45;
}

.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #333;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}
/* modal pop */
.modal-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #1a8e45;
}

.materi-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #444;
}

.materi-list li {
  margin-bottom: 0.5rem;
}

/* Section Pendaftaran */
.main-pendaftaran {
  padding: 40px 0;
  text-align: center;
}
.main-pendaftaran h2 {
  color: #21a370;
}
.step {
  margin-top: 20px;
  max-width: 300px;
  text-align: center;
}
.step-number {
  background-color: #c6f6d5;
  color: #1f9254;
  font-weight: bold;
  font-size: 20px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  border-radius: 50%;
  margin: 0 auto 10px;
}
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1d1d1d;
}
.step p {
  font-size: 0.95rem;
  color: #564d4d;
  line-height: 1.4;
}

/* Persyaratan dan Dokumen */
.requirements-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 80px;
}
.box {
  background-color: #e6f9f0;
  padding: 20px;
  border-radius: 10px;
  width: 350px;
}
.box h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.box ul {
  list-style: none;
  padding-left: 0;
}
.box li {
  text-align: start;
  padding: 6px 0;
  position: relative;
  padding-left: 20px;
}
.box li::before {
  content: "✔";
  color: #1f9254;
  position: absolute;
  left: 0;
}

/* Biaya Section */
.fee-section {
  background-color: #e3fbee;
  padding: 30px 20px;
  text-align: center;
}
.fee-section h2 {
  margin-bottom: 30px;
  color: #333;
}
.fee-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.fee-box {
  width: 300px;
  height: 150px;
  margin: 10px 0;
  background-color: #ffffff;
  border: 1px solid #33333342;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.248);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.fee-box h4 {
  font-size: 16px;
  margin-bottom: 10px;
}
.fee-box p {
  font-size: 28px;
  font-weight: bold;
  color: #1f9254;
}
.fee-box small {
  font-size: 16px;
}
.note {
  font-size: 14px;
  color: #555;
  margin-top: 20px;
}

/* FAQ Section */
.main-FAQ {
  max-width: 800px;
  margin: 0 auto;
}
.main-FAQ h2 {
  margin-bottom: 20px;
  color: #21a370;
}
.faq-item {
  margin: 0 20px 15px;
  border-radius: 10px;
  background-color: #e6f9f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.127);
  overflow: hidden;
}
.faq-question {
  background-color: #e6f9f0;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  color: #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}
.faq-question .icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}
.faq-question.active .icon {
  transform: rotate(180deg);
}
.faq-question:hover {
  background-color: #d0f4e0;
}
.faq-answer {
  text-align: start;
  padding: 10px 20px 16px 20px;
  background-color: #e6f9f0;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}
.faq-answer ul {
  padding-left: 20px;
  margin: 0;
}
.faq-answer ul li {
  list-style: disc;
  margin-bottom: 6px;
}

/* Section Kontak */
.main-kontak{
  padding: 40px 20px;
  text-align: center;
}

.contact-info {
  width: 80%;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.contact-card {
  flex: 1;
  min-width: 250px;
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card h3 {
  color: #2c7865;
  font-size: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-card h3 i {
  margin-right: 10px;
  color: #21a370;
}

.contact-card p {
  margin-bottom: 10px;
  color: #555;
  text-align: start;
  line-height: 1.4;
}

.contact-card a {
  color: #2c7865;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  margin-top: 5px;
}

.contact-card a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2c7865;
  color: white;
  border-radius: 50%;
}

/* Footer Styling */
/* Footer */
footer {
  height: 160px;
  background-color: #2c7865;
  color: white;
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #7cbf95;
}

.copyright {
  margin-top: 10px;
  padding-bottom: 20px;
  font-size: 14px;
  opacity: 0.8;
}
/* ============================= */
/* Responsive Desktop, Tablet & Mobile   */
/* ============================= */

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 1030px) {
  html {
    font-size: 15px;
  }
  .hero {
    max-width: 100%;
    height: 500px;
  }
  .text {
    font-size: 1rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .card-container,
  .fee-boxes,
  .requirements-container,
  .contact-info {
    gap: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 1rem;
  }

  .card,
  .program-card,
  .fee-box,
  .box,
  .contact-card {
    flex: 0 0 auto;
    min-width: 260px;
  }

  .info-card {
    width: 60%;
  }

  .step {
    max-width: 90%;
  }
}

/* Smartphone */
@media screen and (min-width: 479px) and (max-width: 767px) {
  html {
    font-size: 14px;
  }

  header {
    display: flex;
    align-items: flex-start;
    height: auto;
    padding: 0.5rem;
  }

  .hero {
    max-width: 100%;
    height: 400px;
  }
  .phone {
    padding-top: 5px;
    padding-right: 10px;
    display: flex;
    gap: 10px;
    align-items: center; /* ini biar vertikalnya sejajar */
  }
  
  .btn-daftar {
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap; /* biar teks ga pindah baris */
  }
  
  .hamburger {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 999;
    position: relative; /* penting agar span absolute bekerja */
  }
  
  .hamburger span {
    position: absolute;
    height: 3px;
    width: 30px;
    background-color: #137547;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  /* posisi garis normal (burger) */
  .hamburger span:nth-child(1) {
    top: 17px;
  }
  .hamburger span:nth-child(2) {
    top: 4px;
  }
  .hamburger span:nth-child(3) {
    top: 10px;
  }
  
  /* animasi jadi X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
  }

  nav {
    flex-direction: column;
    background-color: #f5eeee;
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    display: none;
    padding: 1rem;
  }

  nav.active {
    display: flex;
  }
  .hero {
    max-width: 100%;
    height: 400px;
  }
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }
  .text {
    font-size: 0.95rem;
  }

  .btn-hero,
  .btn-daftar,
  .btn-materi {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .card-container,
  .fee-boxes,
  .requirements-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 1rem;
    gap: 1rem;
  }

  .card,
  .program-card,
  .fee-box,
  .box {
    flex: 0 0 auto;
    min-width: 260px;
  }

  .info-card {
    width: 400px;
    font-size: 0.9rem;
  }

  .step {
    width: 90%;
    margin: 0 auto;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }

  .modal-content {
    width: 90%;
    padding: 1.5rem;
  }
  .program-info {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .hero {
    max-width: 100%;
    height: 400px;
  }
  .phone {
    padding-top: 5px;
    padding-right: 10px;
    display: flex;
    gap: 10px;
    align-items: center; /* ini biar vertikalnya sejajar */
  }
  
  .btn-daftar {
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap; /* biar teks ga pindah baris */
  }
  
  .hamburger {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 999;
    position: relative; /* penting agar span absolute bekerja */
  }
  
  .hamburger span {
    position: absolute;
    height: 3px;
    width: 30px;
    background-color: #137547;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  /* posisi garis normal (burger) */
  .hamburger span:nth-child(1) {
    top: 17px;
  }
  .hamburger span:nth-child(2) {
    top: 4px;
  }
  .hamburger span:nth-child(3) {
    top: 10px;
  }
  
  /* animasi jadi X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
  }
  
  

  nav {
    flex-direction: column;
    background-color: #f5eeee;
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    display: none;
    padding: 1rem;
  }

  nav.active {
    display: flex;
  }

  .hero-content h1 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    padding: 0 15px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }
  .text {
    padding: 10px;
    font-size: 0.75rem;
  }

  .btn-hero {
    padding: 0.5rem 0.5rem;
  }
  .btn-hero,
  .btn-daftar,
  .btn-materi {
    font-size: 0.75rem;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .card,
  .program-card,
  .box,
  .fee-box {
    max-width: 300px;
    margin: 0 auto;
  }
  .card-container,
  .fee-boxes {
    gap: 20px;
  }

  .info-card {
    width: 200px;
    font-size: 0.75rem;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
  }
  .info-card h4:first-of-type {
    order: 1;
  }

  .btn-materi {
    order: 3;
  }

  .info-card h4:last-of-type {
    order: 2;
  }
  .highlight {
    font-size: 1rem;
  }
  .info-card h4 {
    font-size: 0.75rem;
  }
  .btn-materi {
    font-size: 1rem;
    padding: 5px;
  }
  .hero {
    max-width: 100%;
    height: 400px;
  }

  .requirements-container {
    flex-direction: column;
    gap: 20px;
  }

  .step {
    width: 90%;
    margin: 0 auto;
  }


  .social-icon{
    width: 25px;
    height: 25px;
  }
  .icon{
    padding: 0 10px;
  }

  footer{
    height: 230px;
    padding: 20px 10px 0;
  }
  .footer-logo{
    font-size: 1.2rem;
  }
}
