/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

    
    body {
        font-family: 'Inter', sans-serif;
        line-height: 1.6;
        color: #2d3748;
        background-color: #f7fafc;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Titles & Headings */
    h1,
    h2,
    h3,
    h4 {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
    }

    .switch-text {
        margin-top: 15px;
        font-size: 13px;
        text-align: center;
        color: #777;
    }

    .switch-span {
        color: #2f6fed !important; 
        cursor: pointer;
        font-weight: 500;
    }

    .switch-span:hover {
        text-decoration: underline;
    }

/* ==========================
       NAVBAR BASE
    ========================== */
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  overflow: visible; /* WAJIB agar dropdown tidak terpotong */
}

/* NAV LIST */
.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* LINK */
.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}

/* ==========================
   DROPDOWN WRAPPER
========================== */
.dropdown {
  position: relative;
}

/* ==========================
   DROPDOWN MENU
========================== */
.dropdown-menu {
  position: absolute;
  top: 100%; /* NO GAP — VERY IMPORTANT */
  right: 0;

  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);

  padding: 6px 0;
  min-width: 180px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);

  transition: all 0.2s ease;
  z-index: 9999;
}

/* SHOW ON HOVER */
.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==========================
   IMPORTANT FIXES
========================== */

/* FORCE VERTICAL LIST */
.dropdown-menu ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* REMOVE BULLET */
.dropdown-menu li {
  list-style: none;
}

/* DROPDOWN LINKS */
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #333 !important;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

/* HOVER EFFECT */
.dropdown-menu a:hover {
  background: #f3f6fa;
  color: #1f4f85 !important;
}

/* OPTIONAL ACTIVE LINE */
.dropdown-menu .active {
  border-bottom: 2px solid #f0b429;
  margin: 0 16px 6px;
  padding-bottom: 6px;
}

/* Star Particle Canvas */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Splash Screen / Opening Logo */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a365d, #2b6cb0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  transition: opacity 0.5s ease-out;
}

.splash.hidden {
  opacity: 0;
  pointer-events: none;
}

.splash img {
  max-width: 300px;
  max-height: 300px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Running Light Effect (Cahaya Berjalan) */
.running-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    #d69e2e,
    #ffd700,
    #d69e2e,
    transparent
  );
  background-size: 200% 100%;
  animation: runningGlow 3s linear infinite;
  z-index: 1500;
  box-shadow: 0 0 10px #d69e2e;
}

@keyframes runningGlow {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* =========================
   NAVBAR BASE
========================= */
header {
  background: linear-gradient(135deg, #1a365d, #2b6cb0);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 4px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
}

/* =========================
   NAV LINKS
========================= */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 2rem;
  position: relative; /* IMPORTANT for dropdown */
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  cursor: pointer;
}

/* underline animation */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #d69e2e;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #d69e2e;
}

/* =========================
   DROPDOWN (ORIGINAL STYLE)
========================= */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: white;
  min-width: 200px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  z-index: 9999;
}

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

/* dropdown items */
.dropdown-menu li {
  margin: 0;
}

.dropdown-menu .drop-a {
  display: block;
  padding: 10px 20px;
  color: #2d3748;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.dropdown-menu .drop-a:hover {
  background: #edf2f7;
  color: #1a365d;
}

/* =========================
   HAMBURGER MENU
========================= */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* =========================
   MOBILE NAVBAR
========================= */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 74px;
    flex-direction: column;
    background-color: #1a365d;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: #1a365d;
    border-radius: 0;
  }

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

  .dropdown-menu .drop-a {
    color: white;
    padding: 5px 0;
  }

  .dropdown-menu .drop-a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #d69e2e;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(26, 54, 93, 0.6), rgba(43, 108, 176, 0.6)),
    url("https://images.unsplash.com/photo-1558969362-1dd5a5e1e6d0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80")
      center/cover no-repeat fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 74px;
  /* Offset untuk header + running light */
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  filter: blur(1px);
  z-index: -1;
}

