.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80");
    background-size: cover;
    background-position: center;
    height: 500px;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-section-dokter {
    background-color: #ef4444;
    color: #fff;
    padding-top: 80px;
    padding-bottom: 20px;
    text-align: center;
}

.hero-section-pendaftaran {
    background-color: #ef4444;
    color: #fff;
    padding-top: 80px;
    padding-bottom: 1px;
    text-align: center;
}

.hero-section h1 {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 42px;
}

.service-card:hover {
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-card {
    border-left: 5px solid #ef4444;
}

.testimonial-card .rating-stars {
    color: #ffc107; /* Warna kuning untuk bintang */
}
.testimonial-card .patient-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.footer {
    background-color: #2c3e50;
    color: white;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

/* Navbar Default */
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3); /* Opacity 30% */
}

/* Navbar ketika sudah di-scroll */
.navbar.scrolled {
    background-color: rgba(220, 38, 38, 1); /* Opacity 100% */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar {
    transition: all 0.3s;
}

.sidebar-collapsed {
    width: 80px;
}

.sidebar-collapsed .nav-link-text {
    display: none;
}

.sidebar-collapsed .logo-text {
    display: none;
}

.sidebar-collapsed .nav-link {
    justify-content: center;
}

.main-content {
    margin-left: 250px;
    transition: all 0.3s;
    min-height: 100vh;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.main-content-collapsed {
    margin-left: 80px;
}

.active-nav {
    background-color: rgba(220, 38, 38, 1);
    color: white !important;
}

.table-responsive {
    overflow-x: auto;
}

.availability-day {
    background-color: #e0f2fe;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

/* ~~~~~~~~~~~~~~~~~~~~~ STYLE DAFTAR DOKTER ~~~~~~~~~~~~~~~~~~~~~ */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    /* Warna dari .main-content */
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-buttons .btn {
    padding: 8px 16px;
    border: 1px solid #fff;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 10px;
    color: #fff;
    background-color: transparent;
}

.header-buttons .btn.btn-primary {
    background-color: #f58220;
    border-color: #f58220;
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.search-box {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    max-width: 800px;
    margin: 0 auto;
}

.search-box input {
    border: none;
    padding: 10px;
    font-size: 16px;
    flex-grow: 1;
    outline: none;
    color: #333;
}

.search-box button {
    background-color: #f58220;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

/* Button Dashboard */
.btn-merah {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
}

.btn-merah:hover {
    background-color: #dc2626 !important; /* lebih gelap saat hover */
    border-color: #dc2626 !important;
    color: #fff !important;
}

/* footer */
.social-links ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.social-links li {
    margin-right: 1rem;
    white-space: nowrap;
}

/* ================== SCROLL STYLES ================== */
#services .row {
    scrollbar-width: thin;
}
#services .row::-webkit-scrollbar {
    height: 8px;
}
#services .row::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 4px;
}

#gallery-scroll {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#gallery-scroll .card {
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

#gallery-scroll .card:hover {
    transform: scale(1.01);
}

/* STYLE LOGIN */
.bg-pulse {
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0% {
        background-color: #fef2f2;
    }

    /* red-50 */
    25% {
        background-color: #fee2e2;
    }

    /* red-100 */
    50% {
        background-color: #ffe4e6;
    }

    /* rose-100 */
    75% {
        background-color: #fce7f3;
    }

    /* pink-100 */
    100% {
        background-color: #fef2f2;
    }
}

.input-focus:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    /* red-500 */
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .main-content-area {
        flex-direction: column;
        padding: 20px 0;
    }

    .filters {
        width: 100%;
        margin-bottom: 20px;
    }

    .features {
        flex-direction: column;
        gap: 10px;
    }

    .search-box {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .search-box input {
        width: 100%;
    }

    .search-box button {
        width: 100%;
    }

    .hero-section-dokter h1 {
        font-size: 26px;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .booking-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .info-item {
        justify-content: center;
    }

    #testimonials .row {
        display: flex;
        flex-wrap: nowrap; /* Jangan pindah ke bawah */
        overflow-x: auto; /* Scroll horizontal */
        gap: 1rem; /* Jarak antar card */
        padding-bottom: 1rem; /* Biar ada space di bawah scrollbar */
    }

    #testimonials .col-lg-4 {
        flex: 0 0 auto; /* Jangan mengecil otomatis */
        width: 80%; /* Lebar card di mobile (bisa 70–90%) */
    }
}
