/* =========================================
   1. SETUP GLOBAL & VARIABLES
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #00a896; /* Hijau Medis Modern */
    --secondary-color: #028090; /* Biru Laut Dalam */
    --accent-color: #f0fdf4; /* Background lembut */
    --text-dark: #1e293b;
    --text-grey: #64748b;
    --rs-teal: #00a896;       /* Hijau Tosca Utama */
    --rs-teal-dark: #008f7e;  /* Hijau Tosca Gelap (Hover) */
    --rs-red: #e63946;        /* Merah Aksen (Urgent/Button) */
    --rs-bg-light: #f4fbfb;   /* Background Kebiruan Pudar */
}

body {
    padding-top: 0 !important; 
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #f8f9fa;
    overflow-x: hidden;
    padding-bottom: 70px; /* Jaga jarak untuk Navbar Bawah di Mobile */
}

/* =========================================
   2. NAVBAR & NAVIGATION (MODERN, CLEAN & RESPONSIVE)
========================================= */
.navbar-custom {
    position: sticky; 
    top: 0; 
    width: 100%;
    z-index: 1050 !important;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 8px 0;
    transition: all 0.25s ease;
}

.navbar-custom.scrolled {
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Navbar Brand */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-right: 1.25rem;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand .rs-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.navbar-brand:hover .rs-logo-img {
    transform: scale(1.03);
}

.navbar-brand .brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rs-teal);
    letter-spacing: -0.2px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Nav Item & Nav Link Base */
.navbar-custom .navbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 0;
}

.navbar-custom .nav-item {
    flex-shrink: 0;
}

.navbar-custom .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #334155 !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    border-radius: 6px;
    white-space: nowrap !important;
    transition: color 0.15s ease, background-color 0.15s ease;
    position: relative;
    text-decoration: none;
}

.navbar-custom .nav-link:hover {
    color: var(--rs-teal) !important;
    background-color: rgba(0, 168, 150, 0.06);
}

/* Active State on Desktop */
@media (min-width: 992px) {
    .navbar-custom .nav-link.active {
        color: var(--rs-teal) !important;
        font-weight: 600;
        background: transparent !important;
    }

    .navbar-custom .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 1px;
        left: 10px;
        right: 10px;
        height: 2.5px;
        background: var(--rs-teal);
        border-radius: 2px;
        display: block !important;
        width: auto !important;
    }
}

/* Matikan garis bawah lama yang rapuh */
.navbar-nav .nav-link::after {
    display: none !important;
}

/* Custom Dropdown Arrow */
.navbar-custom .nav-link.dropdown-toggle::after {
    display: none !important; /* Hide default triangle caret */
}

.navbar-custom .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    opacity: 0.65;
    vertical-align: middle;
}

.navbar-custom .nav-item.dropdown:hover .dropdown-arrow,
.navbar-custom .nav-item.dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown Menu (Clean Modern Card) */
.navbar-custom .dropdown-menu {
    z-index: 1060 !important;
    margin-top: 6px !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 6px;
    min-width: 220px;
    background: #ffffff;
}

.navbar-custom .dropdown-item {
    font-size: 0.86rem;
    font-weight: 500;
    color: #334155;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.navbar-custom .dropdown-item i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    color: var(--rs-teal);
    background-color: rgba(0, 168, 150, 0.07);
}

.navbar-custom .dropdown-item.active {
    background-color: rgba(0, 168, 150, 0.1);
    color: var(--rs-teal) !important;
    font-weight: 600;
}

.navbar-custom .dropdown-divider {
    margin: 4px 0;
    border-color: rgba(0, 0, 0, 0.06);
}

/* Hover-to-open on Desktop */
@media (min-width: 992px) {
    .navbar-custom .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        animation: navDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

@keyframes navDropdownFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Emergency IGD Button */
.btn-emergency-modern,
.btn-emergency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 7px 14px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
}

.btn-emergency-modern:hover,
.btn-emergency:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(220, 38, 38, 0.4);
}

