/* =====================================================
   POLI UMUM — DESKTOP / GLOBAL CSS (FINAL)
   File : poli_umum.css
   Scope: Desktop & Global (Mobile via override terpisah)
===================================================== */
*{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 a,
.logo a:visited,
.logo a:hover,
.logo a:active {
    color: #ffffff;          /* warna putih seperti sebelumnya */
    text-decoration: none;   /* hilangkan garis bawah */
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;         /* tetap tangan saat hover */
}

.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;
  gap: 30px;
  padding: 20px 40px;
  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 === */
.dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* === Kolom Mega Menu === */
.menu-column {
  flex: 1;
  min-width: 160px;
  border-right: 1px solid #eee;
  padding: 0 15px;
}

.menu-column:last-child {
  border-right: none;
}

.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: 3px 0;
  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;
}

/* =========================
   HAMBURGER DEFAULT (DESKTOP)
========================= */
.hamburger {
  display: none;
}

/* =====================================
   ARROW TOGGLE — DESKTOP (HIDDEN)
===================================== */
.arrow {
  display: none;
}

/* === 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);
}

/* === ABOUT === */
.about{text-align:center;padding:70px 50px;background:#008000;color:#fff}
.about h2{color:#fff;margin-bottom:15px}

/* -------- HERO SUPER CINEMATIC -------- */
.laboratorium-page .hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 80px;
    color: #fff;
}

/* Parallax Layers */
.hero .layer-bg {
    position: absolute;
    inset: 0;
    background: url('poli.jpg') center/cover no-repeat;
    z-index: -3;
    transform: scale(1.1);
    filter: brightness(0.8);
}

.hero .layer-light {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,255,120,0.25), rgba(0,0,0,0.6));
    z-index: -2;
    mix-blend-mode: screen;
}

.hero .layer-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.15));
    z-index: -1;
}

/* Floating Luxury Glow */
.hero .floating-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(0,255,120,0.3), transparent);
    filter: blur(80px);
    animation: floatGlow 5s infinite alternate ease-in-out;
    z-index: 0;
}

@keyframes floatGlow {
    from { transform: translate(0,0); }
    to   { transform: translate(40px,20px); }
}

/* Hero Text */
.poli-umum-page .hero h1 {
    font-size: 45px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 8px 35px rgba(0,0,0,0.6);
    z-index: 3;
}

.poli-umum-page .hero p {
    font-size: 25px;
    margin-top: 10px;
    opacity: 0.95;
    z-index: 3;
}

/* -------- SECTIONS -------- */
.poli-umum-page .section {
    padding: 110px 90px;
}

/* Center the section title */
.poli-umum-page .section h2 {
    font-size: 40px;
    font-weight: 900;
    color: #025c20;
    margin-bottom: 20px;
    position: relative;
    text-align: center;
}
.poli-umum-page .section p {
    font-size: 25px;     /* ubah ukuran teks */
    line-height: 1.7;    /* jarak antar baris */
    color: #333;         /* warna teks */
    text-align: center;  /* kalau mau rata tengah */
    margin-top: 10px;    /* jarak atas */
    max-width: 900px;    /* biar tidak melebar ke pinggir */
    margin-left: auto;   /* untuk center */
    margin-right: auto;  /* untuk center */
}


/*Center the green underline */
.poli-umum-page .section h2::after {
    content: "";
    width: 90px;
    height: 6px;
    background: linear-gradient(90deg, #00ff88, #008437);
    border-radius: 6px;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50px);
}

/* === SECTION: Alasan Memilih Kami === */
.reasons {
  background: #f8faff;
  padding: 80px 0;
  text-align: center;
}

.reasons h2 {
  font-size: 28px;
  color: #0b1541;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-items: center;
  padding: 0 40px;
}

.reason-item {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.reason-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.reason-item i {
  font-size: 45px;
  color: #0b1541;
  min-width: 60px;
}

.reason-item h3 {
  color: #0b1541;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.reason-item p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

/* ===========================================
   POLI UMUM — FULL PAGE SAFE CSS (FINAL)
   Menggunakan prefix .poli-umum-page untuk 
   menghindari bentrok dengan CSS global
=========================================== */

/* RESET untuk halaman ini */
.poli-umum-page * {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.poli-umum-page {
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* ===========================
      HERO SECTION
=========================== */
.poli-umum-page .hero {
  position: relative;
  height: 65vh;
  background: url('tgr.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-left: 60px;
}

.poli-umum-page .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #008000;
}

.poli-umum-page .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 500px;
}

.poli-umum-page .hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.poli-umum-page .hero-content p {
  font-size: 18px;
  color: #e4e4e4;
}

/* ===========================
      SECTION TITLE
=========================== */
.poli-umum-page .section-title {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 700;
  color: #008000;
}

/* ===========================
      CARD LAYANAN
=========================== */
.poli-umum-page .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 25px;
  padding: 0 60px 60px;
}

.poli-umum-page .card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: .3s;
}

.poli-umum-page .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.poli-umum-page .card i {
  font-size: 35px;
  color: #008000;
  margin-bottom: 10px;
}

/* ===========================
      DOKTER SECTION
=========================== */
.poli-umum-page .doctor-section {
  padding: 50px 0;
  background: #ffffff;
}

.poli-umum-page .doctor-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #008000;
  font-weight: 700;
}

.poli-umum-page .doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom */
  gap: 30px;
  justify-items: center;
}

/* Baris kedua (dokter ke-4 & ke-5) berada di tengah */
.poli-umum-page .doctor-card:nth-child(4),
.poli-umum-page .doctor-card:nth-child(5) {

  grid-column: span 1;
}

/* Centering item baris kedua */
.poli-umum-page .doctor-card:nth-child(4){
  grid-column-start: 1; /* pindah ke kolom tengah */
}

.poli-umum-page .doctor-card {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.poli-umum-page .doctor-card:hover {
  transform: translateY(-5px);
}

.poli-umum-page .doctor-card img {
    width: 50%;
    height: auto;            /* ✔ tidak memotong foto */
    object-fit: contain;     /* ✔ seluruh gambar terlihat */
    border-radius: 5px;
    margin-top: 0;
    background: #f4f4f4;     /* opsional, kalau ada area kosong */
    padding: 5px;            /* opsional */
}


.poli-umum-page .doctor-card h3 {
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 600;
}

.poli-umum-page .specialist {
  font-size: 20px;
  color: #555;
}

.poli-umum-page .schedule {
  font-size: 16px;
  margin: 8px 0 15px;
  color: #777;
}

.poli-umum-page .pukul {
  font-size: 14px;
  margin: 8px 0 15px;
  color: #777;
}

/* ===========================
      CTA SECTION
=========================== */
.poli-umum-page .cta {
  background: #ffc107;
  padding: 50px;
  text-align: center;
  margin: 60px 60px;
  border-radius: 10px;
}

.poli-umum-page .cta a {
  background: #0b1541;
  padding: 12px 25px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  margin-top: 15px;
  transition: 0.3s;
}

.poli-umum-page .cta a:hover {
  background: #16205c;
}

/* ===== MAPS ===== */
.poli-umum-page .maps {
  margin: 50px 60px;
}

.poli-umum-page .maps iframe {
  width: 100%;
  height: 320px;
  border-radius: 10px;
}

/* ===== ANIMASI ===== */
.poli-umum-page .fade {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.8s ease-in-out;
}

.poli-umum-page .fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* === 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;
}

.footer-map {
    margin-top: 12px;
}

.footer-map iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 8px;
}