/* GLOBAL RESPONSIVE SAFETY */
html,
body,
#wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.gap-3 { gap: 15px; }

.w-100 { width: 100%; }
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-4 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.mobile-menu-only {
  display: none;
}

/* LARGE TABLET / SMALL DESKTOP <= 1200px */
@media (max-width: 1200px) {
  .intro-section {
    overflow: hidden;
    padding: 40px 16px;
  }

  .intro-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
  }

  .intro-section .col-md-6 {
    width: 100%;
    max-width: 100%;
    flex: none;
    display: flex;
    justify-content: center;
  }

  .intro-3d {
    width: min(420px, 90vw);
    max-height: 420px;
    object-fit: contain;
    transform: none;
  }

  .intro-box h1 {
    font-size: clamp(28px, 5vw, 39px);
    margin-bottom: 25px;
  }

  .intro-box p {
    width: 100%;
    max-width: 620px;
    margin: 0 auto 25px;
    text-align: justify;
  }
}

/* TABLET MENU 700px - 1200px */
@media (min-width: 700px) and (max-width: 1200px) {
  .menu-2 {
    display: none;
  }

  .mobile-menu-only {
    display: block;
    position: fixed;
    top: 180px;
    right: 20px;
    left: auto;
    z-index: 999999;
    width: 42px;
    height: 42px;
    visibility: visible;
    opacity: 1;
  }

  .mobile-menu-only .header,
  .mobile-menu-only .container,
  .mobile-menu-only #page {
    display: block;
    width: 42px;
    height: 42px;
    min-height: 0;
    padding: 0;
    margin: 0;
    background: transparent;
  }

  .mobile-menu-only .header a {
    display: block;
    width: 42px;
    height: 42px;
    background: #0b7a33;
    border-radius: 5px;
    position: relative;
    text-indent: -9999px;
  }

  .mobile-menu-only .header a::before {
    /* content: "☰"; */
    position: absolute;
    inset: 0;
    text-indent: 0;
    color: #fff;
    font-size: 28px;
    line-height: 42px;
    text-align: center;
  }
}

