/* Reset */
    * {
      box-sizing: border-box;
    }
    html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      font-family: Arial, sans-serif;
      display: flex;
      flex-direction: column;
      background: rgba(242, 242, 242, 1);
      color: white;
    }
    a {
      color: inherit;
      text-decoration: none;
    }
  
    /* Navbar */
    nav.navbar-dropdown {
      background: rgba(255, 250, 205, 1);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 1rem;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 9999;
      color: rgba(0, 51, 102, 1);
    }
    .navbar-brand {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 700;
      font-size: 1.2rem;
      color: rgba(0, 51, 102, 1);
    }
    .navbar-logo img {
      height: 55px;
    }

    .navbar-toggler {
      background: none;
      border: none;
      cursor: pointer;
      width: 30px;
      height: 24px;
      display: block;
      position: relative;
    }
    .hamburger-icon, .hamburger-icon::before, .hamburger-icon::after {
      content: "";
      background: rgba(178, 34, 34, 1);
      height: 3px;
      position: absolute;
      left: 0;
      right: 0;
      transition: 0.3s;
    }
    .hamburger-icon {
      top: 50%;
      transform: translateY(-50%);
    }
    .hamburger-icon::before {
      top: -8px;
    }
    .hamburger-icon::after {
      top: 8px;
    }

    .desktop-menu {
      display: none;
    }

    /* Mobile dropdown menu */
    .nav-dropdown {
      position: fixed;
      top: 56px; left: 0; right: 0; bottom: 0;
      width: 50vw; /* setengah layar secara horizontal */
      height: 100vh; /* tinggi penuh layar */
      background: rgba(255, 250, 205, 1);
      transform: translateY(-100%);
      transition: transform 0.3s;
      z-index: 9998;
      overflow-y: auto;
      color: rgba(0, 51, 102, 1);
      -webkit-overflow-scrolling: touch;
    }
    .nav-dropdown.in {
      transform: translateY(0);
    }
    .navbar-close {
      background: none;
      border: none;
      font-size: 2rem;
      color: rgba(0, 51, 102, 1);
      width: 100%;
      text-align: right;
      padding: 0.5rem 1rem;
      cursor: pointer;
    }
    .nav-dropdown-sm {
      list-style: none;
      padding: 0 1rem 1rem;
      margin: 0;
    }
    .nav-dropdown-sm li {
      border-bottom: 1px solid #333;
    }
    .nav-dropdown-sm li a, .dropdown-toggle {
      display: block;
      padding: 1rem 0;
      font-size: 1.2rem;
      color: rgba(0, 51, 102, 1);
      cursor: pointer;
      user-select: none;
    }

    .nav-dropdown-sm li a:hover {
  background-color: rgba(197, 12, 12, 0.3); /* kotak putih transparan */
  font-weight: 700;
  transform: scale(1.05);
}

.nav-dropdown-sm li a {
  transition: background-color 0.3s ease;
}

 /* Show dropdown on hover 
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    display: block;
    transform: translateY(0);
    pointer-events: auto;
  }*/

    /* Submenu */
    .dropdown-menu {
      display: none;
      padding-left: 1rem;
      background: #ebec9d;
      transform:                                                                                                                                                         translateX(100%);
      transition: transform 0.3s ease;
      overflow: hidden;
    }
.dropdown-menu li {
    list-style: none;
  }

    .dropdown-menu.show {
      display: block;
      transform: translateX(0);
    }
    
    .dropdown-item {
      padding: 0.5rem 0;
      color: #ccc;
      cursor: pointer;
    }

    /* Slideshow */
    .slideshow-container {
      position: relative;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      margin-top: 70px;
    }
    .slide {
      display: none;
    }
    .slide img {
      width: 100%;
      height: auto;
      display: block;
    }
    .slide.active {
      display: block;
    }
    .prev, .next {
      cursor: pointer;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      padding: 0.5rem;
      font-size: 2rem;
      color: white;
      background: rgba(0,0,0,0.5);
      border: none;
      user-select: none;
    }
    .prev {
      left: 10px;
    }
    .next {
      right: 10px;
    }

    /* Main content */
    main {
      flex: 1 0 auto;
      background: rgba(242, 242, 242, 1);
      color: #222;
      padding: 0.5rem;
      margin-top: 20px;
      width: 100%;
      align-self: center;
    }

    /* Footer */
    footer {
      background: rgba(255, 250, 205, 1);;
      color: rgba(178, 34, 34, 1);
      text-shadow: 1px 1px 0 #ccc,
             2px 2px 3px rgba(0,0,0,0.3);
      text-align: center;
      padding: 1rem;
      flex-shrink: 0;
    }

    figcaption {
    display: none; /* sembunyikan di layar kecil */
  }

 /* Desktop menu */
  @media (min-width: 768px) {
    .navbar-toggler {
    display: none;
  }

   .nav-dropdown {
   display: none;
  }

    
.desktop-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
  }

  .desktop-menu li {
    position: relative;
  }

  .desktop-menu li a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #003366;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .desktop-menu li a:hover {
    background-color: rgba(197, 12, 12, 0.2);
  }

  /* Default state */