.btn-emergency-modern:active,
.btn-emergency:active {
    transform: scale(0.97);
}

.btn-emergency-modern i,
.btn-emergency i {
    font-size: 0.88rem;
}

/* Modern Mobile Toggler */
.modern-toggler {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 168, 150, 0.08);
    color: var(--rs-teal);
    transition: all 0.2s ease;
}

.modern-toggler:hover,
.modern-toggler:focus {
    background: rgba(0, 168, 150, 0.15);
    outline: none;
    box-shadow: none;
}

.modern-toggler .navbar-toggler-icon {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300a896' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Penyesuaian Ruang Layar Laptop Menengah (992px - 1180px) */
@media (min-width: 992px) and (max-width: 1180px) {
    .navbar-brand {
        margin-right: 0.6rem;
    }
    .navbar-brand .brand-title {
        font-size: 1.05rem;
    }
    .navbar-brand .rs-logo-img {
        height: 34px;
    }
    .navbar-custom .navbar-nav {
        gap: 1px;
    }
    .navbar-custom .nav-link {
        font-size: 0.82rem;
        padding: 6px 7px !important;
    }
    .btn-emergency-modern,
    .btn-emergency {
        padding: 6px 10px;
        font-size: 0.8rem;
        gap: 4px;
    }
}

/* [FIX BUG 2] Marquee Background jadi Warna Tema */
.top-info-bar {
    position: relative;
    z-index: 1055;
    display: block;
    background-color: var(--secondary-color) !important; /* Fix warna hitam */
    color: white !important;
    padding: 8px 0;
    font-size: 0.9rem;
}
.top-info-bar a { color: white; text-decoration: underline; }

/* =========================================
   3. HERO SECTION
========================================= */
.hero-section {
    position: relative;
    height: 85vh; /* Tinggi default desktop */
    background: url('../images/gedung.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-grey);
    margin-bottom: 30px;
}

/* [FIX BUG 1] Pastikan Form Cari Dokter Selalu Muncul */
.search-doctor-form {
    position: relative;
    z-index: 10;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 20px;
    display: block !important; /* Paksa muncul */
}

/* =========================================
   4. COMPONENT STYLING
========================================= */

/* Cards General */
.hover-card {
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}
.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 168, 150, 0.15) !important;
    border-color: var(--primary-color);
}

/* Doctor Cards */
.doctor-img-wrapper {
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}
.doctor-card img {
    transition: transform 0.5s ease;
}
.doctor-card:hover img {
    transform: scale(1.05);
}
.doctor-schedule {
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(2px);
}
.doctor-card:hover .doctor-schedule {
    opacity: 1 !important;
}

/* Logo Mitra */
.grayscale-logo {
    filter: grayscale(100%);
    transition: all 0.3s;
    cursor: pointer;
}
.grayscale-logo:hover {
    filter: grayscale(0%);
    opacity: 1 !important;
}

/* News Card */
.object-fit-cover {
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hover-card:hover .object-fit-cover {
    transform: scale(1.1);
}
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Section Stats */
.section-stats {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

/* [FIX BUG 4] Google Maps Error / Hilang */
.map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    border-radius: 15px;
    background: #eee; /* Placeholder bg jika loading */
}
.map-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    min-height: 300px; /* Tinggi minimum di mobile */
}

/* =========================================
   5. COMPLEX COMPONENTS (Timeline, Pricing, Rating)
========================================= */

/* Timeline CSS */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0; bottom: 0; left: 50%;
    margin-left: -3px;
    border-radius: 5px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px; height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--secondary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.left { left: 0; }
.right { left: 50%; }
.left::before {
    content: " "; height: 0; position: absolute;
    top: 28px; width: 0; z-index: 1; right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}
.right::before {
    content: " "; height: 0; position: absolute;
    top: 28px; width: 0; z-index: 1; left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}
.right::after { left: -16px; }