/* CONTENT - TABLET / IPAD / SMALL DESKTOP 700px - 1280px */
@media (min-width: 700px) and (max-width: 1280px) {
  .content-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .content-section .container {
    width: 100% !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .content-grid {
    width: 100% !important;
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    justify-items: center !important;
    align-items: start !important;
  }

  .content-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .content-card img,
  .content-card video,
  .content-card iframe {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .content-card img {
    height: auto !important;
  }

  .content-card iframe {
    height: 510px !important;
    min-height: 510px !important;
  }

  .content-grid:has(.content-card:only-child) {
    max-width: 680px !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }

  .content-grid:has(.content-card:only-child) .content-card {
    width: min(440px, 100%) !important;
    max-width: 440px !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .content-grid:has(.content-card:only-child) .content-card iframe {
    height: 500px !important;
    min-height: 500px !important;
  }
}

@media (min-width: 700px) and (max-width: 900px) {
  .content-section .container {
    max-width: 760px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .content-grid {
    width: 100% !important;
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    justify-items: center !important;
  }

  .content-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* TABLET <= 1024px */
@media (max-width: 1024px) {
  .intro-section {
    margin-top: 20px;
    padding: 40px 0;
  }

  .services-grid {
    padding: 0 20px;
  }

  .doctor-left,
  .doctor-right {
    display: flex;
    position: absolute;
    bottom: 0;
  }

  .doctor-left {
    justify-content: flex-start;
    margin-left: 30px;
    max-height: 320px;
  }

  .doctor-right {
    justify-content: flex-end;
    margin-right: 30px;
    max-height: 380px;
  }
}

/* DOCTOR 3D - IPAD / TABLET BESAR*/
@media (min-width: 769px) and (max-width: 1024px) {
  .services-section {
    overflow: hidden !important;
  }

  .doctor-left,
  .doctor-right {
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    z-index: 3 !important;
    pointer-events: none !important;
    margin: 0 !important;
  }

  .doctor-left {
    left: 0 !important;
    transform: translateX(-42%) !important;
    max-height: clamp(220px, 28vw, 330px) !important;
  }

  .doctor-right {
    right: 0 !important;
    transform: translateX(42%) !important;
    max-height: clamp(240px, 30vw, 380px) !important;
  }

  .services-grid {
    padding-left: 70px !important;
    padding-right: 70px !important;
  }
}

/* TABLET / MOBILE <= 768px */
@media (max-width: 768px) {
  /* Top bar & header */
  .top-bar {
    padding: 8px 0;
    font-size: 11px;
    position: relative;
    z-index: 162;
    display: block;
  }

  .get-touch {
    justify-content: center;
  }

  .menu-2 ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-transparent {
    top: 36px;
  }

  .header-transparent .container {
    margin-top: clamp(35px, 8vw, 70px);
  }

  .header-transparent.header-scrolled .logo img {
    transform: translateY(-50px);
  }

  .navbar-toggle,
  .menu-toggle,
  [class*="toggle"] {
    float: right;
    margin-left: 10px;
    margin-right: 0;
  }

  .mobile-menu-only {
    display: block;
    position: fixed;
    top: clamp(190px, 34vw, 260px);
    right: clamp(18px, 5vw, 40px);
    left: auto;
    z-index: 999999;
    width: 42px;
    height: 42px;
  }

  .mobile-menu-only .container,
  .mobile-menu-only #page,
  .mobile-menu-only .header {
    width: 42px;
    height: 42px;
    min-height: 0;
    padding: 0;
    margin: 0;
    background: transparent;
  }

  .mobile-menu-only .header a {
    display: block;
    width: 42px;
    height: 42px;
    background: #0b7a33;
    border-radius: 5px;
    position: relative;
    text-indent: -9999px;
  }

  .mobile-menu-only .header a::before {
    /* content: "☰"; */
    position: absolute;
    inset: 0;
    text-indent: 0;
    color: #fff;
    font-size: 28px;
    line-height: 42px;
    text-align: center;
  }

  /* Hero & banner */
  .hero {
    margin-top: 0;
  }

  .hero img {
    height: 350px;
  }

  .sub-banner {
    padding-top: clamp(170px, 20vw, 205px);
  }

  .padding h2 {
    font-size: 24px;
  }

  /* Schedule / timetable */
  .schedule-box {
    position: relative;
    right: auto;
    top: auto;
    width: calc(100% - 32px);
    max-width: 400px;
    margin: 16px auto;
  }

  #accordion2 {
    position: static;
    z-index: auto;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: transparent;
  }

  .accordion2 {
    width: 100%;
    max-width: 100%;
  }

  .accordion2 .link {
    float: none;
    width: 100%;
  }

  .accordion2 .submenu.time-table {
    padding: 15px;
  }

  .accordion2 .submenu.time-table .day,
  .accordion2 .submenu.time-table .time {
    font-size: 13px;
  }

  .time-table-sec {
    margin-top: 0;
  }

  /* Intro */
  .intro {
    padding: 20px;
    text-align: center;
  }

  .intro-section {
    margin-top: 20px;
    padding: 60px 0;
  }

  .intro-box {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }

  .intro-3d {
    max-height: 230px;
    margin-bottom: 20px;
    transform: none;
  }

  .intro-box h1 {
    font-size: 31px;
    margin-bottom: 25px;
  }

  .intro-box p {
    font-size: 14px;
    padding: 0 15px;
  }

  .intro-section .col-md-6 {
    width: 100%;
    margin-top: 20px;
  }

  .intro-section .col-md-6:first-child > div {
    width: 330px;
    height: 210px;
    text-align: center;
  }

  /* Tagline */
  .tagline {
    padding: 30px;
    font-size: 18px;
  }

  .tagline-box {
    min-height: 200px;
    border-radius: 20px;
    margin: 20px 0;
  }

  .tagline-content h2 {
    font-size: 20px;
    padding: 0 15px;
  }

  .quote-mark {
    font-size: 70px;
  }

  .quote-left {
    top: 10px;
    left: 15px;
  }

  .quote-right {
    right: 20px;
    bottom: 10px;
  }

  /* Services */
  .services-section {
    padding: 50px 0 60px;
  }

  .section-label {
    margin-bottom: 30px;
    padding: 8px 25px;
    font-size: 13px;
  }

  .services-grid {
    gap: 20px;
    padding: 0 15px;
  }

  .service-col {
    width: 100%;
  }

  .service-card {
    padding: 18px 20px;
    min-height: auto;
  }

  .service-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

  .service-icon i {
    font-size: 22px;
  }

  .service-detail h5 {
    font-size: 18px;
  }

  .service-detail p {
    font-size: 13px;
  }

  .doctor-left,
  .doctor-right {
    display: none;
  }

  /* Content */
  .content-section {
    padding-top: 40px;
    padding-bottom: 20px;
    margin-bottom: 10px;
  }

  .content-card {
    width: calc(100vw - 32px);
    max-width: 92%;
    padding: 16px;
    border-radius: 24px;
    margin-bottom: 24px;
  }

  .content-card iframe {
    height: 420px;
    min-height: 300px;
  }

  .content-card img {
    max-height: 360px;
  }

  .content-card video {
    max-height: 480px;
  }

  /* Info */
  .info-wrapper {
    padding: 0 15px;
  }

  .info-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .info-image {
    flex: unset;
    text-align: center;
  }

  .info-image img,
  .info-box img {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .info-text h5 {
    font-size: 20px;
    text-align: center;
  }

  .info-text p,
  .info-box p {
    font-size: 14px;
    text-align: left;
  }

  /* Sejarah */
  .sejarah-card {
    padding: 20px;
  }

  .sejarah-item h5 {
    font-size: 16px;
  }

  /* Testimonials */
  .patients-testi,
  .dark-testi,
  #testimonials {
    padding: 0;
    margin: 0;
  }

  #owl-demo2 .testi-sec {
    padding: 30px 20px;
    min-height: 220px;
  }

  #owl-demo2 p {
    font-size: 14px;
    line-height: 1.6;
  }

  #owl-demo2 .name {
    font-size: 18px;
  }

  #owl-demo2 .testi-sec::before,
  #owl-demo2 .testi-sec::after {
    font-size: 50px;
  }

  .meet-specialists {
    padding-top: 10px;
    margin-top: 0;
  }

  /* Katalog */
  .katalog-card iframe {
    max-width: 580px;
  }

  /* Footer */
  .main-footer {
    min-height: 260px;
    padding-top: 95px;
    margin-top: -20px;
    border-top-left-radius: 50% 70px;
    border-top-right-radius: 50% 70px;
  }

  .emergency i {
    font-size: 34px;
  }

  .emergency .number {
    font-size: 26px;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .col-md-6 {
    text-align: center;
    margin-bottom: 10px;
  }

  /* Buttons */
  .btn-main,
  .btn-light-custom {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 6px;
  }

  .btn-main {
    box-shadow: 0 3px 0 #b86f05;
  }

  .btn-main:hover {
    box-shadow: 0 4px 0 #b86f05;
  }

  .btn-group {
    flex-direction: column;
    gap: 12px;
  }

  .btn-group .btn-main,
  .btn-group .btn-light-custom {
    width: 100%;
    text-align: center;
  }

  /* Contact */
  .leave-msg.dark-back {
    padding: 35px 20px;
  }

  .leave-msg .col-md-5 {
    width: 100%;
    float: none;
  }

  .leave-msg .get-in-touch .detail span {
    display: block;
    font-size: 17px;
    line-height: 1.6;
    word-break: break-word;
  }
}

/* JADWAL KERJA ICON - IPAD MINI / TABLET PORTRAIT */
@media (min-width: 700px) and (max-width: 820px) {
  .accordion2 .link img,
  #accordion2 .link img,
  .link img {
    width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    max-height: 52px !important;
    object-fit: contain !important;
    transform: none !important;
  }

  .accordion2 .link,
  #accordion2 .link {
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
  }

  .accordion2 .submenu.time-table,
  #accordion2 .submenu.time-table {
    padding: 16px 18px !important;
  }
}

