:root {
  --primary-teal: #028289;
  --light-teal: #E6F2F2;
  --dark-teal: #1A5F5F;
  --text-dark: #333;
  --text-light: #666;
  --light-blue: #90CDD2;
}

html,
body {
  overflow-x: hidden;
}

/* =====================
   BASE FONT
   ===================== */
body {
  font-family: 'Epilogue', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
}

.navbar {
  padding-top: 0px;
  /* atur jarak dari atas */
  padding-bottom: 20px;
}

.container {
  padding-left: 0px;
  padding-right: 0px;
}


/* =====================
   HEADING / TEKS BESAR
   ===================== */
h1,
h2,
h3,
h4,
h5,
.section-title,
.hero h1,
.about h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

/* =====================
   LOGO
   ===================== */
.navbar-logo {
  height: 75px;
  /* sesuai figma */
  width: auto;
  object-fit: contain;
}

/* =====================
   NAVBAR & BUTTON
   ===================== */
.navbar,
.btn,
.btn-appointment,
.btn-primary-custom {
  font-family: 'Epilogue', sans-serif;
  font-weight: 400;
}

/* NAVBAR - BASE */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  z-index: 999;
  background: transparent;
  /* ⬅️ mobile awal transparan */
  padding: 11px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Saat scroll (mobile & desktop) */
.navbar.scrolled {
  background: linear-gradient(#228D94, #3F9CA2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Navbar link text */
.navbar .nav-link {
  color: #ffffff;
  font-family: 'Epilogue', sans-serif;
  font-weight: 400;
}

.navbar .nav-link:hover {
  opacity: 0.85;
}

.navbar .nav-link.active {
  color: #7ddfe5 !important;
  opacity: 1;
}

/* Logo */
.navbar-logo {
  height: 75px;
}

/* Hamburger */
.hamburger-icon {
  width: 28px;
  height: 28px;
}

/* Reset toggler */
.custom-toggler {
  border: none;
  box-shadow: none;
}

.custom-toggler:focus {
  box-shadow: none;
}

/* =====================
   BUTTON APPOINTMENT
   ===================== */
.btn-appointment {
  background: #207F85;
  /* ⬅️ solid sesuai permintaan */
  color: #FFFFFF;
  /* ⬅️ teks putih */
  width: 270px;
  height: 37px;
  border-radius: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Epilogue', sans-serif;
  font-weight: 600;
  font-size: 20px;
  border: none;
}

.btn-appointment:hover {
  background: #1b6f74;
  /* ⬅️ sedikit lebih gelap */
  color: #FFFFFF;
}

/* =====================
   DESKTOP NAVBAR
   ===================== */
@media (min-width: 992px) {

  .navbar {
    background: linear-gradient(#228D94, #3F9CA2);
  }


  .navbar-nav {
    gap: 24px;
  }


  .navbar-nav .nav-item:last-child {
    margin-left: 32px;
  }


  .navbar-nav .nav-item:last-child {
    margin-left: 32px;
  }




}

/* =====================
   MOBILE MENU - SMALL SCREENS (< 425px)
   ===================== */
@media (max-width: 424px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-teal);
    z-index: 9999;
    padding: 20px 30px;

    /* Override Bootstrap's display:none to allow slide animation */
    display: block !important;
    flex-direction: column;

    /* Transform for animation (Right to Left) */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    overflow-y: auto;
    /* Allow scrolling if content is tall */
  }


  /* Override Bootstrap's hiding behavior to allow our transition if we want slide effect. 
     However, standard Bootstrap collapse toggles display:none. 
     To get a slide effect, we might need to override .collapse to be display:block but translated off-screen.
     But for simplicity and robustness with existing JS, let's just style the .show state.
  */

  .navbar-collapse.show {
    transform: translateX(0);
  }


  /* Mobile Header */
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }


  .mobile-logo {
    height: 48px;
    width: 95px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }


  .btn-close-custom {
    background: none;
    border: none;
    padding: 0;
  }


  .btn-close-custom svg {
    width: 32px;
    height: 32px;
    stroke: white;
  }


  /* Links */
  .navbar-nav {
    width: 100%;
    gap: 20px;
  }


  .navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    padding: 6px 0;
    margin-bottom: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
  }

  .navbar-nav .nav-link.active {
    color: #7DDFE5 !important;
  }


  /* Book Appointment on Small Mobile */
  .navbar-nav .nav-item .btn-appointment {
    background: none;
    width: auto;
    height: auto;
    color: #ffffff;
    font-family: 'Poppins', sans-serif !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    text-decoration: underline;
    text-underline-offset: 8px;
    padding: 6px 0;
    border-radius: 0;
    justify-content: flex-start;
    line-height: 1.4;
    letter-spacing: 0.5px;
  }

  .navbar-nav .nav-item .btn-appointment:hover {
    background: none;
    color: #ffffff;
  }

  /* Pattern */
  .mobile-pattern {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    max-height: 50vh;
    z-index: -1;
    pointer-events: none;
  }
}

