/* ==========================================================================
   VARIABLES & BASE STYLING
   ========================================================================== */
:root {
  /* Navy & Dark Theme Colors */
  --dark-navy: #0f172a;
  --primary-navy: #1e3a8a;
  --bright-navy: #2563eb;
  --sidebar-navy: #1e293b;
  --submenu-bg: #1e293b;
  --submenu-child-bg: #0f172a;
  --navy-light-bg: #f8fafc;
  
  /* Pink Aksen Sakura */
  --primary-pink: #f472b6;
  --soft-pink: #fce7f3;
  
  /* Teks & Netral */
  --text-color: #334155;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background-color: #f8fafc; /* Sesuaikan warna latar global */
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   FLOATING NAVBAR & DESKTOP STYLES (Default / Layar Besar)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1200px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  top: 10px;
  width: 95%;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 65px;
  padding: 0 25px;
  transition: height 0.3s ease;
}

.navbar.scrolled .nav-container {
  height: 60px;
}

/* Overlay Gelap di Belakang Sidemenu */
.nav-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Brand Logo (Desktop Default) */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-navy);
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-logo-img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  border-radius: 50%;
  background-color: #ffffff;
  padding: 2px;
  flex-shrink: 0;
}

.brand-logo span {
  color: var(--bright-navy);
  transition: color 0.3s;
  margin-left: 2px;
}

.navbar.scrolled .brand-logo {
  color: var(--white);
}

.navbar.scrolled .brand-logo span {
  color: var(--primary-pink);
}

/* Nav Links Base (Desktop) */
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--bright-navy);
}

.navbar.scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.9);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--primary-pink);
}

.sidebar-header {
  display: none;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-navy);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--bright-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.navbar.scrolled .btn-primary {
  background-color: var(--primary-pink);
  color: var(--white) !important;
}

.btn-secondary { 
  border: 2px solid #ffffff !important; 
  color: #ffffff !important; 
  background-color: rgba(255, 255, 255, 0.12); 
  padding: 10px 22px; 
  border-radius: 25px; 
  text-decoration: none; 
  font-weight: 600; 
  transition: all 0.3s ease; 
  display: inline-block; 
  text-align: center; 
  backdrop-filter: blur(4px); 
} 

.btn-secondary:hover { 
  background-color: #ffffff !important; 
  color: var(--dark-navy) !important; 
}

/* Perbaikan Sidemenu Mobile agar Submenu Tertutup Secara Default */
@media (max-width: 991px) {
  /* Sembunyikan submenu secara default */
  .nav-links .submenu,
  .nav-links .submenu-sub {
    display: none !important;
    position: static !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 15px !important;
  }

  /* Tampilkan submenu hanya jika elemen induknya memiliki kelas aktif/open dari JavaScript */
  .nav-links .dropdown.active > .submenu,
  .nav-links .dropdown-sub.active > .submenu-sub {
    display: block !important;
  }
}

/* Sembunyikan tombol hamburger dan header sidebar khusus di layar Desktop */
@media (min-width: 992px) {
  .menu-toggle {
    display: none !important;
  }
  
  .sidebar-header {
    display: none !important;
  }
}