/* Pricing Card */
.section-pricing {
    background-color: var(--rs-bg-light);
    position: relative;
}
.pricing-card {
    border: none;
    border-radius: 16px;
    background: #fff;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 168, 150, 0.15);
}
.pricing-header { padding: 30px 20px 10px; text-align: center; }
.package-name {
    color: #2c3e50; font-weight: 800; font-size: 1.2rem;
    margin-bottom: 5px; letter-spacing: 0.5px;
}
.price-tag {
    color: var(--rs-teal); font-weight: 800;
    font-size: 2.5rem; line-height: 1;
}
.currency { font-size: 1rem; font-weight: 600; vertical-align: super; opacity: 0.7; }
.price-strike {
    color: #95a5a6; text-decoration: line-through;
    font-size: 0.9rem; font-weight: 500;
}
.pricing-features {
    padding: 20px 30px; list-style: none; margin: 0; text-align: left;
    flex-grow: 1; /* Agar tombol selalu rata bawah */
}
.pricing-features li {
    padding-bottom: 12px; color: #555;
    font-size: 0.95rem; display: flex; align-items: center;
}
.pricing-features li i {
    color: var(--rs-teal); margin-right: 10px; font-size: 1.2rem;
}
.btn-pricing {
    background: linear-gradient(45deg, var(--rs-red), #ff6b6b);
    border: none; color: white; padding: 12px 30px;
    border-radius: 50px; font-weight: 700; width: 80%;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transition: all 0.3s;
    align-self: center; /* Center button in flex container */
}
.btn-pricing:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
    color: white;
}
.popular-badge {
    position: absolute; top: 20px; right: -35px;
    background: var(--rs-teal); color: white;
    width: 120px; text-align: center;
    transform: rotate(45deg); font-size: 0.7rem;
    font-weight: bold; padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}
.pricing-card.featured { border: 2px solid var(--rs-teal); }

/* Visiting Card & Parallax */
.visiting-card {
    background: #fff; border-radius: 12px; padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--rs-teal);
    transition: transform 0.3s;
    height: 100%; /* Equal height */
}
.visiting-card:hover { transform: translateY(-5px); }
.visiting-icon {
    width: 60px; height: 60px;
    background: rgba(0, 168, 150, 0.1);
    color: var(--rs-teal); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 15px;
}
.emergency-parallax {
    background-image: url('https://images.unsplash.com/photo-1587351021759-3e566b9af922?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 80px 0;
}
.emergency-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.9) 0%, rgba(230, 57, 70, 0.7) 100%);
}

/* Rating Stars */
.rating-css .star-icon {
    color: #ddd; font-size: 30px; position: relative;
    display: flex; flex-direction: row-reverse; justify-content: start;
}
.rating-css input { display: none; }
.rating-css label { cursor: pointer; width: 40px; transition: 0.2s; }
.rating-css input:checked ~ label,
.rating-css label:hover,
.rating-css label:hover ~ label { color: #ffc107; }

/* Nav Pills Custom */
.nav-pills-custom {
    background-color: #f1f5f9; padding: 5px;
    border-radius: 50px;
    display: inline-flex; flex-wrap: nowrap;
    overflow-x: auto; max-width: 100%;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.nav-pills-custom::-webkit-scrollbar { display: none; /* Hide scrollbar Chrome/Safari */ }

.nav-pills-custom .nav-item { white-space: nowrap; }
.nav-pills-custom .nav-link {
    color: #64748b; font-weight: 600;
    border-radius: 50px; padding: 10px 25px;
    transition: all 0.3s ease; border: none;
    display: flex; align-items: center;
}
.nav-pills-custom .nav-link:hover {
    color: var(--rs-teal);
    background-color: rgba(0, 168, 150, 0.05);
}
.nav-pills-custom .nav-link.active {
    background-color: #fff; color: var(--rs-teal);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* =========================================
   6. UTILITIES & ANIMATIONS
========================================= */
#backToTop {
    display: none; position: fixed; bottom: 30px; right: 30px;
    z-index: 1050; width: 50px; height: 50px;
    border: none; outline: none;
    background-color: var(--primary-color);
    color: white; cursor: pointer; border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease; font-size: 1.5rem;
}
#backToTop:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Preloader */
#preloader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ffffff; z-index: 9999;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
.loader-container {
    position: relative; width: 120px; height: 120px;
    display: flex; justify-content: center; align-items: center;
}
.spinner-ring {
    position: absolute; width: 100%; height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-right-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}
.spinner-ring::before {
    content: ""; position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 3px solid #f0f0f0; border-radius: 50%;
    z-index: -1;
}
.logo-wrapper img {
    width: 60px; height: auto; object-fit: contain;
    animation: heartbeat 2s infinite ease-in-out;
}
.loading-text {
    margin-top: 20px; font-size: 0.8rem; font-weight: 700;
    letter-spacing: 3px; color: #999;
    animation: blink 1.5s infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes heartbeat {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0,168,150,0)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(0,168,150,0.4)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0,168,150,0)); }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* [FIX BUG 6] Modern Mobile Bottom Nav (Clean & Sticky) */
