/* 
 * KEMENKES UI STANDARDIZATION
 * Based on "Pedoman Standardisasi Website Rumah Sakit Kementerian Kesehatan"
 */

:root {
    /* Sistem Warna */
    --kemenkes-primary: #0E9F8D;
    --kemenkes-grad-start: #0E9F8D;
    --kemenkes-grad-end: #6CC4A1;

    --kemenkes-black: #111111;
    --kemenkes-dark-gray: #6B7280;
    --kemenkes-light-gray: #E5E7EB;
    --kemenkes-bg: #F9FAFB;
    --kemenkes-white: #FFFFFF;

    --kemenkes-success: #22C55E;
    --kemenkes-warning: #F59E0B;
    --kemenkes-error: #EF4444;

    /* Border Radius */
    --radius-btn: 8px;
    --radius-card: 12px;
    --radius-container: 16px;

    /* Shadow / Elevation */
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);

    /* Font Family */
    --kemenkes-font: 'Inter', sans-serif;
}

/* Global Typography Override */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div {
    font-family: var(--kemenkes-font) !important;
}

/* Base UI Components overrides */
body {
    background-color: var(--kemenkes-bg);
    color: var(--kemenkes-black);
}

p,
span {
    color: var(--kemenkes-dark-gray);
}

/* Utilities */
.text-kemenkes-primary {
    color: var(--kemenkes-primary) !important;
}

