/* ==========================================================================
   1. VARIABEL GLOBAL & THEME (SARI ASIH COLOR PALETTE)
   ========================================================================== */
:root {
    --primary-color: #066d5c;    /* Hijau Teal Utama */
    --primary-hover: #044d41;    /* Hijau Gelap Saat Hover */
    --secondary-color: #10b981;  /* Hijau Aksen Terang */
    --accent-color: #ffc107;     /* Kuning/Emas CTA */
    --dark-color: #0f172a;       /* Teks Gelap/Header */
    --light-color: #f8fafc;      /* Latar Belakang Terang */
    --text-muted: #64748b;       /* Teks Abu-abu */
}

/* ==========================================================================
   2. RESET STYLES & BASE LAYOUT
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   3. HELPER CLASSES
   ========================================================================== */
.bg-primary-custom { 
    background-color: var(--primary-color) !important; 
}

.text-primary-custom { 
    color: var(--primary-color) !important; 
}

/* ==========================================================================
   4. TOP BAR INFORMATION
   ========================================================================== */
.top-bar {
    background-color: var(--primary-color);
    font-size: 0.85rem;
}

.top-bar .phone-link {
    color: var(--accent-color) !important;
    text-decoration: none;
    font-weight: 700;
}

.top-bar .btn-top-login {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 3px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.top-bar .btn-top-login:hover {
    background: #ffffff;
    color: var(--primary-color);
}

/* ==========================================================================
   5. NAVBAR & NAVIGATION MENU
   ========================================================================== */
.main-navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.navbar-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #334155 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.show {
    color: var(--primary-color) !important;
    background-color: #f1f5f9;
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 0.5rem;
}

.dropdown-item {
    font-weight: 500;
    border-radius: 6px;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

/* ==========================================================================
   6. HERO CAROUSEL / SLIDER BANNER
   ========================================================================== */
.hero-section {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    background-color: var(--primary-color);
}

.hero-image-wrapper img {
    height: 460px;
    object-fit: cover;
    opacity: 0.88;
}

.carousel-caption-custom {
    background: rgba(6, 109, 92, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 1.5rem;
    bottom: 20%;
    left: 8%;
    max-width: 550px;
}

.hero-fallback {
    min-height: 380px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

/* ==========================================================================
   7. SEKSI SPESIALISASI KAMI
   ========================================================================== */
.specialty-section {
    background-color: #ffffff;
}

.specialty-badge-icon {
    display: inline-block;
    width: 6px;
    height: 18px;
    background-color: #007a5e;
    border-radius: 2px;
}

.specialty-title {
    color: #007a5e;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
}

.hover-arrow {
    transition: transform 0.2s ease;
}

.hover-arrow:hover {
    transform: translateX(4px);
    color: #004d3b !important;
}

/* Card Styling Minimalis Warna Putih dengan Rounded Corners */
.card-specialty {
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
}

.card-specialty:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 122, 94, 0.1) !important;
    border-color: #cbd5e1;
}

.icon-specialty {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-specialty img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.title-specialty {
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.card-specialty:hover .title-specialty {
    color: #007a5e;
}

/* ==========================================================================
   8. SECTION TENTANG RUMAH SAKIT
   ========================================================================== */
.section-title h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

.about-description {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
}

/* ==========================================================================
   9. SEKSI MITRA & KERJA SAMA (LOGO MITRA)
   ========================================================================== */
.partner-logo-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.partner-logo-wrapper {
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    min-width: 120px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.partner-logo-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.partner-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   10. SCROLL TO TOP & FOOTER
   ========================================================================== */
.btn-scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    display: none;
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-scroll-top:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

.footer-section {
    background-color: #0f172a !important;
}

/* ==========================================================================
   11. MEDIA QUERIES (RESPONSIVE MOBILE)
   ========================================================================== */
@media (min-width: 992px) {
    .partner-logo-container {
        justify-content: flex-end;
    }
}

@media (max-width: 767.98px) {
    .hero-image-wrapper img {
        height: 260px;
    }

    .specialty-title {
        font-size: 1.6rem;
    }

    .card-specialty {
        padding: 0.85rem !important;
        min-height: 110px;
        border-radius: 12px;
    }

    .icon-specialty {
        height: 40px;
        margin-bottom: 0.5rem !important;
    }

    .icon-specialty img {
        max-height: 36px;
    }

    .title-specialty {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   SEKSI PROMO KESEHATAN (UTUH & PROPORSIONAL)
   ========================================================================== */
.promo-box {
    width: 100%;
    height: 220px; /* Batas tinggi box promo */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    padding: 6px;
}

.promo-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* MENCEGAH GAMBAR TERPOTONG */
    display: block !important;
    margin: 0 auto !important;
    transition: transform 0.3s ease;
}

.card-promo:hover .promo-img {
    transform: scale(1.05);
}

/* Styling teks */
.card-promo .card-title {
    font-size: 0.95rem;
    line-height: 1.3;
}

.card-promo .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
}


/* Mega Menu Configuration Layanan*/
@media (min-width: 992px) {
    .nav-item.dropdown-mega {
        position: static !important;
    }

    .nav-item.dropdown-mega .dropdown-menu {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: 100% !important;
        border: none !important;
        border-radius: 0 0 16px 16px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
        padding: 25px 30px !important;
    }
}

.mega-menu-title {
    color: var(--primary-color, #066d5c);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li a {
    display: block;
    padding: 6px 0;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mega-menu-list li a:hover {
    color: var(--primary-color, #066d5c);
    transform: translateX(4px);
}

/* ============================================================
   FLOATING SOCIAL MEDIA BUTTONS (WA, INSTAGRAM & TIKTOK)
   ============================================================ */

/* Container Utama Floating Buttons (Kiri Bawah) */
.floating-social-container {
    position: fixed !important;
    bottom: 25px !important;
    left: 25px !important;
    display: flex !important;
    flex-direction: column !important; /* Menumpuk tombol vertikal (WA atas, IG tengah, TikTok bawah) */
    gap: 12px !important;              /* Jarak antar tombol */
    z-index: 999999 !important;        /* Memastikan tombol selalu melayang di paling depan */
}

/* Base Style untuk Semua Tombol Melayang */
.floating-btn {
    width: 60px !important;
    height: 60px !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.3s ease, background-color 0.3s ease !important;
    text-decoration: none !important;
    font-size: 28px !important;
}

/* Efek Hover Membesar */
.floating-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}

/* Color Style: WhatsApp (Hijau Official) */
.btn-wa {
    background-color: #25D366 !important;
}

.btn-wa:hover {
    background-color: #128C7E !important;
}

/* Color Style: Instagram (Gradient Official) */
.btn-ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

/* Color Style: TikTok (Hitam Official) */
.btn-tt {
    background-color: #000000 !important;
}

.btn-tt:hover {
    background-color: #222222 !important;
}

/* Memastikan elemen SVG di dalam tombol dirender dengan benar */
.floating-btn svg {
    display: block !important;
    margin: auto !important;
}

/* ============================================================
   NAVIGASI SCROLL TOP (Kanan Bawah)
   ============================================================ */

/* Tombol Scroll Top tetap di Sudut Kanan Bawah agar tidak bentrok */
.btn-scroll-top {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 99999 !important;
}

/* Smooth Scroll Seluruh Halaman */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Offset penyesuaian header fixed */
}

/* sticki berita lainnya */
/* Sesuaikan nilainya agar lebih turun ke bawah navbar */
.col-lg-4 .card {
    position: sticky;
    top: 130px; 
    z-index: 10;
}