.mobile-bottom-nav {
    display: none; /* Default hidden di desktop */
}

/* =========================================
   7. RESPONSIVE FIX (MOBILE & TABLET)
========================================= */

/* A. LAYAR TABLET & LAPTOP KECIL (Max 991px) */
@media (max-width: 991px) {
    /* 1. Navbar Mobile Style */
    .navbar-custom {
        padding: 8px 0;
    }

    .navbar-custom .navbar-collapse {
        background: #ffffff;
        padding: 18px 16px;
        border-radius: 16px;
        box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
        margin-top: 12px;
        max-height: 82vh;
        overflow-y: auto;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-custom .navbar-nav {
        align-items: stretch !important;
        gap: 6px;
        width: 100%;
    }

    .navbar-custom .nav-link {
        margin-left: 0 !important;
        padding: 10px 14px !important;
        font-size: 0.95rem;
        border-radius: 10px;
        width: 100%;
        display: flex !important;
        align-items: center;
        gap: 10px;
        border-bottom: none !important;
    }

    .navbar-custom .nav-link .nav-icon {
        font-size: 1.15rem;
        width: 24px;
        text-align: center;
        color: var(--rs-teal);
    }

    .navbar-custom .dropdown-arrow {
        margin-left: auto;
    }

    .navbar-custom .nav-link.active {
        background-color: rgba(0, 168, 150, 0.1) !important;
        color: var(--rs-teal) !important;
        font-weight: 600;
    }

    .navbar-custom .dropdown-menu {
        border: none !important;
        box-shadow: none !important;
        background: #f8fafc;
        border-radius: 10px;
        margin: 4px 0 8px !important;
        padding: 6px;
    }

    .navbar-custom .dropdown-item {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .navbar-custom .nav-cta-item {
        margin-top: 12px !important;
        width: 100%;
    }
    
    .btn-emergency-modern,
    .btn-emergency {
        margin-top: 10px;
        display: inline-flex;
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    /* 2. Hero Section Adjustments */
    .hero-section {
        height: auto !important; /* Tinggi otomatis mengikuti konten */
        min-height: 60vh; /* Minimal setengah layar */
        padding-top: 100px; /* Jarak dari atas (navbar) */
        padding-bottom: 50px;
        background-position: center bottom !important; /* Fokus gambar ke tengah bawah */
        text-align: center; /* Teks rata tengah di tablet/mobile */
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        margin-top: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-left: auto;
        margin-right: auto;
        max-width: 80%; /* Batasi lebar teks agar nyaman dibaca */
    }

    /* 3. Timeline Jadi 1 Kolom Rata Kiri */
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; margin-bottom: 20px; }
    .timeline-item::before { 
        left: 60px; 
        border: medium solid white; 
        border-width: 10px 10px 10px 0; 
        border-color: transparent white transparent transparent; 
    }
    .left::after, .right::after { left: 15px; }
    .right { left: 0%; }
    
    /* 4. Gambar Dokter Responsif */
    .doctor-card {
        margin-bottom: 30px; /* Jarak antar kartu dokter saat stacking */
    }
    
    /* 5. Mobile Navbar Tampil di Mobile */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        z-index: 9999;
        justify-content: space-around;
        padding: 10px 0;
        border-top: 1px solid #f1f1f1;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--text-grey);
        font-size: 0.75rem;
        transition: all 0.3s;
    }
    
    .mobile-nav-item i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .mobile-nav-item.active, 
    .mobile-nav-item:hover {
        color: var(--primary-color);
    }
}

/* B. LAYAR HP (Max 576px) */
@media (max-width: 576px) {
    /* 1. Typography Lebih Kecil */
    h1, .hero-title { font-size: 2rem !important; }
    h2 { font-size: 1.6rem !important; }
    h3 { font-size: 1.3rem !important; }
    
    /* 2. Padding Section Dikurangi */
    section { padding: 40px 0 !important; }
    
    /* 3. Hero Mobile */
    .hero-section {
        padding-top: 120px;
        background-position: 70% center !important; /* Geser background sedikit jika perlu */
    }
    
    /* 4. Card & Grid spacing */
    .col-md-4, .col-lg-3, .col-md-6 {
        margin-bottom: 20px; /* Jarak bawah otomatis untuk kolom bootstrap */
    }
    
    /* 5. Visiting Hours & Pricing Cards */
    .visiting-card, .pricing-card {
        margin-bottom: 15px;
    }
    
    /* 6. Pricing Feature List */
    .pricing-features {
        padding: 15px;
    }
    .pricing-features li {
        font-size: 0.85rem;
    }
    
    /* 7. Footer Center */
    footer { text-align: center; }
    footer .row > div { margin-bottom: 30px; }
    footer .social-links { justify-content: center; display: flex; gap: 10px; }

    /* [FIX BUG 5] Posisi BackToTop di atas Navbar Bawah / WA Button */
    #backToTop {
        bottom: 80px !important; /* Naik ke atas agar tidak ketutup WA/Nav */
        width: 45px;
        height: 45px;
        right: 20px;
    }

    /* [FIX BUG 3] Tombol Lihat Semua Dokter Muncul */
    .btn-see-all-doctors {
        display: block;
        width: 100%;
        margin-top: 10px;
        text-align: center;
        background-color: var(--rs-bg-light);
        color: var(--primary-color);
        padding: 10px;
        border-radius: 8px;
        font-weight: 600;
    }
}

