@import 'poliklinik.css';
@import 'paket.css';
@import 'better-health.css';
@import 'footer.css';

:root {
    --primary-green: #4caf50;
    /* Eka Logo Green */
    --primary-red: #d9534f;
    /* Eka Red Accent */
    --text-grey: #666;
    --bg-grey: #f0f0f0;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* TOP BAR */
.top-bar {
    background-color: #1e4b9a;
    /* RSDK Blue */
    padding: 8px 0;
    font-size: 13px;
    color: white;
    /* White text */
    font-weight: 500;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
}

.dropdown-menu-container {
    position: relative;
    display: inline-block;
}

.dropdown-toggle-btn {
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 0;
    display: inline-block;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    top: 100%;
    left: 0;
    border-radius: 12px;
    padding: 10px 0;
    border: 1px solid #eee;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-menu-container:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    color: #333 !important;
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: #f9f9f9;
    color: #d9534f !important;
    border-left: 3px solid #d9534f;
    padding-left: 25px;
}

.dropdown-item i {
    font-size: 10px;
    color: #ccc;
}

.dropdown-item:hover i {
    color: #d9534f;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.top-left a {
    text-decoration: none;
    color: white;
    /* White links */
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-right a {
    text-decoration: none;
    color: white;
    /* White links */
    margin-left: 20px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.text-red {
    color: #ff6b6b;
    /* Lighter red for visibility on blue, or keep original if readable */
    font-size: 10px;
    vertical-align: middle;
}

.mobile-only-actions {
    display: none;
}

/* MAIN HEADER */
.main-header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.logo-img {
    height: 55px;
    /* Adjust based on header size */
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    color: #1e4b9a;
    /* RSDK Blue */
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.tagline {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}



/* SEARCH BOX */
.search-section {
    flex-grow: 1;
    max-width: 600px;
}

.search-box {
    display: flex;
    background: #f1f1f1;
    border-radius: 30px;
    /* Pill shape */
    padding: 5px;
    border: 1px solid #ddd;
}

.search-box input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 10px 20px;
    outline: none;
    font-size: 14px;
}

.search-box button {
    background: var(--primary-red);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: #c9302c;
}

/* HEADER ACTION ICONS */
.action-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    font-size: 12px;
}

.icon-circle {
    width: 35px;
    height: 35px;
    /* background: #fdfdfd; */
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    color: var(--primary-red);
    font-size: 16px;
    transition: 0.3s;
}

.icon-link:hover .icon-circle {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-login {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    background: white;
}

.btn-login:hover {
    background: #f9f9f9;
}

.btn-login i {
    color: var(--primary-red);
}

/* HERO SLIDER */
/* HERO SLIDER */
/* HERO SLIDER */
/* HERO SLIDER */
.hero-slider-container {
    width: 100%;
    /* Full width container to allow slides to overflow nicely */
    padding: 30px 0;
    overflow: hidden;
    position: relative;
    background: #fdfdfd;
}

.swiper {
    width: 100%;
    /* overflow: visible !important; Allow slides to be seen on sides */
    padding-bottom: 50px !important;
    /* Space for pagination and shadow */
    overflow: visible;
    /* Important for seeing side slides */
}

.swiper-slide {
    width: 75%;
    /* Main slide width, adjust as needed */
    max-width: 1000px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.5;
    /* Fade out side slides */
    transform: scale(0.9);
    /* Shrink side slides */
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-red);
    background: #fff;
    width: 45px !important;
    /* Fixed width */
    height: 45px !important;
    /* Fixed height */
    min-width: 45px;
    /* Prevent squashing */
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 20;

    /* Perfect Centering */
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
    /* Fit comfortably */
    font-weight: bold;
    line-height: 1;
    /* Prevent vertical offset */
}

.swiper-button-next {
    right: 15% !important;
    /* Move inward from edge */
}

.swiper-button-prev {
    left: 15% !important;
    /* Move inward from edge */
}

.swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background: var(--primary-red);
}

/* Feature Grid */
.features {
    padding: 60px 0;
}

.section-title h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.feature-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 3px solid transparent;
}

