/* =====================================================
   MOBILE.CSS â€” FINAL (ANTI GAGAL)
   Berlaku untuk:
   - Header
   - Semua Poli
   - Laboratorium
   Target: â‰¤ 768px
===================================================== */

@media (max-width: 768px) {

/* =========================
   FIX WARNA LOGO HEADER (MOBILE)
========================= */
.logo a,
.logo a:visited,
.logo a:hover,
.logo a:active {
  color: #ffffff !important;
  text-decoration: none;
}

  /* =========================
     GLOBAL MOBILE
  ========================= */
  body {
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
  }

  /* =========================
     HEADER & NAVIGATION
  ========================= */
  header {
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  .navbar {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo a {
    font-size: 15px;
    font-weight: 700;
  }

  /* Hamburger (MOBILE ONLY) */
  .hamburger {
    display: block;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
  }

  /* Menu utama */
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #008000;
    padding: 10px 0;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .menu li a,
  .menu-link {
    padding: 14px 20px;
    font-size: 16px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .menu-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* =========================
     SUBMENU (ACCORDION)
  ========================= */
  .arrow {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s;
  }

  .dropdown .mega-menu {
    display: none;
    position: static;
    background: #006400;
    padding: 5px 0;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    pointer-events: auto;
  }

  .dropdown.active > .mega-menu {
    display: block;
  }

  .dropdown.active > .menu-link .arrow {
    transform: rotate(45deg);
  }

  .mega-menu a {
    display: block;              /* FIX: sebelumnya 'display: active' (invalid) */
    padding: 12px 30px;
    font-size: 14px;
    color: #fff;
  }

  /* Nonaktifkan hover desktop (agar tidak bentrok di mobile) */
  .dropdown:hover .mega-menu {
    display: none;               /* FIX: sebelumnya 'display: block' (malah mengaktifkan hover) */
  }

  /* =========================
     ALASAN MEMILIH PELAYANAN
  ========================= */
  .reasons {
    padding: 50px 20px;
    background: #f8faff;
  }

  .reasons h2 {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .reason-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

  .reason-item {
    padding: 18px;
    border-radius: 12px;
    text-align: left;
  }

  .reason-item i {
    font-size: 32px;
    min-width: 45px;
  }

  .reason-item h3 {
    font-size: 15px;
  }

  .reason-item p {
    font-size: 14px;
    line-height: 1.2;
  }

  /* =========================
     HERO (SEMUA POLI & LAB)
  ========================= */
  .poli-page .hero,
  .tentang-kami-page .hero {
    height: 48vh;
    padding: 0 22px;
    text-align: center;
    align-items: center;
  }

  .poli-page .hero h1,
  .tentang-kami-page .hero h1 {
    font-size: 25px;
    line-height: 1.5;
  }

  .poli-page .hero p,
  .tentang-kami-page .hero p {
    font-size: 15px;
  }

  /* =========================
     SECTION & CONTENT
  ========================= */
  .poli-page .section,
  .tentang-kami-page .section {
    padding: 11px 22px 50px;
  }
.tentang-kami-page .section p{
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
    color: #000000;
}
  .poli-page .card-container,
  .tentang-kami-page .card-container {
    grid-template-columns: 1fr;
    padding: 0 20px 30px;
  }

  /* =========================
   VISI MISI MOBILE
========================= */
@media (max-width: 768px){

    .tentang-kami-page .visi-misi{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .tentang-kami-page .box{
        min-width: unset;
        padding: 20px  10px;
        border-radius: 18px;
    }

    .tentang-kami-page .box h3{
        font-size: 15px;
    }

    .tentang-kami-page .box p,
    .tentang-kami-page .box li{
        font-size: 12px;
        text-align: center;
        line-height: 1.3;
    }

}
 /* =========================
   DOKTER
========================= */
.poli-page .doctor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 15px;
}

.poli-page .doctor-card {
    padding: 18px 12px;
    border-radius: 18px;
}

.poli-page .doctor-card img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 50%;
}

.poli-page .doctor-card h3 {
    font-size: 14px;
    line-height: 1.4;
}

.poli-page .doctor-card p {
    font-size: 12px;
}

/* =========================
   CTA
========================= */
.poli-page .cta,
.tentang-kami-page .cta {
    margin: 25px 15px;
    padding: 30px 20px;
}

.poli-page .cta a,
.tentang-kami-page .cta a {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

/* =========================
   PREMIUM MOBILE CARD
========================= */
@media (max-width: 768px){

    .tentang-kami-page .grid{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .tentang-kami-page .card{
        background: #fff;
        padding: 10px 10px;
        border-radius: 25px;
        text-align: center;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        transition: 0.3s ease;
    }

    .tentang-kami-page .profile-img{
        width: 78px;
        height: 78px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #00c865;
        margin-bottom: 10px;
    }

    .tentang-kami-page .card h3{
        font-size: 12px;
        font-weight: 700;
        line-height: 1.5;
        color: #111;
    }

    .tentang-kami-page .card p{
        font-size: 12px;
        text-align: center;
        color: #666;
        margin-top: 4px;
    }

}
/* =========================
   MAPS & FOOTER
========================= */
.poli-page .maps iframe,
.laboratorium-page .maps iframe,
.konsultasi-page .maps iframe,
.vaksin-page .maps iframe {
    height: 260px;
}

.footer {
    padding: 40px 20px;
    text-align: center;
}