/*=== MEDIA QUERY ===*/
/*
Theme Name: Medic
Author: Themefisher
Author URI: https://themefisher.com/
Description: Medicle Template
Version: 1.0.0
*/
@import url("https://fonts.googleapis.com/css?family=Exo:500,600,700|Roboto&display=swap");

html, body {
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  color: #6F8BA4;
  font-weight: 400;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-family: "Exo", sans-serif;
  font-weight: 700;
  color: #222;
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 44px; }
h3, .h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.3rem; line-height: 30px; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }
p { line-height: 30px; }

.navbar-toggle .icon-bar {
  background: #65b037;
}

input[type="email"], input[type="password"], input[type="text"], input[type="tel"] {
  box-shadow: none;
  height: 45px;
  outline: none;
  font-size: 14px;
}

input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus, input[type="tel"]:focus, .form-control:focus {
  box-shadow: none;
  border: 1px solid #65b037;
}

.form-control {
  box-shadow: none;
  border-radius: 0;
}

.py-7 { padding: 7rem 0px; }

/* Buttons */
.btn {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: .75rem 2rem;
  font-family: "Exo", sans-serif;
  text-transform: uppercase;
  border-radius: 5px;
  border: 2px solid transparent;
  transition: all .35s ease;
}
.btn.btn-icon i { border-left: 1px solid rgba(255, 255, 255, 0.09); padding-left: 15px; }
.btn:focus, .btn.active:focus, .btn:active:focus { outline: 0px; box-shadow: none; }