/* =========================================
   8. MOBILE RESPONSIVE FIXES (TAMBAHAN)
   Untuk Memperbaiki Tombol & Form yang Berdempetan di Mobile
========================================= */

@media (max-width: 768px) {
    
    /* 1. Form Spacing Fix */
    .mb-3 {
        margin-bottom: 1.5rem !important; 
    }
    
    .row.g-2 > div, .row.g-3 > div {
        margin-bottom: 10px; 
    }

    /* 2. Button Spacing Fix */
    button[type="submit"], .btn-primary, .btn-success, .btn-danger {
        margin-top: 10px;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 10px !important;
    }

    /* 3. Card Padding */
    .card-body {
        padding: 1.5rem !important; 
    }

    /* 4. Font Sizes */
    h1.display-5 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    /* 5. Navbar Brand Alignment */
    .navbar-brand span {
        font-size: 1rem !important;
    }

    /* 6. Footer Spacing */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* =========================================
   9. UX IMPROVEMENTS (TAMPILAN)
========================================= */

/* Efek Tombol Modern */
.btn {
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.btn:active {
    transform: scale(0.95);
}

/* Form Input Modern */
.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 10px;
}
.form-control:focus {
    box-shadow: 0 0 0 4px rgba(0, 168, 150, 0.1);
    border-color: var(--rs-teal);
}

/* Rounded Cards */
.rounded-4 {
    border-radius: 20px !important;
}