/* CONTENT <= 700px */
@media (max-width: 700px) {
  .content-section {
    padding-top: 40px;
    padding-bottom: 20px;
    margin-bottom: 10px;
  }

  .content-grid {
    width: calc(100vw - 32px) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;

    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    justify-items: center !important;
  }

  .content-card,
  .content-grid:has(.content-card:only-child) .content-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 10px !important;
    margin: 0 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  .content-card img,
  .content-card video,
  .content-card iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    border-radius: 16px !important;
  }

  .content-card img {
    height: auto !important;
    max-height: 360px !important;
    object-fit: contain !important;
  }

  .content-card video {
    height: auto !important;
    max-height: 520px !important;
    object-fit: contain !important;
    background: #000;
  }

  .content-card iframe,
  .content-grid:has(.content-card:only-child) .content-card iframe {
    height: 520px !important;
    min-height: 520px !important;
  }
}

/* MOBILE <= 600px */
@media (max-width: 600px) {
  .services-grid,
  .row,
  .grid {
    display: flex !important;
    flex-direction: column !important;
  }

  .content-grid {
    width: calc(100vw - 24px) !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .content-card,
  .content-grid:has(.content-card:only-child) .content-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .katalog-card {
    width: calc(100vw - 20px) !important;
    max-width: 100% !important;
    padding: 10px !important;
    overflow: hidden !important;
    border-radius: 24px !important;
  }

  .iframe-responsive {
    width: 100% !important;
    height: 520px !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .iframe-responsive iframe {
    width: clamp(500px, 112vw, 600px) !important;
    max-width: none !important;
    height: 680px !important;
    margin: 0 !important;
    transform: none !important;
    border: 0 !important;
    border-radius: 18px !important;
  }

  .link img {
    width: auto !important;
    max-width: 52px !important;
    height: auto !important;
    max-height: 52px !important;
    object-fit: contain !important;
    transform: none !important;
  }

  .btn-group {
    flex-direction: column;
    gap: 10px;
  }

  .btn-group .btn-main,
  .btn-group .btn-light-custom {
    width: 100%;
    text-align: center;
  }
}

/* MODAL IMAGE CLOSE BUTTON */
.img-modal {
  padding: 24px;
}

.img-modal img {
  max-width: min(92vw, 900px);
  max-height: 82vh;
  object-fit: contain;
}

.img-modal .close {
  position: fixed;
  top: max(16px, calc((100vh - 82vh) / 2 - 18px));
  right: max(16px, calc((100vw - min(92vw, 900px)) / 2));
  z-index: 9999999;

  width: 42px;
  height: 42px;
  font-size: 26px;
  line-height: 42px;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 600px) {
  .img-modal {
    padding: 16px;
    align-items: center;
  }

  .img-modal img {
    max-width: 94vw;
    max-height: 78vh;
  }

  .img-modal .close {
    top: 70px;
    right: 18px;
  }
}

/* MOBILE <= 480px */
@media (max-width: 480px) {
  .hero img {
    height: 220px;
  }

  .top-bar {
    padding: 6px 0;
    font-size: 12px;
  }

  .get-touch ul {
    gap: 12px;
  }

  .header-transparent {
    top: 100px;
  }

  .header-scrolled {
    position: fixed;
    top: 0;
  }

  .mobile-menu-only {
    top: clamp(250px, 54vw, 270px);
  }

  body.scrolled .mobile-menu-only {
    top: 50px;
  }

  .sub-banner {
    padding-top: clamp(200px, 36vw, 210px);
  }

  .schedule-box {
    position: relative;
    right: auto;
    top: auto;
    width: calc(100% - 32px);
    margin: 12px auto;
    font-size: 13px;
    border-radius: 8px;
  }

  #accordion2,
  .accordion2,
  .time-table-sec {
    background: transparent;
  }

  #accordion2 .time-table {
    padding: 20px 12px;
  }

  #accordion2 .time-table span.day {
    width: 100px;
    font-size: 14px;
    background-color: transparent;
  }

  #accordion2 .time-table span.time {
    font-size: 14px;
  }

  .link img {
    max-width: 50px;
  }

  .intro-3d {
    max-height: 180px;
  }

  .intro-box h1 {
    font-size: 24px;
  }

  .small-title {
    font-size: 18px;
  }

  .intro-box p {
    font-size: 13px;
  }

  .tagline-content h2 {
    font-size: 16px;
  }

  .tagline-line {
    width: 50px;
  }

  .quote-mark {
    font-size: 50px;
  }

  .service-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .service-detail p {
    text-align: center;
  }

  .content-section {
    padding-top: 30px;
    padding-bottom: 5px;
    margin-bottom: 0;
  }

  .content-grid {
    width: calc(100vw - 24px) !important;
    gap: 20px !important;
  }

  .content-card,
  .content-grid:has(.content-card:only-child) .content-card {
    padding: 8px !important;
    border-radius: 18px !important;
  }

  .content-card iframe,
  .content-grid:has(.content-card:only-child) .content-card iframe {
    height: 500px !important;
    min-height: 500px !important;
  }

  .content-card img {
    max-height: 300px !important;
  }

  .content-card video {
    max-height: 480px !important;
  }

  .info-image img {
    max-height: 200px;
  }

  .info-text h5 {
    font-size: 18px;
  }

  .info-text p {
    font-size: 13px;
  }

  .sejarah-banner img {
    max-height: 200px;
  }

  .sejarah-item p {
    font-size: 13px;
  }

  #owl-demo2 .testi-sec {
    padding: 24px 16px;
    min-height: 180px;
  }

  #owl-demo2 .name {
    font-size: 18px;
  }

  #owl-demo2 p {
    font-size: 12px;
  }

  .main-footer {
    margin-top: -25px;
  }

  .emergency .number {
    font-size: 22px;
  }

  .emergency .text {
    font-size: 12px;
  }

  .btn-main,
  .btn-light-custom {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
  }

  .btn-main {
    box-shadow: 0 2px 0 #b86f05;
  }

  .btn-light-custom {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .btn-full-mobile {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .leave-msg.dark-back {
    padding: 10px 8px;
  }

  .leave-msg .get-in-touch .detail span {
    font-size: 14px;
    line-height: 1.2;
  }

  .leave-msg .social-icons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
  }
}

