/* ========================================
   GLOBAL RESET & VARIABLES
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #007bff;
  --secondary: #6c757d;
  --light: #f8f9fa;
  --dark: #343a40;
}

/* ========================================
   ORIGINAL STYLES (CLEANED)
======================================== */
:root {
  --primary: #007bff;
}
html,
body {
  margin: 0;
  padding: 0;
}

.swal2-container {
  z-index: 100000 !important;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #111;
  margin: 0;
}

.back:hover {
  color: var(--primary);
  cursor: pointer;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #007bff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.navbar .logo img {
  padding: 5px;
  height: 60px;
  margin-right: 50px;
}

.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu li {
  position: relative;
}

.menu > li {
  margin-left: 20px;
}

.menu a {
  display: block;
  padding: 14px 16px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f7f7f7;
  min-width: 300px;
  grid-template-columns: 1fr 1fr;
  color: black;
  padding: 10px;
  border-radius: 5px;
}

.submenu li {
  list-style: none;
}

.submenu a {
  color: black;
  padding: 8px 12px;
}

.submenu a:hover {
  background-color: #ddd;
  color: green;
}

.menu li:hover > .submenu {
  display: grid;
  gap: 5px 20px;
}

.subsubmenu {
  display: none;
  position: absolute;
  top: 0;
  right: 100%;
  background-color: #f7f7f7;
  min-width: 200px;
  border-radius: 5px;
  margin: 0;
  padding: 0;
}

.submenu li:nth-child(2n) .subsubmenu {
  left: 100%;
  right: auto;
}

.has-sub:hover > .subsubmenu {
  display: block;
}

.has-sub:hover > .subsubmenu {
  display: block;
}

.subsubmenu a {
  color: black;
  padding: 8px 12px;
}

.subsubmenu a:hover {
  background-color: #ddd;
  color: green;
}

/* === LOGIN ICON (avatar user / default) === */
.login-icon {
  position: relative;
  margin-left: 20px;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-avatar img,
.login-icon img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  object-fit: cover;
}

/* Dropdown profil & logout */
.user-menu .dropdown {
  position: absolute;
  right: 0;
  top: 55px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  display: none;
  min-width: 160px;
  z-index: 9999;
}

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

.user-menu .dropdown li a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 8px 16px;
}

.user-menu .dropdown li a:hover {
  background-color: #f1f1f1;
}

/* ===== HERO SECTION ===== */

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-overlay {
  width: 100%;
  justify-items: center;
  position: absolute;
  bottom: 4%;

  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
}

/* ===== LOGIN FORM ===== */
.login-icon img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

#loading {
  display: none;
  text-align: center;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#loading.show {
  display: block;
  opacity: 1;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin: auto;
}

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

