:root {
  --accent:#1f8ef1;
  --muted:#666;
}

body {
  font-family: system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  padding:0;
  margin:0;
  color:#222;
  line-height:1.4;
}

/* ===== HERO / HEADER ===== */
header {
  height: 100vh;                 /* penuh 1 layar */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;       /* konten vertikal center */
  padding: 0 20px;               /* buang padding top, ganti padding kiri/kanan */
  color: white;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;                      /* shorthand top/right/bottom/left:0 */
  background: transparent;
  z-index: -1;
}

.hero-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1200px;             /* biar proporsional */
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.hero-wrap.left {
  margin-left: 0;   /* HAPUS margin negatif */
}

.hero-wrap .right {
  flex: 0 0 360px;
  display: flex;
  justify-content: flex-end;
  margin-right: 0; /* hapus margin negatif */
}

/* ===== HERO HEADER ===== */
.hero-header {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  position:relative;
  background: url('assets/bg.jpg') no-repeat center center/cover;
}

.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* bisa diatur opacity-nya */
  z-index: 1;
}

.hero-header .container {
  display:flex;
  flex-wrap:wrap;
  gap:32px;
  justify-content:space-between;
  align-items:center;
  position: relative;
  z-index: 2; /* agar teks dan logo muncul di atas overlay */
}

/* ===== LOGO & PROMO ===== */
.logo {
  width: 200px;
  transition: opacity 1s ease-in-out;
  opacity: 1;;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.6));
}

.logo.fade-out {
  opacity: 0;
}


@media (min-width: 769px) {
    .left .logo {
        max-width: 300px;
        width: auto;
        margin: 0 0 15px;
        margin-top: -100px;

        /* INI YANG PENTING */
        transform: translateY(100px);
        transform: translateX(180px);  /* geser kanan */
    }
}

/* ===== TEKS UTAMA HERO ===== */
/* Naikkan posisi teks utama */
.judul {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: bold;
    line-height: 1.15;
    margin-top: -40px;     /* ⬆ angkat teks ke atas */
    text-align: left;
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000;
}

/* Teks kalimat */
.promo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: -50px;
    text-align: left;
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000,
       0px 0px 8px rgba(0,0,0,0.8),
       0px 0px 12px rgba(0,0,0,0.9);
}

/* ===== FORM CARD ===== */
aside.form-card {
  background: rgba(0,0,50,0.75);
  color: #fff;
  padding: 10px 20px;
  border-radius: 16px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 30px;
}

aside.form-card h3 {
  margin: 5px;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
}

aside.form-card label {
  display:block;
  font-size:0.9rem;
  margin-bottom:4px;
  font-weight:500;
}

aside.form-card input[type="text"],
aside.form-card input[type=email],
aside.form-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  box-sizing: border-box;
  display: block;
   margin-bottom: 5px;
}

aside.form-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  box-sizing: border-box;
  display: block;
   margin-bottom: 5px;
}

aside.form-card input::placeholder {
  color: #888;
  font-size: 0.95rem;
  opacity: 1;
}

aside.form-card select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-bottom: 5px;
  font-size: 0.95rem;
  box-sizing: border-box;
  display: block;
  background-color: #fff;
  color: #333;

  /* Hilangkan style default browser */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Tambahkan panah custom */
  background: #fff url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 12px center;
  background-size: 16px;
}


/* Jarak tombol login */
aside.form-card button[type=submit] {
  margin-top: 15px;
  background: #ffcc00;
  color: #000;
  border: none;
  padding: 14px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  width: 100%;
  font-size: 1rem;
  transition: background 0.3s;
  margin-bottom: 5px;
}

aside.form-card button[type=submit]:hover {
  background:#ffdb4d;
}

/* ===== ALERT ===== */
.alert {
  padding:10px;
  border-radius:8px;
  margin-bottom:10px;
}

.alert.success {
  background:#e6ffef;
  border:1px solid #b7f0c6;
  color:#145a32;
}

.alert.error {
  background:#fff3f3;
  border:1px solid #f8c6c6;
  color:#a33;
}

/* ===== LOGIN LINK ===== */
.login-link {
  position:absolute;
  top:10px;
  right:20px;
  font-size:0.9rem;
  color:white;
  text-decoration:none;
}

/* ===== GRID CARD ===== */
.container {
  max-width:1200px;
  margin:0 auto;
  padding:24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.cluster-section {
  text-align: left;
  margin-top: 40px;
}

.cluster-section h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.cluster-detail {
  text-align: center;
  padding: 50px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.cluster-detail img {
  width: 100%;
  max-width: 700px;
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.15);
  margin: 20px 0;
  transition: transform 0.3s ease;
}

.cluster-detail img:hover {
  transform: scale(1.03);
}

.cluster-detail p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 20px auto 40px;
  max-width: 800px;
}