.feature-card:hover {
    border-top-color: var(--primary-green);
}

/* Footer */
footer {
    background: #222;
    color: #aaa;
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* PUSAT UNGGULAN SECTION - CLEAN LAYOUT */
.unggulan-clean-section {
    padding: 60px 0 80px 0;
    background-color: #ffffff;
    /* Clean white bg */
}

.unggulan-header-clean {
    text-align: center;
    margin-bottom: 40px;
}

.unggulan-header-clean h2 {
    font-size: 28px;
    font-weight: 700;
    color: #444;
    /* Dark grey similar to Hermina */
    margin-bottom: 10px;
}

.unggulan-header-clean p {
    font-size: 14px;
    color: #888;
    max-width: 700px;
    margin: 0 auto 25px auto;
}

.unggulan-tabs {
    display: inline-flex;
    gap: 15px;
    /* Add margin/gap between the tabs */
    margin-top: 5px;
}

.tab-btn {
    text-decoration: none;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 8px;
    /* Rounded corners for each button */
    font-size: 14px;
    transition: 0.3s;
    cursor: pointer;
    outline: none;
    border: 1px solid transparent;
    /* default transparent border */
}

.tab-active {
    background-color: var(--primary-green);
    color: white;
    border: 1px solid var(--primary-green);
}

.tab-inactive {
    background-color: transparent;
    color: #555;
    border: 1px solid #ddd;
}

.tab-inactive:hover {
    background-color: #f1f1f1;
    color: #333;
}

/* Tab Panes */
.tab-pane {
    display: none;
    animation: fadeInTab 0.4s ease-in-out;
}

.active-pane {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New Cards Grid (Swiper Horizontal Scroll) */
.unggulan-swiper-container {
    width: 100%;
    overflow: hidden;
    /* Prevent horizontal overflow outside swiper */
}

/* Let Swiper handle the flex display and overflow */
.unggulan-grid-clean {
    /* Padding to ensure shadow isn't clipped */
    padding: 10px 5px 5px 5px;
}

/* Swiper Pagination Styling */
.unggulan-pagination {
    bottom: 0 !important;
}

.unggulan-pagination .swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.7;
    transition: 0.3s;
}

.unggulan-pagination .swiper-pagination-bullet-active {
    background: var(--primary-green);
    opacity: 1;
}

.unggulan-slide {
    height: auto;
    /* Allow stretching if needed by flex layout */
    /* width is handled by Swiper slidesPerView configuration */
}

.unggulan-card-clean {
    height: 100%;
    /* Ensure cards are same height within slide */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f1f1;
}

.unggulan-card-clean:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.unggulan-img-wrapper {
    height: 120px;
    /* Reduced image height to match narrower card */
    width: 100%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.unggulan-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.unggulan-card-clean:hover .unggulan-img-wrapper img {
    transform: scale(1.05);
}

.unggulan-icon-placeholder {
    font-size: 40px;
    /* Slightly smaller icon to match */
    opacity: 0.7;
}

.unggulan-card-content {
    padding: 15px;
    /* Slightly less padding */
    text-align: center;
    /* Center align title and description */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center children horizontally */
    flex-grow: 1;
    /* Pushes button to bottom */
}

.unggulan-card-content h3 {
    font-size: 15px;
    /* Slightly smaller title */
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.unggulan-card-content p {
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
    /* Take up remaining space */
}

.btn-read-more-card {
    display: inline-block;
    padding: 6px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 11px;
    color: #555;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
    margin-top: auto;
    /* Push to bottom inside the flex content */
    /* Removed align-self: flex-start to allow centering */
}

.unggulan-card-clean:hover .btn-read-more-card {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* =========================================================
   Spesialis Tab (Circular Design)
   ========================================================= */
.spesialis-swiper-container {
    width: 100%;
    overflow: hidden;
}

.spesialis-slide {
    height: auto;
    text-align: center;
}

.spesialis-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    padding: 10px;
}

.spesialis-card:hover {
    transform: translateY(-8px);
}

.spesialis-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #eafbee;
    /* Very light green */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 2px solid #28a745;
    /* Green border like the example */
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.spesialis-card:hover .spesialis-circle {
    box-shadow: 0 8px 15px rgba(40, 167, 69, 0.2);
}

.spesialis-circle img {
    /* If they upload images, make sure they fit */
    width: 60%;
    height: 60%;
    object-fit: contain;
    /* Keep aspect ratio inside circle */
}

.spesialis-circle i {
    /* Fallback icon */
    font-size: 40px;
    color: var(--primary-green);
}

.spesialis-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

.spesialis-pagination {
    bottom: 0 !important;
}

.spesialis-pagination .swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.7;
    transition: 0.3s;
}

.spesialis-pagination .swiper-pagination-bullet-active {
    background: var(--primary-green);
    opacity: 1;
}

/* ========================================================= */

.btn-green-outline {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-green-outline:hover {
    background: var(--primary-green);
    color: white;
}

.unggulan-btn-container {
    text-align: center;
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {

    /* Header */
    /* Header */
    .top-bar-content {
        flex-direction: row;
        /* Side by side */
        flex-wrap: wrap;
        /* Allow wrapping */
        justify-content: space-between;
        /* Push to edges */
        align-items: center;
        text-align: left;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        /* Visible on mobile */
        background: transparent;
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: white;
        padding: 5px 12px;
        border-radius: 5px;
        font-size: 18px;
        cursor: pointer;
        margin-top: 0;
    }

    .top-right {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        order: 3;
        /* Force to bottom */
        background-color: rgba(0, 0, 0, 0.1);
        background-color: rgba(0, 0, 0, 0.1);
        padding: 15px;
        border-radius: 10px;
        margin-top: 15px;
        align-items: center;
        gap: 15px;
    }

    .top-right.show {
        display: flex;
        /* Shown when toggled */
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .top-right a {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Adjust dropdown in mobile menu to be static/visible or easier to click */
    .dropdown-menu-container {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        /* Flow naturally in mobile */
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.95);
        color: #333;
        display: none;
        /* Keep hidden until hovered/clicked - possibly need click toggle for mobile too, but CSS hover works on some taps */
    }

    /* Force show dropdown content if parent is clicked/active (optional, for now rely on hover/tap) */
    .dropdown-menu-container:hover .dropdown-content,
    .dropdown-menu-container:active .dropdown-content {
        display: block;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .logo-section {
        width: 100%;
        justify-content: center;
    }

    .search-section {
        width: 100%;
        max-width: 100%;
    }

    .action-section {
        display: none;
        /* Hide action buttons from main header on mobile */
    }

    .mobile-only-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 15px;
    }

    .mobile-only-actions a {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 12px !important;
        font-size: 13px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border-bottom: none !important;
    }

    .mobile-btn-rsdk {
        background: #d9534f !important;
        /* Red for Online RSDK */
        color: white !important;
        font-weight: 800 !important;
    }

    /* Slider */
    .hero-slider-container {
        height: auto !important;
        /* Allow auto height */
        padding: 10px !important;
    }

    .swiper-slide img {
        height: auto !important;
        border-radius: 15px !important;
    }

    /* Pusat Unggulan Clean */
    .unggulan-clean-section {
        padding: 40px 0;
    }

    .unggulan-header-clean h2 {
        font-size: 22px;
    }

    .unggulan-header-clean p {
        font-size: 13px;
        padding: 0 10px;
    }

    .unggulan-grid-clean {
        /* Handled by Swiper spaceBetween */
        padding-bottom: 25px;
    }

    .unggulan-img-wrapper {
        height: 120px;
    }

    /* Spesialis Mobile Fixes */
    .spesialis-circle {
        width: 70px;
        height: 70px;
    }

    .spesialis-circle i {
        font-size: 30px;
    }

    .spesialis-card h4 {
        font-size: 11px;
    }

    .unggulan-card-content {
        padding: 15px 10px;
    }

    .unggulan-card-content p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .unggulan-card-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on very small screens */
    }
}