.hero-static-img {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: auto;
  opacity: 0.8;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* =========================
            MODERN HERO LANDING
            ========================= */
.hero-modern {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a365d, #2b6cb0);
  display: flex;
  align-items: left;
  color: white;
  padding: 120px 0;
}

.hero-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: left;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: left;
}

.hero-left h1,
.hero-content h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.hero-left h1 {
  font-size: 2.9rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-align: left;
}

.hero-left h1 span {
  color: #ffd700;
  text-align: left;
}

.hero-left p {
  font-size: 1.2rem;
  color: #e2e8f0;
  max-width: 500px;
  margin-bottom: 2.5rem;
  text-align: left;
}

.hero-badge {
  width: 35%;
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd700, #d69e2e);
  color: #1a202c;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
}

/* IMAGE STACK */
.hero-right .image-stack {
  position: relative;
  width: 100%;
  height: 450px;
}

.hero-right img {
  position: absolute;
  width: 240px;
  height: 320px;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-right img:nth-child(1) {
  bottom: 150px;
  left: 60px;
}

.hero-right img:nth-child(2) {
  top: 60px;
  right: 0;
}

.hero-right img:nth-child(3) {
  bottom: 0;
  left: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-left p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-right {
    margin-top: 3rem;
  }

  .hero-right .image-stack {
    height: 360px;
  }
}

/* old hero */
.hero-content {
  animation: fadeInUp 1s ease-out;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #d69e2e, #b7791f);
  color: white;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(214, 158, 46, 0.3);
  font-weight: 300;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 158, 46, 0.4);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About Section */
#about {
  background: #f8f6f1;
  padding: 100px 20px;
  text-align: center;
}

.about-label {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 12px;
}

.about-title,
.gallery-title,
.struktur-title,
.contact-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.about-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-desc {
  max-width: 600px;
  margin: 0 auto 60px;
  color: #555;
  line-height: 1.6;
}

/* ARC IMAGE */
.about-arc {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 70px;
}

.about-arc img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Curve illusion */
.about-arc img:nth-child(1) {
  transform: translateY(35px) rotate(-8deg);
}

.about-arc img:nth-child(2) {
  transform: translateY(15px) rotate(-4deg);
}

.about-arc img:nth-child(3) {
  transform: translateY(0);
}

.about-arc img:nth-child(4) {
  transform: translateY(15px) rotate(4deg);
}

.about-arc img:nth-child(5) {
  transform: translateY(35px) rotate(8deg);
}

/* POINTS */
.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: auto;
  gap: 40px;
}

.about-points h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.about-points p {
  color: #666;
  font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-points {
    grid-template-columns: 1fr;
  }

  .about-arc {
    flex-wrap: wrap;
  }
}

/* Gallery Section */
#gallery {
  padding: 80px 40px;
  background: #fff;
}

.gallery-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.gallery-desc {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
}

/* WRAPPER */
.carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: auto;
  overflow: visible;
}

/* GALLERY NAV BUTTONS */
#gallery .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 20;
  transition: transform 0.2s ease, background 0.2s ease;
}

#gallery .nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

#gallery .nav.prev {
  left: 5px;
}

#gallery .nav.next {
  right: 5px;
}

/* CAROUSEL */
.carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* ITEM */
.carousel-item {
  position: relative;
  width: 320px;
  height: 220px;
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 18px;
  overflow: hidden;
}

/* IMAGE */
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-item:hover img {
  transform: scale(1.08);
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.1));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-item:hover .overlay {
  opacity: 1;
}

.overlay h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.overlay p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* MOBILE */
@media (max-width: 768px) {
  .gallery .nav {
    display: none;
  }

  .overlay {
    opacity: 1;
  }
}

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

    .close:hover {
        color: #d69e2e;
    }

    

/* Login Modal (Integrated from Previous Code) */
#loginModal {
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2500;
}

#loginLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f7fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.login-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2b6cb0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.login-container {
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in, transform 0.5s ease-in;
  display: none;
  position: relative;
  /* Untuk efek cahaya */
}

.login-container.show {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.login-logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  position: relative;
}

.login-logo::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -50%;
  width: 200%;
  height: 20px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  animation: lightSweep 1s linear infinite;
  z-index: 1;
}