/* SMALL MOBILE <= 390px */
@media (max-width: 390px) {
  .content-grid {
    width: calc(100vw - 20px) !important;
  }

  .content-card {
    width: 100% !important;
    padding: 10px !important;
  }

  .content-card iframe,
  .content-grid:has(.content-card:only-child) .content-card iframe {
    height: 460px !important;
    min-height: 460px !important;
  }

  .content-card video {
    max-height: 420px !important;
  }
}

/* SMALL MOBILE <= 360px */
@media (max-width: 360px) {
  .hero img {
    height: 200px;
  }

  .mobile-menu-only {
    top: 260px;
  }

  body.scrolled .mobile-menu-only {
    top: 408px;
  }

  .intro-box h1 {
    font-size: 20px;
  }

  .tagline-content h2 {
    font-size: 14px;
  }

  .content-card iframe,
  .content-grid:has(.content-card:only-child) .content-card iframe {
    height: 430px !important;
    min-height: 430px !important;
  }

  .iframe-responsive iframe {
    width: clamp(480px, 112vw, 540px) !important;
  }

  .emergency .number {
    font-size: 18px;
  }

  .btn-main,
  .btn-light-custom {
    padding: 6px 14px;
    font-size: 12px;
  }
}

/* EXTRA SMALL MOBILE <= 320px */
@media (max-width: 320px) {
  .btn-main,
  .btn-light-custom {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* VERY SMALL DEVICE <= 302px */
@media (max-width: 302px) {
  .content-card {
    width: 100% !important;
    padding: 8px !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
  }

  .content-card img {
    max-height: 220px !important;
  }

  .content-card video {
    height: auto !important;
    max-height: 320px !important;
  }

  .content-card iframe {
    height: 420px !important;
    min-height: 420px !important;
  }
}