/* =====================
   MOBILE MENU - LARGER SCREENS (425px - 991px)
   ===================== */
@media (min-width: 425px) and (max-width: 991px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-teal);
    z-index: 9999;
    padding: 20px 30px;

    /* Override Bootstrap's display:none to allow slide animation */
    display: block !important;
    flex-direction: column;

    /* Transform for animation (Right to Left) */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    overflow-y: auto;
  }

  .navbar-collapse.show {
    transform: translateX(0);
  }

  /* Mobile Header */
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .mobile-logo {
    height: 48px;
    width: 95px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .btn-close-custom {
    background: none;
    border: none;
    padding: 0;
  }

  .btn-close-custom svg {
    width: 32px;
    height: 32px;
    stroke: white;
  }

  /* Links - LARGER MOBILE (36px) */
  .navbar-nav {
    width: 100%;
    gap: 8px;
  }

  .navbar-nav .nav-item {
    margin-bottom: 0;
  }

  .navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif !important;
    font-size: 36px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    padding: 6px 0;
    margin-bottom: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
  }

  .navbar-nav .nav-link.active {
    color: #7DDFE5 !important;
  }

  /* Book Appointment on Larger Mobile */
  .navbar-nav .nav-item .btn-appointment {
    background: none;
    width: auto;
    height: auto;
    color: #ffffff;
    font-family: 'Poppins', sans-serif !important;
    font-size: 36px !important;
    font-weight: 600 !important;
    text-decoration: underline;
    text-underline-offset: 8px;
    padding: 6px 0;
    border-radius: 0;
    justify-content: flex-start;
    line-height: 1.4;
    letter-spacing: 0.5px;
  }


  .navbar-nav .nav-item .btn-appointment:hover {
    background: none;
    color: #ffffff;
  }


  /* Pattern */
  .mobile-pattern {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    max-height: 50vh;
    z-index: -1;
    pointer-events: none;
  }

}



/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  background: url("image/hero-image.jpg");
  background-size: cover;
  background-position: center bottom;
  min-height: 600px;
  padding: 150px 0 80px;

  display: flex;
  align-items: center;

  overflow: hidden;
  /* ⬅️ ini tetap, sebagai batas hero */
}

/* =====================
   HERO - MOBILE OVERRIDE
   ===================== */
@media (max-width: 768px) {
  .hero {
    background: url("assets/img/mobile-hero-banner.png");
    background-size: cover;
    background-position: center;
  }
}

/* Background pattern */
.hero::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -300px;
  width: 1010px;
  height: 1010px;
  background-size: contain;
  opacity: 0.25;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}



/* Text */
.hero h1 {
  font-size: 64px;
  color: #FFFFFF;
}



