* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8fafc;
  color: #2d3748;
  line-height: 1.6;
  min-height: 100dvh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigasi */
header {
  background-color: #003366;
  color: white;
  padding: 16px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 600;
}

.logo span {
  color: #D4AF37;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover, .btn-outline, .btn-outline:hover {
  color: #D4AF37;
}

/* HERO SLIDER - AUTO FADE 3 GAMBAR (CSS ONLY) */
#hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

/* Overlay warna untuk teks tetap terbaca */
.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 51, 102, 0.75); /* Biru tua transparan */
  z-index: 1;
}

/* Animasi Fade-In + Fade-Out */


/* Konten Teks di Atas */
.hero-content {
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInContent 1.5s ease-in-out;
}

#hero h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.tagline {
  font-size: 1.6rem;
  margin-bottom: 16px;
  font-weight: 500;
  display: block;
  opacity: 0.95;
}

.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  line-height: 1.6;
}

/* Animasi masuk teks */
@keyframes fadeInContent {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section Umum */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 40px;
}

/* Layanan */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.services .card {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  /*box-shadow: 0 5px 15px rgba(0,0,0,0.05);*/
  /*border-top: 4px solid #003366;*/
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #003366;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

/* Cara Kerja */
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    border-radius: 10px;
    /* box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.05); */
    /* transition: transform 0.3s; */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #003366;
    transition: transform 0.3s;
    border-right: 4px solid #003366;
}

.step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 20px;
}

.step-number {
    display: inline-flex;
    width: 60px;
    height: 60px;
    background: #003366;
    color: white;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 35px;
}

/* Keunggulan */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    text-align: center;
    border-radius: 10px;
    /* box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.05); */
    /* transition: transform 0.3s; */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #003366;
    transition: transform 0.3s;
    border-right: 4px solid #003366;
}

.feature {
  padding: 20px;
}

.feature i {
  color: #D4AF37;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* Tentang */
#about {
  background-color: #f1f5f9;
  text-align: center;
}

#about img {
  max-width: 100%;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Kontak */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.info {
  flex: 1;
  min-width: 300px;
}

.info h3 {
  color: #003366;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.info p {
  margin-bottom: 12px;
}

.info a {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
}

.info a:hover {
  text-decoration: underline;
}

.whatsapp-btn {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 10px;
  font-size: 1rem;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
}

.form {
  flex: 1;
  min-width: 300px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.form button, .qr-code button {
  background-color: #003366;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
}

.form button:hover {
  background-color: #002244;
}

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 30px 0;
  font-size: 0.95rem;
}

footer a {
  color: #D4AF37;
  text-decoration: none;
}

/* Ikon Unicode Simpel (tanpa icon library) */
.icon { font-weight: bold; }

/* Logo Styling - untuk logo portrait tapi ukuran kecil */
.logo-container {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow:visible;
  height:36px;
}

.logo-image {
  height: 100px;
  width: auto;
  /*max-width: 60px;*/
  border-radius: 8px;
  background: none;
  padding: 0;
  margin-top:40px;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.logo-text .highlight, .hero-content .highlight {
  color: #D4AF37;
}

/* ==========================================*/
/*RESPONSIF: HP & TABLET (max-width: 768px)*/
/*========================================== */
@media (max-width: 768px) {
  /* Header */
  .logo-container {
	flex-direction: row;
	align-items: center;
	gap: 5px;
	height:24px;
  }

  .logo-text {
	font-size: 1rem;
	white-space: nowrap;
  }

  /* Hero Text */
  #hero h1 {
	font-size: 2.2rem;
  }

  .tagline {
	font-size: 1.3rem;
  }

  .hero-sub {
	font-size: 1rem;
	margin-bottom: 20px;
  }

  .btn {
	padding: 12px 24px;
	font-size: 1rem;
  }

  /* Kontainer */
  .container {
	padding: 0 15px;
  }

  /* Section */
  section {
	padding: 60px 0;
  }
}
/* ==========================================
GLOBAL RESPONSIVE FIX - UNTUK SEMUA PERANGKAT
========================================== */

