/**
 * Homepage Styles - Complete Enhanced Version
 * Styles for homepage sections and components
 */

/* ===== HERO SECTION WITH ENHANCED SLIDER ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: transparent;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(30, 64, 175, 0.75), rgba(14, 165, 233, 0.65)); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1.2s ease-out;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 2.5rem 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-actions {
    gap: 1rem;
}

.hero-actions .btn {
    font-size: 1.1rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===== ENHANCED NAVIGATION INDICATORS ===== */
.hero-indicators {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
}

.hero-indicators .indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-indicators .indicator.active {
    background: white;
    border-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.hero-indicators .indicator.active::after {
    transform: translate(-50%, -50%) scale(1);
}

.hero-indicators .indicator:hover:not(.active) {
    border-color: white;
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.3);
}

/* ===== SLIDER NAVIGATION ARROWS ===== */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
    left: 30px;
}

.hero-nav.next {
    right: 30px;
}

/* Sembunyikan counter jika hanya 1 slide */
.hero-counter,
.hero-nav,
.hero-indicators {
    display: none;
}

/* Tampilkan hanya jika ada class 'has-multiple-slides' */
.hero-section.has-multiple-slides .hero-counter,
.hero-section.has-multiple-slides .hero-nav,
.hero-section.has-multiple-slides .hero-indicators {
    display: flex;
}

/* ===== SLIDER COUNTER ===== */
.hero-counter {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.hero-counter .current {
    font-size: 18px;
    font-weight: 700;
}

.hero-counter .separator {
    margin: 0 8px;
    opacity: 0.7;
}

.hero-counter .total {
    opacity: 0.8;
}

/* ===== QUICK ACCESS SECTION ===== */
.quick-access-section {
    position: relative;
    z-index: 10;
    margin-top: -80px;
}

/* Quick Access Scroll Wrapper */
.quick-access-scroll-wrapper {
    position: relative;
    padding: 0 60px;
}

/* Quick Access Scroll Container */
.quick-access-scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.quick-access-scroll-container::-webkit-scrollbar {
    display: none;
}

.quick-access-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f3f4f6;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.quick-access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.quick-access-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(5, 150, 105, 0.15);
    border-color: #d1fae5;
}

.quick-access-card:hover::before {
    transform: scaleX(1);
}

.quick-access-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 24px;
    margin: 0 auto 1.75rem;
    font-size: 2.5rem;
    color: #059669;
    transition: all 0.4s ease;
    position: relative;
}

.quick-access-card .card-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-access-card:hover .card-icon {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.quick-access-card:hover .card-icon::after {
    opacity: 1;
}

.quick-access-card .card-icon i {
    position: relative;
    z-index: 1;
}

.quick-access-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.quick-access-card:hover .card-title {
    color: #059669;
}

.quick-access-card .card-description {
    color: #6b7280;
    font-size: 0.975rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    min-height: 48px;
}

.quick-access-card .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.quick-access-card .btn-primary {
    background: linear-gradient(135deg, #059669, #047857);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.quick-access-card .btn-primary:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.quick-access-card .btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.quick-access-card .btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.service-icon .icon-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.service-icon .icon-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-doctor {
    color: #0ea5e9;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ===== NEW SERVICES SECTION DESIGN ===== */
.services-section-new {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #d1f4e0 0%, #e8f8f0 50%, #f0fdf4 100%);
}

.services-background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decorative-circle {
    position: absolute;
    left: -15%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(16, 185, 129, 0.15) 40%, transparent 70%);
    filter: blur(40px);
}

.decorative-patterns {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(255, 255, 255, 0.3) 35px, rgba(255, 255, 255, 0.3) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 35px, rgba(255, 255, 255, 0.3) 35px, rgba(255, 255, 255, 0.3) 40px);
    border-radius: 50%;
    opacity: 0.4;
}

.services-intro {
    position: relative;
    z-index: 2;
    padding-right: 2rem;
}

.services-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #065f46;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.services-subtitle {
    font-size: 1.3rem;
    color: #047857;
    font-weight: 500;
    margin-bottom: 2rem;
}

.services-indicator {
    display: flex;
    gap: 8px;
    align-items: center;
}