.login-container {
  max-width: 360px;
  margin: 60px auto;
  padding: 24px;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.login-container input {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.login-container button {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.login-container button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.error-text {
  color: #d60000;
  margin: 6px 0 0 0;
  font-size: 0.9rem;
}

/* supaya padding masuk hitungan width */
/* cegah keluar area */

/* ===== ABOUT SECTION ===== */
/* biar padding tidak bikin overflow */

.about-section {
  margin-top: 15px;
}

.about-frame {
  display: flex;
  width: 100%;
}

.about-video,
.about-image {
  flex: 1 1 50%;
  padding: 0 40px;
}

.about-video:hover video,
.about-video:hover iframe,
.about-image:hover img {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.about-video video,
.about-video iframe,
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-title {
  width: 100%;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}
.about-title span {
  color: var(--primary);
}
/* ===== bidang-pelatihan SECTION ===== */
.bidang-pelatihan-section {
  width: 100%;
  margin-top: 40px;
  padding: 0 40px;
  text-align: center;
}

.bidang-pelatihan-header {
  background-color: var(--primary); /* warna primary */
  padding: 20px 0;
  margin-bottom: 5px;
}

.bidang-pelatihan-header h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.bidang-pelatihan-header h1 span {
  color: white;
  padding: 0 8px;
}

.bidang-pelatihan-grid {
  display: grid;
  gap: 10px;

  /* Kolom minimal 150px (biar logo pas), maksimal 1fr agar grid selalu penuh */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

  /* penuh lebar container */
  width: 100%;
}

.bidang-pelatihan-item:hover,
.bidang-pelatihan-item:hover .bidang-pelatihan-text {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.bidang-pelatihan-item,
.bidang-pelatihan-item .bidang-pelatihan-text {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.bidang-pelatihan-item {
  border: 1px solid #ccc; /* supaya kelihatan */
  text-align: center;
  padding: 5px;
  background-color: #fff;
  border-radius: 8px;
}

.bidang-pelatihan-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}

.bidang-pelatihan-text h3 {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
}

.bidang-pelatihan-text:hover {
  background-color: black;
  cursor: pointer;
}

/* ===== BANNER SECTION ===== */
.banner-section {
  width: 100%;
  margin: 40px auto;
}

.banner-item {
  width: 100%;
}

.banner-item img {
  width: 100%; /* penuh mengikuti layar */
  height: auto; /* tinggi otomatis */
  display: block;
  object-fit: cover;
}

/* ===== ALUMNI SECTION ===== */
.alumni-section {
  width: 100%;
  margin-top: 40px;
  padding: 0 40px;
  text-align: center;
}

.alumni-header {
  background-color: var(--primary);
  padding: 20px 0;
  margin-bottom: 5px;
}

.alumni-header h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.alumni-header h1 span {
  color: white;
  padding: 0 8px;
}

.alumni-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  width: 100%;
}

.alumni-item {
  border: 1px solid #ccc;
  text-align: center;
  padding: 5px;
  background-color: #fff;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.alumni-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.alumni-photo {
  width: 100%; /* isi penuh lebar kolom */
  height: auto; /* tinggi otomatis */
  object-fit: cover;
  border-radius: 8px; /* ubah ke 50% kalau mau bulat */
}

/* ===== INFO SECTION ===== */
.info-section {
  margin-top: 20px;
  width: 100%;
  aspect-ratio: 16 / 6; /* atur rasio sesuai selera */
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  max-height: 200px;
}

/* Overlay menutup penuh section */
.info-overlay {
  position: absolute;
  inset: 0; /* top/right/bottom/left: 0 */
  background: rgba(2, 48, 98, 0.8);

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Grid isi penuh tinggi section */
.info-grid {
  position: relative;
  z-index: 2;
  height: 100%; /* samakan tinggi grid dengan section */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom sama lebar */
  gap: 20px;
  width: 100%;
  align-items: stretch; /* pastikan item men-stretch penuh */
  text-align: center;
}

/* Item samakan tinggi dengan grid/section */
.info-item {
  height: 100%; /* <-- ini yang bikin setinggi section */
  box-sizing: border-box; /* padding tidak bikin overflow */
  padding: 20px;
  display: flex; /* pusatkan konten di tengah */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid white;
}

.info-item:last-child {
  border-right: none;
}

@keyframes zoomIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.info-icon {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #fff;
  display: inline-block;

  /* awalnya belum animasi */
  opacity: 0;
  transform: scale(0.5);
}

.info-icon.animate {
  animation: zoomIn 1.5s ease forwards;
}

.info-number {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.info-text {
  opacity: 0; /* awalnya sembunyi */
  font-size: 1.1rem;
}

/* animasi khusus */
.info-text.slide-left.animate {
  animation: slideInLeft 0.6s ease forwards;
}
.info-text.slide-up.animate {
  animation: slideInUp 0.6s ease forwards;
}
.info-text.slide-right.animate {
  animation: slideInRight 0.6s ease forwards;
}

/* ===== DOCUMENT SECTION ===== */
.document-section {
  width: 100%;
  margin-top: 40px;
  padding: 0 40px;
  text-align: center;
}

.document-header {
  padding: 20px 0;
  margin-bottom: 5px;
}

.document-header h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.document-header h1 span {
  color: var(--primary);
  padding: 0 8px;
}

.document-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  width: 100%;
}

.document-item {
  position: relative; /*baru*/
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.document-thumb-wrapper {
  position: relative;
  display: inline-block; /* supaya ukuran menyesuaikan gambar */
}

.document-thumb {
  width: 100%;
  height: auto;
  object-fit: cover; /* isi penuh, potong bagian yang lebih */
  border-radius: 6px; /* biar selaras dengan card */
  margin-bottom: 10px;
  display: block;
}

.document-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.document-judul {
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

.document-download {
  width: 100%;
  height: 100px;
  position: absolute;
  background: var(--primary);
  border-radius: 6px;
  transition: background 0.3s ease;
  bottom: 10px;
  background-color: rgba(0, 0, 0, 0.7); /* semi transparan supaya terlihat */
  align-content: center;
}

.document-download:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* ===== FOOTER SECTION ===== */
footer {
  margin-top: 40px;
  background-color: var(--primary);
  text-align: center;
  padding: 2rem 0 1rem;
}

footer .box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
}

footer .box > div {
  /* Semua child otomatis 1 kolom */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

footer .box .left {
  width: 100%;
  justify-items: center;
}

footer .box .left .logo {
  width: 4rem;
  height: 4rem;
  align-content: center;
  border-radius: 50%;
  background-color: white;
  margin: 0.5rem;
}

footer .box .left .logo img {
  width: 2.5rem;
}

footer .box .left .name p {
  font-size: 1em;
  color: white;
  line-height: 20px;
}

footer .box .left .number p {
  font-size: 0.8em;
  color: white;
}

footer .box .center-left {
  width: 100%;
  justify-items: center;
}

footer .box .center-left .logo {
  top: 0;
  width: 4rem;
  height: 4rem;
  align-content: center;
  border-radius: 50%;
  background-color: white;
  margin: 0.5rem;
}

footer .box .center-left .logo img {
  width: 2.5rem;
}

footer .box .center-left .name p {
  font-size: 1em;
  color: white;
}

footer .box .center-left .email p {
  font-size: 1em;
  color: white;
}

footer .box .center-left .email p a {
  text-decoration: none;
  color: white;
}

footer .box .center-right {
  width: 100%;
  justify-items: center;
}

footer .box .center-right .logo {
  width: 4rem;
  height: 4rem;
  align-content: center;
  border-radius: 50%;
  background-color: white;
  margin: 0.5rem;
}

footer .box .center-right .logo img {
  width: 2.5rem;
}

footer .box .center-right .name p {
  font-size: 1em;
  color: white;
}

footer .box .center-right .address p {
  font-size: 0.8em;
  color: white;
}

footer .box .right {
  width: 100%;
  justify-items: center;
}

footer .box .right .logo {
  width: 100%;
  height: 100%;
}

.socialmedia-room a {
  text-decoration: none;
}

footer .box .right .logo p {
  font-size: 1.2em;
  font-weight: 600;
  color: white;
  margin: 10px;
}

footer .box .right .logo img {
  width: 2rem;
  border: 2px solid white;
  border-radius: 5px;
  margin: 5px;
}

footer .line {
  border-top: 2px solid white;
  padding-top: 10px;
}

footer .line p {
  margin-top: 5px;
  font-size: 0.8em;
  color: white;
  left: 0;
}
.address {
  position: relative;
  display: inline-block;
}

.map-link {
  color: inherit;
  text-decoration: none;
  position: relative;
}

/* Popup map tersembunyi */
.map-preview {
  display: none;
  position: absolute;
  /* top: -2300%; */
  top: -700%;
  left: -100%;
  width: 320px;
  height: 220px;
  border: 2px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

/* Saat hover, tampilkan map */
.map-link:hover .map-preview {
  display: block;
}

.map-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
/* ========== VIDEO SECTION ============ */
.video-hero {
  margin-top: 70px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow: hidden;
}

.video-wrapper {
  width: 100%;
  max-width: 1020px;
  aspect-ratio: 16 / 9; /* jaga rasio tetap */
  position: relative;
}

.video-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* untuk gambar thumbnail */
  background: #000;
}

/* khusus iframe (YouTube) */
.video-content iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* khusus video lokal */
.video-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-overlay {
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 3rem;
  border-radius: 50%;
  padding: 20px;
  transition: 0.3s;
}

.play-button:hover {
  background: rgba(255, 0, 0, 0.8);
}

/* ================ SECTION COMPRO==================== */
.compro {
  margin-top: 70px;
  padding: 0 40px;
}

/* ====== PDF Frame Accordion ====== */
.pdf-frame {
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 10px 0 40px 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
}

.pdf-frame-header {
  padding: 15px 20px;
  background: var(--primary);
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  color: #fff;
}

.pdf-frame-header .arrow {
  color: #000;
}

.pdf-frame-header .arrow {
  transition: transform 0.4s ease;
}

.pdf-frame.open .pdf-frame-header .arrow {
  transform: rotate(180deg);
}

/* Konten awalnya tertutup */
.pdf-frame-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.6s ease; /* lebih lambat biar smooth */
  background: #fafafa;
  padding: 0 20px;
}

/* Kalau terbuka */
.pdf-frame.open .pdf-frame-content {
  max-height: 1000px; /* cukup besar biar semua isi muat */
  opacity: 1;
  padding: 20px;
}

/* Toolbar PDF */
.pdf-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 6px 6px 0 0;

  /* display: flex; */
  /* align-items: center; */
  /* gap: 5px; */
  /* ======== new ====== */
  padding: 5px;
  background: #f4f4f4;
  border-bottom: 1px solid #ddd;
}

.pdf-toolbar button {
  background: #007bff;
  border: none;
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pdf-toolbar button:hover {
  background: #0056b3;
}

/* Viewer */
.pdf-viewer {
  text-align: center;
  overflow-x: auto;
  /* ======= new ===== */
  max-height: 900px;
  overflow-y: auto;
}

.pdf-viewer canvas {
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

/* ==== terdekat ==== */
.hero {
  margin-top: 70px;
  position: relative;
  width: 100%;
  aspect-ratio: 15 / 7;
  overflow: hidden;
}

.terdekat {
  width: 100%;
  margin-top: 40px;
  padding: 0 40px;
}

/* Container loader */
.headerterdekat {
  padding-top: 90px;
  text-align: center;
}

.loader {
  position: relative;
  width: 100px;
  height: 100px;
}

.loader .base {
  position: absolute;
  inset: 4px;
  border: 3px solid #ddd;
  border-radius: 50%;
  box-sizing: border-box;
}

.loader svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.loader circle {
  fill: none;
  stroke: #007bff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 283;
  /* keliling lingkaran */
  stroke-dashoffset: 283;
  animation: flow-once 1.5s ease-in-out forwards;
}

.loader .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  fill: #007bff;
  transform: translate(-50%, -50%);
}

.loader2 {
  position: relative;
  width: 150px;
  height: 150px;
}

/* Lingkaran abu-abu dasar */
.loader2 .base {
  position: absolute;
  inset: 4px;
  border: 6px solid #ddd;
  border-radius: 50%;
  box-sizing: border-box;
}

/* SVG lingkaran biru */
.loader2 svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

/* Garis biru efek aliran */
.loader2 circle {
  fill: none;
  stroke: #007bff;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 439.8;
  stroke-dashoffset: 439.8;
  animation: flow-once2 1.5s ease-in-out forwards;
}

/* Ikon di tengah */
.loader2 .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  fill: #007bff;
  transform: translate(-50%, -50%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* animasi contoh */
@keyframes flow-once {
  from {
    stroke-dashoffset: 283;
  }

  to {
    stroke-dashoffset: 0;
  }
}
@keyframes flow-once2 {
  from {
    stroke-dashoffset: 439.8;
  }

  to {
    stroke-dashoffset: 0;
  }
}
/* ==== Responsive Navbar ==== */

/* ===== HAMBURGER & RESPONSIVE ===== */
/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  /* color: white; */
  padding: 14px 16px;
  z-index: 10000;

  background-color: transparent !important;
  border: none !important;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  color: #fff; /* biar icon keliatan di background biru */
  cursor: pointer;
}
.menu-toggle:hover {
  color: black;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* @media (max-width: 1024px) {
  footer .box {
    grid-template-columns: repeat(3, 1fr);
  }
  footer .box > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 65%;
  }

  .navbar {
    padding: 0 20px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }

  .menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    background-color: #007bff;
    flex-direction: column;
    padding-top: 60px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .menu.show {
    transform: translateX(0);
  }

  .menu li {
    width: 100%;
  }

  .menu li a {
    padding: 12px;
    display: block;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1002;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
  }

  .menu-overlay.show {
    opacity: 1;
  }

  .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    grid-template-columns: 1fr;
    background-color: #f7f7f7;
  }

  .subsubmenu {
    position: static;
    background-color: #f7f7f7;
    padding-left: 15px;
    border-left: 3px solid #007bff;
  }

  .subsubmenu li a::before {
    content: "▸";
    margin-right: 8px;
    color: #007bff;
    font-weight: bold;
  }

  .subsubmenu li a:hover::before {
    content: "▾";
  }

  .about-frame {
    flex-direction: column;
  }

  .about-video,
  .about-image {
    flex: 1 1 100%;
    min-height: 200px;
    padding: 0 20px;
  }

  .about-video iframe,
  .about-video video,
  .about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }

  .about-video:hover video,
  .about-video:hover iframe,
  .about-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }

  .about-image {
    margin-top: 20px;
  }
  .about-title {
    font-size: 2.5rem;
  }

  .bidang-pelatihan-section {
    margin-top: 0;
  }

  .bidang-pelatihan-header h1 {
    font-size: 2.5rem;
  }

  .alumni-section {
    padding: 0 16px;
  }

  .alumni-header h1 {
    font-size: 2.5rem;
  }

  .document-section {
    margin-top: 20px;
  }

  .document-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  footer .box {
    grid-template-columns: repeat(2, 1fr);
  }
  footer .box > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 480) {
  .hero-slide {
    background-size: cover;
    background-position: center;
    height: 95vh;
    position: relative;
  }
}

@media (max-width: 360px) {
  .bidang-pelatihan-section {
    padding: 0 16px;
  }

  .bidang-pelatihan-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .bidang-pelatihan-logo {
    width: 80px;
    height: 80px;
  }

  .bidang-pelatihan-text h3 {
    font-size: 0.8rem;
    padding: 3px;
  }
  footer .box {
    grid-template-columns: repeat(1, 1fr);
  }
} */
/* ============================== */
@media (max-width: 1024px) {
  .list-data-silabus {
    grid-template-columns: 1fr 110px;
  }
  .button-silabus {
    font-size: 0.9rem;
    padding: 8px;
  }
  .pagination a {
    padding: 5px 10px;
    font-size: 0.95rem;
  }
  /* Jika item terakhir turun sendirian → lebarkan full */
  footer .box {
    grid-template-columns: repeat(3, 1fr);
  }
  footer .box > div:last-child {
    grid-column: 1 / -1; /* full width kalau sendirian di baris bawah */
  }
}

@media (max-width: 768px) {
  /* html {
    font-size: 65%;
  } */
  section.training {
    display: block;
    padding: 0 20px;
    min-height: 62vh;
  }

  /* Judul kategori + panah */
  .kategori-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }

  .kategori-title #kategoriArrow {
    display: block;
    font-size: 14px;
    margin-left: 6px;
    transition: transform 0.5s ease;
  }

  section.kategori {
    width: 100%;
    margin-bottom: 10px;
    max-height: 170px;
    overflow: hidden;
    transition: max-height 1.5s ease;
  }

  /* Saat dibuka */
  section.kategori.expanded {
    max-height: 1000px;
  }

  section.kategori.expanded #kategoriArrow {
    transform: rotate(180deg);
  }

  #currentMenu {
    font-size: 16px;
  }

  .arah::before {
    content: "atas";
  }

  #monthMenu .month-btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  .sidenav li .submenu {
    position: static;
    margin-left: 20px;
    padding-left: 0;
  }

  .sidenav .submenu .room {
    width: 660px;
  }

  .list-data-silabus {
    grid-template-columns: 1fr 100px;
    padding: 8px;
  }

  .list-data-silabus h4 {
    font-size: 1rem;
  }

  .list-data-silabus p,
  .list-data-silabus span {
    font-size: 0.88rem;
  }

  .button-silabus {
    font-size: 0.85rem;
    border-radius: 5px;
    padding: 7px;
  }

  .compro,
  .alumni-section,
  .navbar {
    padding: 0 20px;
  }

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

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

  .menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    background-color: #007bff;
    flex-direction: column;
    padding-top: 60px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    overflow-y: auto; /* tambahkan scroll vertikal */
    scrollbar-width: thin; /* untuk Firefox */
  }

  .menu.show {
    transform: translateX(0);
  }

  .menu li {
    width: 100%;
  }

  .menu li a {
    padding: 12px;
    display: block;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1002; /* di atas overlay */
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
  }

  .menu-overlay.show {
    opacity: 1;
  }

  .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    grid-template-columns: 1fr;
    background-color: #f7f7f7;
  }

  .subsubmenu {
    position: static; /* ikut mengalir di bawah induknya */
    background-color: #f7f7f7;
    padding-left: 15px; /* menjorok ke dalam */
    border-left: 3px solid #007bff; /* garis tanda visual */
  }

  /* Tanda panah di setiap item subsubmenu */
  .subsubmenu li a::before {
    content: "▸"; /* panah kanan */
    margin-right: 8px;
    color: #007bff;
    font-weight: bold;
  }

  /* Saat hover atau aktif */
  .subsubmenu li a:hover::before {
    content: "▾"; /* panah bawah */
  }

  .about-frame {
    flex-direction: column;
  }

  .about-video,
  .about-image {
    flex: 1 1 100%;
    min-height: 200px;
    padding: 0 20px;
  }

  .about-video iframe,
  .about-video video,
  .about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }

  .about-video:hover video,
  .about-video:hover iframe,
  .about-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }

  .about-image {
    margin-top: 20px;
  }
  .about-title {
    font-size: 2.5rem;
  }

  .bidang-pelatihan-section {
    margin-top: 0;
  }

  .bidang-pelatihan-header h1 {
    font-size: 2.5rem;
  }

  /* .alumni-section {
    padding: 0 20px; 
  } */

  .alumni-header h1 {
    font-size: 2.5rem;
  }

  .document-section {
    margin-top: 20px;
    padding: 0 20px;
  }

  .document-header h1 {
    font-size: 2.5rem;
  }
  .pagination {
    gap: 4px;
    margin-top: 14px;
  }
  .pagination a {
    padding: 4px 9px;
    font-size: 0.85rem;
    border-radius: 5px;
  }
  .pagination span {
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .list-data-silabus {
    grid-template-columns: 1fr 15%;
    gap: 8px;
  }

  .button-silabus {
    font-size: 0.8rem;
    padding: 6px;
  }

  .list-data-silabus h4 {
    font-size: 0.95rem;
  }
  .pagination {
    gap: 3px;
  }
  .pagination a {
    padding: 3px 8px;
    font-size: 0.8rem;
  }
  .pagination span {
    font-size: 0.8rem;
  }
  footer .box {
    grid-template-columns: repeat(2, 1fr);
  }
  footer .box > div:last-child {
    grid-column: auto; /* reset biar normal */
  }
}