.dropdown-d > a::after {
  content: "▾";
  font-size: 0.8em;
  margin-left: 3px;
  display: inline-block;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

/* Saat hover di parent dropdown */
.dropdown-d:hover > a::after {
  transform: rotate(180deg); /* Bisa juga 90deg untuk arah kanan */
}
 

  /* Dropdown menu hidden by default */
  .dropdown-d-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #444;
    border-radius: 4px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    display: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
  }

  /* Show dropdown on hover */
  .dropdown-d:hover .dropdown-d-menu {
    opacity: 1;
    visibility: visible;
    display: block;
    transform: translateY(0);
    pointer-events: auto;
  }

  .dropdown-d-menu li {
    list-style: none;
  }

  .dropdown-d-menu li a {
    padding: 10px 15px;
    color: #fff;
    background: #444;
    display: block;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .dropdown-d-menu li a:hover {
    background-color: #555;
  }
  section {
  max-width: 960px;
  width: 90%; /* Tambahan ini agar tetap nyaman di mobile */
  margin: 20px auto;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }

  figcaption {
  font-size: 14px;
  color: #333;
  margin-top: 5px;
  display: block; /* default: tampil di desktop */
}

}

/*customize*/
h1 {
      text-align: center;
      margin: 0 auto;
      font-size: clamp(1.5rem, 4vw, 3rem);
      width: 100%;
    }
.first-text{
    margin-top: 60px;
    color: rgba(0, 51, 102, 1);
    text-shadow: 1px 1px 0 #ccc,
             2px 2px 3px rgba(0,0,0,0.3);
}
  .bold-item {
  font-weight: 700;
}

section {
  width: 100%; /* Tambahan ini agar tetap nyaman di mobile */
  margin: clamp(10px, 4vw, 40px) auto; /* margin vertikal responsif */
  padding: clamp(1rem, 5vw, 2rem); /* padding adaptif */
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
    h2 {
      color: #003366;
      font-size: clamp(1rem, 2vw, 1.25rem);
      border-bottom: 2px solid #007bff;
      padding-bottom: 5px;
    }

    
    section ul {
      margin-left: 20px;
    }
    .motto {
      background: rgba(178, 34, 34, 1);
      color: rgb(255, 255, 255);
    text-shadow: 1px 1px 0 #ccc,
             2px 2px 3px rgba(0,0,0,0.3);
      padding: 15px;
      margin-top: 30px;
      border-radius: 5px;
      font-size: 1.2em;
      text-align: center;
    }

    p.address {
      font-size: 1.1rem;
      color: #555;
      margin-bottom: 25px;
      line-height: 1.4;
    }
    iframe {
      width: 100%;
      height: 450px;
      border: none;
      border-radius: 6px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    .contact-card {
      background-color: #fff;
      padding: 30px 40px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      max-width: 480px;
      width: 100%;
      color: #333;
    }
    .contact-card h2 {
      margin-top: 0;
      margin-bottom: 16px;
      font-size: 28px;
      color: #2c3e50;
      text-align: center;
    }
    .contact-card address {
      font-style: normal;
      line-height: 1.6;
      margin-bottom: 20px;
      font-size: 16px;
    }
    .contact-card p {
      margin: 6px 0;
      font-size: 16px;
    }
    .contact-card span.label {
      font-weight: 600;
      color: #555;
      width: 70px;
      display: inline-block;
    }
    .highlight {
      font-weight: bold;
      color: #000000;
    }
    