.indicator-line {
    height: 3px;
    background: rgba(16, 185, 129, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.indicator-line:first-child {
    width: 80px;
}

.indicator-line:nth-child(2) {
    width: 40px;
}

.indicator-line:last-child {
    width: 20px;
}

.indicator-line.active {
    background: #10b981;
}

/* Services Horizontal Scroll */
.services-scroll-wrapper {
    position: relative;
    z-index: 2;
}

.services-scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-scroll-container::-webkit-scrollbar {
    display: none;
}

.services-scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.services-scroll-nav:hover {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.services-scroll-nav:hover i {
    color: white;
}

.services-scroll-nav.prev {
    left: -20px;
}

.services-scroll-nav.next {
    right: -20px;
}

.services-scroll-nav i {
    font-size: 18px;
    color: #10b981;
    transition: color 0.3s ease;
}

.service-card-new {
    background: white;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.service-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.12);
    border-color: #d1fae5;
}

.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #f0fdf4, #d1fae5);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card-new:hover .service-image {
    transform: scale(1.05);
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 3.5rem;
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.25rem;
    text-align: center;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-service-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.75rem;
    border: 2px solid #10b981;
    color: #10b981;
    background: transparent;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-service-detail:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-service-detail i {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.btn-service-detail:hover i {
    transform: translateX(4px);
}


/* ===== DOCTOR CARDS ===== */
.doctor-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.doctor-avatar {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.doctor-avatar .avatar-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8fafc;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.doctor-avatar .avatar-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.doctor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.doctor-title {
    font-size: 0.9rem;
    color: #0ea5e9;
    margin-bottom: 0.5rem;
}

.doctor-specialty {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* =========================================
   HORIZONTAL SCROLL - DOCTORS SECTION
   ========================================= */
.doctors-scroll-wrapper {
    position: relative;
    padding: 0 50px;
}

.doctors-scroll-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 20px 0;
    scrollbar-width: thin;
    scrollbar-color: #10b981 #f1f5f9;
}

.doctors-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.doctors-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.doctors-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
}

.doctors-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #059669 0%, #047857 100%);
}

/* Scroll Navigation Buttons */
.scroll-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scroll-nav-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.scroll-nav-btn:hover i {
    color: white;
}

.scroll-nav-btn.prev {
    left: 0;
}

.scroll-nav-btn.next {
    right: 0;
}

.scroll-nav-btn i {
    font-size: 20px;
    color: #10b981;
    transition: color 0.3s ease;
}

.scroll-nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Doctor Card - Vertical Layout untuk Horizontal Scroll */
.doctors-section .doctor-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.doctors-section .doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.doctors-section .doctor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 4px solid #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.doctors-section .doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctors-section .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: 700;
}

.doctors-section .doctor-name {
    color: #1e293b;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
}

.doctors-section .doctor-title {
    color: #64748b;
    font-size: 11px;
    margin-bottom: 8px;
}

.doctors-section .doctor-specialty {
    color: #047857;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 20px;
    display: inline-block;
}

.doctors-section .doctor-languages {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 16px;
}

.doctors-section .language-badge {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.doctors-section .doctor-action {
    width: 100%;
    margin-top: auto;
}

.doctors-section .doctor-action .btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.doctors-section .doctor-action .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    color: white;
}

/* =========================================
   HORIZONTAL SCROLL - FACILITIES SECTION
   ========================================= */
.facilities-scroll-wrapper {
    position: relative;
    padding: 0 50px;
}

.facilities-scroll-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 20px 0;
    scrollbar-width: thin;
    scrollbar-color: #10b981 #f1f5f9;
}

.facilities-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.facilities-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.facilities-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
}

.facilities-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #059669 0%, #047857 100%);
}

/* Facility Card - Vertical dengan Image untuk Horizontal Scroll */
.facilities-section .facility-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.facilities-section .facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.facilities-section .facility-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.facilities-section .facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.facilities-section .facility-card:hover .facility-image img {
    transform: scale(1.1);
}

.facilities-section .facility-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    flex-direction: column;
    align-items: flex-end;
}