/* Page Header & Content */
.page-header {
  padding-top: 140px;
  padding-bottom: 50px;
  background-color: var(--sidebar-navy, #0f172a);
  color: #fff;
  text-align: center;
}

.page-content {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.content-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.content-card h2, 
.content-card h3,
.content-card h4 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.page-content .content-card {
      max-width: 1200px !important;
      width: 100% !important;
      margin-left: auto !important;
      margin-right: auto !important;
      padding: 40px !important;
    }

    /* MEMPERMEPET TEKS KE SISWA: Kolom teks lebih besar, gap diperkecil */
    .about-grid-layout {
      display: grid !important;
      grid-template-columns: 1.35fr 0.65fr !important; /* Kolom teks diperluas, kolom foto diperkecil */
      gap: 10px !important;                             /* Jarak antar kolom dibuat sangat rapat */
      align-items: center !important;
    }
    
    .about-text {
      width: 100% !important;
    }

    .about-image-content {
      text-align: right !important; /* Mendorong foto agar merapat ke sisi kanan area */
      width: 100% !important;
    }
    
    .about-image-content img.student-full-img {
      width: 100% !important;
      max-width: 340px !important; /* Ukuran foto disesuaikan agar pas */
      height: auto !important;
      object-fit: contain !important;
      border-radius: 12px !important;
    }

    /* Underline Tunggal & Pas dengan Kalimat */
    .about-text h2 {
      display: inline-block !important;
      position: relative !important;
      padding-bottom: 6px !important;
      margin-bottom: 20px !important;
      border-bottom: 3px solid var(--primary-navy, #0f172a) !important;
    }

    .about-text h2::after {
      display: none !important;
      content: none !important;
    }

    /* Responsif untuk layar HP */
    @media (max-width: 768px) {
      .about-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
      }
      .about-image-content {
        text-align: center !important;
      }
      .about-image-content img.student-full-img {
        max-width: 260px !important;
      }
    }

    /* Underline Tunggal & Pas dengan Kalimat */
    .about-text h2 {
      display: inline-block !important;
      position: relative !important;
      padding-bottom: 6px !important;
      margin-bottom: 20px !important;
      border-bottom: 3px solid var(--primary-navy, #0f172a) !important;
    }

    .about-text h2::after {
      display: none !important;
      content: none !important;
    }
    /* UKURAN RESPONSIF: Otomatis menyesuaikan layar HP dan Desktop */
    .about-image-content img.student-full-img {
      width: 100% !important;
      max-width: 340px !important; /* Batas aman maksimal di desktop */
      min-width: 220px !important; /* Batas aman minimal di HP */
      height: auto !important;
      object-fit: contain !important;
      border-radius: 12px !important;
    }

    /* Underline Tunggal & Pas dengan Kalimat */
    .about-text h2 {
      display: inline-block !important;
      position: relative !important;
      padding-bottom: 6px !important;
      margin-bottom: 20px !important;
      border-bottom: 3px solid var(--primary-navy, #0f172a) !important;
    }

    .about-text h2::after {
      display: none !important;
      content: none !important;
    }

    /* Penyesuaian khusus layar HP agar ukurannya pas di tengah */
    @media (max-width: 768px) {
      .page-content .content-card {
        padding: 20px !important;
      }
      .about-grid-layout {
        grid-template-columns: 1fr !important; /* Kembali ke 1 kolom khusus di HP */
        gap: 25px !important;
      }
      .about-image-content img.student-full-img {
        max-width: 260px !important; /* Ukuran pas untuk layar handphone */
        margin: 0 auto !important;
      }
    }

    /* Underline Tunggal & Pas dengan Kalimat */
    .about-text h2 {
      display: inline-block !important;
      position: relative !important;
      padding-bottom: 6px !important;
      margin-bottom: 20px !important;
      border-bottom: 3px solid var(--primary-navy, #0f172a) !important;
    }

    .about-text h2::after {
      display: none !important;
      content: none !important;
    }

/* Membuat garis hiasan di bawah judul */
.content-card h2::after, 
.content-card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;       /* Panjang garis hiasan */
  height: 3px;       /* Ketebalan garis */
  background-color: var(--primary-navy, #0f172a); /* Mengikuti warna tema utama */
  border-radius: 2px;
}

.content-card p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #334155;
}

.content-card ul {
  margin-bottom: 15px;
  padding-left: 20px;
  color: #334155;
  line-height: 1.7;
}

.content-card ul li {
  margin-bottom: 8px;
}

/* ==========================================================================
   HIASAN UNDERLINE PADA JUDUL .about-text reveal
   ========================================================================== */
.about-text h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

/* Membuat garis hiasan di bawah judul about-text */
.about-text h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;       /* Panjang garis hiasan */
  height: 3px;       /* Ketebalan garis */
  background-color: var(--primary-navy, #0f172a); /* Menyesuaikan warna tema */
  border-radius: 2px;
}

/* ==========================================================================
   DESKTOP ACCORDION & FLYOUT DROPDOWN (MIN-WIDTH: 992px)
   ========================================================================== */
@media (min-width: 992px) {
  .dropdown, .dropdown-sub {
    position: relative;
  }

  .dropdown > .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
  }

  .submenu {
    display: block;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 6px 0;
    background-color: var(--sidebar-navy);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1100;
  }

  .dropdown:hover > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .submenu-sub {
    display: block;
    list-style: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    padding: 6px 0;
    background-color: var(--sidebar-navy);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.25s ease;
    z-index: 1101;
  }

  .dropdown-sub:hover > .submenu-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .submenu a, .submenu-sub a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: #cbd5e1 !important;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .submenu a:hover,
  .dropdown-sub:hover > .dropdown-toggle-sub {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.08);
  }

  .dropdown:hover > .dropdown-toggle .icon-arrow {
    transform: rotate(180deg);
  }
  
  .dropdown-sub:hover > .dropdown-toggle-sub .arrow-sub {
    transform: translateX(3px);
    color: var(--primary-pink);
  }
}

/* Background Hero / Header */
.bg-hero-full {
  background: linear-gradient(rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.1)), url('assets/header.jpg') no-repeat center center;
  background-size: cover; /* Sesuaikan atau tetap contain */
  color: #ffffff;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 20px 50px 20px;
  position: relative;
  
  /* Tambahkan baris ini agar gambar latar tetap memiliki tinggi yang pas meskipun teks di dalamnya dikomentari */
  min-height: 700px; 
}

/* ==========================================================================
   HERO SECTION & GENERAL COMPONENTS
   ========================================================================== */
.hero-section {
  position: relative;
  /* Berikan padding atas yang pas agar tidak mepet navbar tapi tidak terlalu jauh */
  padding: 130px 0 100px 0; 
  color: #ffffff;
  overflow: hidden;
  
  /* Atur background agar pas menutupi area tanpa ada garis potong */
  background-size: cover;
}

.hero-content { 
  position: relative; 
  z-index: 2; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  text-align: center;
  gap: 1px;
}

.badge-tag { 
  background-color: rgba(255, 255, 255, 0.95); 
  color: var(--primary-navy); 
  padding: 8px 18px; 
  border-radius: 20px; 
  font-size: 0.85rem; 
  font-weight: 600; 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  margin: 0 auto 15px auto; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 5px 0 15px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content h1 > span:last-child {
  color: #38bdf8 !important;
}

.hero-title-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff !important;
  white-space: nowrap;
}

.text-flip-wrapper {
  display: inline-block;
  height: 1.3em;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
}

.text-flip {
  display: flex;
  flex-direction: column;
  animation: slideUpMultiText 8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.text-flip span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.3em;
  line-height: 1.3em;
  color: #fbbf24 !important;
  white-space: nowrap;
  font-weight: 700;
}

@keyframes slideUpMultiText { 
  0%, 28% { transform: translateY(0%); } 
  33%, 61% { transform: translateY(-33.33%); } 
  66%, 94% { transform: translateY(-66.66%); } 
  100% { transform: translateY(0%); } 
}

.hero-content p {
  max-width: 600px;
  margin: 0 auto 25px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.section-padding {
  padding: 40px 0 60px 0;
}

.bg-light {
  background-color: var(--navy-light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: var(--dark-navy);
}

.section-header h2 span {
  color: var(--bright-navy);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #f1f5f9;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--bright-navy);
  margin-bottom: 15px;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-list li {
  margin-bottom: 10px;
}

.feature-list i {
  color: var(--bright-navy);
  margin-right: 8px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: #f1f5f9;
  border-left: 4px solid var(--bright-navy);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--dark-navy);
  font-weight: 700;
}

/* Footer Styles yang Lebih Rapi & Compact (Tanpa Background Image) */
.footer-with-bg {
  position: relative;
  background: #0f172a; /* Menggunakan warna solid dark navy sebagai pengganti background image */
  color: #ffffff;
  padding: 50px 0 20px 0 !important;
  overflow: hidden;
  margin-top: 50px;
}

/* Lapisan transparan dihapus karena sudah tidak memakai background gambar */
.footer-overlay {
  display: none;
}

.footer-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}

.footer-brand h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 700;
}

.footer-brand h3 span {
  color: #f472b6; /* Aksen warna pink khas */
}

.footer-brand p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-brand p span {
  display: block;
  margin-top: 4px; /* Atur jarak antar baris */
}

.footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #38bdf8; /* Aksen biru terang */
  font-weight: 600;
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #f8fafc !important; /* Menjamin teks alamat & telp putih bersih */
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.footer-contact i {
  color: #f472b6;
  margin-top: 5px;
  min-width: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* Preloader & Animations */
#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.preloader-logo {
  width: 70px;
  height: auto;
  animation: pulse 1.5s infinite ease-in-out;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid rgba(30, 58, 138, 0.1);
  border-top: 4px solid var(--bright-navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.preloader-text {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   ATURAN KHUSUS MOBILE (Hanya aktif di layar HP < 992px)
   ========================================================================== */
@media (max-width: 992px) {
  .navbar {
    width: 94% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 6px 10px !important;
  }

  .nav-container {
    width: 100% !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px !important;
    padding: 0 10px !important;
  }

  .brand-logo {
    font-size: 1.15rem !important;
    gap: 6px;
  }

  .nav-logo-img {
    height: 30px;
    width: 30px;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--dark-navy) !important;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .menu-toggle:active {
    background: rgba(15, 23, 42, 0.15);
  }

  .navbar.scrolled .menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #0f172a;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: right 0.35s ease-in-out;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    overflow-y: auto;
  }

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

  .sidebar-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sidebar-header .logo-wrapper {
    background: transparent !important;
    padding: 0;
    border-radius: 0;
  }

  .sidebar-logo {
    height: 38px !important;
    width: auto !important;
    object-fit: contain;
  }

  .close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    color: #cbd5e1 !important;
    font-size: 0.95rem;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links .btn-sidebar-cta,
  .nav-links a.btn-primary {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    margin-top: 15px !important;
    margin-bottom: 20px !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    background-color: var(--primary-pink, #ec4899) !important; 
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
  }

  .page-header {
    padding-top: 120px !important;
  }

  .map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 12px;
  }
}

/* ==========================================================================
   PERBAIKAN FINAL POSISI GAMBAR DI TENGAH & KOREKSI PROPERTI
   ========================================================================== */

/* Berlaku di semua ukuran layar (Desktop & Mobile) */
.content-card img,
.content-card img.content-img,
.image-preview-container img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important; /* Diperbaiki dari object-exit */
  float: none !important;
}

/* Memastikan kontainer card mendukung perataan tengah untuk gambar */
.content-card,
.image-preview-container {
  text-align: center !important;
}

/* Mengembalikan teks di dalam card agar tetap rata kiri yang rapi */
.content-card h2,
.content-card h3,
.content-card p,
.content-card ul {
  text-align: left !important;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
  .about-grid, .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .content-card {
    padding: 20px;
  }
}

/* ==========================================================================
   PERBAIKAN KHUSUS DESKTOP: SUBMENU "BIAYA" TURUN KE BAWAH (ACCORDION)
   ========================================================================== */
@media (min-width: 992px) {

  /* 1. Jadikan container "Biaya" sebagai acuan posisi relatif */
  .dropdown-sub-down {
    position: relative !important;
  }

  /* 2. Paksa kotaknya agar tampil turun ke bawah, bukan ke samping kanan */
  .dropdown-sub-down > .submenu-sub,
  .dropdown-sub-down > .submenu-down {
    display: none !important; /* Tersembunyi secara default */
    position: static !important; /* Mengikuti alur dokumen ke bawah */
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    background-color: rgba(15, 23, 42, 0.4) !important;
    padding: 4px 0 !important;
    border-radius: 6px !important;
    margin-top: 4px !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* 3. Tampilkan submenu ke bawah saat "Biaya" di-hover */
  .dropdown-sub-down:hover > .submenu-sub,
  .dropdown-sub-down:hover > .submenu-down {
    display: block !important;
  }

  /* 4. Putar panahnya ke bawah saat aktif */
  .dropdown-sub-down:hover > .dropdown-toggle-sub .arrow-sub {
    transform: rotate(180deg) !important;
    color: var(--primary-pink) !important;
  }

  /* 5. Berikan sedikit indentasi teks di dalam sub-menu Biaya */
  .dropdown-sub-down > .submenu-sub > li > a,
  .dropdown-sub-down > .submenu-down > li > a {
    padding-left: 20px !important;
  }
}

/* ==========================================================================
   JARAK ANTARA TEKS DAN ARROW PADA MENU "BIAYA KEBERANGKATAN"
   ========================================================================== */
@media (min-width: 992px) {
  /* Berikan jarak antara teks dan ikon panah menggunakan gap */
  .dropdown-sub > a.dropdown-toggle-sub {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important; /* Atur angka ini untuk memperlebar atau mempersempit jarak teks dengan arrow */
  }
}

/* ==========================================================================
   PERBAIKAN UKURAN FOTO TESTIMONI
   ========================================================================== */
.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.testimonial-avatar {
  width: 60px !important;    /* Batasi lebar persis 60px */
  height: 60px !important;   /* Batasi tinggi persis 60px */
  min-width: 60px !important; /* Mencegah gambar menyusut/melebar */
  border-radius: 50% !important; /* Membuatnya bulat sempurna */
  object-fit: cover !important;  /* Memotong gambar agar tidak gepeng */
  border: 2px solid var(--primary-pink, #f43f5e) !important;
}

.testimonial-profile h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  color: inherit;
}

/* ==========================================================================
   GARIS PEMISAH TEGAK LURUS ANTARA MENU BERANDA & PROFILE
   ========================================================================== */

/* Menambahkan garis vertikal (│) di sebelah kanan menu Beranda */
.nav-links > li:nth-child(2) > a::after {
  content: "|";
  margin-left: 20px;
  color: rgba(4, 50, 111, 0.4); /* Warna garis samar/transparan agar elegan */
  font-weight: 300;
}

/* Penyesuaian jarak antar menu agar lebih pas setelah ada garis */
.nav-links > li {
  margin-left: 5px;
}

/* ==========================================================================
   MENGURANGI JARAK ANTAR SECTION (TENTANG KAMI & MENGAPA MEMILIH KAMI)
   ========================================================================== */
#tentang-kami.section-padding {
  padding-bottom: 20px !important; /* Memperkecil jarak bawah section Tentang Kami */
}

#keunggulan.section-padding {
  padding-top: 20px !important;    /* Memperkecil jarak atas section Mengapa Memilih Kami */
}

/* ==========================================================================
   MEMPERKECIL UKURAN FONT KALIMAT TESTIMONI
   ========================================================================== */
#testimoni .card p {
  font-size: 0.8rem !important; /* Mengecilkan ukuran teks kutipan testimoni */
  line-height: 1.5 !important;   /* Menyesuaikan jarak antar baris agar tetap rapi */
}