.btn-primary-custom {
  background: #207F85;
  color: white;
  width: 348px;
  /* lebar */
  height: 61px;
  /* tinggi */
  border-radius: 12px;
  padding: 0;
  /* penting */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Epilogue', sans-serif;
  font-weight: 600;
  font-size: 24px;
}

.btn-primary-custom:hover {
  background: var(--dark-teal);
}

/* =====================
   WHY US
   ===================== */
.why-us {
  padding: 60px 0;
}

@media (max-width: 768px) {
  .why-us {
    padding: 30px 0;
  }
}

.section-title {
  font-size: 64px;
}

.section-subtitle {
  font-family: 'Epilogue', sans-serif;
  color: var(--text-light);
  margin-bottom: 60px;
  margin-top: 16px;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 40px;
}

/* Icon All Point */
.feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.feature-icon-img {
  width: 156px;
  /* atur sesuai figma */
  height: 156px;
  object-fit: contain;
}

.why-us h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 400;
  /* Regular */
  margin-bottom: 10px;
}

.why-us p {
  font-family: 'Epilogue', sans-serif;
  font-size: 24px;
  font-weight: 400;
  /* Regular */
  color: var(--text-light);
  line-height: 1.5;
}


/* =====================
   FACILITIES
   ===================== */
.facilities h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 64px;
  font-weight: 500;
  /* Medium */
  color: #ffffff;
  margin-bottom: 10px;
}

.facilities {
  background: var(--light-blue);
  padding: 60px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.facility-pattern {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.facilities .container {
  position: relative;
  z-index: 2;
}

.facility-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  color: var(--text-dark);

  width: 360px;
  min-height: 443px;
  /* ⬅️ KUNCI: baseline tinggi figma */

  margin: 0 auto;
  display: flex;
  flex-direction: column;

  flex: 0 0 360px;
}


.facility-card img {
  width: 100%;
  height: 220px;
  /* bagian atas */
  object-fit: cover;
  border-radius: 12px;
}

.facility-info {
  padding: 24px;
  padding-top: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}



.facility-info h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  /* bisa kamu sesuaikan */
  font-weight: 500;
  /* Medium */
  color: var(--text-dark);
  margin-bottom: 15px;
  /* jarak ke paragraf */
}

.facility-info p {
  font-family: 'Epilogue', sans-serif;
  color: var(--text-light);
  font-size: 20px;
  font-weight: 400;

}

.slider-controls {
  display: flex;
  gap: 6px;
}

.control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.control-btn img {
  width: 20px;
  /* sesuaikan ukuran icon */
  height: 20px;
}

.facilities-slider-wrapper {
  overflow: visible;
  margin-top: 40px;

  position: relative;
}

.facilities-slider {
  display: flex;
  gap: 24px;
  align-items: stretch;
  /* ⬅️ KUNCI UTAMA */
  transition: transform 0.4s ease;
  will-change: transform;

  margin-left: calc((100vw - 100%) / -2);
  padding-left: calc((100vw - 100%) / 2);
  padding-right: calc((100vw - 100%) / 2);
}



/* =====================
   ABOUT
   ===================== */
.about {
  padding: 60px 0;
}

@media (max-width: 768px) {
  .about {
    padding: 30px 0;
  }
}

.about-image {
  width: 456.67px;
  /* sesuai Figma */
  height: 711px;
  /* sesuai Figma */
  object-fit: cover;
  border-radius: 12px;
}

.about h2 {
  font-size: 64px;
  margin-bottom: 19px;
  font-weight: 500;
  max-width: 700px;
  /* ⬅️ BATAS PANJANG TEKS */
}

.about p {
  font-family: 'Epilogue', sans-serif;
  color: var(--text-light);
  margin-bottom: 52px;
  font-weight: 400;
  font-size: 24px;
  line-height: 39px;
}

/* =====================
   SERVICE DETAIL SECTION
   ===================== */
.service-detail-section {
  padding: 160px 0 80px;
}

