/* ===================================================
   ROOT / GLOBAL
=================================================== */
:root {
  --primary: #1e5bbf;
  --primary-dark: #0f3a6a;
  --bg-soft: #f5f7ff;
  --radius: 22px;
  font-family: "Plus Jakarta Sans", system-ui;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.landing-bg {
  background:
    url("../../img/bg3.png") repeat,
    linear-gradient(180deg,#f7f9ff 0%,#eef3ff 45%,#ffffff 100%);
  background-size: 220px, cover;
  background-attachment: fixed, fixed;
  overflow-x: hidden;
  color: #0f172a;
}

/* ===================================================
   HERO SLIDER
=================================================== */
.hero-banner {
  padding: 28px 0 40px;
}

.hero-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

/* swiper boleh keluar */
.heroBannerSwiper {
  overflow: visible;
}

.heroBannerSwiper .swiper-slide {
  display: flex;
  justify-content: center;
}

/* HAPUS PANAH */
.heroBannerSwiper .swiper-button-next,
.heroBannerSwiper .swiper-button-prev {
  display: none !important;
}

.hero-image {
  width: 100%;
  max-width: 1200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.hero-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ===================================================
   FIX SWIPER BLOCK CLICK (WAJIB)
=================================================== */
.hero-banner,
.heroBannerSwiper,
.heroBannerSwiper .swiper-wrapper {
  pointer-events: none;
}

.heroBannerSwiper .swiper-slide,
.heroBannerSwiper .swiper-slide * {
  pointer-events: auto;
}

/* ===================================================
   SECTION TITLE
=================================================== */
.section-title,
.kategori-title,
.berita-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ===================================================
   KATEGORI
=================================================== */
.kategori-wrapper {
  max-width: 1200px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

.kategori-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.kategori-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: #0f172a;
  transition: .25s ease;
}

.kategori-card:hover {
  transform: translateY(-4px);
}

.kategori-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 10px;
}

.kategori-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.kategori-card p {
  font-size: 12px;
  line-height: 1.4;
  opacity: .7;
}

/* ===================================================
   PELATIHAN
=================================================== */
.section {
  padding: 0 20px;
  margin: 36px auto;
}

.pelatihan-wrapper {
  display: flex;
  justify-content: center;
}

.pelatihan-video,
.pelatihan-empty {
  width: 100%;
  max-width: 1000px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.pelatihan-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}

.pelatihan-empty {
  padding: 32px;
  text-align: center;
  opacity: .75;
}

/* ===================================================
   INSTAGRAM / BERITA
=================================================== */
.berita-section {
  max-width: 1400px;
  margin: 32px auto;
  padding: 20px 16px;
}

.berita-grid {
  display: flex;
  justify-content: center;
}

.berita-card {
  width: 100%;
  max-width: 960px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
}

.instagram-section,
.ig-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* EMBED IG */
.instagram-media {
  width: 100% !important;
  max-width: 900px !important;
  background: #fff !important;
  border-radius: 10px;
  overflow: hidden !important;
}

.instagram-media iframe {
  width: 100% !important;
  min-height: 400px;
  border: 0 !important;
}

/* ===================================================
   FLOATING KONSELING BUTTON (ANTI MATI)
=================================================== */
.vc-fab {
  position: fixed !important;
  right: 20px;
  bottom: 20px;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .kategori-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instagram-media iframe {
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 18px 0 28px;
  }

  .section-title,
  .kategori-title,
  .berita-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .kategori-wrapper {
    margin: 18px auto 32px;
  }

  .kategori-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pelatihan-empty {
    padding: 24px 18px;
  }

  .instagram-media iframe {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .instagram-media iframe {
    min-height: 260px;
  }
}