@media (max-width: 480px) {
  #currentMenu {
    font-size: 14px;
  }

  #monthMenu {
    gap: 4px;
  }

  #monthMenu .month-btn {
    font-size: 11px;
    padding: 5px 8px;
  }

  .sidenav .submenu .room {
    width: 255px;
  }

  .list-data-silabus {
    display: grid;
    grid-template-columns: 1fr 20px;
    padding: 6px 8px;
  }
  .list-data-silabus h4 {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  .list-data-silabus p,
  .list-data-silabus span {
    font-size: 0.8rem;
  }
  .button-silabus {
    font-size: 0.75rem;
    padding: 5px;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 2px;
  }
  .pagination a {
    padding: 3px 7px;
    font-size: 0.75rem;
  }
  .pagination span {
    display: none; /* sembunyikan "..." di layar kecil */
  }
  .terdekat {
    width: 100%;
    padding: 0 20px;
  }

  .infoterdekat {
    padding: 0 20px;
    font-size: 10px;
    line-height: 35px;
    margin-top: 15px;
  }

  .loader2 .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    fill: #007bff;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 360px) {
  html {
    font-size: 65%;
  }

  .list-data-silabus {
    grid-template-columns: 1fr 20%;
    padding: 5px 6px;
    gap: 6px;
  }

  .list-data-silabus h4 {
    font-size: 0.85rem;
  }

  .list-data-silabus p,
  .list-data-silabus span {
    font-size: 0.78rem;
  }

  .button-silabus {
    font-size: 0.7rem;
    padding: 4px;
  }

  .bidang-pelatihan-section {
    padding: 0 16px; /* kecilkan padding biar ada ruang lebih */
  }

  .bidang-pelatihan-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 kolom */
    gap: 5px; /* jarak antar kolom */
  }

  .bidang-pelatihan-logo {
    width: 80px;
    height: 80px; /* logo ikut mengecil */
  }

  .bidang-pelatihan-text h3 {
    font-size: 0.8rem; /* teks lebih kecil */
    padding: 3px;
  }
  .pagination a {
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 4px;
  }
  footer .box {
    grid-template-columns: repeat(1, 1fr);
  }
}