.detail-image-wrapper {
  width: 100%;
  max-width: 516px;
  /* Limit width to match desktop design constraint globally */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.detail-image {
  width: 100%;
  height: 428px;
  /* Mobile default height */
  object-fit: cover;
  display: block;
}

@media (min-width: 992px) {
  .detail-image {
    width: 100%;
    max-width: 516px;
    height: 627px;
  }
}

.detail-title {
  font-family: 'Poppins', sans-serif;
  font-size: 64px;
  font-weight: 500;
  color: #000000;
  line-height: 1.2;
  margin-bottom: 20px;
}

.detail-desc p {
  font-size: 24px;
  line-height: 1.6;
  color: #696969;
  margin-bottom: 20px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .service-detail-section {
    padding: 40px 0 40px;
  }

  .detail-title {
    font-size: 34px;
    margin-bottom: 16px;
  }

  .detail-desc p {
    font-size: 16px;
  }
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--primary-teal);
  color: white;
  padding: 80px 0 40px;
  font-family: 'Epilogue', sans-serif;
}

/* LOGO */
.footer-logo {
  width: 364px;
  height: 182px;
  object-fit: contain;
}

/* RIGHT SIDE */
.footer-right {
  display: flex;
  justify-content: flex-end;
}

.footer-right-inner {
  display: flex;
  gap: 60px;
  /* jarak links & payment */
  align-items: flex-start;
}

/* LINKS */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-family: 'Epilogue', sans-serif;
  font-weight: 500;
}

.footer-links a:hover {
  opacity: 1;
}

/* PAYMENT */
.footer-payment {
  text-align: left;
}

.footer-title {
  font-family: 'Epilogue', sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 18px;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 392px;
}

.payment-icons img {
  width: 120px;
  height: 60px;
  object-fit: contain;
}

/* DIVIDER */
.footer-divider {
  border: none;
  border-top: 2px solid #ffffff;
  margin: 40px 0 21px;
}

/* SOCIAL */
.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
}

.social-links img {
  width: 35px;
  height: 35px;
}

/* =====================
   ABOUT PAGE 
   ===================== */

.about-page {
  background: #ffffff;
  padding: 140px 0 100px;
  /* ⬅️ atas lebih besar karena navbar absolute */
}

.about-page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 56px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.about-page-desc {
  font-family: 'Epilogue', sans-serif;
  font-size: 24px;
  line-height: 34px;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 720px;

  text-align: justify;
  /* ⬅️ bikin rata kiri-kanan */
  text-align-last: left;
  /* ⬅️ baris terakhir tetap rata kiri */
}

/* IMAGE BOX SESUAI FIGMA (548 x 597) */
.about-page-image-wrapper {
  width: 100%;
  max-width: 548px;
  /* ⬅️ dari 420px → 548px */
  aspect-ratio: 548 / 597;
  /* ⬅️ rasio portrait sesuai figma */
  background: #f3f3f3;
  border-radius: 12px;
  /* ⬅️ dikit lebih besar biar seimbang */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* Gambar di dalamnya */
.about-page-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* tetap utuh */
  border-radius: 16px;
}



/* =====================
   SERVICES
   ===================== */
