/* =========================================================
   PT GMT HUSADA INDONESIA - MAIN FRONTEND STYLESHEET
   Typography: Plus Jakarta Sans (Modern & Clean)
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- ROOT VARIABLES (Pusat Kendali Warna) --- */
:root {
    --medical-blue: #0A66C2; 
    --medical-dark: #06407a;
    --logo-orange: #F2921C; 
    --orange-soft: #FFF4E6;
    --medical-light: #F4F9FF;
    --text-dark: #2D3748;
    --text-muted: #718096;
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- BASE STYLES & RESPONSIVE MASTER --- */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    color: var(--text-dark); 
    background-color: #FAFAFA;
}

/* Fluid Typography: Teks akan otomatis membesar/mengecil bagaikan karet */
h2, .display-6 { font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem) !important; }
h3 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem) !important; }
h4 { font-size: clamp(1.25rem, 1.5vw + 1rem, 1.75rem) !important; }

/* OPTIMASI LAYAR ULTRAWIDE (PC Monitor Besar 20" - 27") */
@media (min-width: 1400px) {
    .container { max-width: 1320px !important; }
}
@media (min-width: 1600px) {
    .container { max-width: 1500px !important; }
    .gallery-card { min-height: 450px !important; }
}

/* ==========================================
   1. LOGO STYLING
   ========================================== */
.logo-navbar {
    height: 45px;
    width: auto; 
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-brand:hover .logo-navbar {
    transform: scale(1.08) rotate(-3deg);
}

/* ==========================================
   2. NAVBAR GLASSMORPHISM (PREMIUM)
   ========================================== */
.navbar-glass {
    background: rgba(10, 102, 194, 0.9) !important; 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    transition: all 0.3s ease;
}

/* ==========================================
   3. LINK NAVIGASI & EFEK UNDERLINE
   ========================================== */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 2px;
    left: 50%;
    background: linear-gradient(90deg, var(--logo-orange), #FFB75E); 
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover, 
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 70%; 
}

/* ==========================================
   4. DROPDOWN MENU (MODERN CARD) - FIX
   ========================================== */
@media (min-width: 992px) {
    .navbar .dropdown .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        margin-top: 5px !important;
        border-radius: 12px;
        background: #ffffff; 
        box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
        border: 1px solid rgba(0,0,0,0.05);
        padding: 0.5rem;
        pointer-events: none; /* Mencegah bug klik */
    }
    
    .navbar .dropdown .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -15px; 
        left: 0;
        width: 100%;
        height: 15px;
        background: transparent;
    }

    .navbar .dropdown:hover .dropdown-menu,
    .navbar .dropdown .dropdown-menu.show {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto; /* Mengembalikan klik */
    }

    .navbar .dropdown-item {
        border-radius: 8px;
        font-weight: 500;
        color: var(--text-dark); 
        padding: 10px 15px;
        transition: all 0.2s ease;
    }

    .navbar .dropdown-item:hover {
        background: rgba(242, 146, 28, 0.1); 
        color: var(--logo-orange);
        transform: translateX(6px); 
    }
}

/* ==========================================
   5. TOMBOL ADMIN HOVER
   ========================================== */
.btn-admin-hover {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-admin-hover:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(242, 146, 28, 0.5) !important; 
}

/* ==========================================
   6. KUSTOMISASI MOBILE (HP) - FIX
   ========================================== */
@media (max-width: 991px) {
    .navbar-glass {
        background: var(--medical-blue) !important; /* Biru solid di HP */
    }
    
    .navbar-dark .navbar-nav .nav-link::after {
        display: none; 
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar .dropdown-menu {
        border: none;
        background-color: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        margin-top: 10px;
        padding: 10px 0;
    }
    
    .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        padding: 12px 20px;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background-color: transparent;
        color: #FFB75E;
        padding-left: 30px; 
    }
    
    .btn-admin-hover {
        margin-top: 10px;
        width: 100%; 
    }
}

/* --- STATISTIC CARDS SECTION --- */
.text-orange {
    color: #F2921C !important;
}

.backdrop-blur {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.stat-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(242, 146, 28, 0.5) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-label {
    letter-spacing: 1.5px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6) !important;
}

.stat-card i {
    transition: transform 0.3s ease;
}

.stat-card:hover i {
    transform: scale(1.1);
}