/* 1. Gambar: auto-resize */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* 2. Kontainer: padding di HP */
.container {
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 768px) {
  .container {
	padding-left: 15px;
	padding-right: 15px;
  }

  .logo-text {
	font-size: 1rem;
  }

  .nav-links {
	font-size: 0.95rem;
	gap: 16px;
  }

  /* 4. Hero: ukuran teks sesuai HP */
  #hero h1 {
	font-size: 2.2rem;
  }

  .tagline {
	font-size: 1.3rem;
  }

  .hero-sub {
	font-size: 1rem;
  }

  .btn {
	padding: 12px 24px;
	font-size: 1rem;
  }

  /* 5. Section: padding lebih kecil */
  section {
	padding: 60px 0;
  }
}

/* HAMBURGER MENU + OVERLAY - Responsive & Bisa Ditutup */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 30px;
  cursor: pointer;
  z-index: 2000;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: 0.3s;
}

/* Navigasi Mobile */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.feature .icon{
    font-size: 50px;
}

/* --- MOBILE ONLY --- */
@media (max-width: 768px) {
  .nav-links {
	position: fixed;
	top: 0;
	right: -300px;
	width: 260px;
	height: 100vh;
	background-color: #003366;
	flex-direction: column;
	align-items: center;
	justify-content: start;
	padding-top: 80px;
	transition: right 0.4s ease;
	z-index: 1000;
	box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }

  .nav-links a {
	color: white;
	font-size: 1.2rem;
	margin-bottom: 30px;
	text-align: center;
	width: 100%;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a:hover {
	background-color: rgba(255,255,255,0.1);
	border-radius: 6px;
  }

  /* Tampilkan Hamburger di HP */
  .hamburger {
	display: flex;
	z-index: 1001;
  }

  /* Overlay (layer hitam transparan) */
  .overlay {
	display: none;
  }

  .menu-toggle:checked ~ .overlay {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
  }

  /* Saat menu terbuka */
  .menu-toggle:checked ~ .nav-links {
	right: 0;
  }

  /* Animasi X saat terbuka */
  .menu-toggle:checked + .hamburger span:nth-child(1) {
	transform: rotate(45deg) translate(7px, 7px);
  }

  .menu-toggle:checked + .hamburger span:nth-child(2) {
	opacity: 0;
  }

  .menu-toggle:checked + .hamburger span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Ukuran logo di HP */
  .logo-image {
    height: 75px;
    margin-top: 25px;
  }

  .logo-text {
	font-size: 1rem;
  }
  
}

/* Desktop */
@media (min-width: 769px) {
  .nav-links {
	display: flex;
	gap: 30px;
	margin-left:auto;
  }
}


.info .info-inner {
  display: grid;
  /* 1st col: label width, 2nd col: colon width, 3rd col: remaining space */
  grid-template-columns: 115px auto 1fr; 
  gap: 10px 0; /* Vertical gap between rows */
  align-items: start;
}
.info-inner .item{
     display: contents; /* MAGIC: Pulls children into the parent grid tracks */
}

.info-inner .item .label {
  grid-column: 1; /* Ensures label stays in the first track */
  font-weight: bold;
  display:contents;
}

.info-inner .item .label::after {
  content: ":";
  grid-column: 2;
  padding-right: 4px; /* Control spacing between colon and value */
}


.info-inner .item .value {
  grid-column: 3;
  word-break: break-word;
}

html {
  scroll-behavior: smooth;
}
#backToTop {
    position: fixed;     /* Always visible in the same spot */
    bottom: 12px;        /* 30px from bottom edge */
    right: 12px;         /* 30px from right edge */
    z-index: 1000;       /* Keep it above all other elements */
    padding: 7px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50px; /* Rounded pill shape */
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease, visibility 1.5s ease, background-color 0.2s ease, transform 0.2s ease;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;v
}
#backToTop:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}
#about-main-img{
    margin-bottom:25px;
    margin-top:25px;
}

/*.layanan-inner::before  {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15; 
  z-index: -1; 
}*/

h3.section-left-subtitle {
    margin-top: 30px;
    margin-bottom: 13px;
    text-align: center;
    color: seagreen;
}
.qr-code{
    text-align:center;
}
.qr-code img {
    display: inline-block;
}

.lineimg{
    margin-top:50px;
}

/* --- GALLERY SECTION STYLES --- */
#training-gallery {
    padding: 80px 5%;
    background-color: #f9f9f9; /* Sedikit abu-abu agar beda dari section lain */
    text-align: center;
}