.visi-misi-grid {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 30px !important;
      margin-top: 15px !important;
      align-items: start !important;
    }
    @media (max-width: 768px) {
      .visi-misi-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
      }
    }
    

/* ==========================================================================
   FINAL CSS TIMELINE ALUR PENDAFTARAN (DISINKRONKAN)
   ========================================================================== */

/* Kontainer utama timeline, beri jarak kiri yang cukup */
.timeline-container {
  position: relative;
  padding-left: 60px; /* Jarak untuk menempatkan bulatan nomor di luar card */
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Garis latar belakang abu-abu */
.timeline-line {
  position: absolute;
  left: 20px;
  top: 40px;  /* Mulai pas di tengah bulatan angka 1 */
  width: 4px;
  background-color: #e2e8f0;
  border-radius: 2px;
  
  /* KUNCI: Batasi tinggi garis abu-abu agar berhenti tepat di tengah bulatan terakhir */
  /* Kita gunakan calc dari jarak total item dikurangi tinggi setengah lingkaran */
  bottom: auto;
  height: calc(100% - [jarak_penyesuaian]); /* Atau gunakan tinggi absolut dinamis */
}

/* Garis progress bar biru */
.timeline-progress-bar {
  position: absolute;
  left: 20px;
  top: 40px;  /* Harus sama persis dengan .timeline-line */
  bottom: 100px;
  width: 4px;
  background-color: #1e3a8a;
  height: 0px; 
  border-radius: 2px;
  transition: height 0.05s ease-out;
  z-index: 1;
}

/* Setiap item timeline */
.timeline-item {
  position: relative;
  margin-bottom: 35px;
}

/* Bulatan nomor angka */
.timeline-number {
  position: absolute;
  left: -57px; /* Posisi angka di luar card sebelah kiri */
  top: 10%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: #1e3a8a; /* Warna Navy ala Navbar IJEF */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  
  /* KUNCI UTAMA: Z-index dibuat lebih tinggi dari timeline-line dan progress-bar */
  z-index: 10; 
  
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3); /* Efek bayangan navy */
}