.btn-main { background: #65b037; color: #fff; border-color: #65b037; }
.btn-main:hover { background: #e12454; border-color: #e12454; color: #fff; }
.btn-main-2 { background: #e12454; color: #fff; border-color: #e12454; }
.btn-main-2:hover { background: #65b037; color: #fff; border-color: #65b037; }

.btn-solid-border { border: 2px solid #65b037; background: transparent; color: #65b037; }
.btn-solid-border:hover { border: 2px solid #65b037; color: #fff; background: #65b037; }
.btn-solid-border:hover.btn-icon i { border-left: 1px solid rgba(255, 255, 255, 0.09); }
.btn-solid-border.btn-icon i { border-left: 1px solid rgba(0, 0, 0, 0.09); }

.btn-transparent { background: transparent; color: #222; border-color: #6F8BA4; }
.btn-transparent:hover { background: #6F8BA4; color: #fff; }

.btn-white { background: #fff; border-color: #fff; color: #222; }
.btn-white:hover { background: #65b037; color: #fff; border-color: #65b037; }

.btn-solid-white { border-color: #fff; color: #fff; }
.btn-solid-white:hover { background: #fff; color: #222; }

.btn-round { border-radius: 4px; }
.btn-round-full { border-radius: 50px; }

/* Backgrounds & Utilities */
.bg-gray { background: #eff0f3; }
.bg-primary { background: #65b037; }
.bg-primary-dark { background: #152440; }
.bg-primary-darker { background: #090f1a; }
.bg-dark { background: #222; }
.bg-gradient { background-image: linear-gradient(145deg, rgba(19, 177, 205, 0.95) 0%, rgba(152, 119, 234, 0.95) 100%); background-repeat: repeat-x; }

.section { padding: 60px 0 !important; }
.section-sm { padding: 70px 0; }
.section-bottom { padding-bottom: 100px; }

.subtitle { color: #65b037; font-size: 14px; letter-spacing: 1px; }

.overlay:before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; right: 0;
  width: 100%; height: 100%; opacity: 0.9; background: #65b037;
}
.overly-2 { position: relative; }
.overly-2:before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; right: 0;
  width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8);
}

.text-sm { font-size: 14px; }
.text-md { font-size: 2.25rem; }
.text-lg { font-size: 50px; }
.no-spacing { letter-spacing: 0px; }

/* Links */
a { color: #222; text-decoration: none; transition: all .35s ease; }
a:focus, a:hover { color: #e12454; text-decoration: none; outline: none; }

.content-title { font-size: 40px; line-height: 50px; }

.page-title { padding: 120px 0px 70px 0px; position: relative; }
.page-title .block h1, .page-title .block p { color: #fff; }
.page-title .breadcumb-nav {
  margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.slick-slide:focus, .slick-slide a { outline: none; }

.title-color, .text-color-primary, .text-color { color: #65b037; }
.secondary-bg { background: #65b037; }
.text-color-2 { color: #e12454; }

.section-title { margin-bottom: 70px; }
.section-title h2 { color: #65b037; }
.gray-bg { background: #f4f9fc; }

/* ===== HEADER & NAVBAR (CLEANED) ===== */
.header-top-bar {
  background: #65b037;
  font-size: 14px; padding: 10px 0px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); color: #fff;
}
.top-bar-info li a { color: #fff; margin-right: 20px; }
.top-right-bar a span { color: #fff; font-weight: 600; letter-spacing: 1px; }
.top-right-bar a i { color: #fff; margin-right: 10px; }

.navbar .container {
  display: flex !important; justify-content: space-between !important;
  align-items: center !important; max-width: 1200px !important;
  margin: 0 auto !important; padding: 10px 20px !important;
}
.navbar-brand { display: flex; align-items: center; margin: 0 !important; margin-top: 10px; }
.navbar-brand img { max-height: 55px; }

.navbar-nav { display: flex !important; align-items: center; gap: 8px; margin-left: auto !important; }
#navbarmain { padding: 5px 0px !important; }
#navbarmain .nav-link, .navbar-nav .nav-link {
  font-weight: 600; padding: 6px 10px !important; color: #222;
  font-family: "Exo", sans-serif; text-transform: capitalize; font-size: 16px;
  white-space: nowrap; transition: 0.3s;
}
.navbar-nav .nav-link:hover { color: #65b037; }
.navbar-toggler { border: none; font-size: 22px; }
.dropdown-toggle::after { display: none; }

.dropdown .dropdown-menu {
  position: absolute; display: block; background: #fff; min-width: 240px;
  top: 130%; left: 0; right: 0px; opacity: 0; padding: 0px; visibility: hidden;
  transition: all 0.3s ease-out 0s; border: 0px; border-top: 5px solid #e12454; border-radius: 0px;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; top: 115%; }
.dropdown .dropdown-item {
  padding: 13px 20px; border-bottom: 1px solid #eee; background: transparent; font-weight: 400; color: #555;
}
.dropdown .dropdown-item:hover { color: #e12454; }

/* ===== BANNER ===== */
.bg-1 { background: url("../images/bg/22.jpg") no-repeat 50% 50%; background-size: cover; position: relative; }
.banner_ori {
  position: relative; overflow: hidden; background: url("../images/bg/slider-bg-1.jpg") no-repeat;
  background-size: cover; min-height: 420px;
}
.banner {
  position: relative; overflow: hidden; background: #ffff12;
  background-size: cover; min-height: 420px; padding-top: 0px; margin-bottom: 40px;
}
.banner .block { padding: 60px 0px 80px !important; }
.banner .block h1 { font-size: 60px; line-height: 1.2; letter-spacing: -1.2px; text-transform: capitalize; color: #65b037; }
.letter-spacing { letter-spacing: 2px; }
.divider { width: 40px; height: 5px; background: #e12454; }

/* ===== FINAL UI FEATURES PREMIUM ===== */
.features { padding: 60px 0; margin-top: 50px !important; position: relative; z-index: 1; }
.feature-block { margin-top: 0 !important; }

/* GRID */
.features .row { display: flex; flex-wrap: wrap; align-items: stretch; }
.features .col-lg-4 { margin-bottom: 20px; }

/* CARD */
.feature-item {
  background: #fff; padding: 30px; border-radius: 18px; height: 100%; min-height: 260px;
  display: flex; flex-direction: column; transition: all 0.35s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05); position: relative; overflow: hidden;
}

/* ANIMASI GARIS ATAS */
.feature-item::before {
  content: ""; position: absolute; top: 0; left: 0; height: 4px;
  width: 0%; background: #65b037; transition: 0.4s;
}
.feature-item:hover::before { width: 100%; }
.feature-item:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }

/* ICON */
.feature-icon {
  width: 65px; height: 65px; background: rgba(101,176,55,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 15px;
}
.feature-icon i { font-size: 28px; color: #65b037; }

/* ICON HOVER */
.feature-item:hover .feature-icon { background: #65b037; }
.feature-item:hover .feature-icon i { color: #fff; }

/* TEXT & BUTTON */
.feature-item span { font-size: 13px; color: #888; }
.feature-item h4 { font-weight: 700; margin: 10px 0; color: #65b037; }
.feature-item p { font-size: 14px; line-height: 1.6; color: #666; margin-bottom: 20px; }
.feature-item .btn { margin-top: auto; transition: 0.3s; }
.feature-item .btn:hover { transform: scale(1.05); }

/* JAM PELAYANAN */
.w-hours { margin-top: 15px; }
.hours-item {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 14px; position: relative; border-bottom: 1px dashed #ddd;
}
.hours-item:last-child { border-bottom: none; }
.hours-item span:first-child { color: #555; font-weight: 500; }
.hours-item span:last-child { color: #65b037; font-weight: 600; }

/* ===== OTHER COMPONENTS ===== */
.about-img img { border-radius: 5px; box-shadow: 0px 0px 30px 0px rgba(0, 42, 106, 0.1); }
.award-img { height: 120px; margin-bottom: 10px; align-items: center; display: flex; justify-content: center; background: #eff0f3; }
.appoinment-content { position: relative; }
.appoinment-content img { width: 85%; }
.appoinment-content .emergency {
  position: absolute; content: ""; right: 10px; bottom: 20px; background: #65b037; padding: 48px;
}
.appoinment-content .emergency h2 { color: #fff; }
.appoinment-content .emergency i { margin-right: 10px; color: rgba(255, 255, 255, 0.7); }
.appoinment-form { margin-top: 40px; }
.appoinment-form .form-control { background: #f4f9fc; height: 55px; border-color: rgba(0, 0, 0, 0.05); }
.appoinment-form textarea.form-control { height: auto; }
.client-thumb { text-align: center; }

.counter-stat { text-align: center; padding: 55px 0px 40px 0px; position: relative; }
.counter-stat i {
  display: block; color: rgba(255, 255, 255, 0.06); font-size: 70px; position: absolute;
  left: 0px; right: 0px; top: 0px; transform: translateY(25px);
}
.counter-stat span { font-size: 70px; color: #fff; }
.counter-stat p { margin-bottom: 0px; color: rgba(255, 255, 255, 0.7); }
.mb--80 { margin-bottom: -80px; }

/* ================= SERVICE FINAL (CLEAN + PREMIUM) ================= */

.service {
  padding-top: 180px;
}

/* GRID RAPI */
.service .row {
  margin-left: -12px;
  margin-right: -12px;
}

/* FIX SPACING (ANTI DEMPET) */
.service .col-lg-4 {
  padding: 12px;
}

/* CARD */
.service .service-item {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  min-height: 200px;

  transition: all 0.35s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);

  position: relative;
  overflow: hidden;
}

/* GARIS ANIMASI ATAS */
.service .service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: #65b037;
  transition: 0.4s;
}

/* HOVER EFFECT */
.service .service-item:hover::before {
  width: 100%;
}

.service .service-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

/* ICON */
.service .icon {
  margin-bottom: 10px;
}

.service .icon i {
  font-size: 40px;
  color: #65b037;
  transition: 0.3s;
}

/* ICON HOVER */
.service .service-item:hover i {
  transform: scale(1.2);
  color: #e12454;
}

/* TITLE */
.service h4 {
  font-weight: 600;
  margin-top: 10px;
  padding-left: 10px;
}

/* CONTENT */
.service .content {
  clear: both;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

  .service {
    padding-top: 100px;
  }

  .service .col-lg-4 {
    padding: 8px;
  }

  .service .service-item {
    padding: 20px;
    min-height: auto;
  }
}

/* ================= HERO FIX ================= */

.hero-caption {
  left: 3% !important;
  bottom: 40% !important;
  text-align: left;
  right: auto !important;
}

.hero-box {
  max-width: 600px;
}

.hero-box h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #222;
  line-height: 1.3;
  text-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.hero-box .subtitle {
  font-size: 16px;
  color: #555;
  margin-top: 10px;
}

.hero-box .warning {
  margin-top: 15px;
  color: #e53935;
  font-weight: 600;
}

/* animasi */
.hero-box h1 {
  animation: fadeUp 1s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MOBILE FIX (SATU SAJA) ================= */

@media (max-width: 768px) {

  /* HERO */
  .hero-caption {
    left: 15px !important;
    right: 15px !important;
    bottom: 35% !important;
  }

  .hero-box h1 {
    font-size: 20px !important;
    line-height: 26px;
  }

  .hero-box .subtitle {
    font-size: 13px;
  }

  .hero-box .warning {
    font-size: 12px;
  }

  /* SERVICE */
  .service .service-item {
    min-height: auto;
  }

  /* FEATURES */
  .features .row {
    display: block;
  }

  .feature-item {
    margin-bottom: 20px;
  }

  .hours-item {
    flex-direction: column;
    gap: 4px;
  }
}

/* FIX SLIDER OVERLAY */
.carousel-item::before {
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.05)
  );
}
/* ================= FIX SERVICE-2 (FASILITAS) ================= */

.service-2 .row {
  display: flex;
  flex-wrap: wrap;
}

/* JARAK ANTAR CARD */
.service-2 .col-lg-4 {
  padding: 12px;
}

/* CARD */
.facility-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;

  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.1);
}

/* IMAGE FIX */
.facility-img {
  height: 220px;
  overflow: hidden;
}

.facility-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTENT */
.facility-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* BUTTON */
.btn-detail {
  margin-top: auto;
}

/* MOBILE */
@media (max-width: 768px) {
  .facility-img {
    height: 180px;
  }
}