/* =====================
   IMAGE VMG (FIX CROPPING + HITAM)
===================== */
.vmg-img,
.vmg-img-right {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 18px;
  transition: 0.35s ease;
  margin-bottom: 20px;
  display: block;

  background-color: #ffffff;   /* ⬅️ FIX GAMBAR JADI TIDAK HITAM */
  padding: 10px;               /* ⬅️ OPSIONAL: biar lebih rapi */
}

/* Shadow kiri */
.vmg-img {
  box-shadow: -25px 30px rgb(255, 0, 0);
}

/* Shadow kanan */
.vmg-img-right {
  box-shadow: 25px 30px rgb(255, 0, 0);
}

/* Hover */
.vmg-img:hover,
.vmg-img-right:hover {
  transform: scale(1.02);
}

/* MOBILE */
@media (max-width: 991px) {
  .vmg-img,
  .vmg-img-right {
    max-height: 300px;
  }
}

.hero-section {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
}

/* OVERLAY DIKURANGI */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25); /* ⬅️ jangan 0.6 */
  z-index: 1;
}

/* KONTEN DI ATAS OVERLAY */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* PAKSA TEKS PUTIH */
.hero-content h1,
.hero-content p {
  color: #ffffff !important;
}

/* ===============================
   TENTANG KAMI
================================ */
.about-text {
  text-align: justify;
  line-height: 1.8;
  font-size: 16px;
}

/* ===============================
   SERTIFIKASI
================================ */

.text-justify {
  text-align: justify;
}

/* Efek backdrop blur modal */
.modal-backdrop.show {
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.6);
}

/* Animasi fade zoom */
.modal.fade .modal-dialog {
  transform: scale(0.8);
  transition: transform 0.4s ease;
}

.modal.show .modal-dialog {
  transform: scale(1);
}

/* Smooth image appearance */
#modalImage {
  animation: fadeInImg 0.4s ease;
}

@keyframes fadeInImg {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cert-img {
  transition: all 0.4s ease;
}

.cert-img:hover {
  transform: scale(1.08) rotate(0.5deg);
}



/* ======================
   DARK MODE OVERRIDES
====================== */
body.dark-mode {
  background-color: var(--bg-main);
  color: var(--text-main);
}

body.dark-mode .bg-soft,
body.dark-mode .section-padding {
  background-color: var(--soft-bg);
}

body.dark-mode .card,
body.dark-mode .card-service,
body.dark-mode .card-hover-effect,
body.dark-mode .card-box,
body.dark-mode .modal-content,
body.dark-mode .modal-body {
  background-color: var(--card-bg);
  color: var(--text-main);
}

body.dark-mode .text-dark,
body.dark-mode .text-muted,
body.dark-mode p,
body.dark-mode .lead {
  color: var(--text-main) !important;
}
/* ======================
   DARK MODE STRONG (TENTANG)
====================== */
body.dark-mode .about-section,
body.dark-mode .section-padding,
body.dark-mode .bg-white {
  background-color: var(--bg-main) !important;
}

body.dark-mode .container,
body.dark-mode .row,
body.dark-mode .col-lg-6,
body.dark-mode .col-md-6 {
  background-color: transparent !important;
}

body.dark-mode section,
body.dark-mode .about-section,
body.dark-mode .about-text {
  background-color: var(--bg-main) !important;
}

body.dark-mode .text-red,
body.dark-mode .text-green-dark {
  color: var(--text-main) !important;
}

body.dark-mode .vmg-img,
body.dark-mode .vmg-img-right {
  background-color: var(--card-bg) !important;
  box-shadow: 0 18px 30px rgba(0,0,0,0.35);
}

body.dark-mode .vmg-card {
  background-color: var(--card-bg) !important;
  color: var(--text-main) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 215, 120, 0.06);
  position: relative;
  overflow: hidden;
}

body.dark-mode .vmg-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(255, 215, 120, 0.08), transparent 55%);
  pointer-events: none;
}

body.dark-mode .text-justify,
body.dark-mode .about-text,
body.dark-mode .text-muted,
body.dark-mode p {
  color: var(--text-main) !important;
}