/* Card Timeline Umum */
.timeline-card {
  border-radius: 12px;
  padding: 24px;
  text-align: center !important;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Memastikan semua teks rata tengah */
.timeline-card h4,
.timeline-card p {
  text-align: center !important;
}

/* PALET WARNA KONTRAS TINGGI UNTUK TIAP TAHAP */
.timeline-item:nth-child(6n + 1) .timeline-card { background-color: #e0f2fe !important; } /* 1. Biru Cerah */
.timeline-item:nth-child(6n + 2) .timeline-card { background-color: #fef08a !important; } /* 2. Kuning Jelas */
.timeline-item:nth-child(6n + 3) .timeline-card { background-color: #bbf7d0 !important; } /* 3. Hijau Mint */
.timeline-item:nth-child(6n + 4) .timeline-card { background-color: #fbcfe8 !important; } /* 4. Pink Soft */
.timeline-item:nth-child(6n + 5) .timeline-card { background-color: #e9d5ff !important; } /* 5. Ungu Lavender */
.timeline-item:nth-child(6n + 6) .timeline-card { background-color: #fed7aa !important; } /* 6. Oranye Peach */

.timeline-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.12);
}

/* Kontainer Tab Program */
.program-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  justify-content: center;
  flex-wrap: wrap; /* Membungkus tombol jika layar sempit */
}

/* Styling Tombol Tab Responsif */
.tab-btn {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap; /* Mencegah teks terpotong ke bawah */
}

.tab-btn.active, 
.tab-btn:hover {
  background-color: #1e3a8a; /* Warna Navy IJEF */
  color: white;
  border-color: #1e3a8a;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

/* Pengaturan khusus untuk layar HP (Mobile View) */
@media (max-width: 768px) {
  .program-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Membuat tombol berjejer 2 kolom rapi di HP */
    gap: 8px;
    padding: 0 10px;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   STYLING HIERARKI TIM (COMPACT & CLEAN)
   ========================================================================== */

.team-hierarchy-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px 20px;
}

.tier-group {
  margin-bottom: 40px;
  text-align: center;
}

.tier-title {
  font-size: 1.1rem;
  color: #1e3a8a;
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
  display: inline-block;
  padding-bottom: 4px;
}

/* Layout Grid per Tier */
.team-row {
  display: grid;
  gap: 16px;
  justify-content: center;
}

.tier-1-col { grid-template-columns: repeat(1, minmax(220px, 260px)); margin: 0 auto; }
.tier-2-cols { grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); max-width: 560px; margin: 0 auto; }
.tier-3-cols { grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); max-width: 850px; margin: 0 auto; }
.tier-4-cols { grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); }

/* Kartu Pegawai Kompak */
.team-card-compact {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

.team-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.12);
  border-color: #94a3b8;
}

/* Foto Bulat Profesional */
.team-card-compact img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f1f5f9;
  margin-bottom: 12px;
}