.btn-back {
  margin-top: 50px;
  background: #0066cc;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-back:hover {
  background: #004c99;
}

/* Grid 2x2 */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card {
  background:#fff;
  border-radius:12px;
  padding:14px;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  display:flex;
  flex-direction:column;
}

.card img {
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:8px;
}

.card h3 {
  margin:10px 0 6px;
}

.card h3 small {
  font-weight:600;
  color:var(--muted);
  font-size:0.85rem;
}

.card p {
  margin:0;
  color:var(--muted);
  font-size:0.95rem;
}

/* Layout grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* Hapus underline dan pewarnaan link */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Card style dasar */
.card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efek hover pada card */
.card-link:hover .card {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Bungkus gambar biar bisa di-zoom */
.card-image {
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

/* Gambar di dalam card */
.card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

/* Efek zoom lembut saat hover */
.card-link:hover .card-image img {
  transform: scale(1.08);
}

/* Konten teks */
.card-content {
  padding: 15px 18px 20px;
}

.card-content h3 {
  font-size: 1.2rem;
  margin: 10px 0 5px;
  font-weight: 700;
}

.card-content small {
  font-size: 0.9rem;
  color: #555;
}

.card-content p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.4;
}

.galeri-section {
  text-align: center;
  margin: 60px auto;
  max-width: 900px;
  position: relative;
}

.galeri-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.galeri-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* ✅ otomatis tinggi mengikuti rasio 16:9 */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  background: #000; /* biar tidak blank saat loading gambar */
}

.galeri-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.galeri-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.1rem;
  padding: 12px 16px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  font-weight: 600;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.galeri-image.active .galeri-caption {
  opacity: 1;
  transform: translateY(0);
}

.galeri-image.active {
  opacity: 1;
}

/* Tombol navigasi */
.galeri-prev, .galeri-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent; /* polos */
  border: none; /* tanpa border */
  outline: none; /* hilangkan outline saat focus */
  color: rgba(255, 255, 255, 0.9);
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.galeri-prev:hover, .galeri-next:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.15); /* sedikit zoom */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8); /* efek lembut */
}

.galeri-prev { left: 20px; }
.galeri-next { right: 20px; }

/* ===== FOOTER ===== */
.footer-dual {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 40px 20px;
  background-image: linear-gradient(to bottom left, #985F14, #BC8727, #E4B543, #F2D55F );
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #FFFFFF ;
  text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  margin-top: 40px; 
}

.footer-column {
  flex: 1;
}

.footer-column h3 {
  margin-bottom: 5px;
  font-size: 30px;
  font-weight: 700;
}

.footer-column p {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 22px;
  font-weight: bold;
}

.footer-info {
  list-style: none;
  padding: 0;
  margin: 0;
  
}

.footer-info li {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 20px;
}

.footer-title {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin-bottom: 12px !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

/* Untuk paragraf deskripsi */
.footer-desc {
  font-size: 20px !important;
  color: #f5f5f5 !important;
  line-height: 1.6 !important;
  margin-bottom: 18px !important;
  font-weight: 500;
  text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000;
}

/* Garis pemisah tengah */
.divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.2);
  height: auto;
}