/* Button Kemenkes Style */
.btn-kemenkes-primary {
    background-color: var(--kemenkes-primary) !important;
    color: var(--kemenkes-white) !important;
    border-radius: var(--radius-btn);
    padding: 10px 24px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.btn-kemenkes-outline {
    background-color: transparent !important;
    color: var(--kemenkes-primary) !important;
    border: 2px solid var(--kemenkes-primary) !important;
    border-radius: var(--radius-btn);
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.btn-kemenkes-outline:hover {
    background-color: #0E9F8D !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #0E9F8D !important;
}

.btn-kemenkes-primary:hover {
    background-color: #0c8a7b !important;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Header Adjustments */
.main-header.header-style-two .logo:before,
.main-header.header-style-two.fixed-header .logo:before {
    display: none !important;
}

.main-header.header-style-two .logo {
    padding: 0px !important;
    margin: 0 !important;
    padding-right: 20px !important;
}

.main-header.header-style-two .header-top_two {
    background-color: var(--kemenkes-primary) !important;
}

.main-header.header-style-two .header-top_two .info-list {
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
}

.main-header.header-style-two .header-top_two .info-list li a,
.main-header.header-style-two .header-top_two .info-list li a span,
.main-header.header-style-two .header-top_two .info-list li span,
.main-header.header-style-two .header-top_two .language-selector {
    color: var(--kemenkes-white) !important;
}

.main-header .header-upper {
    background-color: var(--kemenkes-white) !important;
    border-bottom: 1px solid var(--kemenkes-light-gray);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header.header-style-two .header-upper .inner-container {
    padding: 0 15px;
}

.main-header.header-style-two .search-box-btn {
    color: var(--kemenkes-black) !important;
    cursor: pointer;
}

/* Remove vertical dividers from search box and language selector */
.header-style-two .outer-box .search-box {
    border-left: none !important;
    border-right: none !important;
}

.header-top_two .info-list li.language-selector {
    border-right: none !important;
}

.main-header.header-style-two .main-menu .navigation>li>a:before {
    background: var(--kemenkes-primary) !important;
}

.main-header .main-menu .navigation>li>a {
    font-family: var(--kemenkes-font);
    font-weight: 600;
    color: var(--kemenkes-black);
    padding: 15px 0 !important;
}

.main-header.header-style-two .header-upper {
    padding: 0 !important;
    min-height: 60px !important;
}

.main-header .main-menu .navigation>li:hover>a {
    color: var(--kemenkes-primary) !important;
}

/* Card Overrides (General class matching typical cards) */
.card,
.service-block,
.news-block,
.testimonial-block {
    border-radius: var(--radius-card) !important;
    box-shadow: var(--shadow-card) !important;
    transition: all 0.3s ease;
    border: 1px solid var(--kemenkes-light-gray);
}

.card:hover,
.service-block:hover,
.news-block:hover,
.testimonial-block:hover {
    box-shadow: var(--shadow-hover) !important;
}

/* Footer Override */
.main-footer,
.footer-bottom {
    background-color: var(--kemenkes-primary) !important;
    color: var(--kemenkes-white) !important;
}

.main-footer .widget-title h4,
.main-footer h4,
.main-footer .text,
.main-footer .timing,
.main-footer a,
.main-footer p,
.main-footer li,
.main-footer span.icon {
    color: var(--kemenkes-white) !important;
}

/* Gradient Background Helpers */
.bg-kemenkes-gradient {
    background: linear-gradient(135deg, var(--kemenkes-grad-start) 0%, var(--kemenkes-grad-end) 100%) !important;
}

/* Kemenkes Hero Section */
.kemenkes-hero {
    position: relative;
    height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.kemenkes-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Hero Stripe Indicators */
.hero-indicators .stripe-indicator {
    width: 35px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    padding: 0;
    cursor: pointer;
}

.hero-indicators .stripe-indicator.active {
    background-color: #fff;
    width: 50px;
}

.kemenkes-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background:
        radial-gradient(circle at 0% 0%, rgba(196, 214, 0, 0.85) 0%, rgba(196, 214, 0, 0.45) 25%, rgba(14, 159, 141, 0) 55%),
        linear-gradient(to top, rgba(14, 159, 141, 0.9) 0%, rgba(14, 159, 141, 0) 32%),
        linear-gradient(to right, rgba(14, 159, 141, 0.98) 0%, rgba(14, 159, 141, 0.85) 30%, rgba(14, 159, 141, 0) 60%);

    /* background: none !important; */
    /* Dihilangkan sementara sesuai permintaan user */
    z-index: 1;
}

.kemenkes-hero-content {
    max-width: 1600px;
    padding: 0 15px;
}

.kemenkes-hero-content h1,
.kemenkes-hero-content p,
.kemenkes-hero-content h5 {
    max-width: 1000px;
}

.kemenkes-search-wrapper input:focus {
    box-shadow: none !important;
    outline: none !important;
}

.kemenkes-action-card {
    background: white;
    border-radius: 12px;
    padding: 12px 10px;
    width: 115px;
    height: 115px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.kemenkes-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--kemenkes-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.kemenkes-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.kemenkes-action-card:hover::before {
    opacity: 1;
}

.kemenkes-action-icon {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.kemenkes-action-text {
    position: relative;
    z-index: 1;
    color: var(--kemenkes-black);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.kemenkes-action-card:hover .kemenkes-action-icon i,
.kemenkes-action-card:hover .kemenkes-action-text {
    color: white !important;
}

.kemenkes-action-card .kemenkes-action-icon {
    margin-bottom: auto;
    /* Push text to bottom */
}

.hero-container {
    position: relative;
    z-index: 2;
}

@media (max-width: 1199px) {
    .kemenkes-hero {
        height: auto !important;
        position: relative !important;
        overflow: visible !important;
        background-color: #f4f7f6 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #kemenkesHeroSlider {
        position: relative !important;
        width: 100% !important;
        aspect-ratio: 4319 / 1569 !important;
        height: auto !important;
        z-index: 0 !important;
    }

    #kemenkesHeroSlider .carousel-inner,
    #kemenkesHeroSlider .carousel-item {
        height: 100% !important;
    }

    #kemenkesHeroSlider .carousel-item div {
        background-size: 100% 100% !important;
        background-position: center !important;
    }

    .kemenkes-hero-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4319 / 1569 !important;
        z-index: 1 !important;
        background:
            radial-gradient(circle at 0% 0%, rgba(196, 214, 0, 0.85) 0%, rgba(196, 214, 0, 0.45) 25%, rgba(14, 159, 141, 0) 55%),
            linear-gradient(to top, rgba(14, 159, 141, 0.9) 0%, rgba(14, 159, 141, 0) 32%),
            linear-gradient(to right, rgba(14, 159, 141, 0.98) 0%, rgba(14, 159, 141, 0.85) 30%, rgba(14, 159, 141, 0) 60%) !important;
    }

    #welcome-text-block {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4319 / 1569 !important;
        z-index: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        padding: 10px 20px !important;
        margin: 0 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    }

    #welcome-text-block h5 {
        font-size: 0.55rem !important;
        margin-bottom: 2px !important;
        color: #ffffff !important;
    }

    #welcome-text-block h1 {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
        color: #ffffff !important;
        line-height: 1.2 !important;
    }

    #welcome-text-block p {
        font-size: 0.55rem !important;
        line-height: 1.3 !important;
        color: #ffffff !important;
    }

    .hero-container {
        position: static !important;
        height: auto !important;
        z-index: 3 !important;
        padding-top: 20px !important;
        padding-bottom: 40px !important;
    }

    .kemenkes-hero-content {
        height: auto !important;
        padding: 0 !important;
    }

    .kemenkes-hero-content>div {
        flex-direction: column !important;
        align-items: stretch !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        gap: 20px !important;
    }

    .kemenkes-search-wrapper {
        min-width: 0 !important;
        width: 100% !important;
        position: relative !important;
    }

    .kemenkes-search-wrapper form {
        height: auto !important;
        padding: 15px !important;
    }

    .kemenkes-search-wrapper form div {
        height: auto !important;
    }

    .hero-indicators {
        position: absolute !important;
        top: -30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-bottom: 0 !important;
        z-index: 10 !important;
    }

    .kemenkes-hero .kemenkes-quick-actions {
        margin-top: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .kemenkes-hero .kemenkes-action-card {
        width: 100% !important;
        height: 120px !important;
        padding: 15px 12px !important;
    }
}

@media (max-width: 768px) {
    .kemenkes-hero .kemenkes-quick-actions {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .kemenkes-hero .kemenkes-quick-actions .kemenkes-action-card:last-child {
        grid-column: span 2 !important;
    }
}

@media (max-width: 575px) {
    .kemenkes-hero .kemenkes-quick-actions {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .kemenkes-hero .kemenkes-action-card {
        height: 105px !important;
        padding: 12px 10px !important;
    }

    .kemenkes-hero-content h5 {
        font-size: 0.75rem !important;
    }

    .kemenkes-hero-content h1 {
        font-size: 1.35rem !important;
    }

    .kemenkes-hero-content p {
        font-size: 0.75rem !important;
    }
}

/* Quick Action Cards (Home Page) */
.kemenkes-featured-section {
    background-color: #f4f7f6;
    /* Subtle background to pop out white cards */
}

.kemenkes-feature-card {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 30px 15px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.kemenkes-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.kemenkes-feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kemenkes-feature-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kemenkes-feature-title-wrapper {
    position: relative;
    padding-left: 15px;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border-left: 4px solid #00d0e6;
}

.kemenkes-feature-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
    margin: 0;
    text-align: left !important;
}

/* ========================================================================= */
/* KEMENKES GLOBAL OVERRIDES FOR OLD THEME COMPONENTS                        */
/* ========================================================================= */

/* General Typography & Page */
body,
p,
div:not([class*="fa-"]),
li,
a {
    font-family: 'Inter', 'Poppins', sans-serif;
}

.page-wrapper {
    background-color: #f9fafb !important;
}

/* Page Headers & Titles */
.sec-title_heading,
.sec-title_title,
.page-title h1,
.page-title h2 {
    color: var(--kemenkes-primary) !important;
    font-weight: 700 !important;
}

.sec-title_title::before,
.sec-title_title::after {
    display: none !important;
}

.sec-title_title {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.sec-title_heading span {
    color: #1a202c !important;
}

.sec-title_text {
    color: #6B7280 !important;
    font-size: 1rem !important;
    margin-top: 10px !important;
}

/* Accordions (Rajal, FAQ) */
.accordion-item {
    border: none !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

.accordion-button {
    background-color: #ffffff !important;
    color: #1a202c !important;
    font-weight: 600 !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--kemenkes-primary) !important;
    background-color: rgba(14, 159, 141, 0.05) !important;
}

.accordion-button::after {
    filter: none !important;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(45%) sepia(85%) saturate(300%) hue-rotate(120deg) brightness(85%) contrast(85%) !important;
}

.accordion-body {
    background-color: #ffffff !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
    padding: 16px 20px 24px !important;
}

/* Tabs (About) */
.tab-btns.tab-buttons {
    display: flex !important;
    gap: 12px !important;
    border-bottom: 2px solid #E5E7EB !important;
    padding-bottom: 12px !important;
    margin-bottom: 24px !important;
    flex-wrap: wrap;
}

.tab-btns .tab-btn {
    background: transparent !important;
    color: #6B7280 !important;
    font-weight: 600 !important;
    padding: 8px 24px !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    font-size: 0.95rem !important;
}

.tab-btns .tab-btn:hover {
    color: var(--kemenkes-primary) !important;
    background: rgba(14, 159, 141, 0.05) !important;
}

.tab-btns .tab-btn.active-btn {
    background: var(--kemenkes-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(14, 159, 141, 0.2) !important;
}

.tabs-content .tab {
    display: none;
}

.tabs-content .tab.active-tab {
    display: block;
}

/* Legacy Service Cards (.service-block_two) -> Modern Kemenkes Card */
.service-block_two-inner {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: none !important;
    background: #fff !important;
    position: relative !important;
}

.service-block_two-inner:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-block_two-image {
    position: relative !important;
    aspect-ratio: 4/3 !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    /* Remove any old margins */
}

.service-block_two-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Force green gradient overlay at the bottom */
.service-block_two-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background: linear-gradient(to top, var(--kemenkes-primary) 0%, rgba(14, 159, 141, 0.95) 55%, rgba(14, 159, 141, 0.5) 80%, transparent 100%) !important;
    pointer-events: none;
    z-index: 1 !important;
}

/* Hide the old default overlays that were blue */
.service-block_two-overlay {
    display: none !important;
}

.service-block_two-overlay-two:before,
.service-block_two-overlay-two:after {
    display: none !important;
}

/* Reposition the text content directly over the image */
.service-block_two-overlay-two {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    /* override old style */
    padding: 20px !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    z-index: 2 !important;
}

.service-two_overlay-content {
    text-align: left !important;
}

.service-block_two-title a,
.service-block_two-title {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-decoration: none !important;
    margin: 0 !important;
}

/* Change the | line color before the title to white */
.service-block_two-title,
.service-block_two-title a,
.service-two_overlay-content,
.service-block_two-title:before,
.service-block_two-title:after,
.service-block_two-title a:before,
.service-block_two-title a:after,
.service-two_overlay-content:before,
.service-two_overlay-content:after {
    background-color: transparent;
    border-color: #ffffff !important;
}

.service-block_two-title:before,
.service-block_two-title:after {
    background-color: #ffffff !important;
}

.service-block_two-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-top: 8px !important;
    margin-bottom: 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.service-block_two-more {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.service-block_two-more:hover {
    color: #bbf7d0 !important;
    /* light green */
}

/* Process Timeline */
.process-one_block-inner {
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    padding: 30px 20px !important;
    border: none !important;
    transition: transform 0.3s ease !important;
    text-align: center !important;
}

.process-one_block-inner:hover {
    transform: translateY(-5px) !important;
}

.process-one_year {
    background: var(--kemenkes-primary) !important;
    color: white !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 30px 8px 20px !important;
    display: inline-block !important;
    width: auto !important;
    margin: -40px auto 15px auto !important;
    position: relative !important;
    z-index: 2 !important;
    clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%) !important;
}

.process-one_year::before,
.process-one_year::after {
    display: none !important;
    /* Hide old ribbon fold pseudo-elements */
}

.process-one_heading {
    color: #1a202c !important;
    font-weight: 700 !important;
    margin-top: 15px !important;
    border: none !important;
    /* Remove any old left border */
    padding: 0 !important;
}

.process-one_heading::before,
.process-one_heading::after {
    display: none !important;
}

/* Direksi & Title 3 */
.sec-title_three-heading {
    color: #1a202c !important;
}

.sec-title_three-heading span {
    color: var(--kemenkes-primary) !important;
}

.direksi-page .sec-title_heading span,
.direksi-page .sec-title_heading span h4 {
    color: var(--kemenkes-primary) !important;
}

/* Fix remaining blue components in old theme */
.about-one_detail {
    background: var(--kemenkes-primary) !important;
    color: #ffffff !important;
}

.about-one_detail .play-icon {
    background-color: #ffffff !important;
    color: var(--kemenkes-primary) !important;
}

.service-block_three-icon {
    background-color: var(--kemenkes-primary) !important;
}

.service-block_three-color-layer {
    background-color: var(--kemenkes-primary) !important;
}

.service-block_three-heading:before {
    background-color: var(--kemenkes-primary) !important;
}

.sec-title_two-heading {
    color: #1a202c !important;
}

.sec-title_two-heading span {
    color: var(--kemenkes-primary) !important;
}

/* Ensure no stray blue backgrounds from old pseudo-elements */
.service-block_two-inner:before,
.service-block_two-inner:after,
.service-block_two-image:before {
    display: none !important;
    background: none !important;
}

.service-block_two-more {
    background-color: var(--kemenkes-primary) !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.service-block_two-more:hover {
    background-color: #ffffff !important;
    color: var(--kemenkes-primary) !important;
}

/* Remove old blue underlines from tabs */
.tab-btns .tab-btn::before,
.tab-btns .tab-btn::after {
    display: none !important;
}

/* Tarif Page Overrides */
.btn-purple {
    background-color: var(--kemenkes-primary) !important;
    border-color: var(--kemenkes-primary) !important;
}

.btn-purple:hover {
    background-color: #00877e !important;
    border-color: #00877e !important;
}

.services-table thead,
.services-table thead th {
    background-color: var(--kemenkes-primary) !important;
}

.tabs-header .tab-button.active {
    color: var(--kemenkes-primary) !important;
}

.tabs-header .tab-button.active::after {
    background: var(--kemenkes-primary) !important;
}

.tabs-header .tab-button:hover {
    color: var(--kemenkes-primary) !important;
}

.badge-kategori {
    background-color: var(--kemenkes-primary) !important;
    border-color: var(--kemenkes-primary) !important;
}

.badge-kelas {
    background-color: rgba(0, 165, 154, 0.1) !important;
    color: var(--kemenkes-primary) !important;
    border-color: rgba(0, 165, 154, 0.3) !important;
}

.tarif-text {
    color: var(--kemenkes-primary) !important;
}

.text-primary {
    color: var(--kemenkes-primary) !important;
}

/* Pagination Overrides */
.page-item.active .page-link {
    background-color: var(--kemenkes-primary) !important;
    border-color: var(--kemenkes-primary) !important;
    color: white !important;
}

.page-link {
    color: var(--kemenkes-primary) !important;
}

.page-link:hover {
    color: #00877e !important;
}

/* 
 * SLIM PROFESSIONAL STICKY NAVBAR
 */

.main-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    background: white !important;
}

.main-header .header-top_two {
    padding: 2px 0 !important;
    /* Extremely slim top bar */
}

/* Reset legacy logo hacks from header.css */
.main-header .logo {
    height: auto !important;
    margin-top: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
    /* Allow logo to be slightly larger than bar */
}

/* Disable legacy sticky header */
.sticky-header,
.fixed-header .sticky-header {
    display: none !important;
}

/* Logo size and spacing */
.main-header .logo img {
    max-height: 100px !important;
    /* Larger logo */
    width: auto !important;
    transition: none !important;
    position: relative;
    z-index: 10;
}

.main-header .header-upper {
    padding: 0 !important;
    background: white !important;
    height: 70px !important;
    /* Slimmer bar */
    display: flex;
    align-items: center;
}

.main-header .header-upper .inner-container {
    height: 70px !important;
    display: flex;
    align-items: center;
}

/* Perfectly center navigation text vertically */
.main-header .main-menu .navigation>li>a {
    height: 70px !important;
    padding: 10px 15px 0 15px !important;
    /* Visually push text down */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Fix dropdown arrow alignment */
.main-header .main-menu .navigation>li>a:after,
.main-header .main-menu .navigation>li>a>span {
    position: relative !important;
    top: 2px !important;
    /* Tiny nudge for arrow centering */
    right: auto !important;
    margin-left: 8px !important;
    transform: none !important;
    display: inline-block !important;
}

/* Fix dropdown position - ensure it starts below the 70px navbar */
.main-header .main-menu .navigation>li>ul {
    top: 70px !important;
    margin-top: 0 !important;
}

.main-header .main-menu .navigation>li {
    display: inline-flex !important;
    align-items: center !important;
    height: 70px !important;
    vertical-align: top !important;
    margin: 0 10px !important;
}

/* =============================================
   FOOTER - Professional & Clean Proportions
   ============================================= */
footer.kemenkes-footer {
    padding: 50px 0 0 !important;
    /* Tighter, cleaner top padding */
}

/* Footer main content area */
footer.kemenkes-footer .container-fluid {
    padding-bottom: 0 !important;
}

/* Footer row columns - better vertical alignment */
footer.kemenkes-footer .row {
    align-items: flex-start !important;
    padding-bottom: 30px !important;
}

footer.kemenkes-footer hr {
    border-color: rgba(255, 255, 255, 0.15) !important;
    margin: 20px 0 0 !important;
}

/* Full-width copyright bar at the bottom of footer */
footer.kemenkes-footer .footer-copyright-bar {
    width: 100% !important;
    background-color: rgba(0, 0, 0, 0.15) !important;
    text-align: center !important;
    padding: 14px 20px !important;
    margin-top: 20px !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.03em !important;
    opacity: 0.9 !important;
    color: white !important;
}

body {
    background-color: white !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

main.flex-grow-1 {
    flex: 1 0 auto !important;
}

.page-wrapper {
    min-height: 0 !important;
}



/* Remove any background transitions */
.main-header,
.header-upper,
.header-top_two {
    transition: none !important;
    animation: none !important;
}


/* Mobile Menu Dropdown Chevron - Unicode fallback icon */
.dropdown-chevron {
    display: inline-block !important;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    color: inherit !important;
    font-family: Arial, sans-serif !important;
    transition: transform 0.3s ease !important;
}

.mobile-menu .navigation>li.open>.dropdown-btn .dropdown-chevron {
    transform: rotate(180deg) !important;
}

/* Fix Dropdown Submenu Text and Right Arrow Hover Color to Kemenkes Primary */
.main-header .main-menu .navigation ul li:hover>a,
.main-header .main-menu .navigation ul li.dropdown:hover>a:after {
    color: var(--kemenkes-primary) !important;
}

/* Floating Chat Button */
.floating-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--kemenkes-primary, #0e9f8d) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    box-shadow: 0 4px 15px rgba(14, 159, 141, 0.4) !important;
    z-index: 9999 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
}

.floating-chat-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--kemenkes-primary, #0e9f8d) !important;
    border-radius: 50% !important;
    z-index: -1 !important;
    opacity: 0.4 !important;
    animation: chat-pulse 2s infinite !important;
}

.floating-chat-button:hover {
    background-color: #0c8c7d !important;
    transform: scale(1.1) translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(14, 159, 141, 0.6) !important;
    color: #ffffff !important;
}

@keyframes chat-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive adjustment for mobile screens */
@media (max-width: 768px) {
    .floating-chat-button {
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 22px !important;
    }
}

/* Admin WA Page Styles */
.custom-wa-table thead {
    background-color: var(--kemenkes-primary, #0e9f8d) !important;
}

.custom-wa-table thead th {
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 16px 20px !important;
    border-bottom: none !important;
}

.custom-wa-table tbody td {
    padding: 16px 20px !important;
    border-bottom: 1px solid #f1f3f5 !important;
}

.icon-avatar {
    width: 36px;
    height: 36px;
    background-color: rgba(14, 159, 141, 0.1);
    color: var(--kemenkes-primary, #0e9f8d);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.wa-number-badge {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
}

/* WhatsApp Button */
.btn-whatsapp {
    background-color: #25D366 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2) !important;
    transition: all 0.3s ease !important;
}

.btn-whatsapp:hover {
    background-color: #20ba5a !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3) !important;
}

.selengkapnya-btn {
    color: rgba(255, 255, 255, 0.7) !important;
}

.selengkapnya-btn:hover {
    color: #bbf7d0 !important;
}

/* Stacking context fix to place modals above fixed/sticky header */
.modal {
    z-index: 999999 !important;
}

.modal-backdrop {
    z-index: 999998 !important;
}

/* Premium themed close button styles for all white close buttons inside modals */
.modal .btn-close-white {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
    padding: 8px !important;
    opacity: 0.8 !important;
    transition: all 0.2s ease !important;
}

.modal .btn-close-white:hover {
    background-color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    transform: rotate(90deg) !important;
}

/* Package Cards (Medical Check Up & Estimasi Pemeriksaan) */
.package-card {
    border-radius: var(--radius-card) !important;
    box-shadow: var(--shadow-card) !important;
    transition: all 0.3s ease !important;
    border: 1px solid var(--kemenkes-light-gray) !important;
    background: #ffffff !important;
}

.package-card:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-8px) !important;
}

.package-header {
    background: linear-gradient(135deg, var(--kemenkes-grad-start) 0%, var(--kemenkes-grad-end) 100%) !important;
    color: var(--kemenkes-white) !important;
}

.package-badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--kemenkes-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.package-title {
    color: var(--kemenkes-white) !important;
}

.package-price .price-amount {
    color: var(--kemenkes-primary) !important;
}

.package-features .feature-icon {
    background: var(--kemenkes-primary) !important;
    color: var(--kemenkes-white) !important;
}

/* Search Inputs */
.search-input {
    border: 1.5px solid #94a3b8 !important;
    /* Warna border yang lebih gelap dan tegas */
    background-color: #ffffff !important;
    border-radius: var(--radius-btn) !important;
    color: #334155 !important;
}

.search-input:focus {
    border-color: var(--kemenkes-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(14, 159, 141, 0.25) !important;
    outline: none !important;
}

/* Poli Eksekutif Section */
.poli-eksekutif-section {
    position: relative;
    overflow: hidden;
    height: 695px;
    display: flex;
    align-items: center;
    padding-bottom: 160px;
    /* offset bottom bar height and bottom distance to balance vertical spacing */
}

/* Feature Icons */
.eksekutif-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.eksekutif-feature-item:hover {
    transform: translateY(-2px);
}

.eksekutif-feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.eksekutif-feature-item:hover .eksekutif-feature-icon {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.4);
}

.eksekutif-feature-title {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.eksekutif-feature-subtitle {
    font-size: 0.78rem;
    opacity: 0.8;
    line-height: 1.2;
}

/* Bottom Info Bar */
.eksekutif-bottom-bar {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
}

.eksekutif-col {
    flex: 1;
    padding: 24px 30px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.eksekutif-col:hover {
    background: rgba(255, 255, 255, 0.05);
}

.eksekutif-col-content {
    flex-grow: 1;
    margin-bottom: 16px;
}

.eksekutif-col-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.eksekutif-col-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Active & Hover state styles */
.eksekutif-col.active .eksekutif-col-desc,
.eksekutif-col:hover .eksekutif-col-desc {
    color: #ffffff;
}

.eksekutif-col.active .eksekutif-col-label,
.eksekutif-col:hover .eksekutif-col-label {
    color: rgba(255, 255, 255, 0.85);
}

/* Indicator lines */
.eksekutif-indicator-track {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.eksekutif-indicator-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 4px;
    width: 0%;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.eksekutif-col.active .eksekutif-indicator-fill {
    width: 35%;
}

.eksekutif-col:hover:not(.active) .eksekutif-indicator-fill {
    width: 15%;
}

.eksekutif-col:hover:not(.active) .eksekutif-indicator-track {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 991.98px) {
    .eksekutif-bottom-bar {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .eksekutif-bottom-bar::-webkit-scrollbar {
        display: none;
    }

    .eksekutif-col {
        min-width: 250px;
        flex: 0 0 250px;
        scroll-snap-align: start;
        padding: 20px 24px;
    }
}

/* Kemenkes Layanan Unggulan Section */
#layanan-carousel::-webkit-scrollbar {
    display: none;
}

.kemenkes-layanan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-user-drag: none !important;
    user-select: none !important;
}

.kemenkes-layanan-card img {
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    user-select: none !important;
}

.kemenkes-layanan-card:hover {
    transform: translateY(-8px);
}

.kemenkes-layanan-card:hover .card {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Promo Cards / Penawaran Spesial Section */
.promo-carousel::-webkit-scrollbar {
    display: none;
}

.promo-card-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-user-drag: none !important;
    user-select: none !important;
}

.promo-card-item img {
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    user-select: none !important;
}

.promo-card-item:hover {
    transform: translateY(-5px);
}

.promo-card-item:hover .card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Testimoni Section */
#testimoni-carousel::-webkit-scrollbar {
    display: none;
}

.testimoni-card-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimoni-card-item:hover {
    transform: translateY(-5px);
}

.testimoni-card-item:hover .card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 767.98px) {
    .testimoni-card-item {
        width: 85vw !important;
    }

    .testimoni-card-item .row.g-0 {
        flex-direction: column;
    }

    .testimoni-card-item .col-4,
    .testimoni-card-item .col-8 {
        width: 100%;
    }

    .testimoni-card-item .card-body {
        padding: 1.5rem !important;
    }
}

/* Feedback Section */
.feedback-item {
    transition: background-color 0.3s ease;
}

.feedback-item:hover {
    background-color: rgba(14, 159, 141, 0.05);
}

h5.title-no-border {
    border-left: none !important;
    padding-left: 0 !important;
}

@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 991.98px) {
    .feedback-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .col-lg-4:last-child .feedback-item {
        border-bottom: none;
    }
}

/* Header Responsiveness for iPad Pro and Medium Screens (max-width: 1199px) */
@media only screen and (max-width: 1199px) {

    /* Hide the desktop main menu on header and sticky header */
    .main-header .nav-outer,
    .sticky-header .nav-outer {
        display: none !important;
    }

    /* Show the mobile navigation toggler */
    .main-header .mobile-nav-toggler,
    .main-header .sticky-header .mobile-nav-toggler {
        display: block !important;
        font-size: 26px !important;
        cursor: pointer;
    }

    /* Prevent header layout from breaking */
    .header-upper .inner-container {
        justify-content: space-between !important;
    }

    /* Ensure logo fits nicely */
    .main-header .logo img,
    .sticky-header .logo img {
        max-height: 75px !important;
        width: auto !important;
    }
}