* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #111;
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden; /* cegah scroll horizontal */
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

footer {
  margin-top: auto; /* Dorong footer ke paling bawah */
}


/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between; /* semua konten navbar ke tengah */
  align-items: center;
  gap: 3rem; /* jarak antara logo dan menu */
  padding: 1rem 7%; 
  background-color: rgba(1,1,1,0.8);
  border-bottom: 1px solid #681313;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* jarak antara logo dan teks */
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  font-style: italic;
  text-decoration: none;
}

.navbar .navbar-logo img {
  height: 60px; /* ukuran logo */
  width: 60px; /* biar bentuknya persegi */
  object-fit: cover; /* supaya gambar tetap proporsional */
  border-radius: 50%; /* bikin bulat */
  border: 2px solid #fff; /* opsional: kasih border putih */
}

.navbar .navbar-logo span {
  color: #681313;
}

.navbar-nav {
 position: absolute;
  left: 50%;
  transform: translateX(-50%); /* pusat horizontal */
  display: flex;
  gap: 2rem;
   margin-left: 80px; /* Atur jarak antara logo dan menu */
}

.navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1.4rem;
  position: relative;
  text-decoration: none;
}

.navbar-nav a:hover {
  color: #681313;
}

.navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid #681313;
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: #fff;
}

/* Dropdown dasar */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border: 1px solid #ddd;
  min-width: 220px;
  z-index: 3000;
}


.dropdown:hover .dropdown-menu {
  display: block;
}

/* Submenu */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 9999; /* pastikan di atas elemen lain */
}

.dropdown-submenu:hover .dropdown-submenu-menu {
  display: block;
}

/* Link style */
.dropdown-menu li a,
.dropdown-submenu-menu li a {
  display: block;
  padding: 0.6rem 1rem;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

/* Hilangkan bullet pada submenu Other */
.dropdown-submenu-menu,
.dropdown-submenu-menu ul {
  list-style: none; /* hilangkan bullet */
  padding-left: 0;  /* hilangkan padding default */
  margin: 0;        /* hilangkan margin default */
}

.dropdown-menu li a:hover,
.dropdown-submenu-menu li a:hover {
  background: #f5f5f5;
}

/* Tambah tanda panah submenu */
.dropdown-submenu > a::after {
  content: "▸";
  float: right;
}



/* Hero */
.hero {
  height: 100vh;
  background: url("img/background1.jpg") center/cover no-repeat; 
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* Pastikan ini ada untuk overlay */
}

/* Overlay hanya di tengah */
.hero-overlay {
  background: rgba(0, 0, 0, 0.6); /* warna hitam transparan  */
  padding: 2rem 3rem; /* ukuran kotaknya */
  border-radius: 10px; /* biar sudutnya halus  */
  text-align: center;
}

.hero .content {
  color: #b50000;
}

.hero h1
{
  font-size: 3rem;
  margin-bottom: 0rem;
}

.hero h2
{
  font-size: 2rem;
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero .cta {
  padding: 0.8rem 2rem;
  background: #b50000;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.hero .cta:hover {
  background: #b50000;
}

/* About */
.about {
  padding: 5rem 2rem;
  text-align: center;
}
.about h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #b50000;
}
.about .row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.about .row .content h3,
h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about .row .content p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  font-weight: 200;
  line-height: 1.6;
}

.about-img img {
  width: 700px;
  border-radius: 12px;
  max-width: 100%; /* Tambahkan ini agar gambar responsif */
  height: auto; /* Tambahkan ini agar gambar responsif */
}
.about .content {
  max-width: 600px;
  text-align: left;
}

/* Services */
.services {
  padding: 5rem 2rem;
  text-align: center;
  background: #f5f5f5;
}
.services h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #b50000;
}
.services .row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.services .service {
  flex: 1 1 180px;
  max-width: 200px;
  aspect-ratio: 1/1;
  background: #fff;
  border-radius: 12px;
  padding: 0.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none; /* hilangkan underline */
  color: inherit; /* gunakan warna default teks */
}
.services .service img {
  width: 60%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}
.services .service h3 {
  margin: 0.5rem 0;
  color: #b50000;
  font-size: 1.1rem;
}
.services .service:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.menu-img-group {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(200px, 1fr)
  ); /* otomatis menyesuaikan */
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.menu-img-group img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 200px; /* biar seragam */
}

/* Service Detail Layout */
.service-detail {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding: 2rem; /* Tambahkan padding untuk tampilan yang lebih baik */
}

.service-detail .service-content {
  flex: 1;
}

.service-detail .service-content h2 {
  font-size: 2rem;
  color: #b50000;
  margin-bottom: 1rem;
}