/* =========================================================
   ASSET & KOMPONEN LAINNYA
========================================================= */

/* Logo di Hero Section */
.logo-hero {
    height: 130px; 
    width: auto; 
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3)); 
    animation: float-logo 4s ease-in-out infinite; 
}

@keyframes float-logo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- UTILITIES & TYPOGRAPHY --- */
.text-primary { color: var(--medical-blue) !important; }
.bg-primary { background-color: var(--medical-blue) !important; }
.text-orange { color: var(--logo-orange) !important; }
.bg-orange { background-color: var(--logo-orange) !important; }
.bg-medical { background-color: var(--medical-light) !important; }
.bg-orange-soft { background-color: var(--orange-soft) !important; }
.tracking-wide { letter-spacing: 1.5px; }

/* Kustomisasi Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--medical-blue); }

/* Hover di Links Umum */
.hover-orange:hover {
    color: var(--logo-orange) !important;
    padding-left: 5px;
    transition: 0.3s;
}

/* Animasi Slide Down */
.animate.slideIn {
    animation-duration: 0.3s;
    animation-fill-mode: both;
    animation-name: slideIn;
}
@keyframes slideIn {
    0% { transform: translateY(1rem); opacity: 0; }
    100% { transform: translateY(0rem); opacity: 1; }
}

/* --- BUTTONS CUSTOMIZATION --- */
.btn-orange {
    background-color: var(--logo-orange);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: #d97d14;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(242, 146, 28, 0.5);
}

.hover-white:hover {
    color: #fff !important;
    transform: translateX(5px);
    display: inline-block;
    transition: 0.3s;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.float-wa {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.float-wa:hover {
    transform: scale(1.1) translateY(-5px);
    color: #fff;
    animation: none;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- HERO SECTION & STATISTIC CARDS --- */
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: 0.3s;
}
.backdrop-blur:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-5px);
}

/* --- INTERACTIVE CARDS --- */
.card-hover {
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.04);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(10, 102, 194, 0.1), 0 10px 10px -5px rgba(10, 102, 194, 0.04) !important;
    border-color: rgba(10, 102, 194, 0.2);
}

.card-hover:hover .card-img-top {
    transform: scale(1.05);
}

#searchKatalog {
    box-shadow: none !important;
    outline: none !important;
}
#searchKatalog:focus {
    background-color: #F8FAFC !important;
}

/* --- TESTIMONIALS & FAQ --- */
.testimonial-card {
    border-left: 4px solid var(--logo-orange);
    background: #fff;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

.accordion-item {
    border: none;
    border-bottom: 1px solid #E2E8F0;
}
.accordion-item:last-child {
    border-bottom: none;
}
.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background-color: var(--medical-light);
    color: var(--medical-blue);
    font-weight: 700;
}
.accordion-button::after {
    background-size: 1rem;
}
.accordion-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    line-height: 1.7;
}

/* --- ALUR PENDAFTARAN --- */
.step-card {
    transition: var(--transition-smooth);
    text-align: center; /* Setelan standar untuk PC */
}

.step-circle {
    width: 85px;
    height: 85px;
    border: 4px solid var(--medical-light);
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.step-card:hover .step-circle {
    transform: scale(1.15) translateY(-5px);
    border-color: var(--medical-blue);
    box-shadow: 0 15px 25px rgba(10, 102, 194, 0.2);
}

.step-card:hover .step-circle i {
    color: var(--medical-blue) !important;
    transform: scale(1.1);
    transition: 0.3s;
}

/* ==========================================
   PERBAIKAN ALUR PENDAFTARAN (MOBILE ONLY)
   ========================================== */
@media (max-width: 767px) {
    /* Mengubah kartu menjadi tata letak Grid (Ikon Kiri, Teks Kanan) */
    .step-card {
        display: grid !important;
        grid-template-columns: 55px 1fr !important; /* Kolom 1 untuk ikon, kolom 2 untuk teks */
        column-gap: 15px !important;
        align-items: center !important;
        text-align: left !important;
        padding: 20px !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
        margin-bottom: 12px !important;
        transition: all 0.3s ease !important;
        border: 1px solid rgba(0,0,0,0.02) !important;
    }

    /* EFEK INTERAKTIF: Memberi respon saat kartu diklik/disentuh */
    .step-card:active {
        transform: scale(0.96) !important; /* Kartu sedikit menyusut saat ditekan */
        background-color: #f0f7ff !important; /* Warna berubah sedikit biru muda */
        box-shadow: 0 2px 8px rgba(10, 102, 194, 0.1) !important;
    }

    /* Mengecilkan Lingkaran Ikon agar Proporsional */
    .step-circle {
        grid-row: 1 / 3 !important; /* Ikon memakan ruang setinggi judul & deskripsi */
        width: 55px !important;
        height: 55px !important;
        min-width: 55px !important;
        margin: 0 !important; /* Menghilangkan margin otomatis agar ke kiri */
        background: #ffffff !important;
        border: 2px solid rgba(0,0,0,0.03) !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.03) !important;
    }

    /* Mengecilkan Ikon di dalam Lingkaran */
    .step-circle i {
        font-size: 1.3rem !important;
    }

    /* Merapikan Jarak Judul (H5) */
    .step-card h5 {
        font-size: 1.05rem !important;
        margin: 0 0 4px 0 !important;
        color: #0A66C2 !important;
        font-weight: 700 !important;
    }

    /* Merapikan Deskripsi (P) */
    .step-card p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        color: #718096 !important;
    }

    /* Menghilangkan garis putus-putus di mobile agar tidak berantakan */
    .step-connector {
        display: none !important;
    }
}

