/* Universal Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Custom Colors for Klinik Armina Sakti */
:root {
  --primary-color: #00a884; /* Hijau teal */
  --secondary-color: #2eb872; /* Hijau terang */
  --accent-color: #1a7f64; /* Hijau gelap */
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
}

/* --- FIX: Allow sticky header to work --- */
html, body, .react-wrapper, .react-wrapper-inner {
  overflow: visible !important;
}

body.menu-open {
  overflow: hidden;
}

/* Override primary colors */
.react-btn-border,
.more-about,
.view-courses,
.r__link,
.event__card--link {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.react-btn-border:hover,
.more-about:hover,
.view-courses:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* --- Header Styling (Sticky Fix) --- */
#react-header {
  position: sticky !important;
  top: 0;
  width: 100%;
  z-index: 1001;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Logo Size Fix --- */
.logo img {
  height: 50px !important;
}

.react-main-menu nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.react-inner-menus {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
}

.react-menus {
  flex-shrink: 0;
}

.react-menus li a {
  padding: 30px 15px;
  transition: color 0.3s ease;
}
.react-menus li a:hover {
  color: var(--primary-color);
}

/* =============================================== */
/* --- HAMBURGER ICON OVERRIDE (DEFINITIVE FIX) --- */
/* =============================================== */

header#react-header .menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1002;
}

header#react-header .menu-toggle .icon-bar {
  display: block;
  position: absolute;
  left: 8px;
  width: 28px;
  height: 4px;
  background-color: var(--text-dark) !important;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  transform: rotate(0deg);
  opacity: 1;
}

header#react-header .menu-toggle .icon-bar:nth-of-type(1) {
  top: 10px;
}

header#react-header .menu-toggle .icon-bar:nth-of-type(2) {
  top: 20px;
}

header#react-header .menu-toggle .icon-bar:nth-of-type(3) {
  top: 30px;
}

header#react-header .menu-toggle.back__close .icon-bar:nth-of-type(1) {
  top: 20px;
  transform: rotate(45deg);
}

header#react-header .menu-toggle.back__close .icon-bar:nth-of-type(2) {
  opacity: 0;
}

header#react-header .menu-toggle.back__close .icon-bar:nth-of-type(3) {
  top: 20px;
  transform: rotate(-45deg);
}


@media (max-width: 991px) {
  .react-main-menu nav {
    width: 100%;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .react-inner-menus {
    display: none;
  }

  .react-menus.collapse {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .react-menus.collapse:not(.hide-menu) {
    display: block;
  }

  .react-menus.collapse li a {
    padding: 18px 25px;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: block;
    border-bottom: 1px solid #eee;
  }

  .react-menus.collapse .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    background-color: #f8f9fa;
  }

  .searchbar-part {
    padding: 15px 20px;
    width: 100%;
    border-top: 1px solid #f0f0f0;
  }

  .home-five.banner {
    flex-direction: column;
    text-align: center;
  }
  .home-five.banner .hero {
    position: relative !important;
    width: 100%;
    margin-top: 40px;
    right: 0 !important;
  }
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none !important;
  }
}

/* --- Hero Section Enhancement --- */
.home-five.banner {
  padding: 80px 0 !important; /* Increased padding for better spacing */
  position: relative;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center; /* Center content horizontally */
  text-align: center; /* Center text within the content block */
  min-height: 60vh; /* Give it some minimum height */
}

.home-five.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 168, 132, 0.8), rgba(46, 184, 114, 0.7)), url('assets/images/slider/1.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.home-five.banner .contents {
  padding: 0 15px !important; /* Add some horizontal padding */
  animation: fadeInText 1s ease-in-out;
}

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

.home-five.banner .contents .banner-pretitle {
  color: #fff;
  font-weight: 500;
  font-size: 1.2rem;
  opacity: 0.9;
}

.home-five.banner .contents .banner-title {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.home-five.banner .contents p {
  color: #fff;
  font-size: 1.2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.home-five.banner .hero {
  display: none;
}


.footer-top {
  background: var(--accent-color);
}

.copyright {
  background: #0d5a47;
}

/* Medical theme styling */
.service-icon {
  color: var(--primary-color);
  font-size: 48px;
  margin-bottom: 20px;
}

.health-service-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.health-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.doctor-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-5px);
}

.schedule-table {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.schedule-table table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th {
  background: var(--primary-color);
  color: white;
  padding: 15px;
  text-align: left;
}

.schedule-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.rating-stars {
  color: #ffd700;
}

.cta-appointment {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 60px 0;
  color: white;
  text-align: center;
}

/* --- Button Size Fix --- */
.whatsapp-btn {
  background: #25d366;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: 500;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Fixed Buttons Styling */
.whatsapp-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  width: auto;
  height: auto;
  padding: 15px;
}

#backscrollUp {
  bottom: 90px;
  right: 20px;
  z-index: 998;
  background: var(--primary-color);
}

#backscrollUp span {
  color: white;
}
