/* =========================
   GLOBAL STYLE
========================= */

:root {
  --primary: #012970;   /* Biru gelap lembaga */
  --accent: #0d6efd;    /* Biru terang (aksi) */
  --light-bg: #f8fbff;  /* Background section */
  --text-main: #444444;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;  /* cegah geser ke samping */
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: var(--accent);
}

/* Section umum */
section {
  padding: 80px 0;
}

.section-bg {
  background: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-header p {
  margin: 0;
  color: #666;
}

.section-subtitle {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8291c2;
  margin-bottom: 6px;
}

/* SECTION PENUH SATU LAYAR */
.full-screen {
  min-height: 90vh;
  padding-top: 110px;       /* kompensasi header fixed */
  padding-bottom: 60px;
  display: flex;
  align-items: center;
}

.full-screen > .container {
  width: 100%;
}

/* =========================
   HEADER & NAVBAR
========================= */

.header {
  background: #ffffff;
  transition: all 0.3s;
  z-index: 997;
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header .logo img {
  max-height: 40px;
}

.header .logo span {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

/* Navbar desktop */
.navbar {
  padding: 0;
}

/* hanya ul paling luar */
.navbar > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar li {
  position: relative;
}

.navbar a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--accent);
}

/* Toggle mobile (default: disembunyikan) */
.mobile-nav-toggle {
  font-size: 24px;
  color: #1d2b57;
  cursor: pointer;
  display: none;
  line-height: 0;
  margin-left: 10px;
}

/* DROPDOWN DESKTOP */
.navbar .dropdown > a i {
  font-size: 14px;
  margin-left: 4px;
}

.navbar .dropdown ul {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  min-width: 220px;
  z-index: 99;
}

.navbar .dropdown ul li a {
  display: block;
  padding: 8px 18px;
}

.navbar .dropdown:hover > ul {
  display: flex;
}

/* =========================
   HERO SECTION
========================= */

.hero {
  padding-top: 90px;
  padding-bottom: 80px;
  background: radial-gradient(circle at top left, #f2f5ff 0, #ffffff 45%, #f4f7ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.12), transparent 60%);
  top: -120px;
  right: -150px;
  z-index: 0;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 18px;
  font-weight: 400;
  color: #555;
}

.hero p {
  margin-bottom: 15px;
}

.hero .btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.35);
}

.hero .btn-get-started:hover {
  background: #0b5ed7;
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(1, 41, 112, 0.25);
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  background-color: #ffffff;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-badge {
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 50px;
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-illustration-wrapper {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-illustration-wrapper::after {
  content: "";
  position: absolute;
  inset: 12% 10% -8% 10%;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(13, 110, 253, 0.12), rgba(1, 41, 112, 0.06));
  z-index: -1;
}

/* =========================
   BOX / CARD UMUM
========================= */

.about-box,
.service-card,
.info-box,
.org-box,
.program-card,
.fasilitas .card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7f2;
  padding: 20px;
  height: 100%;
}

.img-shadow {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

/* List dengan ikon checklist */
.list-check {
  padding-left: 0;
  list-style: none;
}

.list-check li {
  margin-bottom: 7px;
  padding-left: 26px;
  position: relative;
  line-height: 1.6;
}

.list-check li::before {
  content: "\f26e"; /* bootstrap-icons: check2-circle */
  font-family: "bootstrap-icons";
  position: absolute;
  top: 2px;
  left: 0;
  color: #0A66C2;
  font-size: 1rem;
}

/* =========================
   TENTANG KAMI
========================= */

.about p {
  text-align: justify;
  margin-bottom: 12px;
}

.about-box h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.about-box ul li {
  margin-bottom: 8px;
}

.about-box i {
  margin-right: 6px;
  color: var(--accent);
}

/* =========================
   VISI & MISI
========================= */

#visi-misi h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

#visi-misi p {
  margin-bottom: 10px;
}

#visi-misi ol {
  padding-left: 20px;
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.08);
  color: var(--accent);
  font-size: 18px;
}

/* =========================
   PROGRAM PELATIHAN
========================= */

.services .service-card {
  transition: 0.3s;
  border: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.services .service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.services .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.08);
  color: var(--accent);
  font-size: 22px;
}

/* Poster program */
.poster-wrapper {
  text-align: center;
}

.poster-img {
  border-radius: 18px;
}

.poster-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1rem;
}

.poster-buttons .btn {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  justify-content: center;
}

/* =========================
   FASILITAS & LOKASI
========================= */

.fasilitas h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.fasilitas p {
  margin-bottom: 10px;
}

.fasilitas .ratio iframe {
  border-radius: 12px;
}

/* =========================
   STRUKTUR ORGANISASI
   (jika nanti ditambahkan)
========================= */

.struktur .org-box {
  text-align: center;
}