.services {
  background: #90CDD2;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.service-pattern {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

.services .container {
  position: relative;
  z-index: 2;
}

.services-title {
  font-family: 'Poppins', sans-serif;
  font-size: 64px;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 40px;
}

/* Grid khusus services */
.services-grid {
  justify-content: center;
}

/* CARD DESKTOP (400 x 480) */
.services .facility-card {
  width: 400px;
  height: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
}

/* FOTO DESKTOP (400 x 246) */
.services .facility-card img {
  width: 100%;
  height: 246px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Konten bawah gambar */
.services .facility-info {
  font: "epilogue", sans-serif;
  flex: 1;
  padding: 20px 20px 30px 20px;
  display: flex;
  flex-direction: column;
  max-width: 350px;
  font-size: 24px;
  font-weight: 400;
  gap: 12px;
}

.services .facility-info h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 0;
}

.services .facility-info p {
  font-size: 24px;
  margin: 0;
}

/* =====================
   SERVICES - MOBILE
   ===================== */
@media (max-width: 768px) {

  .services {
    padding: 30px 0;
    background: #90CDD2;
    /* Light teal background from reference */
  }


  .services-title {
    font-size: 48px;
    font-weight: 500;
    color: #ffffff;
    margin-top: 0px;
    margin-bottom: 30px;
    text-align: left;
    /* Align left as per screenshot */
  }


  /* Card mobile */
  .services .facility-card {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 150px;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* ⬅️ Stretch to match height */
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
  }


  /* Gambar mobile - Flush to left/top/bottom */
  .services .facility-card img {
    width: 40%;
    /* Relative width matches reference better */
    height: auto;
    /* auto + stretch = full height */
    min-height: 100%;
    object-fit: cover;
    border-radius: 0;
    /* Let container overflow handle rounding */
    margin: 0;
    /* ⬅️ No gap */
  }


  /* Konten mobile di samping foto */
  .services .facility-info {
    padding: 20px 24px;
    max-width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
  }


  .services .facility-info h4 {
    font-size: 26px;
    /* Larger and bolder as per reference */
    color: #000000;
    margin-bottom: 4px;
    line-height: 1.2;
  }


  .services .facility-info p {
    font-size: 16px;
    /* Larger text as per reference */
    line-height: 1.4;
    color: #555;
    margin-bottom: 8px;
  }

  .services .service-link {
    font-size: 20px;
    /* Larger link text */
    color: #3F9CA2;
    font-weight: 500;
  }

}

/* =====================
   SERVICE LINK
   ===================== */
.service-link {
  /* margin-top: auto; ⬅️ removed to allow gap to control spacing */
  font-family: 'Epilogue', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #3F9CA2;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.service-link:hover {
  color: #228D94;
  transform: translateX(4px);
  /* ⬅️ efek geser dikit */
}

/* MOBILE */
@media (max-width: 768px) {
  .service-link {
    font-size: 16px;
    margin-top: 12px;
  }

}


/* =====================
   PROMO PAGE
   ===================== */
.promo {
  background: #ffffff;
  padding: 60px 0;
}

@media (max-width: 768px) {
  .promo {
    padding: 30px 0;
  }
}

.promo-title {
  font-family: 'Poppins', sans-serif;
  font-size: 64px;
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
  margin-top: 60px;
  margin-bottom: 60px;
}

.promo-grid {
  justify-content: center;
  align-items: stretch;
}

/* CARD PROMO (Responsive) */
.promo-card {
  width: 100%;
  max-width: 400px;
  /* Limit max width for readability */
  height: 480px;
  margin: 0 auto;
  display: block;
  /* Simpler display */
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  /* Remove shadow for clean look */
  transition: transform 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
}

/* FOTO PROMO */
.promo-card img {
  width: 100%;
  height: auto;
  /* Allow natural height */
  display: block;
  object-fit: contain;
}

/* Info removed/hidden if not needed, typical for promo posters */
.promo-info {
  display: none;
}

/* =====================
   DENTIST - MOBILE
   ===================== */


/* PROMO PAGE - MOBILE */
@media (max-width: 768px) {
  .promo-page {
    padding: 60px 0;
  }

  .promo-title {
    font-size: 32px;
    margin-top: 0px;
    margin-bottom: 24px;
    text-align: center;
  }


  /* CARD MOBILE */
  .promo-card {
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 12px;
  }

  .promo-card img {
    height: auto;
    width: 100%;
    object-fit: contain;
  }

}

/* =====================
   PORTFOLIO
   ===================== */
.portfolio {
  background: #ffffff;
  padding: 60px 0 100px;
}

.portfolio-title {
  font-family: 'Poppins', sans-serif;
  font-size: 64px;
  font-weight: 500;
  color: #000;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 24px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
}

.portfolio-img-wrapper {
  width: 100%;
  aspect-ratio: 400 / 480;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-item-title {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #000;
  margin-top: 16px;
  margin-bottom: 0;
  text-align: left;
}




/* ===================================================================================================================================================
   MOBILE RESPONSIVE
   =================================================================================================================================================== */
@media (max-width: 768px) {

  /* =====================
     CONTAINER
     ===================== */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }


  /* =====================
     NAVBAR
     ===================== */
  .navbar {
    position: relative;
    /* height: 72px;  <-- Remove fixed height */
    /* padding: 0;   <-- Remove padding reset */

    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3F9CA2 0%, #228D94 100%);
  }


  .navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }


  .navbar {
    position: relative;
    /* ⬅️ jangan absolute di mobile */
    padding-top: 0;
    padding-bottom: 0;
    height: 50px;
    display: flex;
    align-items: center;
  }


  .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
  }

  .navbar-logo {
    height: 50px;
    display: block;
  }



  /* Menu collapse */
  /* Menu collapse - Full Screen Overlay */
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #208C93;
    padding: 0 16px;
    /* ⬅️ matches container padding */
    border-radius: 0;
    margin-top: 0;
    z-index: 9999;
    overflow-y: auto;
    display: block;

    /* Slide from Right Transition */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s ease-in-out, visibility 0.4s ease-in-out;
  }

  .navbar-collapse.show {
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-menu-header {
    height: 50px;
    /* matches navbar height */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
  }

  .mobile-logo {
    height: 34px;
    /* matches navbar-logo height */
    width: auto;
    display: block;
  }

  /* Bootstrap's collapse hides it by default, we need to ensure it styles correctly when .show is added */
  .navbar-collapse.collapse:not(.show) {
    display: none;
  }

  .navbar-collapse.collapsing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #208C93;
    z-index: 9999;

    /* Disable Bootstrap's default height/transition */
    transition: transform 0.4s ease-in-out, visibility 0.4s ease-in-out !important;
    height: 100vh !important;
    transform: translateX(100%);
    visibility: visible;
  }


  .navbar-nav {
    gap: 16px;
  }


  .navbar .nav-link {
    font-size: 16px;
  }


  /* Tombol appointment di navbar */
  .btn-appointment {
    width: 100%;
    height: 44px;
    font-size: 16px;
    margin-top: 12px;
  }


  .custom-toggler {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .custom-toggler:focus {
    box-shadow: none;
  }

  .hamburger-lines {
    display: block;
    height: 14px;
    width: 28px;
    position: relative;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hamburger-lines .line {
    display: block;
    height: 2px;
    /* Thickness of the lines */
    width: 100%;
    border-radius: 10px;
    background: #ffffff;
    /* White color */
  }

  /* Apply transition to all lines */
  .hamburger-lines .line {
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    /* Smooth 0.4s transition */
    transform-origin: center;
  }

  /* Transform to X when expanded */
  .custom-toggler[aria-expanded="true"] .line1 {
    transform: translateY(6px) rotate(45deg);
  }

  .custom-toggler[aria-expanded="true"] .line2 {
    transform: translateY(-6px) rotate(-45deg);
  }


  /* Matikan icon default Bootstrap */
  .navbar-toggler-icon {
    display: none;
  }




  /* =====================
     HERO
     ===================== */
  .hero {
    height: 517px;
    padding-top: 0px;
    padding-bottom: 0px;
    text-align: left;
  }

  .hero .col-lg-7.text-start {
    margin-top: 0 !important;
  }


  .hero h1 {
    font-size: 40px;
    line-height: 1.3;
    margin-top: 0px;
    margin-bottom: 20px;
  }


  .dentist-info h4 {
    font-size: 24px;
  }


  /* Hero button */
  .btn-primary-custom {
    width: 200px;
    height: 45px;
    font-size: 14px;
  }


  /* Background pattern diperkecil */
  .hero::after {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -200px;
    opacity: 0.15;
  }


  /* =====================
     HERO IMAGE
     ===================== */
  .hero-image {
    display: none;
  }


  /* =====================
   ABOUT PAGE - MOBILE
   ===================== */
  @media (max-width: 768px) {

    .about-page {
      padding: 120px 0 60px;
    }


    .why-us .section-title {
      font-size: 32px;
    }


    .why-us .section-subtitle {
      font-size: 20px;
      margin-bottom: 24px;
    }


    /* Ubah row jadi horizontal scroll */
    .why-us .row {
      flex-wrap: nowrap;
      overflow-x: auto;

      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
    }


    /* Hilangkan scrollbar */
    .why-us .row::-webkit-scrollbar {
      display: none;
    }


    /* Card jadi lebar & sejajar */
    .why-us .col-md-4 {
      flex: 0 0 80%;
      max-width: 80%;

      scroll-snap-align: start;
    }


    /* Card styling */
    .feature-card {
      height: 100%;
      padding: 24px 24px 0px 24px;
      border-radius: 16px;
      background: #fff;
    }


    /* Icon */
    .feature-icon-img {
      width: 90px;
      height: 90px;
    }


    /* Text */
    .why-us h3 {
      font-size: 24px;
    }


    .why-us p {
      font-size: 20px;
      line-height: 1.6;
      margin-bottom: 0px;
    }


    /* =====================
   PORTFOLIO SECTION
   ===================== */

    .facilities {
      padding: 30px 0;
    }


    .facilities h2 {
      font-size: 36px;
    }


    /* Wrapper */
    .facilities-slider-wrapper {
      overflow: hidden;
      margin-top: 24px;
    }


    /* Slider jadi horizontal scroll */
    .facilities-slider {
      transform: none !important;
      transition: none;

      display: flex;
      gap: 16px;

      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;

      padding-left: 16px;
      padding-right: 16px;

      margin-left: 0;
      margin-right: 0;
    }


    .facilities-slider::-webkit-scrollbar {
      display: none;
    }


    /* CARD MOBILE */
    .facility-card {
      flex: 0 0 88%;
      /* ⬅️ lebih lebar, gak terlalu sempit */
      width: 88%;
      min-height: auto;
      /* ⬅️ MATIKAN min-height desktop */
      height: auto;

      border-radius: 14px;
      scroll-snap-align: start;
    }


    .facility-card img {
      height: 180px;
      /* ⬅️ lebih pendek biar gak kepanjangan */
    }


    .facility-info {
      padding: 18px;
      /* ⬅️ lebih compact */
      padding-top: 20px;
    }


    .facility-info h4 {
      font-size: 20px;
      /* ⬅️ turun sedikit */
      margin-bottom: 10px;
    }


    .facility-info p {
      font-size: 16px;
      /* ⬅️ WAJIB biar gak terlalu tinggi */
      line-height: 1.6;
    }


    /* HILANGKAN BUTTON DI MOBILE */
    .slider-controls {
      display: none;
    }

  }

  /* Portfolio Mobile Responsive */
  @media (max-width: 768px) {
    .portfolio {
      padding: 60px 0;
    }


    /* Image - Match Reference */
    .about-image {
      width: 100%;
      height: auto;
      /* Removed max-height and object-fit: contain to allow full-width display */
      border-radius: 12px;
      margin-bottom: 0px;
      display: block;
    }


    /* Title - Match Proportions */
    .about h2 {
      font-size: 28px;
      line-height: 1.25;
      margin-bottom: 16px;
      margin-top: 16px;
      max-width: 100%;
    }


    /* Paragraph */
    .about p {
      font-size: 16px;
      line-height: 26px;
      margin-bottom: 16px;
    }


    .portfolio-info h4 {
      font-size: 20px;
    }

  }

  /* =====================
         FOOTER - MOBILE
         ===================== */
  @media (max-width: 768px) {

    .footer {
      padding: 50px 0 40px;
      text-align: left;
    }


    /* LOGO */
    .footer-logo {
      width: 260px;
      height: auto;
      margin-bottom: 40px;
    }


    /* GRID UTAMA */
    .footer .row {
      align-items: flex-start;
    }


    /* RIGHT SIDE */
    .footer-right {
      justify-content: flex-end;
    }


    .footer-right-inner {
      flex-direction: row;
      /* ⬅️ tetap sejajar */
      gap: 32px;
      /* lebih rapat dari desktop */
      align-items: flex-start;
    }


    /* LINKS */
    .footer-links li {
      margin-bottom: 12px;
    }


    .footer-links a {
      font-size: 18px;
    }


    /* PAYMENT */
    .footer-title {
      font-size: 18px;
      margin-bottom: 12px;
    }


    .payment-icons {
      max-width: 240px;
      /* ⬅️ hasil 3 atas, 2 bawah */
      gap: 12px;
    }


    .payment-icons img {
      width: 70px;
      height: 36px;
    }


    /* DIVIDER */
    .footer-divider {
      margin: 40px 0 14px;
    }


    /* SOCIAL */
    .social-links {
      justify-content: flex-end;
      /* ⬅️ kanan */
      gap: 25px;
    }


    .social-links img {
      width: 35px;
      height: 35px;
    }


  }

  /* =====================
   ABOUT PAGE - MOBILE
   ===================== */
  @media (max-width: 768px) {

    .about-page {
      padding: 30px 0 60px;
    }


    .about-page-title {
      font-size: 36px;
      line-height: 1.2;
      margin-bottom: 16px;
    }


    .detail-desc p {
      font-size: 16px;
      line-height: 26px;
      margin-bottom: 16px;
      max-width: 100%;
    }


    .about-page-image-wrapper {
      max-width: 100%;
      margin-left: 0;
    }


  }
}




@media (max-width: 991px) {
  .portfolio {
    padding: 30px 0;
  }


  .portfolio-title {
    margin-top: 0px;
    font-size: 40px;
    margin-bottom: 16px;
  }


  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }


  .portfolio-item-title {
    font-size: 20px;
    margin-top: 12px;
  }
}