/* Info Teks */
.team-info-compact {
  text-align: center;
}

.team-info-compact h4 {
  font-size: 0.9rem;
  color: #1e3a8a;
  margin-bottom: 4px;
  font-weight: 700;
}

.team-info-compact span {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  background-color: #f8fafc;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

.legal-grid-2 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
      max-width: 800px;
      margin: 30px auto 0 auto;
    }
    .legal-item {
      background-color: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 20px 15px;
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .legal-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(30, 58, 138, 0.1);
      border-color: #2563eb;
    }
    .legal-item h4 {
      font-size: 1.1rem;
      color: #0f172a;
      margin-bottom: 4px;
      font-weight: 700;
      text-align: center;
    }
    .legal-item p {
      font-size: 0.9rem;
      color: #64748b;
      margin-bottom: 14px;
      text-align: center;
    }
    .legal-item img {
      width: 100%;
      height: 320px;
      object-fit: cover;
      border-radius: 8px;
      border: 1px solid #cbd5e1;
    }



  @media (max-width: 768px) {
  /* Mengatur container baris agar menjadi flexbox yang terpusat */
  .team-hierarchy-section .team-row,
  .team-hierarchy-section .tier-3-cols, 
  .team-hierarchy-section .tier-4-cols, 
  .team-hierarchy-section .tier-2-cols,
  .team-hierarchy-section .tier-1-col {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4px;
  }

  /* Mengatur kartu anggota tim menjadi 3 kolom per baris */
  .team-hierarchy-section .team-card-compact {
    flex: 0 0 31.3%;
    width: 31.3%;
    max-width: 31.3%;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    padding: 6px 2px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Foto profil */
  .team-hierarchy-section .team-card-compact img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #f1f5f9;
    margin-bottom: 2px;
  }

  .team-hierarchy-section .team-info-compact {
    width: 100%;
  }

  /* Nama / Heading */
  .team-hierarchy-section .team-info-compact h4 {
    font-size: 0.52rem;
    line-height: 1.1;
    color: #1e3a8a;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
    width: 100%;
  }

  /* Jabatan / Label */
  .team-hierarchy-section .team-info-compact span {
    font-size: 0.42rem;
    color: #64748b;
    background-color: #f8fafc;
    padding: 1px 2px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
  }

  /* Judul Kategori Tier */
  .team-hierarchy-section .tier-title {
    font-size: 0.8rem;
    color: #1e3a8a;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
  }
}

    .reveal-up {
      opacity: 0;
      transform: translateY(60px);
      transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-up.active {
      opacity: 1;
      transform: translateY(0);
    }

    /* Container Kartu Utama Dibuat Lebih Lebar */
    .biaya-card-container {
      max-width: 1200px; 
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 30px;
    }

    /* Styling Tabel Skema Pembayaran */
    .table-container {
      width: 100%;
      overflow-x: visible; 
      margin-top: 25px;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
      border: 1.5px solid #cbd5e1;
    }

    .custom-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 14px;
      background: #ffffff;
      white-space: normal; 
    }

    .custom-table th {
      background: #1e293b;
      color: #ffffff;
      padding: 14px 16px;
      font-weight: 600;
      text-transform: uppercase;
      font-size: 13px;
      letter-spacing: 0.5px;
    }

    .custom-table td {
      padding: 14px 16px;
      color: #334155;
      border-bottom: 1px solid #e2e8f0;
    }

    .custom-table tbody tr:hover {
      background-color: #f8fafc;
    }

    .custom-table tbody tr:last-child td {
      border-bottom: none;
    }

    /* Grid untuk Biaya Tambahan (Kelas Pemantapan & Online) */
    .grid-biaya-tambahan {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 20px;
    }

    /* Khusus Tampilan Mobile (Layar HP di bawah 768px): Tabel jadi Side Scroll */
    @media (max-width: 768px) {
      .table-container {
        overflow-x: auto; 
      }
      .custom-table {
        white-space: nowrap; 
      }
    }

  
    .reveal-left {
      opacity: 0;
      transform: translateX(-60px);
      transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-left.active {
      opacity: 1;
      transform: translateX(0);
    }

    /* Membagi grid menjadi dua baris terpisah secara rapi agar baris kedua (N2 & N1) benar-benar di tengah */
    .jlpt-container-wrapper {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-top: 20px;
    }

    .jlpt-row {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    .jlpt-item {
      background: #ffffff;
      padding: 20px;
      border-radius: 10px;
      border: 1px solid #cbd5e1;
      box-shadow: 0 2px 10px rgba(0,0,0,0.02);
      display: flex;
      align-items: flex-start;
      gap: 15px;
      width: 310px; /* Lebar tetap agar seragam dan pas 3 di atas, 2 di bawah */
      box-sizing: border-box;
    }

    @media (max-width: 992px) {
      .jlpt-item {
        width: 100%;
        max-width: 400px;
      }
    }

    .jlpt-badge {
      color: #ffffff;
      font-weight: 700;
      font-size: 16px;
      width: 45px;
      height: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      flex-shrink: 0;
    }

    /* Variasi Warna Badge Baru (N1 tidak merah, N3-N4 tidak hijau semua) */
    .badge-n5 { background: #0284c7; } /* Biru */
    .badge-n4 { background: #0d9488; } /* Toska */
    .badge-n3 { background: #7c3aed; } /* Ungu / Indigo */
    .badge-n2 { background: #d97706; } /* Oranye / Amber */
    .badge-n1 { background: #1e293b; } /* Dark Slate / Abu Gelap Berkelas */

/* Styling Card Testimoni dengan Frame Gambar */
.testimoni-card-frame {
  /* Atur ukuran kotak agar konsisten dan presisi */
  width: 100%;
  max-width: 650px;
  min-height: 220px;
  margin: 0 auto;
  padding: 40px 50px; /* Beri jarak dalam agar teks tidak menabrak bingkai */
  box-sizing: border-box;
  
  /* Jika menggunakan gambar border (border-image) */
  /* Sesuaikan 'path-ke-bingkai.png' dan angka slice-nya sesuai aset Anda */
  border: 25px solid transparent;
  border-image: url('assets/testimoni-frame.jpg') 30 round;
  
  /* ATAU jika menggunakan background-image dengan teknik 9-slice / fixed size */
  /* background: url('assets/path-ke-bingkai-anda.png') no-repeat center center; */
  /* background-size: 100% 100%; */
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff; /* Warna dasar di dalam bingkai */
}

/* Responsif untuk ukuran layar HP */
@media (max-width: 768px) {
  .testimoni-card-frame {
    padding: 40px 25px 30px 25px;
  }
}

/* Container section agar bisa memuat elemen melayang di background */
.cloud-bg-section {
  position: relative;
  overflow: hidden; /* Agar awan yang keluar batas section tidak membuat scrollbar samping */
}

/* Styling dasar untuk ornamen awan melayang */
.floating-cloud {
  position: absolute;
  pointer-events: none; /* Agar tidak sengaja terklik oleh pengguna */
  z-index: 0; /* Berada di belakang teks/card */
  opacity: 0.35; /* Transparansi agar tetap elegan dan tidak mengganggu bacaan */
  animation: floatCloud linear infinite;
}

/* Keyframes untuk animasi melayang bebas (bergeser dan sedikit berotasi/naik-turun) */
@keyframes floatCloud {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, -20px) rotate(3deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* --- CSS MODAL PILIH ADMIN (SWEETALERT STYLE) --- */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.admin-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-modal-box {
  background: #ffffff;
  width: 90%;
  max-width: 480px;
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

.admin-modal-overlay.active .admin-modal-box {
  transform: scale(1);
}

.admin-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}

.admin-modal-close:hover {
  color: #0f172a;
}

.admin-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.admin-modal-icon {
  font-size: 45px;
  color: #25d366;
  background: #dcfce7;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.admin-modal-header h3 {
  font-size: 1.35rem;
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-modal-header p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* List Kartu Admin */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.admin-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.admin-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 42px;
  height: 42px;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.admin-info h4 {
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 600;
  margin: 0;
}

.admin-info span {
  font-size: 0.75rem;
  color: #64748b;
}

/* Tombol Chat WA per Admin */
.btn-wa-chat {
  background-color: #25d366;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.btn-wa-chat:hover {
  background-color: #20ba5a;
}

/* Responsif untuk HP kecil */
@media (max-width: 480px) {
  .admin-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .btn-wa-chat {
    width: 100%;
    justify-content: center;
  }
}

/* Styling Carousel Testimoni */
/* Container Utama Carousel Testimoni */
.testimonial-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 50px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

/* Setiap Slide / Halaman Carousel */
.testimonial-slide-group {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default 3 card dalam 1 slide (Desktop) */
  gap: 25px;
  box-sizing: border-box;
  padding: 10px;
}

/* Bingkai Card Testimoni */
.testimoni-card-frame {
  background: #ffffff;
  border-radius: 12px;
  /* Atur padding agar teks berada pas di dalam area tengah bingkai */
  padding: 35px 30px; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  height: 100%;
  min-height: 260px;
}

/* Responsif untuk Tablet & Mobile */
@media (max-width: 992px) {
  .testimonial-slide-group {
    grid-template-columns: repeat(2, 1fr); /* 2 card untuk tablet */
  }
}

@media (max-width: 768px) {
  .testimonial-slide-group {
    grid-template-columns: 1fr; /* 1 card untuk mobile */
    max-width: 400px;
    margin: 0 auto;
  }
  .testimonial-carousel-container {
    padding: 20px 30px;
  }
}

/* =========================================
   RUNNING TEXT TESTIMONIAL (INFINITE MARQUEE)
   ========================================= */

.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  padding: 20px 0;
}

/* Efek gradasi pudar di sisi kiri dan kanan (opsional, agar terlihat elegan) */
.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc, transparent);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc, transparent);
}

.marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

/* Berhenti bergerak saat kursor diarahkan ke card */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 15px));
  }
}

/* Frame Bingkai Testimoni Khas Jepang & Bergerak Seperti Air (Fluid Border) */
.testimoni-card-frame {
  position: relative;
  /* Gradasi warna lembut khas nuansa Jepang (Sakura Pink, Soft Blue, & Mint Cream) */
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 50%, #f0fdf4 100%);
  
  /* Membuat sudut melengkung organik ala bentuk awan/wabi-sabi */
  border-radius: 25px 20px 30px 22px;
  
  width: 350px;       
  height: auto;       
  min-height: 290px;  
  
  padding: 45px 30px 35px 30px; 
  box-sizing: border-box;
  
  /* Efek bayangan lembut berlapis warna pastel */
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08), 0 4px 12px rgba(16, 185, 129, 0.05);
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  margin-top: 25px;
  
  /* Border transparan untuk wadah animasi garis air */
  border: 3px solid transparent;
  background-clip: padding-box;
}