/* --- GALERI KEGIATAN --- */
.gallery-card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    border: none;
}

.gallery-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.9;
}

.gallery-card:hover img {
    transform: scale(1.08);
    opacity: 1;
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* --- ABOUT SECTION STYLES --- */
.about-img-wrapper {
    position: relative;
    padding: 10px;
}

.about-img-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 6px solid var(--logo-orange);
    border-left: 6px solid var(--logo-orange);
    border-radius: 15px 0 0 0;
    z-index: 0;
}

.about-img-wrapper img {
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.about-img-wrapper:hover img {
    transform: scale(1.02);
}

.about-badge {
    bottom: -30px;
    right: -20px;
    z-index: 2;
    min-width: 200px;
    border-bottom: 5px solid var(--logo-orange);
}

/* ==========================================
   7. FOOTER STYLING (MODERN CORPORATE)
   ========================================== */
.footer-custom {
    background: linear-gradient(135deg, #021B35 0%, #042a4d 100%); 
    border-top: 4px solid var(--logo-orange); 
    position: relative;
}

.logo-footer {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex; 
    align-items: center;
}

.footer-link:hover {
    color: var(--logo-orange);
    transform: translateX(6px); 
}

.social-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05); 
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.social-btn:hover {
    background: var(--logo-orange); 
    color: #fff;         
    transform: translateY(-4px); 
    box-shadow: 0 6px 15px rgba(242, 146, 28, 0.4); 
}

.contact-item {
    display: flex;
    align-items: flex-start; 
    margin-bottom: 1rem;
}

.contact-icon {
    color: var(--logo-orange);
    font-size: 1.1rem;
    margin-right: 12px;
    margin-top: 2px; 
}

@media (max-width: 767px) {
    /* Kecilkan padding kartu di HP agar konten tidak sesak */
    .item-katalog .card-body {
        padding: 12px !important;
    }
    
    /* Kecilkan ukuran judul katalog di HP */
    .item-katalog .card-title {
        font-size: 0.95rem !important;
        margin-bottom: 5px !important;
    }
    
    /* Sesuaikan tinggi gambar agar tidak terlalu panjang */
    .item-katalog .card-img-top {
        height: 140px !important;
    }
    
    /* Sembunyikan deskripsi singkat di HP agar kartu tetap ringkas */
    .item-katalog .card-text {
        display: none !important; 
    }
    
    /* Sesuaikan tombol detail */
    .item-katalog .btn {
        font-size: 0.75rem !important;
        padding: 8px 5px !important;
    }
}

/* --- OPTIMASI 2 KOLOM KATALOG DI HP --- */
@media (max-width: 767px) {
    /* Kecilkan ukuran font judul agar tidak berantakan saat teks panjang */
    .katalog-title {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }

    /* Pastikan gambar/ikon tidak terlalu besar */
    .bg-medical {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .bg-medical i {
        font-size: 1.2rem !important;
    }

    /* Beri sedikit jarak antar baris kartu */
    .row.g-2 {
        --bs-gutter-y: 0.75rem;
    }
}