@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
}

/* =====================
   DENTIST PAGE (DESKTOP)
   ===================== */
.dentist {
  background: #90CDD2;
  padding: 100px 0 120px;
  position: relative;
}

.dentist-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  pointer-events: none;
}

.dentist .container {
  position: relative;
  z-index: 2;
}

.dentist-title {
  font-family: 'Poppins', sans-serif;
  font-size: 64px;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 60px;
}

.dentist-grid {
  justify-content: center;
}

/* Card Styling Matches Reference */
.dentist .facility-card {
  width: 100%;
  max-width: 400px;
  height: auto;
  min-height: 480px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.dentist .facility-card img {
  width: 100%;
  height: 380px;
  /* Adjust based on ratio ~ 400x380 photo part */
  object-fit: cover;
  flex-shrink: 0;
}

.dentist .facility-info {
  flex: 1;
  background: #ffffff;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dentist .facility-info h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 0;
}


/* =====================
   DENTIST - MOBILE OVERRIDE
   ===================== */
@media (max-width: 768px) {
  .dentist {
    padding: 30px 0;
    background: #90CDD2;
  }

  .dentist-title {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 24px;
    text-align: left;
  }

  /* CARD MOBILE */
  .dentist .facility-card {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }

  /* FOTO MOBILE (Landscape 4:3) */
  .dentist .facility-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
  }

  .dentist .facility-info {
    padding: 10px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    align-items: left;
    background: #ffffff;
  }

  .dentist .facility-info h4 {
    font-size: 20px;
    color: #000000;
    margin: 0;
    line-height: 1.2;
  }
}