.section-subtitle {
    margin-bottom: 40px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    /* Grid Responsif: Otomatis mengisi kolom minimal lebar 250px */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item img {
    width: 100%;
    height: 220px; /* Tinggi seragam agar rapi */
    object-fit: cover; /* Mencegah gambar gepeng */
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-item img:hover {
    transform: scale(1.02);
    filter: brightness(90%);
}

/* Class untuk menyembunyikan item */
.gallery-item.hidden {
    display: none; 
}

/* Animasi saat muncul */
.gallery-item.reveal {
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

button#loadMoreBtn:after {
    content: " >>";
}
button#loadMoreBtn {
    border: 0px;
    background-color: transparent;
    font-size: 1.15em;
}

/* --- LIGHTBOX STYLES --- */
.lightbox {
    display: none; /* Tersembunyi secara default */
    position: fixed; /* Tetap di tempat saat scroll */
    z-index: 9999; /* Di atas segalanya */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Scroll jika gambar terlalu tinggi */
    background-color: rgba(0, 0, 0, 0.9); /* Latar hitam transparan */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Gambar di dalam Lightbox */
.lightbox-content {
    margin: auto;
    display: block;
    /*max-width: 85%;*/
    max-height: 90vh; /* Maksimal 80% tinggi layar */
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    animation: zoomIn 0.3s; /* Efek zoom saat muncul */
}

/* Tombol Close (X) */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Animasi Zoom Sederhana */
@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;} 
    to {transform: scale(1); opacity: 1;}
}

/* Responsif untuk Mobile */
@media only screen and (max-width: 700px){
    .lightbox-content {
        width: 95%;
    }
}

/* --- LIGHTBOX NAVIGATION STYLES --- */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -25px; /* Agar benar-benar di tengah vertikal */
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none; /* Mencegah teks terblok saat klik cepat */
    text-decoration: none;
    z-index: 10001; /* Pastikan di atas gambar */
}

/* Posisi Kanan */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Posisi Kiri */
.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

/* Efek Hover */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Latar hitam transparan saat hover */
}

/* --- ABOUT GALLERY STYLES --- */
.about-gallery-container {
    width: 100%;
    /*max-width: 600px;  Sesuaikan lebar galeri di sini */
    margin: 50px auto; /* Tengah secara horizontal */
}

/* Gambar Utama */
.main-image-frame {
    width: 100%;
    height: 350px; /* Tinggi tetap agar layout tidak loncat */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.main-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Agar gambar full tidak gepeng */
    transition: opacity 0.3s ease; /* Efek fade saat ganti gambar */
}

/* Wrapper Thumbnail & Navigasi */
.thumbnail-wrapper {
    position: relative;
    display: flex;
    align-items: center; /* Mengatur vertikal center (atas-bawah) DALAM baris thumbnail */
    justify-content: center; /* INI KUNCINYA: Mengatur rata tengah (kiri-kanan) */
    margin-top: 10px; /* Memberi jarak sedikit dari gambar utama */
    width: 100%;
}

/* Container Thumbnail (Scrollable) */
/* Container Thumbnail (Scrollable) */
.thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto; 
    scroll-behavior: smooth; 
    padding: 5px; /* Tambah padding sedikit agar border saat active tidak terpotong */
    
    /* Tambahan agar strip tidak terlalu lebar menutupi tombol panah */
    max-width: 80%; /* Sisakan ruang 20% untuk tombol panah kiri & kanan */
    margin: 0 10px; /* Jarak antara strip dengan tombol panah */
    
    /* Sembunyikan Scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;  
}

.thumbnail-strip::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* Item Thumbnail Individual */
.thumb {
    width: 80px; /* Lebar thumbnail */
    height: 60px; /* Tinggi thumbnail */
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6; /* Sedikit transparan jika tidak aktif */
    transition: all 0.2s;
    border: 2px solid transparent;
    flex-shrink: 0; /* Mencegah thumbnail mengecil */
}

.thumb:hover {
    opacity: 1;
}

/* Style untuk Thumbnail yang sedang dipilih */
.thumb.active {
    opacity: 1;
    border-color: var(--accent-color); /* Warna border sesuai tema */
    transform: scale(1.05);
}

/* Tombol Navigasi Kiri/Kanan */
.thumb-nav {
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s;
}

.thumb-nav:hover {
    background-color: var(--accent-color);
}

.thumb-nav.left { margin-right: 10px; }
.thumb-nav.right { margin-left: 10px; }