@keyframes lightSweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.login-h1 {
  color: #333;
  margin-bottom: 30px;
  font-size: 1.5em;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-label {
  text-align: left;
  margin-bottom: 5px;
  color: #555;
}

.login-input {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.login-button {
  background-color: #2b6cb0;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.login-button:hover {
  background-color: #1a365d;
}

.switch-span {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}

/* Struktus Section */
#struktur {
  padding: 100px 40px;
  background: linear-gradient(to bottom, #eef2f6, #ffffff);
}

.struktur-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 60px;
}

/* LEADERS */
.leader {
  max-width: 500px;
  margin: 0 auto 30px;
  background: white;
  border-radius: 22px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.leader.secondary {
  max-width: 420px;
  opacity: 0.95;
}

.leader h3 {
  color: #2f5fa7;
  margin-bottom: 5px;
}

.leader p {
  font-style: italic;
  color: #666;
  font-size: 25px;
}

/* DIVIDER */
.divider {
  margin: 60px auto;
  width: 80px;
  height: 4px;
  background: #2f5fa7;
  border-radius: 10px;
  opacity: 0.3;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.grid.small {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* CARD */
.card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card h4 {
  color: #2f5fa7;
  margin-bottom: 8px;
}

.card span {
  font-style: italic;
  color: #666;
  font-size: 20px;
}

/* NOTE */
.note {
  text-align: center;
  margin-top: 60px;
  color: #777;
  font-style: italic;
  font-size: 0.9rem;
}

/* Contact Section */
#contact-section {
  padding: 100px 40px;
  background: #f5fffa;
}

.contact-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 5x;
}

.contact-desc {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
}

/* TOP CARDS */
.contact-cards {
  display: flex;
  flex-direction: row;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
  margin-bottom: 40px;
}

.contact-card {
  background: #fff;
  padding: 10px 20px 10px 20px;
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  width: 1000px;
}

.contact-card .icon {
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: block;
}

.contact-card h4 {
  font-size: 0.95rem;
  margin-bottom: 7px;
  color: #2f5fa7;
}

.contact-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* MAIN AREA */
.contact-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
  align-items: stretch;
}

/* FORM */
.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.form-desc {
  color: #666;
  margin-bottom: 30px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #444;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background: #2f5fa7;
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}

.contact-form input[type="tel"] {
  letter-spacing: 0.3px;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 16px;
}

/* MAP */
.contact-map iframe {
  width: 100%;
  height: 60%;
  min-height: 420px;
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-main {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a365d, #2b6cb0);
  color: white;
  text-align: center;
  padding: 3rem 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 74px;
    /* Offset untuk running light */
    flex-direction: column;
    background-color: #1a365d;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-links a,
  .btn,
  .btn-primary,
  .btn-secondary,
  button {
    font-family: "Inter", sans-serif;
    font-weight: 500;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .nav-links li a {
    font-size: 1.2rem;
  }

  .hero {
    height: 80vh;
    margin-top: 74px;
    /* Offset untuk running light */
    background-attachment: scroll;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .about,
  .gallery,
  .officials,
  .contact {
    padding: 60px 0;
  }

  .about h2,
  .section-title {
    font-size: 2.2rem;
  }

  .about p {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item img {
    height: 200px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 2rem;
  }

  .card h3 {
    font-size: 1.3rem;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    margin: 0.5rem 0;
    min-width: auto;
    text-align: center;
  }

  .close {
    font-size: 30px;
    right: 20px;
  }

  .splash img {
    max-width: 200px;
    max-height: 200px;
  }

  .map-container iframe {
    height: 300px;
  }

  .hero-static-img {
    width: 120px;
    top: 10%;
    right: 5%;
  }

  /* Mobile Login Modal */
  .login-container {
    padding: 20px;
    margin: 20px;
    max-width: none;
  }

  .login-logo {
    width: 100px;
    margin-bottom: 15px;
  }

  .login-h1 {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

  .login-input {
    padding: 12px;
    font-size: 16px;
  }

  .login-button {
    padding: 12px;
  }

  .login-spinner {
    width: 30px;
    height: 30px;
    border-width: 3px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .gallery-overlay h3 {
    font-size: 1.1rem;
  }

  .hero-static-img {
    width: 100px;
  }

  .login-h1 {
    font-size: 1.1em;
  }
}

/* ============================================================
   RESPONSIVE ADDITIONS — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-modern {
    padding: 100px 0 60px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-left h1 {
    font-size: 2.3rem;
  }

  .hero-left p {
    font-size: 1.05rem;
  }

  .hero-right .image-stack {
    height: 320px;
  }

  .hero-right img {
    width: 190px;
    height: 260px;
  }

  .about-title {
    font-size: 2rem;
  }

  .about-arc img {
    width: 100px;
    height: 135px;
  }

  .about-points {
    gap: 24px;
  }

  .struktur-title {
    font-size: 2rem;
  }

  .leader p {
    font-size: 1.2rem;
  }

  .card span {
    font-size: 1rem;
  }

  .contact-cards {
    flex-wrap: wrap;
  }

  .contact-card {
    width: 100%;
  }

  .contact-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ============================================================
   RESPONSIVE ADDITIONS — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* --- HERO --- */
  .hero-modern {
    padding: 90px 0 50px;
    text-align: center;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 16px;
  }

  .hero-left {
    align-items: center;
  }

  .hero-left h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .hero-left h1 span {
    text-align: center;
  }

  .hero-left p {
    font-size: 0.95rem;
    text-align: center;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .hero-badge {
    width: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-right {
    display: none; /* Sembunyikan image stack di mobile untuk mencegah overflow */
  }

  /* --- ABOUT --- */
  #about {
    padding: 60px 16px;
  }

  .about-title {
    font-size: 1.6rem;
  }

  .about-desc {
    font-size: 0.9rem;
    margin-bottom: 36px;
  }

  .about-arc {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
  }

  .about-arc img {
    width: 80px;
    height: 110px;
    border-radius: 12px;
  }

  .about-arc img:nth-child(1),
  .about-arc img:nth-child(2),
  .about-arc img:nth-child(3),
  .about-arc img:nth-child(4),
  .about-arc img:nth-child(5) {
    transform: none; /* Hilangkan rotasi/translasi di mobile agar tidak berantakan */
  }

  .about-points {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
  }

  /* --- GALLERY --- */
  #gallery {
    padding: 60px 16px;
  }

  .gallery-title {
    font-size: 1.6rem;
  }

  .carousel-item {
    width: 260px;
    height: 180px;
  }

  #gallery .nav {
    display: none;
  }

  /* --- STRUKTUR --- */
  #struktur {
    padding: 60px 16px;
  }

  .struktur-title {
    font-size: 1.6rem;
    margin-bottom: 36px;
  }

  .leader {
    max-width: 100%;
    padding: 14px;
  }

  .leader.secondary {
    max-width: 100%;
  }

  .leader p {
    font-size: 1rem;
  }

  .card span {
    font-size: 0.95rem;
  }

  .grid {
    gap: 1rem;
  }

  .divider {
    margin: 36px auto;
  }

  /* --- CONTACT --- */
  #contact-section {
    padding: 60px 16px;
  }

  .contact-title {
    font-size: 1.6rem;
  }

  .contact-cards {
    flex-direction: column;
    gap: 16px;
  }

  .contact-card {
    width: 100%;
    padding: 14px 16px;
  }

  .contact-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .form-row {
    grid-template-columns: 1fr; /* Name fields jadi satu kolom */
  }

  .contact-map iframe {
    min-height: 280px;
  }

  /* --- FOOTER --- */
  footer {
    padding: 2rem 16px;
    font-size: 0.85rem;
  }
}

/* ============================================================
   RESPONSIVE ADDITIONS — Small Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-left h1 {
    font-size: 1.5rem;
  }

  .hero-badge {
    font-size: 0.8rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 9px 18px;
    font-size: 0.85rem;
  }

  .about-title {
    font-size: 1.4rem;
  }

  .about-arc img {
    width: 65px;
    height: 90px;
  }

  .gallery-title {
    font-size: 1.4rem;
  }

  .carousel-item {
    width: 220px;
    height: 160px;
  }

  .struktur-title {
    font-size: 1.4rem;
  }

  .contact-title {
    font-size: 1.4rem;
  }

  .contact-form h3 {
    font-size: 1.2rem;
  }
}

/* ============================================================
   FIX: Full-width Navbar & Hero di Mobile
   ============================================================ */
@media (max-width: 768px) {
  /* Fix header agar full width */
  header {
    width: 100%;
    left: 0;
    right: 0;
    box-sizing: border-box;
  }

  /* Fix navbar container agar tidak ada margin sisa */
  .navbar {
    max-width: 100%;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  /* Fix hero section agar full width tanpa sisa kanan */
  .hero-modern {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* Fix hero container agar tidak ada overflow kanan */
  .hero-container {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Fix body/html agar tidak ada horizontal scroll */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
}
/* ============================================================
   HERO SLIDER — Aktif hanya di Tablet & Mobile
   ============================================================ */
@media (max-width: 1024px) {
  /* Sembunyikan image-stack default, aktifkan slider */
  .hero-right {
    display: block;
    width: 100%;
    overflow: hidden;
    order: -1;
  }

  /* Wrapper slider */
  .hero-slider {
    position: static !important; /* Override position: relative dari image-stack */
    height: auto !important; /* Override fixed height */
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    width: max-content; /* Biarkan melebar sesuai isi */
    animation: slideLoop 20s linear infinite;
  }

  /* Tiap gambar dalam slider */
  .hero-slider img {
    position: static !important; /* Override position: absolute */
    width: 220px !important;
    height: 280px !important;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transform: none !important; /* Hapus rotasi dari desktop */
  }

  /* Animasi geser kiri ke kanan secara infinite */
  @keyframes slideLoop {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* Teks hero di bawah slider */
  .hero-left {
    order: 1;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    margin-top: 2rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-left h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero-left p {
    font-size: 1.05rem;
    text-align: center;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge {
    width: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

/* ============================================================
   HAMBURGER — Aktif di Tablet & Mobile (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hamburger {
    display: flex !important;
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 68px;
    flex-direction: column;
    background-color: #1a365d;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  /* Dropdown di tablet/mobile */
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }

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

  .dropdown-menu .drop-a {
    color: white !important;
    padding: 10px 0;
  }

  .dropdown-menu .drop-a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #d69e2e !important;
  }
}

/* ============================================================
   FIX: Hero section tinggi mengikuti konten di Mobile & Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .hero-modern {
    min-height: unset !important; /* Hapus min-height: 100vh */
    height: auto !important; /* Tinggi mengikuti konten */
    padding-bottom: 60px;
  }

  .hero-container {
    height: auto;
    overflow: visible;
  }

  .hero-left {
    height: auto;
    padding-bottom: 0;
  }

  /* Pastikan section about tidak overlap */
  #about {
    position: relative;
    z-index: 1;
    margin-top: 0;
  }

  #home {
    position: relative;
    z-index: 0;
    height: auto !important;
    overflow: visible;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .hero-modern {
    min-height: unset !important;
    height: auto !important;
    padding-top: 80px; /* Offset dari fixed navbar */
    padding-bottom: 50px;
  }
}
/* ============================================================
   FIX: Dropdown Akun - Desktop
   ============================================================ */
@media (min-width: 1025px) {
  .nav-links li.dropdown {
    position: relative;
  }

  .nav-links li.dropdown .dropdown-menu {
    display: block;
    position: absolute;
    top: calc(100% + 12px); /* Jarak dari link parent */
    left: 50%;
    transform: translateX(-50%); /* Center terhadap parent */
    right: auto;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 160px;
    z-index: 9999;

    /* Animasi muncul */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .nav-links li.dropdown .dropdown-menu li {
    margin: 0;
  }

  .nav-links li.dropdown .dropdown-menu .drop-a {
    display: block;
    padding: 10px 20px;
    color: #2d3748 !important;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-links li.dropdown .dropdown-menu .drop-a:hover {
    background: #edf2f7;
    color: #1a365d !important;
  }
}