/* EFEK GARIS AIR BERGERAK (Fluid Animated Border) */
.testimoni-card-frame::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  z-index: -1;
  border-radius: 27px 22px 32px 24px;
  /* Gradasi warna-warni yang berputar pelan menciptakan efek cair/air */
  background: linear-gradient(60deg, #f43f5e, #0284c7, #10b981, #fbbf24, #f43f5e);
  background-size: 300% 300%;
  animation: liquidFlow 6s ease infinite;
}

@keyframes liquidFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Ikon Love di Atas Card */
.testimoni-card-frame::after {
  content: "🌸"; /* Mengganti love biasa dengan bunga sakura agar makin khas Jepang */
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  font-size: 1.1rem;
  padding: 0 10px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 2;
}

/* Teks Testimoni */
.testimoni-card-frame p {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
  .testimoni-card-frame {
    width: 300px;
    min-height: 260px;
    padding: 40px 25px 30px 25px;
  }
}

/* Styling Utama Blok Statistik */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.stat-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 35px 20px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Pembungkus agar angka dan panah sejajar berdampingan */
.stat-number-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.stat-card h3 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* Sembunyikan panah secara default saat halaman dimuat */
.stat-arrow {
  color: #16a34a !important;
  font-size: 1.6rem !important;
  opacity: 0;
  visibility: hidden;
}

/* Ketika class trigger aktif, jalankan animasi sekali jalan (forwards) */
.stat-card.arrow-triggered .stat-arrow {
  animation: showAndFadeOut 3.5s ease-in-out forwards;
}

@keyframes showAndFadeOut {
  0% {
    opacity: 0;
    transform: translateY(15px);
    visibility: visible;
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  /* Efek memantul (bouncing) di tengah durasi */
  40%, 80% {
    transform: translateY(-8px);
    opacity: 1;
  }
  60% {
    transform: translateY(0);
    opacity: 1;
  }
  /* Masuk ke tahap fade out hingga hilang total */
  100% {
    opacity: 0;
    transform: translateY(-25px);
    visibility: hidden;
  }
}