.struktur .org-box h4,
.struktur .org-box h5 {
  color: var(--primary);
  font-weight: 700;
}

/* =========================
   KONTAK (jika ada)
========================= */

.contact .info-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact .info-box p {
  margin-bottom: 6px;
}

.php-email-form label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.php-email-form .form-control {
  border-radius: 6px;
  font-size: 14px;
}

.php-email-form textarea.form-control {
  resize: vertical;
}

.php-email-form button {
  padding: 8px 24px;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.php-email-form button:hover {
  background: #0b5ed7;
}

/* =========================
   FOOTER PREMIUM LPK LMC
========================= */

.footer-premium {
  background-color: #1d2b57;
  color: #ffffff;
  padding-top: 40px;
  padding-bottom: 0;
  border-top: 4px solid #fddb3a;
}

.footer-premium a {
  color: #fddb3a;
  transition: 0.3s;
}

.footer-premium a:hover {
  color: #ffffff;
}

/* Logo Footer */
.footer-premium .footer-logo {
  max-width: 200px;
  filter: brightness(95%);
}

/* Judul di footer */
.footer-premium .footer-title {
  font-size: 18px;
  font-weight: 700;
  color: #fddb3a;
  margin-bottom: 12px;
}

/* Social icons */
.footer-premium .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fddb3a;
  color: #fddb3a;
  font-size: 18px;
  margin: 0 6px;
  transition: 0.3s;
}

.footer-premium .social-links a:hover {
  background: #fddb3a;
  color: #1d2b57;
  box-shadow: 0 0 12px rgba(253, 219, 58, 0.6);
}

/* Footer bottom */
.footer-premium .footer-bottom {
  margin-top: 20px;
  padding: 15px 0;
  background: rgba(0, 0, 0, 0.15);
  color: #ffffff;
  font-size: 14px;
}

/* Responsiveness footer */
@media (max-width: 991px) {
  .footer-premium .footer-contact {
    text-align: center !important;
    margin-top: 20px;
  }
}

.footer-info p {
  margin-left: 4px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199.98px) {
  .full-screen {
    padding-top: 110px;
    padding-bottom: 60px;
  }
}

/* === MOBILE (≤ 991.98px) === */
@media (max-width: 991.98px) {
  .hero {
    padding-top: 120px;
    text-align: center;
  }

  .full-screen {
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .hero-illustration-wrapper {
    margin-top: 10px;
  }

  /* HEADER di mobile */
  #header {
    padding: 10px 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }

  /* Container header sebagai acuan posisi menu */
  .header .container-xl,
  .header .container-fluid {
    position: relative;
  }

  /* NAVBAR di mobile */
  #navbar {
    position: static;       /* penting: supaya ul absolute ikut container, bukan nav kecil */
    margin-left: auto;
  }

  /* Menu utama disembunyikan dulu */
  .navbar > ul {
    display: none;
    flex-direction: column;
    background: #ffffff;
    position: absolute;
    top: 60px; /* di bawah header */
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    min-width: auto;
    z-index: 9999;
  }

  /* Saat tombol hamburger diklik (class .show dari JS) */
  .navbar > ul.show {
    display: flex;
  }

  .navbar > ul li {
    width: 100%;
  }

  .navbar > ul li a {
    display: block;
    padding: 8px 0;
  }

  /* Dropdown di dalam menu mobile */
  .navbar .dropdown ul {
    position: static;
    box-shadow: none;
    padding: 0 0 0 16px;
    margin-top: 4px;
    display: none;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    min-width: 0;
  }
  
  .navbar .dropdown.dropdown-active > ul {
    display: flex;
  }

  .navbar .dropdown ul li a {
    padding: 6px 10px;
  }

  /* Tombol hamburger */
  .mobile-nav-toggle {
    display: block;
    color: var(--primary);
    font-size: 26px;
    margin-left: 12px;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 70px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .poster-buttons {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero h2 {
    font-size: 16px;
  }

  .full-screen {
    min-height: auto;
  }
}

/* =========================
   HALAMAN DETAIL PROGRAM
========================= */

.program-detail .section-title {
  font-weight: 600;
  color: #0A3D91;
  margin-bottom: 10px;
}

.program-intro {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  text-align: justify;
}

.program-text {
  margin-bottom: 6px;
  line-height: 1.6;
}

.list-dash {
  padding-left: 0;
  list-style: none;
}

.list-dash li {
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.list-dash li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #0A3D91;
}

@media (max-width: 767.98px) {
  .program-detail .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .program-intro {
    text-align: left;
  }
}

/* =========================
   FIX GAMBAR POSTER DETAIL PROGRAM
========================= */

.poster-detail {
  max-width: 400px;   /* perkecil ukuran */
  margin: 0 auto;     /* center horizontal */
  display: block;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .poster-detail {
    max-width: 100%;  /* supaya tetap responsif di HP */
  }
}