.service-detail .service-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.service-detail .service-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.service-detail .service-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Service Benefits */
.service-benefits {
  margin-top: 3rem;
  padding: 0 2rem 5rem; /* Sesuaikan padding */
}

.service-benefits h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #b50000;
}

.service-benefits ul {
  list-style: disc;
  padding-left: 1.5rem;
  line-height: 1.8;
  color: #333;
}

/* submenu */
.services-submenu {
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.services-submenu h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #b50000;
  text-align: center;
}

.services-submenu ul,
.service-detail ul,
.service-benefits ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: #444;
  line-height: 1.7;
  font-size: 1rem;
}

.services-submenu ul li {
  margin-bottom: 0.8rem;
}

hr {
  margin: 3rem auto;
  border: none;
  border-top: 1px solid #ddd;
  width: 90%;
}

/* Service Image Styling */
.service-image {
  text-align: center;
  margin: 2rem 0;
}

.service-image img {
  max-width: 400px;   /* batasi ukuran gambar */
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Service Title Center */
.service-detail h2 {
  text-align: center;
  font-size: 2rem;
  color: #b50000;
  margin-bottom: 1rem;
}


/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
.modal-content {
  background: #fff;
  margin: auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  text-align: center;
}
.modal .close {
  color: #333;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

/* PPDB */
.PPDB {
  padding: 5rem 2rem;
  text-align: center;
}
.PPDB h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #b50000;
}

.ppdb-image img {
  width: 100%;
  max-width: 600px;  /* ukuran maksimal */
  border-radius: 12px;
  display: block;
  margin: 1.5rem auto; /* biar berada di tengah */
}


/* Contact */
.contact {
  padding: 5rem 2rem;
  text-align: center;
}
.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #b50000;
}
.contact ul {
  list-style: none;
  margin-top: 1rem;
}
.contact ul li {
  margin: 0.5rem 0;
}
/* Footer */
footer {
  width: 100%;
  margin-top: auto; /* biar otomatis turun */
  padding: 2rem 1rem;
  background: #111;
  color: #fff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}


/* Link baris atas */
.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #b50000;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* Credit bawah */
footer .credit p {
  font-size: 0.9rem;
  color: #ddd;
  margin-top: 0.5rem;
}

footer .credit a {
  color: #b50000;
  font-weight: 600;
  text-decoration: none;
}

footer .credit a:hover {
  color: #fff;
}


/* Responsive */
@media screen and (max-width: 768px) {
  .navbar-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;              
    right: 5%;            
    left: auto !important;  
    transform: none !important; /* hapus translateX biar tidak center */
    margin: 0 !important;       
    background: #fff;
    width: 50%;           
    padding: 0.3rem 0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1000;
    text-align: left;
  }

  .navbar-nav.active {
    display: flex;
  }

  .navbar-nav a {
    display: block;
    padding: 0.4rem 0.8rem;     /* rapat */
    font-size: 0.95rem;
    color: #000;
    font-weight: 600;
  }

  .hamburger {
    display: block !important;
    position: absolute;
    top: 20px;
    right: 20px;                /* hamburger tetap di pojok kanan */
    font-size: 2rem;
    color: #f6f5f5;
    z-index: 3000;
    cursor: pointer;
  }

  /* Dropdown menu di mobile */
  .dropdown-menu {
    position: static !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
  }

  /* Submenu Other turun ke bawah */
  .dropdown-submenu-menu {
    position: static !important;
    display: none;
    width: 100% !important;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .dropdown-submenu.open .dropdown-submenu-menu,
  .dropdown-submenu:focus-within .dropdown-submenu-menu {
    display: block !important;
  }

  .dropdown-submenu-menu li a {
    display: block;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    color: #000;
    font-weight: 500;
    white-space: normal;
  }

  /* Biar about & services lebih rapi di mobile */
  .about .row,
  .services .row,
  .service-detail {
    /* Tambahkan service-detail di sini */
    flex-direction: column;
    align-items: center;
  }

  .services .service {
    max-width: 300px;
    width: 100%;
  }

  .about-img {
    margin-bottom: 1.5rem; /* Tambahkan sedikit ruang di bawah gambar di mobile */
  }

  .about .content,
  .service-detail .service-content {
    text-align: center; /* Pusatkan teks di mobile */
  }

  .service-detail .service-image {
    margin-top: 1.5rem; /* Tambahkan ruang di atas gambar detail layanan */
  }

  .hero h1 {
    font-size: 2.5rem; /* Ukuran font lebih kecil di mobile */
  }

  .hero p {
    font-size: 1rem; /* Ukuran font lebih kecil di mobile */
  }

   .footer-links a {
    display: inline-block;
    margin: 5px 8px;
    font-size: 0.9rem;
  }

  footer .credit p {
    font-size: 0.8rem;
  }
}

