/* =========================================================
   ROOT (THEME TOKENS)
========================================================= */
:root {
  --primary: #0d6efd;
  --dark: #0b1c2d;
  --light-bg: #f8f9fb;
  --text-muted: #6c757d;
}

/* =========================================================
   BASE
========================================================= */
body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--light-bg);
  padding-top: 80px; /* navbar offset */
}

/* =========================================================
   NAVBAR
========================================================= */
/* =========================================================
   NAVBAR – PREMIUM MEDICAL
========================================================= */
.main-navbar {
  background: linear-gradient(
    135deg,
    #0d6efd 0%,
    #0a58ca 45%,
    #06357a 100%
  ) !important;

  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

/* brand */
.main-navbar .navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.6px;
}

/* nav links */
.main-navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  position: relative;
}

/* hover underline */
.main-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.main-navbar .nav-link:hover::after {
  width: 100%;
}

/* contact button */
.main-navbar .btn-outline-light {
  border-color: #ffffff;
  color: #ffffff;
}

.main-navbar .btn-outline-light:hover {
  background: #ffffff;
  color: #06357a;
}


/* =========================================================
   LAYOUT WRAPPER
========================================================= */
.page-wrapper {
  min-height: calc(100vh - 300px);
}

/* =========================================================
 

/* =========================================================
   HERO IMAGE – CURVED, LARGE, CLEAN
========================================================= */
.media-hero {
  max-width: 560px;
  height: 380px;
  margin-left: auto;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 32px;
  box-shadow: 0 22px 50px rgba(11, 28, 45, 0.18);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.hero-img:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(11, 28, 45, 0.28);
}

/* =========================================================
   CAROUSEL – CONTROLS + INDICATORS + TRANSITION
========================================================= */
#categoryCarousel .carousel-control-prev,
#categoryCarousel .carousel-control-next {
  width: 56px;
  height: 56px;
  background: rgba(11, 28, 45, 0.75);
  border-radius: 50%;
  top: 50%;
  opacity: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}

#categoryCarousel .carousel-control-prev {
  left: -28px;
}

#categoryCarousel .carousel-control-next {
  right: -28px;
}

#categoryCarousel .carousel-control-prev:hover,
#categoryCarousel .carousel-control-next:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

#categoryCarousel .carousel-control-prev-icon,
#categoryCarousel .carousel-control-next-icon {
  filter: invert(1);
  width: 20px;
  height: 20px;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--primary);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

#categoryCarousel .carousel-item {
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* buang fade effect sepenuhnya (kalau guna .carousel-fade) */
#categoryCarousel.carousel-fade .carousel-item {
  opacity: 1;
}

#categoryCarousel .media-box {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  will-change: transform;
}

/* =========================================================
   PRODUCT CATEGORY CARD – PREMIUM
========================================================= */
.product-card {
  position: relative; /* penting untuk ::before overlay */
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 28, 45, 0.10);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(11, 28, 45, 0.18);
}

.product-card .card-img-top,
.product-card video.card-img-top {
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .card-img-top,
.product-card:hover video.card-img-top {
  transform: scale(1.05);
}

.product-card .card-body {
  padding: 26px 22px 28px;
}

.product-card h5 {
  font-weight: 700;
  margin-bottom: 12px;
}

.product-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.product-card .btn {
  margin-top: 12px;
  padding: 8px 22px;
  border-radius: 30px;
  font-weight: 600;
}

/* overlay gradient subtle */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 60%,
    rgba(11, 28, 45, 0.25)
  );
  pointer-events: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */
/* tablet */
@media (max-width: 992px) {
  .media-hero {
    max-width: 480px;
    height: 340px;
    margin: 0 auto;
  }
}

/* mobile */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  #categoryCarousel .carousel-control-prev,
  #categoryCarousel .carousel-control-next {
    width: 46px;
    height: 46px;
  }

  #categoryCarousel .carousel-control-prev {
    left: 8px;
  }

  #categoryCarousel .carousel-control-next {
    right: 8px;
  }

  .product-card .card-img-top,
  .product-card video.card-img-top {
    height: 200px;
  }
}

/* small mobile */
@media (max-width: 576px) {
  .media-hero {
    max-width: 100%;
    height: 260px;
  }

  .hero-img {
    border-radius: 24px;
  }
}


/* ===============================
   SOFT SECTION BACKGROUNDS
================================ */

/* default section */
.section-soft {
  background: #ffffff;
  padding: 90px 0;
}

/* alternate section */
.section-soft-alt {
  background: linear-gradient(
    180deg,
    #f4f7fb 0%,
    #eef3f9 100%
  );
  padding: 90px 0;
}

/* tighten on mobile */
@media (max-width: 768px) {
  .section-soft,
  .section-soft-alt {
    padding: 70px 0;
  }
}
