/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* SMOOTH SCROLL */
html {
    scroll-behavior: smooth;
}

*{margin:0;padding:0;box-sizing:border-box;font-family:'Poppins',sans-serif}

/* === NAVBAR === */
header {
  background: #008000; /* hijau */
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 50px;
}

.logo h1 {
  font-size: 20px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.menu li a:hover,
.menu li a.active {
  color: #ffffff;  /* putih */
}

/* === MEGA MENU (AUTO SHOW ON HOVER) === */
.dropdown {
  position: relative;
}

/* Default: hidden */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #008000;         /* Hijau */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  border-top: 3px solid #ffc107;
  border-radius: 6px;
  
  opacity: 0;               /* Hidden */
  visibility: hidden;       /* Hidden */
  transition: all 0.35s ease;
  z-index: 999;
}


/* === SHOW SAAT HOVER MENU === */
@media (max-width: 768px) {
  .mega-menu {
    display: block;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;

    max-height: none;   /* SELALU TERBUKA */
    overflow: visible;
    padding: 8px 12px;  /* biar kecil & rapi */
  }
}

  .dropdown.active .mega-menu {
    max-height: 500px;        /* cukup untuk 3 klinik */
  }

}

.dropdown-toggle {
  -webkit-tap-highlight-color: rgba(255,255,255,0.2);
}


.arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.dropdown-toggle .arrow {
  pointer-events: none;
  transition: transform 0.3s ease;
}

.dropdown.active .arrow {
  transform: rotate(180deg);
}


/* === Kolom Mega Menu === */
.menu-column {
  flex: 1;
  min-width: 80px;
  border-right: 1px solid #eee;
}

.menu-column:last-child {
  border-right: none;
}

.menu-column {
  text-align: center;
}

.menu-column h3 {
  color: #ffc107;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid #ffc107;
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.menu-column a {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  padding: 1px 1;
  transition: color 0.3s, transform 0.2s;
}

.menu-column a:hover {
  color: #007bff;
  transform: translateX(4px);
}

/* Custom khusus dropdown Klinik Kami (lebih lebar) */
.dropdown:nth-child(2) .mega-menu {
  min-width: 700px;
}

@media (max-width: 768px) {
  .dropdown:nth-child(2) .mega-menu {
    min-width: auto;
    width: 100%;
  }
}


/* === RESPONSIVE === */
@media (max-width: 900px) {
  .mega-menu {
    flex-direction: column;
    width: 100%;
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .menu-column {
    width: 100%;
    border: none;
    padding: 10px 0;
  }
}

/* === SLIDER PREMIUM === */
.slider {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 85vh;
  background: #000;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1.5s ease;
  display: none;
}

.slide.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
}

/* CAPTION */
.caption {
  position: absolute;
  bottom: 18%;
  left: 10%;
  color: #fff;
  animation: fadeUp 1.2s ease;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.caption h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-shadow: 0 4px 12px rgba(0,0,0,.4);
}

.caption p {
  font-size: 18px;
  max-width: 600px;
  line-height: 1.6;
  text-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* NEXT & PREV */
.controls span {
  position: absolute;
  top: 45%;
  font-size: 45px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  transition: 0.3s;
  z-index: 50;
}

.prev { left: 30px; }
.next { right: 30px; }

.controls span:hover {
  color: #ffc107;
  transform: scale(1.2);
}

/* DOTS */
.dots {
  position: absolute;
  bottom: 25px;
  width: 100%;
  text-align: center;
  z-index: 30;
}

.dots span {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: #ffffffaa;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: 0.3s;
}

.dots span.active {
  background: #ffc107;
  transform: scale(1.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .caption h2 { font-size: 26px; }
  .caption p { font-size: 14px; max-width: 90%; }
  .prev, .next { font-size: 30px; top: 50%; }
  .slider { height: 60vh; }
}

/* HERO */
.hero {
    background: url('akre.jpg') center/cover no-repeat;
    padding: 120px 20px;
    text-align: center;
    color: white;
    position: relative;
    animation: zoomFade 1.5s ease;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

/* CONTAINER */
.container {
    width: 85%;
    margin: 40px auto;
}

/* SECTION */
.tentang-kami-page .section, .intro {
    margin-bottom: 40px;
}

h2 {
    margin-bottom: 15px;
    font-size: 28px;
    color: #008542;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

/* line under title */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #008542;
    border-radius: 2px;
    animation: fadeIn 1.2s ease;
}

p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* CABANG */
.tentang-kami-page .branch-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: 0.4s ease;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.tentang-kami-page .branch-card:hover {
    transform: translateY(-8px);
    background: #eaffea;
    box-shadow: 0 10px 25px rgba(0, 128, 66, 0.15);
}

.tentang-kami-page .branch-card h3 {
    color: #007236;
}

/* SERVICES */
.tentang-kami-page .services ul {
    margin-top: 10px;
    padding-left: 20px;
}

.tentang-kami-page .services ul li {
    margin-bottom: 5px;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomFade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.tentang-kami-page .fade-in {
    animation: fadeIn 1s ease forwards;
}

.tentang-kami-page .fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

.tentang-kami-page .fade-up {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.tentang-kami-page .zoom-fade {
    opacity: 0;
    animation: zoomFade 1.2s ease forwards;
}


/* === FOOTER === */
.footer {
  background: #0b0830;
  color: #ddd;
  padding: 60px 40px 20px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-column h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-column p {
  font-size: 14px;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 10px;
}

/* Logo kecil di bawah kolom Tentang Kami */
.footer-logos img {
  width: 50px;
  height: auto;
  margin-right: 10px;
  opacity: 0.8;
  transition: 0.3s;
}

.footer-logos img:hover {
  opacity: 1;
}

/* Subscribe form */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscribe-form input {
  padding: 10px;
  border: none;
  border-radius: 4px;
  outline: none;
}

.subscribe-form button {
  background: #5145ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.subscribe-form button:hover {
  background: #3a2df8;
}

/* Terbaru */
.latest-post {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.latest-post img {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  object-fit: cover;
}

.latest-post a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.latest-post a:hover {
  color: #ffc107;
}

.latest-post p {
  font-size: 12px;
  color: #aaa;
  margin: 3px 0 0;
}

/* Footer bawah */
.footer-bottom {
  border-top: 1px solid #2b275a;
  padding-top: 15px;
  text-align: center; /* ini yang membuat tulisan ke tengah */
  font-size: 13px;
  color: #bbb;
}

.footer-bottom .footer-links {
  text-align: center;
  margin-top: 8px;
}


.footer-bottom {
  grid-column: 1 / -1 !important;   /* Ambil seluruh lebar grid footer */
  width: 100%;
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
}


.footer-bottom a:hover {
  color: #ffc107;
}

/* === RESPONSIVE === */
@media(max-width:768px){
  .navbar{flex-direction:column;align-items:flex-start;padding:12px 25px}
  .menu{flex-direction:column;width:100%;gap:15px}
  .mega-menu{flex-direction:column;width:100%;position:static;box-shadow:none}
  .menu-column{width:100%;margin-bottom:20px}
}

/* === ANTI COPY / ANTI SELECT === */
body {
    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;     
    user-select: none;         
}