.facilities-section .facility-badges .badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.facilities-section .badge-info {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.facilities-section .badge-danger {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.facilities-section .facility-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.facilities-section .facility-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.facilities-section .facility-icon {
    font-size: 32px;
    color: #10b981;
    flex-shrink: 0;
}

.facilities-section .facility-name {
    color: #1e293b;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.facilities-section .facility-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.facilities-section .facility-content .btn,
.facilities-section .facility-content .btn-outline-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: auto;
}

.facilities-section .facility-content .btn:hover,
.facilities-section .facility-content .btn-outline-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    color: white;
}

/* ===== FACILITY CARDS (Keep original for grid layout) ===== */
.facility-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.facility-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.facility-card:hover .facility-image img {
    transform: scale(1.05);
}

.facility-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.facility-content {
    padding: 2rem;
}

.facility-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.facility-icon {
    font-size: 1.5rem;
    color: #0ea5e9;
    margin-right: 0.75rem;
}

.facility-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.facility-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ===== NEWS CARDS ===== */
.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.news-content {
    padding: 2rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-title {
    margin-bottom: 1rem;
}

.news-title a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

.news-title a:hover {
    color: #0ea5e9;
}

.news-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ===== NEWS TABS ===== */
.news-tabs {
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    display: inline-flex;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
}

.news-tabs .nav-link {
    border: none;
    border-radius: 40px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #6b7280;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.news-tabs .nav-link:hover {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.08);
    transform: translateY(-2px);
}

.news-tabs .nav-link.active {
    color: white;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.news-tabs .nav-link i {
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

/* ===== CATEGORY BADGES ===== */
.category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.category-news {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.category-article {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
}

.category-promotion {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

/* ===== STATS SECTION ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stats-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #1e40af, #0ea5e9);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-description {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* BUG FIX #7: tambah breakpoint tablet 768-991px untuk section-title */
@media (min-width: 768px) and (max-width: 991.98px) {
    .section-title {
        font-size: 2.2rem;
    }

    .section-description {
        font-size: 1.05rem;
    }

    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .quick-access-section {
        margin-top: -40px;
    }

    .quick-access-card {
        padding: 2rem 1.5rem;
    }

    .quick-access-card .card-icon {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
    }

    .quick-access-card .card-title {
        font-size: 1.35rem;
    }

    .quick-access-card .card-description {
        font-size: 0.925rem;
        min-height: auto;
    }

    .hero-indicators {
        bottom: 30px;
        padding: 10px 16px;
        gap: 10px;
    }

    .hero-indicators .indicator {
        width: 10px;
        height: 10px;
    }

    .hero-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .hero-nav.prev {
        left: 20px;
    }

    .hero-nav.next {
        right: 20px;
    }

    .hero-counter {
        top: 20px;
        right: 20px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .news-tabs {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        border-radius: 16px;
        margin: 0 auto;
    }

    .news-tabs .nav-link {
        border-radius: 12px;
        padding: 0.875rem 1.5rem;
        justify-content: center;
    }

    /* Horizontal Scroll - Tablet */
    .doctors-scroll-wrapper,
    .facilities-scroll-wrapper,
    .quick-access-scroll-wrapper {
        padding: 0 30px;
    }

    .scroll-nav-btn {
        width: 40px;
        height: 40px;
    }

    .scroll-nav-btn i {
        font-size: 16px;
    }

    .quick-access-card {
        min-width: 260px;
        max-width: 260px;
        padding: 2rem 1.5rem;
    }

    /* Services Section New - Tablet */
    .services-title {
        font-size: 2.5rem;
    }

    .services-subtitle {
        font-size: 1.15rem;
    }

    .services-intro {
        padding-right: 1rem;
        margin-bottom: 2rem;
    }

    .decorative-circle {
        width: 450px;
        height: 450px;
        left: -20%;
    }

    .decorative-patterns {
        width: 300px;
        height: 300px;
    }

    .services-scroll-nav {
        width: 44px;
        height: 44px;
    }

    .services-scroll-nav i {
        font-size: 16px;
    }

    .service-card-new {
        min-width: 260px;
        max-width: 260px;
    }

    .service-image-wrapper {
        height: 180px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* BUG FIX #2: padding hero-content mobile ≤767px */
    .hero-content {
        padding: 1.5rem 1.5rem;
        max-width: 100%;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .quick-access-card {
        padding: 1.75rem 1.25rem;
    }

    .quick-access-card .card-icon {
        width: 75px;
        height: 75px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .quick-access-card .card-title {
        font-size: 1.25rem;
    }

    .quick-access-card .card-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .quick-access-card .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.1rem;
    }

    .stats-number {
        font-size: 2.5rem;
    }

    .hero-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .hero-indicators .indicator {
        width: 8px;
        height: 8px;
    }

    .hero-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hero-nav.prev {
        left: 15px;
    }

    .hero-nav.next {
        right: 15px;
    }

    .hero-counter {
        display: none;
    }

    .news-content {
        padding: 1.5rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Horizontal Scroll - Mobile */
    .doctors-scroll-wrapper,
    .facilities-scroll-wrapper,
    .quick-access-scroll-wrapper {
        padding: 0;
    }

    /* Hide navigation buttons on mobile */
    .scroll-nav-btn {
        display: none;
    }

    /* Hide scrollbar on mobile */
    .doctors-scroll-container::-webkit-scrollbar,
    .facilities-scroll-container::-webkit-scrollbar,
    .quick-access-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .doctors-scroll-container,
    .facilities-scroll-container,
    .quick-access-scroll-container {
        scrollbar-width: none;
    }

    /* Adjust card size on mobile */
    .doctors-section .doctor-card {
        min-width: 260px;
        max-width: 260px;
    }

    .facilities-section .facility-card {
        min-width: 280px;
        max-width: 280px;
    }

    .quick-access-card {
        min-width: 260px;
        max-width: 260px;
    }

    /* Services Section New - Mobile */
    .services-section-new {
        padding: 4rem 0 !important;
    }

    .services-title {
        font-size: 2rem;
        text-align: center;
    }

    .services-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .services-intro {
        padding-right: 0;
        margin-bottom: 2.5rem;
        text-align: center;
    }

    .services-indicator {
        justify-content: center;
    }

    .decorative-circle {
        width: 350px;
        height: 350px;
        left: -30%;
    }

    .decorative-patterns {
        width: 250px;
        height: 250px;
        opacity: 0.3;
    }

    .services-scroll-wrapper {
        padding: 0;
    }

    .services-scroll-nav {
        display: none;
    }

    .services-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .services-scroll-container {
        scrollbar-width: none;
        gap: 1rem;
    }

    .service-card-new {
        min-width: 240px;
        max-width: 240px;
    }

    .service-image-wrapper {
        height: 160px;
    }

    .service-card-title {
        font-size: 1rem;
        min-height: 42px;
    }

    .btn-service-detail {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* BUG FIX #2: kurangi padding hero-content di layar kecil */
    .hero-content {
        padding: 1.25rem 1.1rem;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* BUG FIX #6: gunakan min() agar tidak overflow di screen 320px */
    .news-tabs {
        max-width: min(280px, 92%);
        width: 100%;
    }

    .news-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .news-image,
    .facility-image {
        height: 180px;
    }

    /* Services Section New - Extra Small */
    .services-title {
        font-size: 1.75rem;
    }

    .services-subtitle {
        font-size: 0.95rem;
    }

    .decorative-circle {
        width: 300px;
        height: 300px;
    }

    .service-card-new {
        min-width: 220px;
        max-width: 220px;
        padding: 0.875rem;
    }

    .service-image-wrapper {
        height: 140px;
        border-radius: 15px;
    }

    .service-card-title {
        font-size: 0.95rem;
    }

    .btn-service-detail {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ===== FOOTER SOCIAL MEDIA ICONS ===== */
.btn-sosmed {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    border: none !important;
    color: #fff !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
    padding: 0 !important;
    font-size: 1.35rem !important;
}

.btn-sosmed:hover {
    opacity: 0.85 !important;
    transform: translateY(-3px) !important;
    color: #fff !important;
}

.btn-sosmed-facebook {
    background-color: #1877F2 !important;
}

.btn-sosmed-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

.btn-sosmed-youtube {
    background-color: #FF0000 !important;
}

.btn-sosmed-x {
    background-color: #000000 !important;
}

/* ===== PRINT STYLES ===== */
@media print {

    .hero-section,
    .cta-section {
        background: white !important;
        color: black !important;
    }

    .hero-slide::before {
        display: none;
    }

    .hero-indicators,
    .hero-nav,
    .hero-counter,
    .hero-actions {
        display: none;
    }
}

/* ===== EVENT CARD STYLES ===== */
.event-card .news-image {
    position: relative;
}

.event-status-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 5;
}

.event-status-badge .badge {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-event {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
}

.event-location i {
    color: #10b981;
}

/* Event Card Hover Effect */
.event-card:hover {
    transform: translateY(-8px);
}

.event-card:hover .news-image img {
    transform: scale(1.05);
}

/* Responsive untuk Event Badges */
@media (max-width: 767.98px) {
    .event-status-badge {
        bottom: 8px;
        right: 8px;
    }

    .event-status-badge .badge {
        padding: 4px 10px;
        font-size: 11px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {

    .hero-slide,
    .quick-access-card,
    .service-card,
    .doctor-card,
    .facility-card,
    .news-card,
    .hero-actions .btn,
    .facility-image img,
    .news-image img {
        transition: none !important;
    }

    .hero-content {
        animation: none !important;
    }

    .hero-indicators .indicator:hover {
        transform: scale(1) !important;
    }
}