/* Bagian bawah */
.footer-bottom {
  background-image: linear-gradient(to top left, #985F14, #BC8727, #E4B543, #F2D55F );
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
  color: #FFFFFF ;
  font-size: 15px;
  font-weight: bold;
  text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.footer-bottom2 {
  background: #2a2222; 
  color: #f3eee9; 
  text-align: center;
  padding: 8px 0;
  letter-spacing: 14px;
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  word-spacing: 6px; 
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.footer-running-text {
    display: inline-block;
    padding-left: 100%;
    animation: runningText 15s linear infinite;
    color: #fff;
    font-size: 14px;
}


.dashboard-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    align-items: center;
}

.dashboard-controls input,
.dashboard-controls select {
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    transition: 0.25s ease;
}

.dashboard-controls input:focus,
.dashboard-controls select:focus {
    border-color: #1f8ef1;
    box-shadow: 0 0 6px rgba(31,142,241,0.2);
}

/* Table Modern */
.table-container {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

table thead tr {
    background: linear-gradient(90deg, #1f8ef1, #007bff);
    color: #fff;
}

table tbody tr {
    transition: 0.25s ease;
}

table tbody tr:hover {
    background: #eef6ff;
}

/* Aksi delete */
.table-delete {
    color: #ff4d4d !important;
    font-weight: 600;
    text-decoration: none;
}

.table-delete:hover {
    color: #d62828 !important;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.pagination a {
    padding: 8px 14px;
    background: #f1f1f1;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.pagination a:hover {
    background: #1f8ef1;
    color: #fff;
}

.pagination .active {
    background: #1f8ef1;
    color: #fff !important;
}

/* Dropdown jumlah baris */
.rows-select {
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}


/* Animasi berjalan */
@keyframes runningText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.footer-bottom a {
  text-decoration: none;
  color: inherit;
}

/* ===== SITEPLAN SECTION ===== */
.siteplan-section {
  width: 100%;
  text-align: center;
  padding: 50px 20px;
  margin-top: 40px;
}

.siteplan-container {
  max-width: 900px;
  margin: 0 auto;
}

.siteplan-img {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.siteplan-img:hover {
  transform: scale(1.03);
}

.siteplan-caption {
  margin-top: 30px;
  font-size: 1.2rem;
  color: #333;
  line-height: 1.5;
}


@media (max-width: 768px) {

  /* SECTION SITEPLAN MOBILE */
  .siteplan-section {
    padding: inherit;
    margin-top: 20px;
  }

  .siteplan-container {
    width: 100%;
  }

  .siteplan-img {
    margin-top: 30px;
    width: 90%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }

  .siteplan-caption {
    font-size: 0.95rem;
    margin-top: 10px;
    line-height: 1.4;
    padding: 0 5px;
  }

}

@media (max-width: 768px) {
  .footer-bottom2 {
    width: 100%;
    max-width: 100%;
    display: block;
    text-align: center;
    padding: 10px 0;
    margin: 0 auto;
    overflow: hidden;
    flex: 0 0 100%; 
  }

   .footer-running-text {
        font-size: 12px;
        animation-duration: 20s; /* diperlambat sedikit agar enak dibaca */
    }

}


/* Responsif mobile */
@media (max-width: 768px) {
  .galeri-card {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .galeri-caption {
    font-size: 0.9rem;
    padding: 8px 10px;
  }

  .galeri-prev, .galeri-next {
    font-size: 1.8rem;
  }

  .footer-dual {
    flex-direction: column;
  }

  .divider {
    display: none;
  }

  .footer-column {
    margin-bottom: 20px;
  }

  
}

.main {
  flex:1;
  padding:24px;
}

.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.topbar h1 {
  margin:0;
  font-size:1.8rem;
  color:#1f1f1f;
}

.logout-btn {
  background:#ff4d4d;
  color:#fff;
  padding:10px 18px;
  border-radius:8px;
  text-decoration:none;
  font-size:0.95rem;
  font-weight:600;
  transition:0.3s;
}
.logout-btn:hover { background:#e04343; }

/* TABLE */
.table-container {
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  overflow:hidden;
}

table {
  width:100%;
  border-collapse:collapse;
}

th,td {
  padding:12px 14px;
  text-align:left;
  font-size:0.95rem;
}

th {
  background:var(--accent);
  color:#fff;
}

tr:nth-child(even) {
  background:#f9f9f9;
}

/* STAT CARD */
.stats {
  display:flex;
  gap:20px;
  margin-bottom:20px;
}

.stat-card {
  background:#fff;
  padding:20px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  flex:1;
  text-align:center;
}

.stat-card h2 {
  margin:0;
  font-size:2rem;
  color:var(--accent);
}
.stat-card p {
  margin:6px 0 0;
  font-size:1rem;
  color:var(--muted);
}

/* SEARCH BOX */
.search-box {
  margin-bottom:16px;
  text-align:right;
}

.search-box input {
  padding:10px 14px;
  border:1px solid #ccc;
  border-radius:8px;
  font-size:0.95rem;
  width:250px;
  max-width:100%;
}

/* =====================
   HERO SLIDESHOW
   ===================== */
/* Slideshow jadi background penuh */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;   /* penuh setinggi header */
  overflow: hidden;
  z-index: 0;     /* di bawah konten */
}

.hero-slideshow .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;   /* isi penuh tanpa gepeng */
  background-position: center;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

/* Bungkus konten agar transparan */
.hero-wrap {

  z-index: 1; /* pastikan di atas slideshow */
  border-radius: 12px;

}
.hero-wrap.left {
  margin-left: -200px;
}

.hero-slideshow .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

/* === Wrapper semua kontrol === */
.hero-header .nav-wrapper {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;              /* kurangi jarak antar elemen */
  background: rgba(0,0,0,0.45);
  padding: 6px 12px;     /* kecilkan padding */
  border-radius: 40px;
  z-index: 9999; 
  max-width: 100px;      /* batasi lebar total */
  justify-content: center; /* biar item di tengah */
}

/* Panah */
.hero-header .prev,
.hero-header .next {
  font-size: 20px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 100 !important; 
}

.hero-header .prev:hover,
.hero-header .next:hover {
  background: rgba(255,255,255,0.2);
}

/* Dots */
.hero-header .dots {
  display: flex;
  gap: 8px;
  width: 100px;
  height: 5px;
}

.hero-header .dot {
  height: 12px;
  width: 12px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-header .dot.active,
.hero-header .dot:hover {
  background: white;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* bisa diubah jadi 100vh kalau ingin full layar */
  overflow: hidden;
}

.hero-section .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3); /* efek gelap lembut di atas gambar */
  color: white;
  text-align: center;
}

.hero-overlay h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

/* Cluster Detail Section */
.cluster-detail {
  padding: 40px 20px;
  text-align: center;
}

.cluster-detail .container {
  max-width: 800px;
  margin: 0 auto;
}

.cluster-detail p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.btn-back {
  display: inline-block;
  padding: 10px -20px;
  background: #007BFF;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-back:hover {
  background: #0056b3;
}

/* ==== PERBAIKAN DASAR ==== */
html, body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
/* Tombol WhatsApp mengambang */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  background-color: #25d366;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2.5s infinite;
}

.whatsapp-float img {
  width: 50px;
  height: 50px;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* ==== RESPONSIVE CSS ==== */
@media (max-width: 768px) {

  body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;           /* cegah scroll horizontal */
    overflow-y: auto !important;  /* paksa scroll vertikal tersedia */
  }

  /* Hero container jadi kolom */
  .hero-wrap {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;                 /* kasih jarak antar section */
    padding: 20px 15px;
    text-align: center;
    position: relative;
    z-index: 2;
    padding-bottom: 100px;    /* ruang ekstra agar scroll tidak terpotong */
    min-height: 100vh;        /* pastikan cukup tinggi */
  }

  /* Logo */
  .left .logo {
    width: 60%;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    position: relative;
    z-index: 10;
    top: 30px;
}

  /* Judul */
  .judul {
    font-size: 2.0rem;
    line-height: 1.4;
    text-align: center;
    margin: 10px auto;
    font-weight: 700;
    margin-top: -10px;
  }

  .promo {
    font-size: 0.95rem;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 12px;
  }
  
  /* Form card full width */
  .hero-wrap .right {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
  }

  aside.form-card {
    width: 100%;
    max-width: 320px;
    margin: 10px auto;
    padding: 15px 12px;
    border-radius: 10px;
  }

  aside.form-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    text-align: center;
  }

  aside.form-card input,
  aside.form-card select,
  aside.form-card textarea,
  aside.form-card button {
    width: 100%;
    margin-bottom: 10px;
    font-size: 0.9rem;
    padding: 10px 12px;
    border-radius: 6px;
  }

  /* === FOOTER === */
  footer {
    font-size: 0.75rem;
    text-align: center;
    padding: 12px;
  }

  /* Hero header */
  .hero-header {
    min-height: 100vh;
    height: auto !important;
    overflow: visible !important;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Slideshow nav */
  .hero-header .nav-wrapper {
    bottom: 12px;
    padding: 4px 8px;
    gap: 6px;
    pointer-events: auto;
    z-index: 9999;
  }

  .hero-header .prev,
  .hero-header .next {
    font-size: 16px;
    padding: 5px 8px;
  }

  .hero-header .dot {
    width: 8px;
    height: 8px;
  }

  /* Slideshow background */
  .hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden; /* background tetap hidden */
  }

  .grid-2x2 {
    grid-template-columns: 1fr;
  }

  .card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Tampilan card */
.card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* Efek hover card */
.card-link:hover .card {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

/* Bungkus gambar */
.card-image {
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

/* Gambar */
.card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

/* Zoom gambar saat hover */
.card-link:hover .card-image img {
  transform: scale(1.08);
}

/* Isi konten */
.card-content {
  padding: 18px 20px 22px;
}

.card-content h3 {
  font-size: 1.15rem;
  margin: 10px 0 6px;
  font-weight: 700;
  color: #111;
}

.card-content small {
  font-size: 0.9rem;
  color: #666;
}

.card-content p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.45;
}

.footer-dual {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 15px;
    gap: 20px;
    font-size: 14px;
  }

  .footer-column {
    max-width: 100%;
  }

  .divider {
    width: 60%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 10px 0;
  }

  .footer-column h3 {
    font-size: 18px;
  }

  .footer-info li {
    margin: 4px 0;
    font-size: 14px;
  }

  .footer-title {
    font-size: 20px !important;
  }

  .footer-desc {
    font-size: 14px !important;
  }
}