/* =========================================================
   1. OFF-CANVAS & BOTTOM SECTION (FOOTER)
   ========================================================= */
@media (min-width: 992px) {
    .burger-icon,
    .offcanvas-toggler {
        display: none !important;
    }
}

#sp-bottom {
    background-color: #003366 !important;
    color: #ffffff !important;
}

#sp-bottom h3, 
#sp-bottom h4,
#sp-bottom a, 
#sp-bottom p, 
#sp-bottom li {
    color: #ffffff !important;
}

#sp-bottom a:hover {
    color: #ffd700 !important;
}

/* Modul jsVisit Counter */
#sp-bottom [class*="jsvisit"],
#sp-bottom [id*="jsvisit"],
#sp-bottom .jsvisit_stats_table,
#sp-bottom .jsvisit_stats_table *,
#sp-bottom div[id*="jsvisit"] *,
#sp-bottom div[class*="jsvisit"] * {
    color: #ffffff !important;
}

#sp-bottom .jsvisit_stats_table,
#sp-bottom .jsvisit_stats_table td,
#sp-bottom .jsvisit_stats_table th,
#sp-bottom div[class*="jsvisit"] table {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* =========================================================
   2. HEADER & LOGO HPP (DIBESARKAN 20%)
   ========================================================= */

/* 1. Luaskan bekas logo supaya muat saiz logo baharu yang 20% lebih besar */
#sp-logo {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 520px !important;  /* Dinaikkan untuk menampung lebar logo */
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding-right: 15px !important;
}

/* 2. Besarkan tinggi imej dari 75px ke 90px (+20%) & kekalkan proporsi */
#sp-logo img,
header#sp-header .logo img,
.logo-image {
    height: 90px !important;       /* Ditingkatkan 20% daripada 75px */
    max-height: 90px !important;
    width: auto !important;        /* Lebar bertukar automatik ikut nisbah 5:1 (~456px) */
    max-width: 100% !important;
    object-fit: contain !important;/* Kekalkan ketajaman tanpa terpenyek */
    image-rendering: -webkit-optimize-contrast !important;
    display: block !important;
}

/* 3. Pelarasan ketinggian kontena Header (DIPADATKAN) */
#sp-header {
    height: auto !important;
    min-height: 90px !important;    /* Samakan tepat dengan tinggi logo (90px) */
    padding-top: 0px !important;    /* Buang padding atas sepenuhnya */
    padding-bottom: 0px !important; /* Buang padding bawah sepenuhnya */
}

/* 4. Mampatkan ruang menu supaya tidak menolak header jadi tebal */
.sp-megamenu-parent > li > a, 
.sp-megamenu-parent > li > span {
    line-height: 90px !important;   /* Samakan line-height dengan tinggi logo */
    height: 90px !important;        /* Kunci tinggi menu sebaris logo */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Saiz logo semasa skrin di-scroll (Sticky Header) */
#sp-header.header-sticky .logo-image,
#sp-header.header-sticky #sp-logo img {
    height: 75px !important;
    max-height: 75px !important;
}

/* =========================================================
   3. KONTENA UTAMA & PETA LAMAN
   ========================================================= */
#sp-main-body,
#sp-component,
.view-sitemap #sp-component,
.com-osmap #sp-component {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    width: 100% !important;
}

div[class*="osmap"],
#osmap-sitemap,
.osmap-items,
.view-sitemap ul-sitemap {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
}

.view-sitemap h1, 
.view-sitemap h2,
.com-osmap h1 {
    font-size: 24px !important;
    margin-bottom: 20px !important;
    color: #333333 !important;
}

/* KAD LOKASI & PETA GOOGLE */
.hpp-location-container {
    max-width: 1140px;
    margin: 20px auto;
}

.hpp-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hpp-icon-box {
    background-color: #0b3b60;
    color: #ffffff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.hpp-section-header h2 {
    margin: 0;
    font-size: 24px;
    color: #222222;
}

.hpp-location-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hpp-contact-card {
    flex: 1 1 350px !important;
    background-color: #0b3b60 !important;
    color: #ffffff !important;
    padding: 35px !important;
}

.hpp-contact-card h3 {
    color: #00e5ff !important;
    margin-top: 0;
    font-size: 20px;
}

.hpp-hospital-name {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.hpp-info-group {
    margin-bottom: 15px;
}

.hpp-info-group strong {
    display: block;
    color: #dddddd;
    font-size: 13px;
    margin-bottom: 3px;
}

.hpp-info-group p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

.hpp-map-wrapper {
    flex: 2 1 450px !important;
    min-height: 420px;
}

.hpp-map-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 420px !important;
}

/* =========================================================
   4. HOMEPAGE & FLIP BOX (HPP)
   ========================================================= */
body.view-page #sp-main-body,
body.view-page #sp-component {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sppb-section:has(.sppb-addon-sppb-flibox) .sppb-container-inner,
.sppb-section:has(.sppb-addon-sppb-flibox) .sppb-container,
.sppb-section:has(.sppb-addon-sppb-flibox) .container {
    max-width: 1350px !important;
    width: 95% !important;
    margin: 0 auto !important;
}

.sppb-section:has(.sppb-addon-sppb-flibox) .sppb-row {
    margin-left: -10px !important;
    margin-right: -10px !important;
}

.sppb-section:has(.sppb-addon-sppb-flibox) [class*="sppb-col-"],
.sppb-section:has(.sppb-addon-sppb-flibox) [class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* =========================================================
   5. ARTICLES SCROLLER (BERITA & AKTIVITI)
   ========================================================= */
.scroller-asal .sppb-articles-carousel-meta-date {
    display: inline-block !important;
}

.scroller-asal .sppb-articles-carousel-meta-category {
    display: none !important;
}

.scroller-penuh .sppb-articles-carousel-meta,
.scroller-penuh .sppb-articles-carousel-meta-date,
.scroller-penuh .sppb-articles-carousel-meta-category {
    display: none !important;
}

.scroller-asal,
.scroller-asal .sppb-addon-articles-carousel,
.scroller-asal .bx-wrapper {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

.scroller-penuh {
    margin-top: 5px !important;
}

div:has(> .scroller-penuh),
.sppb-section:has(.scroller-penuh) {
    padding-top: 0px !important;
    margin-top: 0px !important;
}

/* =========================================================
   6. SERAGAMKAN LAYOUT ARTIKEL & KATEGORI
   ========================================================= */
body.com-content .container,
body.view-article .container,
body.view-category .container,
#sp-main-body .container {
    max-width: 1140px !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

body.com-content #sp-component {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 1400px) {
    body.com-content .container,
    body.view-article .container,
    body.view-category .container {
        max-width: 1140px !important;
    }
}

/* =========================================================
   7. PEMBAIKAN KHAS: SCROLLER LOGO PAUTAN KERAJAAN (DIBESARKAN)
   ========================================================= */

/* A. Ratakan Latar Belakang Section Logo */
#section-id-0dcff05d-1d5d-4b49-860f-4d430e4e1dd3,
.sp-page-builder .page-content #section-id-0dcff05d-1d5d-4b49-860f-4d430e4e1dd3 {
    background-color: #ffffff !important; /* Ditukar ke putih bersih supaya seimbang */
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* B. Besarkan Petak Bekas Gambar Logo (Tinggi dinaikkan ke 130px) */
#sppb-addon-c2dceda1-6bc2-49ae-9ad7-dab1752683af .sppb-carousel-extended-item,
#sppb-addon-c2dceda1-6bc2-49ae-9ad7-dab1752683af .sppb-carousel-extended-outer-stage,
.sppb-addon-image-carousel .sppb-carousel-extended-item,
.carousel-logo .sppb-carousel-extended-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 130px !important;       /* Ditingkatkan daripada 100px ke 130px */
    max-height: 130px !important;
    padding: 0 10px !important;
    overflow: visible !important;
}

/* C. SAIZ GAMBAR LOGO DIBESARKAN MAKSIMUM */
#sppb-addon-c2dceda1-6bc2-49ae-9ad7-dab1752683af img,
#sppb-addon-c2dceda1-6bc2-49ae-9ad7-dab1752683af .sppb-carousel-extended-item img,
#sppb-addon-c2dceda1-6bc2-49ae-9ad7-dab1752683af a img,
.sppb-addon-image-carousel img,
.carousel-logo .sppb-carousel-extended-item img {
    width: auto !important;             /* Batalkan cengkaman lebar automatik */
    height: auto !important;            /* Kekalkan nisbah asal imej */
    max-height: 110px !important;       /* DIBESARKAN daripada 80px ke 110px */
    max-width: 220px !important;        /* DIBESARKAN daripada 180px ke 220px */
    object-fit: contain !important;     /* Elak imej penyek atau terherot */
    margin: 0 auto !important;
    display: block !important;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.08)) !important; /* Kesan bayangan halus */
}


/* =========================================================
   MEMISAHKAN TOP1 (KIRI) DAN TOP2 (KANAN) SELARI DI TENGAH
   ========================================================= */

/* 1. Paksa bekas baris topbar memisahkan top1 ke kiri & top2 ke kanan */
#sp-top-bar .row,
#sp-top-bar .container-inner .row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* TOLAK TOP1 KE KIRI & TOP2 KE KANAN */
    width: 100% !important;
    min-height: 45px !important;
}

/* 2. Top1 Duduk di Hujung Kiri */
#sp-top1 {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-right: auto !important; /* Paksa kekal di kiri */
}

/* 3. Top2 Duduk di Hujung Kanan Tempat Asal */
#sp-top2 {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important; /* Paksa kekal di kanan */
}

#sp-top2 .sp-column {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

/* 4. Kemaskan Tarikh Top1 Supaya Turun Sebaris Tengah */
.hpp-topbar-date,
#hpp-date-display,
#sp-top1 p,
#sp-top1 div {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
}


/* =========================================================
   FLOATING SOCIAL SIDEBAR (MENGIKUT STYLE HRPB)
   ========================================================= */
.hpp-floating-social {
    position: fixed !important;
    top: 35% !important;             /* Kedudukan tinggi di tepi skrin */
    right: 0 !important;             /* Melekat rapat di sebelah kanan */
    z-index: 99999 !important;       /* Supaya sentiasa berada di atas elemen lain */
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    overflow: hidden;
}

.hpp-floating-social .social-icon {
    width: 42px !important;
    height: 42px !important;
    background-color: #2b303c !important; /* Warna gelap kelabu/hitam HRPB */
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Kesan Hover Warna Mengikut Platform */
.hpp-floating-social .social-icon:hover {
    padding-right: 6px !important; /* Efek berenjot sikit ke kiri bila diklik/hover */
}

.hpp-floating-social .social-icon.fb:hover { background-color: #3b5998 !important; }
.hpp-floating-social .social-icon.tiktok:hover { background-color: #000000 !important; }
.hpp-floating-social .social-icon.instagram:hover { background-color: #e1306c !important; }
.hpp-floating-social .social-icon.youtube:hover { background-color: #ff0000 !important; }

/* Sembunyikan pada skrin telefon bimbit jika mengganggu paparan */
@media (max-width: 576px) {
    .hpp-floating-social {
        display: none !important;
    }
}

/* =========================================================
   FLOATING SOCIAL DRAWER - BUKA/TUTUP PERSIS HRPB
   ========================================================= */
.hpp-social-drawer {
    position: fixed !important;
    top: 220px !important;              /* Ketinggian kedudukan di tepi skrin */
    right: 0 !important;                /* Melekat di tebing kanan */
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

/* 1. Keadaan Asal (Tertutup - Hanya Nampak Ikon Kanan) */
.hpp-social-drawer .drawer-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 42px !important;
    width: 42px !important;             /* Lebar asal 42px (teks tersembunyi) */
    background-color: #33353b !important;/* Warna kelabu gelap HRPB */
    color: #ffffff !important;
    text-decoration: none !important;
    overflow: hidden !important;        /* Potong teks supaya tak nampak */
    border-radius: 4px 0 0 4px !important;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important; /* Animasi gelongsor licin */
    margin-left: auto !important;
    box-shadow: -2px 2px 6px rgba(0,0,0,0.15);
}

/* 2. Susunan Ikon & Teks */
.hpp-social-drawer .drawer-icon {
    min-width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
}

.hpp-social-drawer .drawer-text {
    white-space: nowrap !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding-right: 15px !important;
    opacity: 0;                          /* Teks ghaib dalam keadaan biasa */
    transition: opacity 0.3s ease !important;
}

/* 3. Keadaan Apabila Tetikus Lalu / Klik (Terbuka Mengembang ke Kiri) */
.hpp-social-drawer .drawer-item:hover {
    width: 200px !important;            /* Mengembang menjadi 200px lebar */
}

.hpp-social-drawer .drawer-item:hover .drawer-text {
    opacity: 1 !important;              /* Teks muncul secara 'fade-in' */
}

/* 4. Warna Latar Belakang Apabila Terbuka (Mengikut Platform) */
.hpp-social-drawer .drawer-item.fb:hover { background-color: #3b5998 !important; }
.hpp-social-drawer .drawer-item.youtube:hover { background-color: #ff0000 !important; }
.hpp-social-drawer .drawer-item.gallery-photo:hover { background-color: #e67f25 !important; }
.hpp-social-drawer .drawer-item.gallery-video:hover { background-color: #000000 !important; }

/* Sembunyikan pada peranti mudah alih */
@media (max-width: 768px) {
    .hpp-social-drawer {
        display: none !important;
    }
}

/* =========================================================
   ACCESSIBILITY ICON BUTTON (PERSIS HRPB)
   ========================================================= */
.accessibility-btn {
    background-color: #2b84ff !important; /* Warna biru butang HRPB */
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 10px !important;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3) !important;
    z-index: 99999 !important;
}

.accessibility-btn:hover {
    background-color: #0056b3 !important;
}

/* Memastikan tetingkap pop-up aksesibiliti berada di atas elemen lain */
.accessibility-menu {
    z-index: 999999 !important;
    font-family: 'Poppins', sans-serif !important;
}


/* =========================================================
   HAPUSKAN FOOTER2 & PUSATKAN FOOTER1 (CENTER)
   ========================================================= */

/* 1. Sembunyikan/Padamkan kedudukan footer2 terus */
#sp-footer2 {
    display: none !important;
}

/* 2. Setkan footer1 mengambil 100% lebar dan berada di tengah */
#sp-footer1 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* 3. Pastikan semua elemen pautan & teks hak cipta duduk di tengah */
#sp-footer1 .mod-custom,
#sp-footer1 .footer-policy-links,
#sp-footer1 .sp-copyright,
#sp-footer1 div,
#sp-footer1 p {
    text-align: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* =========================================================
   MEMBETULKAN SUSUNAN LOGO (KIRI) & MENU (KANAN) SELARI
   ========================================================= */

/* 1. Paksa baris header menyusun elemen dari KIRI ke KANAN */
#sp-header .container .row,
#sp-header .container-inner .row {
    display: flex !important;
    flex-direction: row !important; /* Elak logo melompat ke kanan */
    align-items: center !important;  /* Selaraskan logo & menu di tengah menegak */
    justify-content: space-between !important;
    flex-wrap: nowrap !important;   /* Elak menu pecah/turun ke bawah */
    width: 100% !important;
}

/* 2. Paksa Bekas Logo kekal di KIRI */
#sp-logo {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 350px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

#sp-logo img, 
#sp-logo .logo-image {
    height: 75px !important;       /* Ketinggian logo yang seimbang */
    max-height: 75px !important;
    width: auto !important;
    display: block !important;
}

/* 3. Paksa Bekas Menu kekal di KANAN dan selari di tengah */
#sp-menu {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

#sp-menu .sp-megamenu-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
}

/* 4. Kecilkan sedikit jarak (padding) item menu supaya tidak terlebih lebar */
.sp-megamenu-parent > li {
    padding: 0 10px !important;
}

.sp-megamenu-parent > li > a, 
.sp-megamenu-parent > li > span {
    line-height: 75px !important;  /* Samakan line-height dengan tinggi logo */
    height: 75px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 15px !important;
    white-space: nowrap !important; /* Elak teks menu terputus dua baris */
}


/* =========================================================
   PELARASAN HEADER COMPACT & FIX BAR JKNPP TERPOTONG
   ========================================================= */

/* 1. Benarkan kontena Header melaras ketinggian secara dinamik */
#sp-header,
header#sp-header {
    height: auto !important;
    min-height: 65px !important;    /* Ketinggian asas header yang padat */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible !important;   /* Elak elemen bawah / bar JKNPP terpotong */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* 2. Pelarasan Kontena Bekas Logo */
#sp-logo {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 400px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 15px 0 0 !important;
    height: 65px !important;
}

/* 3. Saiz Gambar Logo HPP */
#sp-logo img,
header#sp-header .logo img,
.logo-image {
    height: 52px !important;        /* Ketinggian logo yang padat & jelas */
    max-height: 52px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* 4. Pelarasan Item Megamenu */
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
    line-height: 65px !important;   /* Samakan line-height dengan tinggi header */
    height: 65px !important;        /* Kunci tinggi menu sebaris logo */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 5. Pastikan Bar Portal JKNPP / Banner tidak bertindih ke dalam Header */
#sp-main-body,
#sp-page-title,
.sp-page-builder,
#section-id-52050ac3-bde6-4ca4-97a4-92acc7a07910 {
    clear: both !important;
    position: relative !important;
    z-index: 1 !important;
}

/* =========================================================
   PAKSA CONTAINER HEADER & MEGAMENU SAMA LEBAR DI SEMUA HALAMAN
   ========================================================= */

/* 1. Neutral-kan bekas induk header supaya tidak terikat dengan lebar artikel */
#sp-header .container,
body #sp-header .container,
body.com-content #sp-header .container,
body.view-article #sp-header .container {
    max-width: 1320px !important;       /* Lebar kontena standard Home Page */
    width: 100% !important;
    position: relative !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2. Matikan pengehad relatif pada ruang menu supaya megamenu tidak mengecut */
#sp-header #sp-menu,
#sp-header .sp-megamenu-wrapper {
    position: static !important;
}

/* 3. Paksa Dropdown Megamenu mengembang penuh mengikut Container 1320px */
#sp-header .sp-dropdown.sp-dropdown-mega,
body.com-content .sp-dropdown.sp-dropdown-mega,
body.view-article .sp-dropdown.sp-dropdown-mega {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    transform: none !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 0 8px 8px !important;
    padding: 25px 30px !important;
    z-index: 999999 !important;
    box-sizing: border-box !important;
}

/* 4. Susun 4 Lajur Direktorat Selari & Seimbang */
#sp-header .sp-dropdown-mega .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    width: 100% !important;
}

#sp-header .sp-dropdown-mega [class*="col-"] {
    flex: 1 1 25% !important;
    max-width: 25% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

/* =========================================================
   OVERRIDE MEGAMENU PERKHIDMATAN (1140PX FULL WIDTH)
   ========================================================= */

/* 1. Setkan bekas menu supaya membaca kelebaran container utama */
#sp-header #sp-menu,
#sp-header .sp-megamenu-wrapper {
    position: static !important;
}

/* 2. Setkan tetingkap Megamenu di tengah-tengah dengan lebar 1140px */
#sp-header .sp-dropdown.sp-dropdown-mega {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 1140px !important;
    max-width: 95vw !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 0 8px 8px !important;
    padding: 25px !important;
    z-index: 999999 !important;
    box-sizing: border-box !important;
}

/* 3. Paksa 4 Column direktorat disusun berbaris selari (25% setiap satu) */
#sp-header .sp-dropdown-mega .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    width: 100% !important;
}

#sp-header .sp-dropdown-mega [class*="col-"] {
    flex: 1 1 25% !important;
    width: 25% !important;
    max-width: 25% !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
}

#sp-header .sp-dropdown-mega a {
    white-space: normal !important;
}

/* =========================================================
   PERATAKAN TAJUK DIREKTORAT MEGAMENU (ALIGN TO TOP)
   ========================================================= */

/* 1. Paksa baris lajur megamenu meratakan kandungan bermula dari ATAS */
#sp-header .sp-dropdown-mega .row,
.sp-megamenu-wrapper .sp-dropdown-mega .row {
    display: flex !important;
    align-items: flex-start !important; /* Paksa tajuk berada di atas sebaris */
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

/* 2. Pastikan setiap lajur (Column) tidak ditarik ke tengah/bawah */
#sp-header .sp-dropdown-mega [class*="col-"],
.sp-megamenu-wrapper .sp-dropdown-mega [class*="col-"] {
    align-self: flex-start !important;  /* Ikat ke tebing atas */
    vertical-align: top !important;
    flex: 1 1 25% !important;
    max-width: 25% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

/* 3. Kemaskan ruang tajuk direktorat supaya seragam */
#sp-header .sp-dropdown-mega .sp-module-title,
#sp-header .sp-dropdown-mega .sp-group-title,
.sp-megamenu-wrapper .sp-dropdown-mega .sp-menu-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0b3b60 !important;
    display: block !important;
    min-height: 45px !important;        /* Ketinggian ruang tajuk yang seragam */
}

/* =========================================================
   PENAMBAHBAIKAN DROPDOWN MENU STANDARDS / REGULAR (STYLE HRPB)
   ========================================================= */

/* 1. Tetapkan lebar dan tetingkap asas Dropdown Level 1 */
#sp-header .sp-dropdown {
    min-width: 260px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border-radius: 0 0 8px 8px !important;
    border-top: 3px solid #0b3b60 !important; /* Garis biru di atas dropdown */
    padding: 10px 0 !important;
}

/* 2. Berikan penjarakkan (spacing) & ketinggian baris yang selesa */
#sp-header .sp-dropdown .sp-dropdown-items > li {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

#sp-header .sp-dropdown .sp-dropdown-items > li > a {
    display: block !important;
    padding: 8px 20px !important;          /* Jarak padding atas/bawah & kiri/kanan */
    font-size: 13px !important;
    line-height: 1.5 !important;           /* Memastikan teks bertingkat tidak bertindih */
    color: #333333 !important;
    font-weight: 500 !important;
    white-space: normal !important;        /* Teks panjang akan turun baris dengan kemas */
    transition: all 0.2s ease-in-out !important;
}

/* 3. Indentation & Garis Panduan Kiri untuk Sub-Menu (Level 2 & Seterusnya) */
#sp-header .sp-dropdown .sp-dropdown-sub {
    min-width: 250px !important;
    background: #f8fafc !important;       /* Warna latar belakang sedikit berbeza */
    border-left: 3px solid #2b84ff !important; /* Garis penunjuk biru khas HRPB di kiri sub-menu */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    padding: 8px 0 !important;
}

/* Indent teks sub-menu masuk ke dalam */
#sp-header .sp-dropdown .sp-dropdown-sub li > a {
    padding-left: 25px !important;        /* Teks di-indent ke dalam */
    font-size: 12.5px !important;
    color: #555555 !important;
}

/* 4. Kesan Hover pada Pautan Menu & Sub-Menu */
#sp-header .sp-dropdown a:hover {
    background-color: #f1f5f9 !important;
    color: #2b84ff !important;            /* Bertukar warna biru */
    padding-left: 24px !important;        /* Berenjot sedikit ke kanan apabila hover */
}

#sp-header .sp-dropdown .sp-dropdown-sub a:hover {
    padding-left: 29px !important;        /* Berenjot untuk sub-menu */
}


/* =========================================================
   GANTIAN: STYLE BUTANG TEXT LINK PERSIS JKN PERAK (KANAN)
   ========================================================= */

/* 1. Paksa pembungkus butang melekat di hujung kanan */
.sppb-addon-button,
.sppb-addon-button .sppb-button-wrapper {
    display: flex !important;
    justify-content: flex-end !important; /* Paksa posisi ke hujung kanan */
    width: 100% !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
}

/* 2. Format Pautan Teks (Garisan Bawah Pendek Mengikut Saiz Teks Sahaja) */
.sppb-addon-button a.sppb-btn,
.sppb-addon-button a.sppb-btn-link {
    display: inline-flex !important;      /* Elak garisan melebar 100% */
    width: auto !important;               /* Lebar mengecut ikut saiz teks */
    align-items: center !important;
    gap: 6px !important;
    background-color: transparent !important;
    color: #3366FF !important;            /* Warna biru JKN Perak */
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: 1.5px solid #3366FF !important; /* Garisan halus pendek di bawah teks */
    padding: 2px 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
}

/* 3. Kesan Hover */
.sppb-addon-button a.sppb-btn:hover,
.sppb-addon-button a.sppb-btn-link:hover {
    color: #0037DD !important;
    border-bottom-color: #0037DD !important;
    background-color: transparent !important;
}

/* 4. Saiz Ikon FontAwesome */
.sppb-addon-button a.sppb-btn i {
    font-size: 12px !important;
    color: #3366FF !important;
}

/* =========================================================
   PAKSA BUTANG AKTIVITI TERDAHULU PATUH DUDUK DI KANAN
   ========================================================= */

/* 1. Paksa pembungkus addon (div utama) ke tebing kanan */
div:has(> .sppb-addon-button),
.sppb-addon-wrapper:has(a[href*="aktiviti"]),
.sppb-addon-button {
    text-align: right !important;
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
    margin-top: 15px !important;
    margin-bottom: 25px !important;
    padding-right: 15px !important; /* Jarak dari tebing kanan */
}

/* 2. Format Butang Link supaya tidak mengembang melintang */
.sppb-addon-button a,
.sppb-addon-button a.sppb-btn {
    display: inline-flex !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    float: right !important;
    align-items: center !important;
    gap: 6px !important;
    background-color: transparent !important;
    color: #3366FF !important;            /* Warna biru JKN Perak */
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: 1.5px solid #3366FF !important; /* Garisan di bawah teks sahaja */
    padding: 2px 0 !important;
    box-shadow: none !important;
}

/* 3. Kesan Hover */
.sppb-addon-button a:hover {
    color: #0037DD !important;
    border-bottom-color: #0037DD !important;
    background-color: transparent !important;
}

/* =========================================================
   1. PAKSA TEKS/TAJUK ARTICLES SCROLLER KEKAL ALIGN KIRI
   ========================================================= */
.sppb-addon-articles-carousel,
.sppb-addon-articles-carousel *,
.sppb-addon-articles-scroller,
.sppb-addon-articles-scroller *,
.sppb-articles-carousel-title,
.sppb-articles-carousel-link,
.sppb-articles-carousel-meta {
    text-align: left !important;
}

/* =========================================================
   1. KEKALKAN TAJUK ARTICLES SCROLLER KANAN/KIRI DENGAN KEMAS
   ========================================================= */
.sppb-addon-articles-carousel,
.sppb-addon-articles-carousel *,
.sppb-addon-articles-scroller,
.sppb-addon-articles-scroller *,
.sppb-articles-carousel-title,
.sppb-articles-carousel-link,
.sppb-articles-carousel-meta {
    text-align: left !important;
}

/* =========================================================
   2. PAKSA KEKALKAN LAJUR KIRI SEBAGAI ACUAN POSISI
   ========================================================= */
.sppb-row:has(.sppb-addon-articles-carousel) [class*="sppb-col-"]:first-child,
div:has(> .sppb-addon-articles-carousel) {
    position: relative !important;
}

/* =========================================================
   1. PEMBAIKAN GAMBAR CAROUSEL (BETULKAN GAMBAR HILANG)
   ========================================================= */
.sppb-addon-articles-carousel .slick-slide img,
.sppb-addon-articles-carousel img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100% !important;
    height: auto !important;
}

/* 2. Setkan tajuk artikel kekal di kiri */
.sppb-addon-articles-carousel .sppb-articles-carousel-link,
.sppb-addon-articles-carousel .sppb-articles-carousel-meta,
.sppb-addon-articles-carousel .sppb-articles-carousel-content {
    text-align: left !important;
}

/* =========================================================
   1. BUANG SPACING BAWAH PADA ARTICLES SCROLLER
   ========================================================= */
.sppb-addon-articles-scroller,
.sppb-addon-articles-scroller .sppb-addon-content,
.sppb-article-scroller-wrap,
.sppb-addon-articles-scroller .bx-wrapper,
.sppb-addon-articles-scroller .bx-viewport {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
}

/* Ensure tajuk artikel kekal align kiri */
.sppb-addon-articles-scroller .sppb-addon-articles-scroller-title,
.sppb-addon-articles-scroller .sppb-articles-scroller-introtext,
.sppb-addon-articles-scroller .sppb-articles-scroller-content {
    text-align: left !important;
}

/* =========================================================
   1. BUANG SPACING BAWAH PADA ARTICLES SCROLLER
   ========================================================= */
.sppb-addon-articles-scroller,
.sppb-addon-articles-scroller .sppb-addon-content,
.sppb-article-scroller-wrap,
.sppb-addon-articles-scroller .bx-wrapper,
.sppb-addon-articles-scroller .bx-viewport {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure tajuk artikel kekal align kiri */
.sppb-addon-articles-scroller .sppb-addon-articles-scroller-title,
.sppb-addon-articles-scroller .sppb-articles-scroller-introtext,
.sppb-addon-articles-scroller .sppb-articles-scroller-content {
    text-align: left !important;
}

/* =========================================================
   BUANG SEMUA SPACING/MARGIN DALAM ACCORDION (PERSIS JKN PERAK)
   ========================================================= */

/* 1. Buang margin pada semua teks, perenggan & div di dalam Accordion */
.sppb-addon-accordion .sppb-panel-body p,
.sppb-addon-accordion .sppb-panel-body div,
.sppb-addon-accordion .sppb-panel-body h1,
.sppb-addon-accordion .sppb-panel-body h2,
.sppb-addon-accordion .sppb-panel-body h3,
.sppb-addon-accordion .sppb-panel-body h4,
.sppb-addon-accordion .sppb-panel-body h5,
.sppb-addon-accordion .sppb-panel-body h6,
.sppb-addon-accordion .sppb-panel-body ul,
.sppb-addon-accordion .sppb-panel-body li {
    margin-top: 0 !important;
    margin-bottom: 2px !important;       /* Jarak sangat rapat sebaris macam JKN Perak */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.4 !important;          /* Jarak antara baris yang kemas */
}

/* 2. Rapatkan jarak tajuk kecil (cth: SENARAI TADBIRAN JKN PERAK) */
.sppb-addon-accordion .sppb-panel-body strong,
.sppb-addon-accordion .sppb-panel-body b {
    display: inline-block !important;
    margin-top: 6px !important;          /* Beri jarak halus sebelum tajuk kecil baharu */
    margin-bottom: 2px !important;
}

/* 3. Buang padding berlebihan pada bekas putih Accordion */
.sppb-addon-accordion .sppb-panel-body {
    padding: 12px 15px !important;       /* Padding kotak luar yang seimbang */
    height: auto !important;
    min-height: 0 !important;
}

/* 4. Buang garisan <br /> berlebihan jika ada */
.sppb-addon-accordion .sppb-panel-body br {
    display: none !important;            /* Padam jarak enter kosong berlebihan */
}

/* =========================================================
   KHAS ACCORDION SAHAJA (LATAR SOFT, PAUTAN KAD & GAP RAPAT)
   ========================================================= */

/* 1. Latar Belakang Bekas Accordion (Warna Soft Corporate Grey/Blue) */
.sppb-addon-accordion .sppb-panel-collapse,
.sppb-addon-accordion .sppb-panel-body {
    background-color: #f4f7fa !important; /* Kelabu-Biru Cair Lembut */
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    padding: 12px !important;
    height: auto !important;
    min-height: 0 !important;
}

/* 2. Tajuk Kategori (WARGANEGARA / BUKAN WARGANEGARA) */
.sppb-addon-accordion .sppb-panel-body strong,
.sppb-addon-accordion .sppb-panel-body b {
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0b3b60 !important;             /* Biru Korporat HPP */
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    margin-top: 10px !important;
    margin-bottom: 6px !important;
    padding-bottom: 3px !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

.sppb-addon-accordion .sppb-panel-body p:first-child strong,
.sppb-addon-accordion .sppb-panel-body p:first-child b {
    margin-top: 2px !important;
}

/* 3. Buang Spacing Perenggan <p>, <div>, <ul> yang Menyebabkan Jarak Kangkang */
.sppb-addon-accordion .sppb-panel-body p,
.sppb-addon-accordion .sppb-panel-body div,
.sppb-addon-accordion .sppb-panel-body ul,
.sppb-addon-accordion .sppb-panel-body li {
    margin-top: 0 !important;
    margin-bottom: 3px !important;          /* Jarak sangat rapat & rata */
    padding: 0 !important;
    line-height: 1.3 !important;
}

.sppb-addon-accordion .sppb-panel-body br {
    display: none !important;               /* Padam jarak enter kosong berlebihan */
}

/* 4. Format Pautan Link (Kad Putih Rapat & Interaktif) */
.sppb-addon-accordion .sppb-panel-body a {
    font-family: 'Poppins', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    padding: 5px 10px !important;           /* Padding rapat & seragam */
    margin-bottom: 3px !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;   /* Kad Putih halus di atas latar soft grey */
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease-in-out !important;
}

/* Ikon Anak Panah Kiri Sebelum Teks */
.sppb-addon-accordion .sppb-panel-body a::before {
    content: "›" !important;
    font-size: 15px !important;
    font-weight: bold !important;
    color: #0b3b60 !important;
    margin-right: 8px !important;
    line-height: 1 !important;
}

/* 5. Kesan Mouse Over / Hover Highlight (Biru Terang HPP) */
.sppb-addon-accordion .sppb-panel-body a:hover {
    background-color: #2b84ff !important;  /* Highlight Biru Terang HPP */
    color: #ffffff !important;             /* Teks Putih */
    border-color: #2b84ff !important;
    padding-left: 14px !important;         /* Berenjot halus ke kanan */
}

.sppb-addon-accordion .sppb-panel-body a:hover::before {
    color: #ffffff !important;
}
/* =========================================================
   BUANG BULLET & SPACING KIRI DALAM ACCORDION
   ========================================================= */

/* 1. Padamkan bullet titik hitam, padding & margin senarai list (UL / LI) */
.sppb-addon-accordion .sppb-panel-body ul,
.sppb-addon-accordion .sppb-panel-body ol {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.sppb-addon-accordion .sppb-panel-body li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* 2. Format Pautan (Buang garisan/border di sebelah kiri & rapatkan ke kiri) */
.sppb-addon-accordion .sppb-panel-body a {
    border-left: none !important;         /* Buang sebarang garisan tebing kiri */
    margin-left: 0 !important;
    padding-left: 8px !important;         /* Jarak rapat dari tebing kiri */
}

/* 3. Pastikan kesan Hover tetap kemas tanpa sebarang garisan kiri */
.sppb-addon-accordion .sppb-panel-body a:hover {
    border-left: none !important;
    padding-left: 12px !important;        /* Berenjot sikit sahaja ke kanan semasa hover */
}

/* =========================================================
   FIX PORTAL JKNPP: TEKS/IKON PUTIH (HOVER BEKERJASAMA KUNING)
   ========================================================= */

/* 1. Keadaan Asal (Default): Paksa Teks & Tajuk Jadi PUTIH BERSIH */
#sppb-addon-a61c017f-d306-4a96-9946-64c3f70f8eaa,
#sppb-addon-a61c017f-d306-4a96-9946-64c3f70f8eaa a,
#sppb-addon-a61c017f-d306-4a96-9946-64c3f70f8eaa .sppb-addon-title,
#sppb-addon-a61c017f-d306-4a96-9946-64c3f70f8eaa h6 {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.3s ease-in-out !important;
}

/* 2. Keadaan Asal (Default): Paksa Ikon Rumah/Tanda Jadi PUTIH BERSIH */
#sppb-addon-a61c017f-d306-4a96-9946-64c3f70f8eaa .sppb-addon-title-icon,
#sppb-addon-a61c017f-d306-4a96-9946-64c3f70f8eaa i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: all 0.3s ease-in-out !important;
}

/* 3. Kesan Hover: Tukar Teks, Tajuk & Ikon Ke WARNA KUNING EMAS */
#sppb-addon-a61c017f-d306-4a96-9946-64c3f70f8eaa a:hover,
#sppb-addon-a61c017f-d306-4a96-9946-64c3f70f8eaa a:hover .sppb-addon-title,
#sppb-addon-a61c017f-d306-4a96-9946-64c3f70f8eaa:hover .sppb-addon-title {
    color: #ffd700 !important;
}

/* 4. Kesan Hover: Tukar Ikon Rumah Ke WARNA KUNING EMAS */
#sppb-addon-a61c017f-d306-4a96-9946-64c3f70f8eaa a:hover .sppb-addon-title-icon,
#sppb-addon-a61c017f-d306-4a96-9946-64c3f70f8eaa a:hover i,
#sppb-addon-a61c017f-d306-4a96-9946-64c3f70f8eaa:hover .sppb-addon-title-icon {
    color: #ffd700 !important;
    -webkit-text-fill-color: #ffd700 !important;
}

/* =========================================================
   TAJUK ACCORDION KEKAL KIRI & ARROW KANAN
   ========================================================= */

/* 1. Pastikan bekas tajuk kekal rapat di KIRI */
.sppb-addon-accordion .sppb-panel-heading {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Paksa teks & ikon kekal rapat di KIRI */
    gap: 10px !important;                     /* Jarak kemas antara ikon & teks */
    padding-right: 45px !important;         /* Ruang rizab di kanan untuk anak panah */
    text-align: left !important;
}

/* 2. Cipta Ikon Anak Panah (Chevron Down) Melayang di KANAN */
.sppb-addon-accordion .sppb-panel-heading::after {
    content: "\f078" !important;             /* Kod FontAwesome fa-chevron-down */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    color: #ffffff !important;               /* Warna ikon anak panah (Putih) */
    position: absolute !important;
    right: 18px !important;                  /* Kunci posisi di tebing KANAN sahaja */
    top: 50% !important;
    transform: translateY(-50%) !important;  /* Selari menegak di tengah */
    transition: transform 0.3s ease !important; /* Animasi pusingan yang licin */
}

/* 3. Pusingkan Anak Panah Ke Keadaan Buka (Chevron Up) Apabila Aktif */
.sppb-addon-accordion .sppb-panel-heading.active::after,
.sppb-addon-accordion .sppb-panel-heading[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg) !important; /* Pusing 180 darjah ke atas */
    color: #00e5ff !important;                            /* Warna Cyan terang bila terbuka */
}

/* =========================================================
   SERAGAMKAN GAMBAR & FONT BERITA & AKTIVITI HOSPITAL
   ========================================================= */

/* 1. Format & Seragamkan Font Tajuk Artikel (14px, Max 2 Baris) */
.sppb-addon-articles-carousel .sppb-articles-carousel-link,
.sppb-addon-articles-carousel .sppb-articles-carousel-title a,
.scroller-asal .sppb-articles-carousel-link,
.scroller-penuh .sppb-articles-carousel-link {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
    
    /* Hadkan tajuk panjang kepada 2 baris sahaja dengan '...' */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 40px !important;             /* Kunci tinggi tajuk supaya selari */
}

/* 2. Format & Seragamkan Tarikh Artikel */
.sppb-addon-articles-carousel .sppb-articles-carousel-meta,
.sppb-addon-articles-carousel .sppb-articles-carousel-meta-date {
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-bottom: 6px !important;
    display: block !important;
    text-transform: uppercase !important;
}

/* 3. Seragamkan Saiz Gambar Berita Terkini (Format Melintang 200px) */
.scroller-asal .sppb-articles-carousel-img,
.scroller-asal .sppb-article-img {
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: hidden !important;
    background-color: #f1f5f9 !important;
    border-radius: 6px 6px 0 0 !important;
}

.scroller-asal img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;        /* Paksa gambar Penuh tanpa penyek/terherot */
    object-position: center !important;  /* Fokus bahagian tengah gambar */
    display: block !important;
}

/* 4. Seragamkan Saiz Poster Aktiviti Hospital (Format Tegak A4 340px) */
.scroller-penuh .sppb-articles-carousel-img,
.scroller-penuh .sppb-article-img {
    width: 100% !important;
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
    overflow: hidden !important;
    background-color: #f1f5f9 !important;
    border-radius: 6px 6px 0 0 !important;
}

.scroller-penuh img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;        /* Paksa poster Penuh */
    object-position: top center !important; /* Fokus bahagian ATAS poster */
    display: block !important;
}

/* 5. Ratakan Tapak Kad Kandungan Supaya Selari Rata */
.sppb-addon-articles-carousel .sppb-articles-carousel-column {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.sppb-addon-articles-carousel .sppb-articles-carousel-content {
    flex-grow: 1 !important;
    padding: 12px 14px 15px 14px !important;
    background-color: #ffffff !important;
}


/* =========================================================
   TAJUK HEADER KORPORAT HPP (UNIVERSAL UNTUK BM & EN)
   ========================================================= */

/* 1. Format Teks Tajuk Seksyen (Font, Warna, Saiz) */
.sppb-section-title,
.sppb-section-title *,
.sppb-title-heading {
    font-family: 'Poppins', 'Inter', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0b3b60 !important;             /* Biru Korporat HPP */
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;  /* Huruf Besar Korporat */
    text-align: left !important;
}

/* 2. Tambah Garis Aksen Biru Kiri & Pemisah Bawah */
.sppb-section-title {
    border-left: 5px solid #2b84ff !important; /* Garis Aksen Biru Terang */
    border-bottom: 1px solid #cbd5e1 !important; /* Garisan Pemisah Cair */
    padding-left: 12px !important;
    padding-bottom: 8px !important;
    margin-bottom: 22px !important;
    display: block !important;
}

/* =========================================================
   REKA BENTUK WAKTU MELAWAT (SERAGAM 100% & ALIGN CENTER)
   ========================================================= */

/* 1. Neutral-kan bekas Accordion khusus untuk Waktu Melawat & Set Watermark Relative URL */
.sppb-addon-accordion .sppb-panel-body:has(.hpp-wm-wrap) {
    position: relative !important;
    padding: 20px 10px !important;
    background-color: #f4f8fb !important;
    overflow: hidden !important;
}

/* Watermark Logo Agency (Relative URL untuk semua PC) */
.sppb-addon-accordion .sppb-panel-body:has(.hpp-wm-wrap)::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 190px !important;
    height: 190px !important;
    background-image: url('/hpp/images/hpp/agency-logo.png') !important; /* Relative URL */
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    opacity: 0.15 !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.hpp-wm-wrap, 
.hpp-wm-wrap * {
    text-align: center !important;
    box-sizing: border-box !important;
}

/* 2. Bekas Utama Kad */
.hpp-wm-wrap {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* 3. Kotak Kad Utama (Padam Background Putih Sepenuhnya) */
.hpp-wm-card {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 4. Header Tajuk Kategori & Ikon */
.hpp-wm-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
    width: 100% !important;
}

.hpp-wm-header i {
    font-size: 20px !important;
    color: #0b3b60 !important;
    margin-bottom: 4px !important;
    display: block !important;
}

.hpp-wm-header span {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;               /* Font dibesarkan ke 14px */
    font-weight: 800 !important;               /* Extra bold */
    color: #0b3b60 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #2b84ff !important;
    padding-bottom: 3px !important;
    display: inline-block !important;
}

/* 5. Lencana Masa Kapsul (Pills) */
.hpp-wm-badge,
.hpp-wm-badge-alt {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;               /* Font dibesarkan ke 14px */
    font-weight: 700 !important;
    padding: 8px 18px !important;
    margin: 4px auto !important;
    border-radius: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

/* Highlight Hari Bekerja (Soft Blue) */
.hpp-wm-badge {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.hpp-wm-badge i {
    color: #0284c7 !important;
    font-size: 15px !important;
}

/* Highlight Hujung Minggu / Cuti (Soft Emas) */
.hpp-wm-badge-alt {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.hpp-wm-badge-alt i {
    color: #d97706 !important;
    font-size: 15px !important;
}

/* =========================================================
   HAPUSKAN TEKS POWERED BY PHOCA DOWNLOAD
   ========================================================= */

/* Kaedah 1: Sembunyikan bekas pautan Phoca */
div[title*="Phoca"],
a[href*="phoca.cz"],
div.pd-cb + div[style*="text-align"],
#phoca-dl-categories-box + div,
div:has(> a[href*="phoca.cz"]) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   SERAGAMKAN SAIZ SEMUA LOGO APLIKASI (PAGE APLIKASI ATAS TALIAN)
   ========================================================= */

/* 1. Kunci ketinggian & lebar bingkai gambar */
.sp-page-builder .sppb-addon-single-image-container,
.sp-page-builder .sppb-addon-image .sppb-addon-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 110px !important;              /* Kunci tinggi ruang logo */
    width: 100% !important;
    padding: 10px !important;
    background-color: #f8fafc !important;   /* Kad latar kelabu cair korporat */
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03) !important;
    transition: all 0.3s ease-in-out !important;
}

/* 2. Paksa semua imej logo muat elok tanpa herot */
.sp-page-builder .sppb-addon-single-image img,
.sp-page-builder .sppb-addon-image img {
    max-height: 85px !important;           /* Hadkan tinggi maksimum imej */
    max-width: 85% !important;             /* Hadkan lebar maksimum imej */
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;        /* Kekalkan nisbah asal tanpa terpenyek */
    margin: 0 auto !important;
    display: block !important;
}

/* 3. Kesan hover apabila lalukan tetikus */
.sp-page-builder .sppb-addon-single-image-container:hover,
.sp-page-builder .sppb-addon-image .sppb-addon-content:hover {
    background-color: #ffffff !important;
    border-color: #2b84ff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(11, 59, 96, 0.1) !important;
}

/* =========================================================
   MEMBETULKAN HEADER, BURGER KANAN & HIDE TARIKH (MOBILE)
   ========================================================= */

@media (max-width: 991.98px) {
    
    /* 1. Sembunyikan Menu Teks Desktop di Mobile */
    .sp-megamenu-parent,
    .sp-megamenu-wrapper ul.sp-megamenu-parent,
    #sp-menu .sp-megamenu-parent {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }

    /* 2. Susun Baris Header: Logo (Kiri) & Burger (Kanan) */
    #sp-header .container .row,
    #sp-header .container-inner .row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        padding: 5px 10px !important;
        width: 100% !important;
    }

    /* 3. Logo Kekal di Sebelah KIRI */
    #sp-logo, 
    #sp-logo .logo {
        order: 1 !important;
        max-width: 70% !important;
        display: flex !important;
        align-items: center !important;
        margin-right: auto !important;
    }

    #sp-logo img, 
    header#sp-header .logo img,
    .logo-image {
        height: 48px !important;
        max-height: 48px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* 4. Paksa Butang Burger Pindah ke KANAN */
    .col-auto:has(#offcanvas-toggler),
    #offcanvas-toggler,
    .offcanvas-toggler-secondary,
    .offcanvas-toggler-left {
        order: 2 !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        cursor: pointer !important;
        z-index: 99999 !important;
    }

    /* 5. Bina Ikon 3 Garisan Hitam Pekat */
    .burger-icon {
        width: 26px !important;
        height: 18px !important;
        position: relative !important;
        display: block !important;
        border-top: 3px solid #000000 !important;
        border-bottom: 3px solid #000000 !important;
    }

    .burger-icon::before {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #000000 !important;
        transform: translateY(-50%) !important;
    }

    /* Matikan span asal supaya tidak bertindih */
    .burger-icon span {
        display: none !important;
    }

    /* 6. Sembunyikan Tarikh Dalam Topbar di Skrin Kecil */
    #sp-top1,
    .hpp-topbar-date,
    #hpp-date-display {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 7. Kemaskan Kotak Carian Topbar */
    #sp-top2 {
        width: 100% !important;
    }
    
    #sp-top2 .mod-finder, 
    #sp-top2 .mod-finder input {
        max-width: 150px !important;
    }
}

/* =========================================================
   MEMBETULKAN DESKTOP SITE MOBILE TANPA MEROSAKKAN DESKTOP
   ========================================================= */

/* 1. DIBACA OLEH SKRIN TELEFON & TABLET SAHAJA (MEMBAIKI ISU TERPOTONG) */
@media (max-width: 991.98px) {
    #section-id-52050ac3-bde6-4ca4-97a4-92acc7a07910 [class*="column-wrap-"],
    #section-id-52050ac3-bde6-4ca4-97a4-92acc7a07910 .sppb-row-column,
    #section-id-52050ac3-bde6-4ca4-97a4-92acc7a07910 .sppb-column {
        max-width: 100% !important;
        flex-basis: 100% !important;
        width: 100% !important;
    }

    #section-id-52050ac3-bde6-4ca4-97a4-92acc7a07910 .sppb-row-container,
    #section-id-52050ac3-bde6-4ca4-97a4-92acc7a07910 .sppb-row {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* 2. DIBACA OLEH SEMUA PERANTI (MEMPADAM BUCU MELENGKUNG & SPACING) */
#sppb-addon-228cc83e-c236-4b50-81a7-644ac04ce13b,
#sppb-addon-228cc83e-c236-4b50-81a7-644ac04ce13b *,
#section-id-52050ac3-bde6-4ca4-97a4-92acc7a07910 .sppb-carousel-extended-item,
#section-id-52050ac3-bde6-4ca4-97a4-92acc7a07910 .sppb-carousel-extended-item img {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    box-shadow: none !important;
}

/* =========================================================
   MEMBETULKAN SLAID PENDEK PADA SKRIN LEBAR (ULTRA-WIDE/PC)
   ========================================================= */

/* 1. Setkan ketinggian dinamik berasaskan nisbah kelebaran skrin */
#sppb-addon-32242dcb-8905-4b4c-9dbf-086ec6c523cd,
#sppb-sp-slider-32242dcb-8905-4b4c-9dbf-086ec6c523cd,
#sppb-sp-slider-32242dcb-8905-4b4c-9dbf-086ec6c523cd .sp-item {
    width: 100% !important;
    height: 32vw !important;             /* Ketinggian mengikut 32% kelebaran skrin secara automatik */
    min-height: 420px !important;        /* Ketinggian minimum selamat untuk laptop */
    max-height: 650px !important;        /* Pengehad maksimum untuk monitor PC ultra-wide */
    overflow: hidden !important;
}

/* 2. Paksa gambar latar belakang memenuhkan bingkai 100% */
#sppb-sp-slider-32242dcb-8905-4b4c-9dbf-086ec6c523cd .sp-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: 100% 100% !important; /* Stretch memenuhkan ruang */
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* 3. Ratakan ruang tepi container supaya sentiasa melekat ke tebing */
#section-id-52050ac3-bde6-4ca4-97a4-92acc7a07910 .sppb-container-inner,
#section-id-52050ac3-bde6-4ca4-97a4-92acc7a07910 .sppb-row,
#section-id-52050ac3-bde6-4ca4-97a4-92acc7a07910 [class*="sppb-col-"],
#sppb-addon-wrapper-32242dcb-8905-4b4c-9dbf-086ec6c523cd {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 4. Pelarasan Khas Untuk Skrin Tablet & Mobile */
@media (max-width: 991.98px) {
    #sppb-addon-32242dcb-8905-4b4c-9dbf-086ec6c523cd,
    #sppb-sp-slider-32242dcb-8905-4b4c-9dbf-086ec6c523cd,
    #sppb-sp-slider-32242dcb-8905-4b4c-9dbf-086ec6c523cd .sp-item {
        height: 280px !important;
        min-height: 280px !important;
    }
}

@media (max-width: 575.98px) {
    #sppb-addon-32242dcb-8905-4b4c-9dbf-086ec6c523cd,
    #sppb-sp-slider-32242dcb-8905-4b4c-9dbf-086ec6c523cd,
    #sppb-sp-slider-32242dcb-8905-4b4c-9dbf-086ec6c523cd .sp-item {
        height: 180px !important;
        min-height: 180px !important;
    }
}

/* =========================================================
   SERAGAMKAN GAMBAR BERITA TERKINI (FULL FIT & SAME HEIGHT)
   ========================================================= */

/* 1. Kunci ketinggian kontena gambar secara tegar */
.scroller-asal .sppb-articles-carousel-img,
.scroller-asal .sppb-article-img,
.scroller-asal .sppb-articles-carousel-img-link {
    display: block !important;
    width: 100% !important;
    height: 220px !important;              /* Ketinggian ideal untuk kad berita */
    min-height: 220px !important;
    max-height: 220px !important;
    overflow: hidden !important;
    background-color: #f1f5f9 !important;
    border-radius: 6px 6px 0 0 !important;
}

/* 2. Paksa gambar MEMENUHI (COVER) 100% ruang tanpa terpotong kosong */
.scroller-asal .sppb-articles-carousel-img img,
.scroller-asal .sppb-article-img img,
.scroller-asal img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;          /* Memenuhi seluruh ruang 220px */
    object-position: center center !important; /* Fokus bahagian tengah gambar */
    display: block !important;
    transition: transform 0.3s ease !important;
}

/* 3. Kesan Zoom Halus Apabila Tetikus Disentuh (Optional Hover Effect) */
.scroller-asal .sppb-articles-carousel-img:hover img {
    transform: scale(1.05) !important;
}


/* =========================================================
   1. SERAGAMKAN KETINGGIAN KAD & SUSUNAN (FEATURE BOX)
   ========================================================= */
#section-id-1785295995097 .sppb-row-column {
    padding: 0 8px !important;
}

#section-id-1785295995097 .sppb-addon-feature {
    border-radius: 16px !important;
    padding: 20px 10px !important;
    text-align: center !important;
    
    /* Ketinggian kad kekal seragam */
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease-in-out !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    cursor: pointer !important;
}

/* =========================================================
   2. TEMA GRADIENT & BORDER WARNA KAD
   ========================================================= */
#section-id-1785295995097 .card-blue { background: linear-gradient(180deg, #FFFFFF 0%, #EBF3FA 100%) !important; border: 2px solid #1565C0 !important; box-shadow: 0 10px 22px rgba(21, 101, 192, 0.15) !important; }
#section-id-1785295995097 .card-teal { background: linear-gradient(180deg, #FFFFFF 0%, #E6F4F5 100%) !important; border: 2px solid #00838F !important; box-shadow: 0 10px 22px rgba(0, 131, 143, 0.15) !important; }
#section-id-1785295995097 .card-orange { background: linear-gradient(180deg, #FFFFFF 0%, #FFF4E5 100%) !important; border: 2px solid #EF6C00 !important; box-shadow: 0 10px 22px rgba(239, 108, 0, 0.15) !important; }
#section-id-1785295995097 .card-purple { background: linear-gradient(180deg, #FFFFFF 0%, #F5EBF8 100%) !important; border: 2px solid #6A1B9A !important; box-shadow: 0 10px 22px rgba(106, 27, 154, 0.15) !important; }

/* =========================================================
   3. MEMBESARKAN GAMBAR FEATURE BOX (PUBLIC, STAFF, DLL)
   ========================================================= */
#section-id-1785295995097 .sppb-img-container,
#section-id-1785295995097 .sppb-media-content {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#section-id-1785295995097 .sppb-img-container img,
#section-id-1785295995097 .sppb-addon-feature img {
    /* Saiz imej dibesarkan daripada 200px ke 230px */
    width: 230px !important;
    max-width: 95% !important;
    height: auto !important;
    max-height: 210px !important;            /* Ketinggian maksima dinaikkan ke 210px */
    object-fit: contain !important;
    margin: 0 auto 5px auto !important;
    display: block !important;
    background: transparent !important;
    border-radius: 0 !important;
    filter: drop-shadow(0px 8px 14px rgba(0, 0, 0, 0.18)) !important;
    
    /* Kesan Transisi Animasi */
    transition: transform 0.35s ease, filter 0.35s ease !important;
}

/* KESAN MOUSE OVER: Gambar Membesar Sikit (Zoom 3D) */
#section-id-1785295995097 .sppb-addon-feature:hover img {
    transform: scale(1.08) !important;
    filter: drop-shadow(0px 12px 22px rgba(0, 0, 0, 0.28)) !important;
}

/* Kad Terangkat Sikit */
#section-id-1785295995097 .sppb-addon-feature:hover {
    transform: translateY(-4px) !important;
}

/* Gaya Tajuk di Bawah Gambar */
#section-id-1785295995097 .sppb-feature-box-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
}

#section-id-1785295995097 .card-blue .sppb-feature-box-title { color: #1565C0 !important; }
#section-id-1785295995097 .card-teal .sppb-feature-box-title { color: #00838F !important; }
#section-id-1785295995097 .card-orange .sppb-feature-box-title { color: #EF6C00 !important; }
#section-id-1785295995097 .card-purple .sppb-feature-box-title { color: #6A1B9A !important; }

/* =========================================================
   4. HOVER OVERLAY MENU KKM (GELONGSOR NAIK DARI BAWAH)
   ========================================================= */
#section-id-1785295995097 .sppb-addon-text-desc {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(238, 242, 246, 0.97) !important;
    padding: 20px 15px !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    
    opacity: 0 !important;
    transform: translateY(100%) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important;
}

/* KESAN MOUSE OVER: Menu Gelongsor Naik Menutupi Kad */
#section-id-1785295995097 .sppb-addon-feature:hover .sppb-addon-text-desc {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Gaya Senarai Menu */
#section-id-1785295995097 .sppb-addon-text-desc ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

#section-id-1785295995097 .sppb-addon-text-desc ul li {
    position: relative !important;
    padding-left: 16px !important;
    margin-bottom: 6px !important;
    text-align: left !important;
}

#section-id-1785295995097 .sppb-addon-text-desc ul li::before {
    content: "›" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #0b3b60 !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

#section-id-1785295995097 .sppb-addon-text-desc ul li a {
    color: #0d1950 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

#section-id-1785295995097 .sppb-addon-text-desc ul li a:hover {
    color: #2b84ff !important;
    text-decoration: underline !important;
}


/* ==========================================
   1. REKA BENTUK BEKAS BUTANG TAB & JARAK
   ========================================== */
.sppb-addon-tab .sppb-tab-header,
.sppb-addon-tab ul.sppb-nav,
.sppb-addon-tab .sppb-nav-tabs {
    display: flex !important;
    gap: 15px !important;                 /* Jarak berasingan antara setiap butang tab */
    border-bottom: 3px solid #e2e8f0 !important;
    padding-bottom: 10px !important;
    margin-bottom: 35px !important;        /* Jarak antara tab dengan kad */
}

/* ==========================================
   2. REKA BENTUK TULISAN & BUTANG TAB (BESAR)
   ========================================== */
.sppb-addon-tab .sppb-tab-header li,
.sppb-addon-tab ul.sppb-nav li,
.sppb-addon-tab .sppb-nav-tabs > li {
    margin: 0 !important;
    list-style: none !important;
}

/* Gaya Asas Butang Tab (Bukan Aktif) */
.sppb-addon-tab .sppb-tab-header li a,
.sppb-addon-tab ul.sppb-nav li a,
.sppb-addon-tab .sppb-nav-tabs > li > a {
    font-size: 18px !important;            /* Saiz tulisan lebih besar & jelas */
    font-weight: 700 !important;           /* Tulisan tebal (Bold) */
    color: #334155 !important;              /* Warna teks kelabu gelap */
    background-color: #f1f5f9 !important;   /* Latar lembut */
    border: 2px solid #cbd5e1 !important;    /* Garisan bingkai butang */
    border-radius: 10px !important;         /* Bucu butang melengkung moden */
    padding: 12px 30px !important;          /* Ruang dalaman butang lebih luas */
    display: inline-block !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================
   3. KESAN HOVER & HIGHLIGHTER (TAB AKTIFF)
   ========================================== */

/* Kesan Hover (Bila Tetikus Lalukan Atas Tab) */
.sppb-addon-tab .sppb-tab-header li a:hover,
.sppb-addon-tab ul.sppb-nav li a:hover,
.sppb-addon-tab .sppb-nav-tabs > li > a:hover {
    color: #011950 !important;
    background-color: #e2e8f0 !important;
    border-color: #011950 !important;
    transform: translateY(-3px) !important;  /* Butang terangkat sikit */
    box-shadow: 0 5px 12px rgba(1, 25, 80, 0.15) !important;
}

/* HIGHLIGHTER COLOR: Tab Yang Aktif/Dipilih */
.sppb-addon-tab .sppb-tab-header li.active a,
.sppb-addon-tab .sppb-tab-header li.sppb-active a,
.sppb-addon-tab ul.sppb-nav li.active a,
.sppb-addon-tab ul.sppb-nav li.sppb-active a,
.sppb-addon-tab .sppb-nav-tabs > li.active > a,
.sppb-addon-tab .sppb-nav-tabs > li.sppb-active > a {
    color: #ffffff !important;              /* Tulisan warna putih */
    /* Warna Highlighter Gradien KKM (Biru Gelap ke Biru Terang) */
    background: linear-gradient(135deg, #011950 0%, #3b82f6 100%) !important; 
    border-color: #011950 !important;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.35) !important; /* Kesan Glowing/Highlighter */
    transform: translateY(-2px) !important;
}

/* ==========================================
   4. STYLING BINGKAI KAD APLIKASI
   ========================================== */
.sppb-addon-feature, 
.sppb-addon-single-image {
    background-color: #f8f9fa !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px 15px !important;
    text-align: center !important;
    transition: all 0.3s ease-in-out !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 210px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03) !important;
}

.sppb-addon-feature:hover, 
.sppb-addon-single-image:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 20px rgba(14, 25, 80, 0.15) !important;
    border-color: #3b82f6 !important;
    background-color: #ffffff !important;
}

.sppb-addon-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0E1950 !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

.sppb-addon-feature img,
.sppb-addon-single-image img {
    width: 100% !important;
    max-width: 160px !important;
    height: 90px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    transition: transform 0.3s ease !important;
}

.sppb-addon-feature:hover img,
.sppb-addon-single-image:hover img {
    transform: scale(1.05) !important;
}

/* Tambah ruang jarak bawah sebelum footer */
.kad-sistem, 
.sppb-addon-tab {
    margin-bottom: 60px !important; /* Tambah jarak 60px di bawah kad */
}

/* ==========================================
   JARAK ANTARA BARIS KAD (ATAS & BAWAH)
   ========================================== */
.sppb-addon-feature, 
.sppb-addon-single-image,
.sppb-column > div {
    margin-bottom: 25px !important; /* Memberikan jarak 25px di bawah setiap kad */
}

/* ==========================================
   SUSUNAN FOOTER 2 KIRI & 2 KANAN PADA MOBILE & DESKTOP SITE MODE
   ========================================== */
@media only screen and (max-width: 991px) {

    /* Force container row supaya flex & bertukar baris */
    #sp-bottom .row,
    #sp-footer .row,
    .sppb-section-footer .sppb-row,
    .sppb-section-footer .sppb-container-inner > .sppb-row {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    /* Memaksa setiap daripada 4 kolom mengambil saiz 50% lebar */
    #sp-bottom [class*="col-"],
    #sp-footer [class*="col-"],
    .sppb-section-footer [class*="col-"],
    .sppb-section-footer .sppb-col-sm-3,
    .sppb-section-footer .sppb-col-md-3,
    #sp-bottom1, #sp-bottom2, #sp-bottom3, #sp-bottom4 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        float: left !important;
        margin-bottom: 20px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
    }

    /* Melaraskan saiz teks supaya tidak melimpah */
    #sp-bottom h3, #sp-footer h3, .sppb-section-footer h3,
    #sp-bottom h4, #sp-footer h4, .sppb-section-footer h4,
    #sp-bottom .sp-module-title {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    #sp-bottom p, #sp-footer p, .sppb-section-footer p,
    #sp-bottom li, #sp-footer li, .sppb-section-footer li,
    #sp-bottom div, #sp-footer div, .sppb-section-footer div {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
}

/* =========================================================
   SERAGAMKAN TAJUK BILANGAN PELAWAT (DESKTOP & MOBILE)
   ========================================================= */

/* 1. Pada Skrin Komputer (Desktop/Skrin Besar) */
#sp-bottom3 .sp-module-title,
#sp-bottom3 h3,
#sp-bottom3 .pengunjung .sp-module-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

/* 2. Pada Skrin Kecil / Telefon (Mobile - Bawah 767px) */
@media only screen and (max-width: 767px) {
    #sp-bottom3 .sp-module-title,
    #sp-bottom3 h3,
    #sp-bottom3 .pengunjung .sp-module-title {
        font-size: 13px !important;       /* Dikecilkan mengikut saiz 13px tajuk lain pada mobile */
        font-weight: 700 !important;
        margin-bottom: 8px !important;
    }
}

/* =========================================================
   SERAGAMKAN FONT FAMILY, SAIZ & KETINGGIAN TEKS FOOTER (#sp-bottom)
   ========================================================= */

/* 1. Seragamkan Keseluruhan Teks Teks Biasa, Pautan & List di Footer */
#sp-bottom,
#sp-bottom p,
#sp-bottom div,
#sp-bottom li,
#sp-bottom span,
#sp-bottom a,
#sp-bottom .sp-contact-info li,
#sp-bottom .hpp-web-display-info,
#sp-bottom .db8sitelastmodified li {
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
}

/* 2. Seragamkan Teks Penekanan / Tajuk Kecil (Strong & Bold) */
#sp-bottom strong,
#sp-bottom b,
#sp-bottom .hpp-hospital-name,
#sp-bottom .intro-text strong,
#sp-bottom .col-left {
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

/* 3. Kemaskan Susunan Jarak Tabel Bilangan Pelawat (jsVisit Counter) */
#sp-bottom .jsvisitcounter .table_row {
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

#sp-bottom .jsvisitcounter .col-left {
    font-weight: 500 !important;
}

#sp-bottom .jsvisitcounter .col-right {
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* 4. Kemaskan Ikon Telefon & E-mel Hubungi Kami */
#sp-bottom .sp-contact-info {
    padding-left: 0 !important;
    margin-top: 10px !important;
}

#sp-bottom .sp-contact-info li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
}

#sp-bottom .sp-contact-info i,
#sp-bottom .sp-contact-info span {
    color: #00e5ff !important; /* Warna aksen cyan terang */
    font-size: 14px !important;
}

/* =========================================================
   MEMBETULKAN IKON & RUMAH KAN KEDUDUKAN TELEFON / E-MEL
   ========================================================= */

/* 1. Mampatkan jarak bottom pada modul alamat */
#sp-bottom1 .sp-module {
    margin-bottom: 0 !important;
}

#sp-bottom1 #mod-custom93 div {
    margin-bottom: 2px !important;
    padding-bottom: 0 !important;
}

/* 2. Tarik senarai telefon & emel naik terus rapat di bawah 'PULAU PINANG' */
#sp-bottom .sp-contact-info {
    padding-left: 0 !important;
    margin-top: 8px !important;       /* Naikkan posisi ke atas */
    margin-bottom: 0 !important;
    list-style: none !important;
}

#sp-bottom .sp-contact-info li {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 4px !important;    /* Jarak rapat antara nombor telefon & emel */
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* 3. Memunculkan semula Ikon Telefon & E-mel (FontAwesome Fix) */
#sp-bottom .sp-contact-info li span,
#sp-bottom .sp-contact-info li i,
#sp-bottom .sp-contact-phone span,
#sp-bottom .sp-contact-email span {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;      /* Wajib untuk mengaktifkan ikon Solid FA */
    color: #00e5ff !important;        /* Warna aksen Cyan terang HPP */
    font-size: 14px !important;
    min-width: 16px !important;
    display: inline-block !important;
}

/* Memaksa penetapan ikon spesifik jika class asal terlepas */
#sp-bottom .sp-contact-phone span::before {
    content: "\f095" !important;      /* Kod ikon telefon (fa-phone) */
}

#sp-bottom .sp-contact-email span::before {
    content: "\f0e0" !important;      /* Kod ikon sampul surat (fa-envelope) */
}

/* =========================================================
   PELARASAN KEDUDUKAN BUTANG AKTIVITI TERDAHULU (DILUAR KOTAK)
   ========================================================= */
#section-id-02a8593f-f650-46aa-a102-7e0f671fcac4 {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

#sppb-addon-wrapper-830aae98-02a0-4922-adc9-9fc2151c8a8c,
#sppb-addon-830aae98-02a0-4922-adc9-9fc2151c8a8c {
    margin-top: -40px !important; /* Turunkan butang keluar dari kotak poster */
    margin-bottom: 15px !important;
    position: relative !important;
    z-index: 10 !important;
}


/* =========================================================
   MEMAKSA GAMBAR BERITA TERKINI MEMANJANG KE BAWAH (320PX)
   ========================================================= */

/* 1. Paksa tinggi container gambar berita ke 320px */
#sppb-addon-8bf10c70-5999-492a-9951-b75e139da2ed .sppb-articles-carousel-img,
#sppb-addon-8bf10c70-5999-492a-9951-b75e139da2ed .sppb-article-img,
#sppb-addon-8bf10c70-5999-492a-9951-b75e139da2ed .sppb-articles-carousel-img-link {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    display: block !important;
    overflow: hidden !important;
}

/* 2. Paksa imej di dalamnya memenuhi ruang 320px secara cover */
#sppb-addon-8bf10c70-5999-492a-9951-b75e139da2ed .sppb-articles-carousel-img img,
#sppb-addon-8bf10c70-5999-492a-9951-b75e139da2ed .sppb-article-img img,
#sppb-addon-8bf10c70-5999-492a-9951-b75e139da2ed img {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* =========================================================
   TAMBAH IKON SENARAI (LIST ICON) SEBELUM TEKS BUTTON LINK
   ========================================================= */

/* 1. Tambah Ikon FontAwesome \f03a (fa-list-ul) Sebelum Teks Pautan */
#sppb-addon-5626bfcd-9b2c-4a67-adf2-9e7dda078966 a.sppb-btn::before,
#sppb-addon-830aae98-02a0-4922-adc9-9fc2151c8a8c a.sppb-btn::before,
.sppb-addon-button a.sppb-btn-link::before {
    content: "\f03a" !important;                        /* Kod FontAwesome fa-list-ul */
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;                        /* Wajib untuk ikon solid */
    font-size: 13px !important;
    color: #3366FF !important;                          /* Warna biru pautan JKN */
    margin-right: 6px !important;                       /* Jarak antara ikon dan teks */
    display: inline-block !important;
    transition: color 0.2s ease-in-out !important;
}

/* 2. Tukar warna ikon semasa tetikus lalu (Hover) */
#sppb-addon-5626bfcd-9b2c-4a67-adf2-9e7dda078966 a.sppb-btn:hover::before,
#sppb-addon-830aae98-02a0-4922-adc9-9fc2151c8a8c a.sppb-btn:hover::before,
.sppb-addon-button a.sppb-btn-link:hover::before {
    color: #0037DD !important;
}

/* =========================================================
   HOSPITAL DALAM ANGKA - PAKSA HOVER KESELURAHAN KAD (SOLUSI TEGAR)
   ========================================================= */

/* 1. Latar Belakang Utama Section */
#section-id-61683b5f-08b1-4aca-8263-aca4c3d2943d,
.sp-page-builder .page-content #section-id-61683b5f-08b1-4aca-8263-aca4c3d2943d {
    background: linear-gradient(135deg, #031b33 0%, #0b3b60 50%, #0284c7 100%) !important;
    padding-top: 45px !important;
    padding-bottom: 45px !important;
}

/* 2. Format Tajuk Utama */
#section-id-61683b5f-08b1-4aca-8263-aca4c3d2943d .sppb-title-heading {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 30px !important;
}

/* 3. Bina Bingkai Kad Pada Nested Section */
#section-id-f92f6eb9-7282-4cb5-84f6-7f4f7f45ce26,
#section-id-473b0481-ca62-4866-abd0-2c124c2bcbac,
#section-id-77994a8f-0b6f-4d34-9883-dd7d34fc14ad,
#section-id-e7a8124d-4143-41e9-87a6-76278d10e874,
#section-id-2318237b-098c-4d7c-a61a-b6cbff3c88c8 {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 15px 10px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease-in-out !important;
    cursor: pointer !important;
}

/* 4. KESAN HOVER APABILA TETIKUS LALU PADA SEBARANG RUANG KAD */
#section-id-f92f6eb9-7282-4cb5-84f6-7f4f7f45ce26:hover,
#section-id-473b0481-ca62-4866-abd0-2c124c2bcbac:hover,
#section-id-77994a8f-0b6f-4d34-9883-dd7d34fc14ad:hover,
#section-id-e7a8124d-4143-41e9-87a6-76278d10e874:hover,
#section-id-2318237b-098c-4d7c-a61a-b6cbff3c88c8:hover {
    transform: translateY(-8px) !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: #00e5ff !important;
    box-shadow: 0 12px 28px rgba(0, 229, 255, 0.35) !important;
}

/* 5. PAKSA NOMBOR BERTUKAR WARNA CYAN BILA KAD DI-HOVER */
#section-id-f92f6eb9-7282-4cb5-84f6-7f4f7f45ce26:hover .sppb-animated-number,
#section-id-473b0481-ca62-4866-abd0-2c124c2bcbac:hover .sppb-animated-number,
#section-id-77994a8f-0b6f-4d34-9883-dd7d34fc14ad:hover .sppb-animated-number,
#section-id-e7a8124d-4143-41e9-87a6-76278d10e874:hover .sppb-animated-number,
#section-id-2318237b-098c-4d7c-a61a-b6cbff3c88c8:hover .sppb-animated-number {
    color: #00e5ff !important;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.8) !important;
    transition: all 0.3s ease !important;
}

/* 6. PAKSA IKON MEMBESAR & BERCAHAYA BILA KAD DI-HOVER */
#section-id-f92f6eb9-7282-4cb5-84f6-7f4f7f45ce26:hover i,
#section-id-473b0481-ca62-4866-abd0-2c124c2bcbac:hover i,
#section-id-77994a8f-0b6f-4d34-9883-dd7d34fc14ad:hover i,
#section-id-e7a8124d-4143-41e9-87a6-76278d10e874:hover i,
#section-id-2318237b-098c-4d7c-a61a-b6cbff3c88c8:hover i {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px #00e5ff) !important;
    transform: scale(1.15) !important;
    transition: all 0.3s ease !important;
}

/* 7. Asas Saiz Teks & Ikon */
#section-id-61683b5f-08b1-4aca-8263-aca4c3d2943d .sppb-animated-number {
    color: #ffffff !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    display: block !important;
}

#section-id-61683b5f-08b1-4aca-8263-aca4c3d2943d .sppb-animated-number-title {
    color: #e0f2fe !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

#section-id-61683b5f-08b1-4aca-8263-aca4c3d2943d .sppb-icon-inner i {
    color: #00e5ff !important;
    font-size: 32px !important;
    display: inline-block !important;
}

/* =========================================================
   STYLE PORTAL RASMI KKM - DUKUNG LEBAR PADAT (PAGE 21, PAGE 22, PAGE 24, PAGE 26 & PAGE 27)
   ========================================================= */

/* 1. Latar Belakang Soft Grey/Blue KKM */
.page-21 #section-id-dfa6ee51-1a2c-4754-b86a-e697fd840d73,
.page-22 #section-id-dfa6ee51-1a2c-4754-b86a-e697fd840d73,
.page-24 #section-id-dfa6ee51-1a2c-4754-b86a-e697fd840d73,
.page-26 #section-id-dfa6ee51-1a2c-4754-b86a-e697fd840d73,
.page-27 #section-id-dfa6ee51-1a2c-4754-b86a-e697fd840d73 {
    background-color: #f4f6f9 !important;
    padding-top: 40px !important;
    padding-bottom: 50px !important;
}

/* 2. Format Tajuk Utama */
.page-21 #sppb-addon-38d2664c-371f-4767-8a30-990e32e50923 .sppb-addon-title,
.page-22 #sppb-addon-38d2664c-371f-4767-8a30-990e32e50923 .sppb-addon-title,
.page-24 #sppb-addon-38d2664c-371f-4767-8a30-990e32e50923 .sppb-addon-title,
.page-26 #sppb-addon-38d2664c-371f-4767-8a30-990e32e50923 .sppb-addon-title,
.page-27 #sppb-addon-38d2664c-371f-4767-8a30-990e32e50923 .sppb-addon-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0b3b60 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    text-align: center !important;
    margin-bottom: 30px !important;
}

/* 3. Hadkan Lebar Kontena Ke 1000px Supaya Kotak Padat Di Tengah */
.page-21 #section-id-dfa6ee51-1a2c-4754-b86a-e697fd840d73 .sppb-row-container,
.page-22 #section-id-dfa6ee51-1a2c-4754-b86a-e697fd840d73 .sppb-row-container,
.page-24 #section-id-dfa6ee51-1a2c-4754-b86a-e697fd840d73 .sppb-row-container,
.page-26 #section-id-dfa6ee51-1a2c-4754-b86a-e697fd840d73 .sppb-row-container,
.page-27 #section-id-dfa6ee51-1a2c-4754-b86a-e697fd840d73 .sppb-row-container {
    max-width: 1000px !important; /* Hadkan lebar kontena supaya tidak full screen */
    margin: 0 auto !important;
}

.page-21 #section-id-06f033af-ba50-4191-90a4-c230eda573ec .sppb-row,
.page-21 #section-id-a130ed03-7571-4451-814e-b211a0168cc5 .sppb-row,
.page-22 #section-id-06f033af-ba50-4191-90a4-c230eda573ec .sppb-row,
.page-22 #section-id-a130ed03-7571-4451-814e-b211a0168cc5 .sppb-row,
.page-24 #section-id-06f033af-ba50-4191-90a4-c230eda573ec .sppb-row,
.page-24 #section-id-a130ed03-7571-4451-814e-b211a0168cc5 .sppb-row,
.page-26 #section-id-06f033af-ba50-4191-90a4-c230eda573ec .sppb-row,
.page-26 #section-id-a130ed03-7571-4451-814e-b211a0168cc5 .sppb-row,
.page-27 #section-id-06f033af-ba50-4191-90a4-c230eda573ec .sppb-row,
.page-27 #section-id-a130ed03-7571-4451-814e-b211a0168cc5 .sppb-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
}

.page-21 .sppb-row-column,
.page-21 .sppb-column,
.page-21 .sppb-column-addons,
.page-21 .sppb-addon-wrapper,
.page-21 .sppb-addon-wrapper > div,
.page-22 .sppb-row-column,
.page-22 .sppb-column,
.page-22 .sppb-column-addons,
.page-22 .sppb-addon-wrapper,
.page-22 .sppb-addon-wrapper > div,
.page-24 .sppb-row-column,
.page-24 .sppb-column,
.page-24 .sppb-column-addons,
.page-24 .sppb-addon-wrapper,
.page-24 .sppb-addon-wrapper > div,
.page-26 .sppb-row-column,
.page-26 .sppb-column,
.page-26 .sppb-column-addons,
.page-26 .sppb-addon-wrapper,
.page-26 .sppb-addon-wrapper > div,
.page-27 .sppb-row-column,
.page-27 .sppb-column,
.page-27 .sppb-column-addons,
.page-27 .sppb-addon-wrapper,
.page-27 .sppb-addon-wrapper > div {
    height: 100% !important;
}

/* 4. Reka Bentuk Kad Putih KKM (Feature Box Compact) */
.page-21 .sppb-addon-feature,
.page-22 .sppb-addon-feature,
.page-24 .sppb-addon-feature,
.page-26 .sppb-addon-feature,
.page-27 .sppb-addon-feature {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 25px 20px 20px 20px !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.25s ease-in-out !important;
    
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; 
    height: 100% !important;
    min-height: 190px !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

/* 5. Aksen Petak Biru Gelap Bucu Atas Kanan */
.page-21 .sppb-addon-feature::before,
.page-22 .sppb-addon-feature::before,
.page-24 .sppb-addon-feature::before,
.page-26 .sppb-addon-feature::before,
.page-27 .sppb-addon-feature::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 14px !important;
    height: 14px !important;
    background-color: #0b3b60 !important;
    transition: all 0.25s ease !important;
}

/* 6. Kesan Hover Kad */
.page-21 .sppb-addon-feature:hover,
.page-22 .sppb-addon-feature:hover,
.page-24 .sppb-addon-feature:hover,
.page-26 .sppb-addon-feature:hover,
.page-27 .sppb-addon-feature:hover {
    background-color: #eaf3fa !important;
    box-shadow: 0 8px 20px rgba(11, 59, 96, 0.12) !important;
    transform: translateY(-3px) !important;
}

.page-21 .sppb-addon-feature:hover::before,
.page-22 .sppb-addon-feature:hover::before,
.page-24 .sppb-addon-feature:hover::before,
.page-26 .sppb-addon-feature:hover::before,
.page-27 .sppb-addon-feature:hover::before {
    background-color: #2b84ff !important;
    width: 18px !important;
    height: 18px !important;
}

/* 7. Format Tajuk Di Dalam Kad (17px Bold) */
.page-21 .sppb-feature-box-title,
.page-22 .sppb-feature-box-title,
.page-24 .sppb-feature-box-title,
.page-26 .sppb-feature-box-title,
.page-27 .sppb-feature-box-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

/* 8. Format Teks Penerangan (14px) */
.page-21 .sppb-addon-text p,
.page-22 .sppb-addon-text p,
.page-24 .sppb-addon-text p,
.page-26 .sppb-addon-text p,
.page-27 .sppb-addon-text p {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    color: #374151 !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    text-align: center !important;
}

/* 9. Kemaskan Butang "Lihat" / "Selanjutnya" */
.page-21 .sppb-media-content,
.page-22 .sppb-media-content,
.page-24 .sppb-media-content,
.page-26 .sppb-media-content,
.page-27 .sppb-media-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
}

.page-21 .sppb-addon-feature a.sppb-btn,
.page-22 .sppb-addon-feature a.sppb-btn,
.page-24 .sppb-addon-feature a.sppb-btn,
.page-26 .sppb-addon-feature a.sppb-btn,
.page-27 .sppb-addon-feature a.sppb-btn {
    margin-top: 15px !important;
    background-color: #0b3b60 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 7px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.page-21 .sppb-addon-feature:hover a.sppb-btn,
.page-22 .sppb-addon-feature:hover a.sppb-btn,
.page-24 .sppb-addon-feature:hover a.sppb-btn,
.page-26 .sppb-addon-feature:hover a.sppb-btn,
.page-27 .sppb-addon-feature:hover a.sppb-btn {
    background-color: #2b84ff !important;
}

/* =========================================================
   STYLE ARTIKEL PENDAFTARAN PESAKIT (HPP)
   ========================================================= */

.hpp-pendaftaran-page {
    font-family: 'Poppins', sans-serif !important;
    max-width: 1140px;
    margin: 0 auto;
}

/* 1. HERO BANNER (HAD TINGGI 300PX) */
.hpp-banner-box {
    height: 300px !important;
    max-height: 300px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
    margin-bottom: 25px !important;
}

.hpp-banner-box img {
    width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
    object-fit: cover !important;        /* Potong lebihan atas/bawah secara kemas */
    object-position: center !important;   /* Kekal fokus pada tengah gambar */
    display: block !important;
}

.hpp-banner-box img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* 2. KAD KONTENA UTAMA */
.hpp-card-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(11, 59, 96, 0.03);
}

.hpp-sec-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 800;
    color: #0b3b60;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hpp-sec-title .icon-circle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background-color: #0b3b60;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.hpp-sec-sub {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 3. GRID 4 LAJUR (DOKUMEN & PROSES) */
.hpp-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .hpp-grid-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}

.hpp-doc-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hpp-doc-item i {
    font-size: 22px;
    color: #0284c7;
}

.hpp-doc-item span {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.hpp-info-note {
    background-color: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 12px 18px;
    border-radius: 6px;
    color: #0369a1;
    font-size: 13px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 4. SEKSYEN PROSES (CARTA ALIR 01-04) */
.hpp-step-box {
    text-align: center;
    position: relative;
    padding: 10px;
}

.hpp-step-num {
    width: 26px;
    height: 26px;
    background-color: #0b3b60;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto -13px auto;
    position: relative;
    z-index: 2;
}

.hpp-step-icon {
    width: 80px;
    height: 80px;
    border: 2px solid #38bdf8;
    background-color: #f0f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    color: #0b3b60;
    font-size: 30px;
}

.hpp-step-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0b3b60;
    margin-bottom: 6px;
}

.hpp-step-box p {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* 5. BANNER MUAT TURUN */
.hpp-download-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border-color: #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hpp-dl-action {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hpp-btn-dl {
    background-color: #0b3b60;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.hpp-btn-dl:hover {
    background-color: #0284c7;
}

.hpp-pdf-tag {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

.hpp-dl-img i {
    font-size: 100px;
    color: #0b3b60;
    opacity: 0.15;
}

/* 6. SOALAN LAZIM (ACCORDION) */
.hpp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hpp-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    overflow: hidden;
}

.hpp-faq-item summary {
    padding: 14px 20px;
    font-weight: 700;
    color: #0b3b60;
    cursor: pointer;
    font-size: 14px;
    list-style: none;
    position: relative;
}

.hpp-faq-item summary::after {
    content: "▼";
    position: absolute;
    right: 20px;
    font-size: 10px;
    color: #64748b;
}

.hpp-faq-item[open] summary::after {
    content: "▲";
}

.hpp-faq-ans {
    padding: 15px 20px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    font-size: 13.5px;
    color: #334155;
}

/* 7. BUTANG KEMBALI */
.hpp-back-wrapper {
    margin: 30px 0 40px 0;
}

.hpp-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #0b3b60;
    color: #0b3b60 !important;
    background-color: #ffffff;
    padding: 9px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.hpp-btn-back:hover {
    background-color: #0b3b60;
    color: #ffffff !important;
}

/* =========================================================
   NAIKKAN HERO BANNER ARTIKEL KE ATAS (PAGE PENDAFTARAN)
   ========================================================= */

/* 1. Buang jarak padding kosong di bahagian atas komponen artikel */
body.view-article #sp-main-body,
body.com-content #sp-main-body,
body.view-article #sp-component,
body.com-content #sp-component {
    padding-top: 20px !important;
    margin-top: 0 !important;
}

/* 2. Tarik gambar banner naik rapat ke atas */
.hpp-pendaftaran-page .hpp-banner-box {
    margin-top: -10px !important; /* Nilai negatif untuk menarik banner ke atas */
    margin-bottom: 25px !important;
}

/* =========================================================
   STYLE KHAS HALAMAN KEMASUKAN KE WAD (HPP)
   ========================================================= */

/* Grid 6 Lajur untuk Persediaan */
.hpp-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .hpp-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .hpp-grid-6 { grid-template-columns: repeat(1, 1fr); }
}

.hpp-prep-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
}

.hpp-prep-icon {
    width: 48px;
    height: 48px;
    background-color: #e0f2fe;
    color: #0284c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    font-size: 20px;
}

.hpp-prep-card h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #0b3b60;
    margin-bottom: 5px;
}

.hpp-prep-card p {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.3;
    margin: 0;
}

/* Grid 2 Lajur Utama (Split Left/Right) */
.hpp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .hpp-grid-2 { grid-template-columns: 1fr; }
}

/* Mini Card Seksyen 4 */
.hpp-grid-2-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hpp-mini-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hpp-mini-card i {
    font-size: 22px;
    margin-top: 2px;
}

.hpp-mini-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: #0b3b60;
    margin-bottom: 3px;
}

.hpp-mini-card p {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.3;
    margin: 0;
}

.color-blue { color: #0284c7; }
.color-green { color: #10b981; }
.color-red { color: #ef4444; }
.color-orange { color: #f59e0b; }

/* Carta Alir Seksyen 3 */
.hpp-carta-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.hpp-carta-icon i {
    font-size: 50px;
    color: #0284c7;
}

.hpp-carta-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0b3b60;
    margin-bottom: 5px;
}

.hpp-carta-content p {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

.hpp-btn-navy {
    background-color: #0b3b60;
    color: #ffffff !important;
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
}

.hpp-btn-navy:hover {
    background-color: #0284c7;
}

/* Seksyen 5 Waris */
.hpp-waris-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hpp-waris-img i {
    font-size: 70px;
    color: #0b3b60;
    opacity: 0.8;
}

.hpp-waris-text p {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 12px;
}

.hpp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #0b3b60;
    color: #0b3b60 !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.hpp-btn-outline:hover {
    background-color: #0b3b60;
    color: #ffffff !important;
}

/* Nota Amaran Kuning di Bawah */
.hpp-warning-note {
    background-color: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #854d0e;
    font-size: 13px;
    margin-bottom: 25px;
}

.hpp-warn-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background-color: #eab308;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* =========================================================
   STYLE KHAS HALAMAN BAYARAN & KUTIPAN HASIL (HPP)
   ========================================================= */

.hpp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .hpp-grid-3 { grid-template-columns: 1fr; }
}

.hpp-grid-4-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 992px) {
    .hpp-grid-4-mini { grid-template-columns: repeat(2, 1fr); }
}

.hpp-doc-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bg-blue { background-color: #e0f2fe; color: #0284c7; }
.bg-green { background-color: #dcfce7; color: #15803d; }
.bg-purple { background-color: #f3e8ff; color: #7e22ce; }
.bg-orange { background-color: #ffedd5; color: #c2410c; }
.bg-purple-light { background-color: #e9d5ff; color: #6b21a8; }

.hpp-btn-center {
    text-align: center;
    margin-top: 20px;
}

.hpp-pdf-subtext {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
    text-align: center;
}

.hpp-action-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hpp-action-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.hpp-action-head h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0b3b60;
    margin-bottom: 4px;
}

.hpp-action-head p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
    margin: 0;
}

.hpp-link-blue {
    color: #0284c7 !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
}

.hpp-banner-card {
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e2e8f0;
}

.bg-light-green { background-color: #f0fdf4; }
.bg-light-blue { background-color: #f0f9ff; }

.hpp-logo-text .logo-egl {
    font-size: 32px;
    font-weight: 900;
    color: #16a34a;
    font-style: italic;
}

.hpp-logo-text .logo-emass {
    font-size: 26px;
    font-weight: 900;
    color: #0284c7;
}

.hpp-link-dark {
    color: #0b3b60 !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    margin-top: 8px;
    display: inline-block;
}

.hpp-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 768px) {
    .hpp-flex-between { flex-direction: column; align-items: flex-start; }
}

.hpp-flex-gap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hpp-flex-gap h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0b3b60;
    margin-bottom: 4px;
}

.hpp-flex-gap p {
    font-size: 12.5px;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.hpp-btn-purple {
    background-color: #6b21a8;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.hpp-btn-purple:hover {
    background-color: #581c87;
}

.width-full {
    width: 100%;
}

/* =========================================================
   TAMBAHAN CSS UNTUK SEKSYEN 6 (DOKUMEN & RUJUKAN)
   ========================================================= */

.hpp-doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hpp-doc-link {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.hpp-doc-link:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.hpp-doc-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hpp-doc-left i {
    font-size: 22px;
}

.hpp-doc-left strong {
    display: block;
    font-size: 13px;
    color: #0b3b60;
    line-height: 1.3;
}

.hpp-doc-left span {
    font-size: 11px;
    color: #64748b;
}

.text-red { color: #ef4444; }
.text-green { color: #10b981; }
.text-gray { color: #94a3b8; font-size: 12px; }
.bg-light-purple { background-color: #faf5ff; }

/* =========================================================
   STYLE KHAS HALAMAN BORANG & DOKUMEN PERUBATAN (HPP)
   ========================================================= */

.margin-auto { margin-left: auto; margin-right: auto; }
.margin-top-15 { margin-top: 15px !important; }

.hpp-btn-green {
    background-color: #16a34a;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-block;
    margin-top: 10px;
}
.hpp-btn-green:hover { background-color: #15803d; }

/* Jadual Muat Turun */
.hpp-table-wrapper {
    overflow-x: auto;
    margin: 15px 0;
}

.hpp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.hpp-table th {
    background-color: #f1f5f9;
    color: #0b3b60;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.hpp-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.hpp-pdf-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hpp-pdf-item i { font-size: 18px; }

.hpp-badge-pdf {
    background-color: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.hpp-btn-dl-sm {
    color: #0b3b60 !important;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.hpp-btn-dl-sm:hover { color: #0284c7 !important; }

/* Accordion Layout */
.hpp-faq-title-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hpp-faq-title-flex p {
    font-size: 11.5px;
    color: #64748b;
    margin: 2px 0 0 0;
    font-weight: 400;
}

.bg-blue-sm { width: 32px; height: 32px; min-width: 32px; background-color: #e0f2fe; color: #0284c7; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.bg-green-sm { width: 32px; height: 32px; min-width: 32px; background-color: #dcfce7; color: #16a34a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.bg-purple-sm { width: 32px; height: 32px; min-width: 32px; background-color: #f3e8ff; color: #7e22ce; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.bg-orange-sm { width: 32px; height: 32px; min-width: 32px; background-color: #ffedd5; color: #ea580c; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* Grid Seksyen 4 (Popular & Bantuan) */
.hpp-grid-4-1 {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 992px) {
    .hpp-grid-4-1 { grid-template-columns: 1fr; }
}

.hpp-pop-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hpp-pop-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.hpp-pop-head h4 { font-size: 13px; font-weight: 700; color: #0b3b60; margin-bottom: 3px; }
.hpp-pop-head p { font-size: 11.5px; color: #64748b; margin: 0; line-height: 1.3; }

.pdf-red-icon { font-size: 28px; color: #ef4444; }
.pdf-green-icon { font-size: 28px; color: #16a34a; }
.pdf-purple-icon { font-size: 28px; color: #7e22ce; }

.hpp-btn-outline-sm {
    border: 1px solid #cbd5e1;
    color: #0b3b60 !important;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
}
.hpp-btn-outline-sm:hover { background-color: #0b3b60; color: #ffffff !important; }

/* Kotak Bantuan Orange */
.bg-orange-light { background-color: #fff7ed; border-color: #ffedd5; }
.flex-center-col { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hpp-headset-icon { width: 50px; height: 50px; background-color: #f97316; color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px; }
.text-orange-dark { color: #9a3412; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.text-orange-sub { color: #c2410c; font-size: 12px; margin-bottom: 15px; line-height: 1.4; }

/* Nota Seksyen 05 */
.hpp-note-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hpp-note-box p { font-size: 12.5px; color: #334155; margin: 0; line-height: 1.4; }
.bg-blue-light { background-color: #e0f2fe; color: #0284c7; width: 32px; height: 32px; min-width: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.bg-green-light { background-color: #f0fdf4; border-left: 4px solid #16a34a; }
.text-green-dark { color: #15803d; }

/* =========================================================
   STYLE KHAS HALAMAN PERSEDIAAN SEBELUM KEMASUKAN
   ========================================================= */

.hpp-prep-page {
    font-family: 'Poppins', sans-serif !important;
    max-width: 1140px;
    margin: 0 auto;
}

/* Breadcrumb Styling */
.hpp-prep-page .breadcrumb {
    background: transparent;
    padding: 10px 0;
    font-size: 12.5px;
}
.hpp-prep-page .breadcrumb-item a {
    color: #0b3b60;
    text-decoration: none !important;
    font-weight: 600;
}

/* Hero Banner */
.hpp-hero-prep {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-radius: 12px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border: 1px solid #bae6fd;
}

.hpp-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hpp-hero-icon-box {
    width: 60px;
    height: 60px;
    background-color: #0b3b60;
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.hpp-hero-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0b3b60 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: 0.5px;
}

.hpp-hero-sub {
    font-size: 13.5px;
    color: #475569;
    margin: 0;
}

.hpp-hero-img-wrap img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .hpp-hero-prep { flex-direction: column; text-align: center; gap: 20px; }
    .hpp-hero-left { flex-direction: column; }
}

/* Subtitle Tajuk Seksyen */
.hpp-sec-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0 0;
    font-weight: 400;
    text-transform: none;
}

/* Grid 5 Lajur Dokumen */
.hpp-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 15px;
}

@media (max-width: 992px) { .hpp-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .hpp-grid-5 { grid-template-columns: repeat(1, 1fr); } }

.hpp-doc-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.hpp-doc-card:hover {
    background-color: #ffffff;
    border-color: #0b3b60;
    transform: translateY(-3px);
}

.hpp-doc-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    font-size: 18px;
}

.hpp-doc-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: #0b3b60;
    margin-bottom: 4px;
}

.hpp-doc-card p {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.3;
    margin: 0;
}

/* Layout Grafik & Senarai */
.hpp-list-with-graphic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
}

.hpp-check-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-grow: 1;
}

.hpp-check-list li {
    font-size: 13px;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.hpp-graphic-box {
    flex-shrink: 0;
    opacity: 0.85;
}

/* Tema Warna Kad */
.hpp-card-cyan { background-color: #f0fdf4 !important; border-color: #bbf7d0 !important; }
.text-cyan li i { color: #16a34a; }
.graphic-icon-cyan { font-size: 70px; color: #16a34a; opacity: 0.2; }

.hpp-card-pink { background-color: #fdf2f8 !important; border-color: #fbcfe8 !important; }
.text-pink li i { color: #db2777; }
.graphic-icon-pink { font-size: 70px; color: #db2777; opacity: 0.2; }

.hpp-card-purple { background-color: #faf5ff !important; border-color: #e9d5ff !important; }
.text-purple li i { color: #9333ea; }
.graphic-icon-purple { font-size: 70px; color: #9333ea; opacity: 0.2; }

.hpp-card-yellow { background-color: #fefce8 !important; border-color: #fef08a !important; }
.text-yellow li i { color: #ca8a04; }
.graphic-icon-yellow { font-size: 70px; color: #ca8a04; opacity: 0.2; }

/* Nota Info Biru */
.hpp-info-note-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background-color: #0284c7;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

/* =========================================================
   STYLE KHAS HALAMAN KEMASUKAN KE WAD (HPP)
   ========================================================= */

/* Grid Langkah Urusan Wad (Seksyen 1) */
.hpp-wad-process-grid {
    display: grid;
    grid-template-columns: 3.2fr 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
}

@media (max-width: 992px) {
    .hpp-wad-process-grid { grid-template-columns: 1fr; }
}

.hpp-wad-step-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

@media (max-width: 768px) {
    .hpp-wad-step-container { flex-direction: column; text-align: center; }
    .hpp-step-arrow { transform: rotate(90deg); margin: 10px 0; }
}

.hpp-wad-step {
    text-align: center;
    flex: 1;
}

.hpp-step-num {
    width: 24px;
    height: 24px;
    background-color: #0b3b60;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px auto;
}

.hpp-step-icon {
    width: 54px;
    height: 54px;
    border: 2px solid #bae6fd;
    background-color: #f0f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    color: #0b3b60;
    font-size: 20px;
}

.hpp-wad-step h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: #0b3b60;
    margin-bottom: 4px;
}

.hpp-wad-step p {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
    margin: 0;
}

.hpp-step-arrow {
    color: #cbd5e1;
    font-size: 18px;
}

/* Kotak Nota Sisi */
.hpp-note-side-box {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 16px;
    font-size: 12px;
    color: #0369a1;
}

.hpp-note-side-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 6px;
}

.hpp-note-side-box p {
    margin: 0;
    line-height: 1.4;
    color: #334155;
}

/* Seksyen 2 Mini Process */
.hpp-mini-process-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .hpp-mini-process-row { flex-direction: column; text-align: center; }
    .hpp-mini-arrow { transform: rotate(90deg); margin: 5px 0; }
}

.hpp-mini-step {
    text-align: center;
    flex: 1;
}

.hpp-mini-icon {
    width: 42px;
    height: 42px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px auto;
    color: #0b3b60;
    font-size: 16px;
}

.hpp-mini-step p {
    font-size: 11px;
    color: #334155;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.hpp-mini-arrow {
    color: #cbd5e1;
    font-size: 14px;
}

/* Seksyen 3 Carta Alir */
.hpp-carta-box-inner {
    padding: 20px 10px;
}

.hpp-carta-big-icon {
    font-size: 55px;
    color: #0284c7;
    margin-bottom: 10px;
}

.hpp-carta-box-inner p {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 15px;
}

/* Ikon Warna Seksyen 4 */
.text-teal { color: #0d9488; }
.text-green { color: #16a34a; }
.text-orange { color: #ea580c; }
.text-red { color: #dc2626; }
.text-purple { color: #9333ea; }
.text-blue { color: #0284c7; }
.bg-green { background-color: #dcfce7; color: #15803d; }

/* =========================================================
   STYLE KHAS HALAMAN PANDUAN PESAKIT & WARIS
   ========================================================= */

/* Warna Warna Teks & Lencana Seksyen */
.text-blue { color: #0284c7 !important; }
.bg-blue-dark { background-color: #0b3b60 !important; color: #ffffff !important; }
.graphic-icon-blue { font-size: 65px; color: #0284c7; opacity: 0.2; }

.text-green { color: #16a34a !important; }
.bg-green-dark { background-color: #15803d !important; color: #ffffff !important; }
.graphic-icon-green { font-size: 65px; color: #16a34a; opacity: 0.2; }

.text-purple { color: #7e22ce !important; }
.bg-purple-dark { background-color: #6b21a8 !important; color: #ffffff !important; }
.graphic-icon-purple { font-size: 65px; color: #7e22ce; opacity: 0.2; }
.bg-light-purple { background-color: #faf5ff !important; border-color: #f3e8ff !important; }

.text-orange { color: #d97706 !important; }
.bg-orange-dark { background-color: #b45309 !important; color: #ffffff !important; }
.graphic-icon-orange { font-size: 65px; color: #d97706; opacity: 0.2; }

.text-teal { color: #0d9488 !important; }
.bg-teal-dark { background-color: #0f766e !important; color: #ffffff !important; }
.graphic-icon-teal { font-size: 65px; color: #0d9488; opacity: 0.2; }
.bg-light-teal { background-color: #f0fdfa !important; border-color: #ccfbf1 !important; }

.text-red { color: #e11d48 !important; }
.bg-red-dark { background-color: #be123c !important; color: #ffffff !important; }

/* Pautan Waktu Melawat Seksyen 2 */
.hpp-link-card-green {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.hpp-link-card-green:hover {
    background-color: #dcfce7;
    border-color: #16a34a;
}

.hpp-link-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hpp-link-card-left i {
    font-size: 24px;
    color: #16a34a;
}

.hpp-link-card-left strong {
    display: block;
    font-size: 13px;
    color: #14532d;
}

.hpp-link-card-left span {
    font-size: 11.5px;
    color: #166534;
}

/* Seksyen 6 Aduan & Cadangan */
.bg-light-pink-card {
    background-color: #fff1f2 !important;
    border-color: #ffe4e6 !important;
}

.hpp-aduan-flex {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 15px;
}

.hpp-aduan-icon i {
    font-size: 55px;
    color: #e11d48;
}

.hpp-aduan-text p {
    font-size: 12.5px;
    color: #4c0519;
    line-height: 1.4;
    margin-bottom: 12px;
}

.hpp-btn-pink {
    background-color: #e11d48;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.hpp-btn-pink:hover {
    background-color: #be123c;
}

/* Kotak Kami Sedia Membantu Anda */
.hpp-bantu-box {
    background-color: #ffe4e6;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #881337;
}

.hpp-bantu-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background-color: #fb7185;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* =========================================================
   STYLE KHAS HALAMAN BAYARAN & CAJ RAWATAN
   ========================================================= */

.hpp-main-section-title {
    text-align: center;
    margin: 25px 0 20px 0;
}

.hpp-main-section-title h2 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0b3b60 !important;
    letter-spacing: 0.5px;
    margin: 0 !important;
}

.hpp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .hpp-grid-3 { grid-template-columns: 1fr; }
}

.hpp-card-align-between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.hpp-card-top-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    font-size: 28px;
}

.hpp-card-h3 {
    font-size: 16px !important;
    font-weight: 800 !important;
    text-align: center;
    margin-bottom: 8px !important;
}

.hpp-card-desc {
    font-size: 12px;
    color: #475569;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 15px;
}

.hpp-inner-box {
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 12px;
}

.bg-light-green { background-color: #f0fdf4; border: 1px solid #dcfce7; }
.bg-light-blue { background-color: #f0f9ff; border: 1px solid #e0f2fe; }
.bg-light-purple { background-color: #faf5ff; border: 1px solid #f3e8ff; }

.hpp-btn-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    text-align: center;
}

.bg-green { background-color: #16a34a; }
.bg-green:hover { background-color: #15803d; }

.bg-blue { background-color: #0284c7; }
.bg-blue:hover { background-color: #0369a1; }

.bg-purple { background-color: #9333ea; }
.bg-purple:hover { background-color: #7e22ce; }

/* Banner Kuning */
.bg-light-yellow { background-color: #fefce8 !important; }
.border-yellow { border: 1px solid #fef08a !important; }
.text-yellow-dark { color: #854d0e !important; }
.bg-yellow-dark { background-color: #eab308 !important; color: #ffffff !important; }

.hpp-btn-yellow {
    background-color: #eab308;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.hpp-btn-yellow:hover {
    background-color: #ca8a04;
}

/* Kaedah Pembayaran */
.hpp-sec-title-simple {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0b3b60 !important;
    margin-bottom: 15px !important;
    letter-spacing: 0.5px;
}

.hpp-pay-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .hpp-pay-grid { grid-template-columns: 1fr; }
}

.hpp-pay-methods {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
}

@media (max-width: 576px) {
    .hpp-pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); text-align: center; }
}

.hpp-pay-item {
    text-align: center;
}

.hpp-pay-icon {
    font-size: 32px;
    color: #0b3b60;
    margin-bottom: 6px;
}

.hpp-pay-item span {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.hpp-pay-nota {
    border-left: 1px solid #e2e8f0;
    padding-left: 20px;
    font-size: 11.5px;
    color: #475569;
}

@media (max-width: 768px) {
    .hpp-pay-nota { border-left: none; border-top: 1px solid #e2e8f0; padding-left: 0; padding-top: 15px; }
}

.hpp-pay-nota strong {
    display: block;
    color: #0b3b60;
    margin-bottom: 4px;
}

.hpp-pay-nota p {
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.hpp-pay-subnote {
    font-size: 10.5px;
    color: #94a3b8;
    font-style: italic;
}

/* =========================================================
   STYLE KHAS HALAMAN TATACARA KUTIPAN HASIL
   ========================================================= */

.hpp-sec-title-centered {
    text-align: center;
    position: relative;
    margin-bottom: 15px;
}

.hpp-sec-title-centered span {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background-color: #ffffff;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.hpp-sec-title-centered::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #cbd5e1;
    z-index: 0;
}

/* Grid 4 Lajur Kad Seksyen 2 - 5 */
.hpp-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 992px) {
    .hpp-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .hpp-grid-4 { grid-template-columns: 1fr; }
}

.border-blue-top { border-top: 4px solid #0284c7 !important; }
.border-green-top { border-top: 4px solid #16a34a !important; }
.border-orange-top { border-top: 4px solid #ea580c !important; }
.border-purple-top { border-top: 4px solid #9333ea !important; }

.hpp-sec-title-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
}

.hpp-card-desc-left {
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.35;
}

.hpp-bullet-list {
    padding-left: 18px !important;
    margin-bottom: 15px !important;
}

.hpp-bullet-list li {
    font-size: 12px;
    color: #334155;
    margin-bottom: 6px;
}

/* Item Dokumen Dikehendaki (Seksyen 4) */
.hpp-doc-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.hpp-doc-item i {
    font-size: 18px;
    margin-top: 2px;
}

.hpp-doc-item strong {
    display: block;
    font-size: 12px;
    color: #0b3b60;
}

.hpp-doc-item span {
    font-size: 11px;
    color: #64748b;
    display: block;
    line-height: 1.2;
}

/* Grid 6 Kes Khas */
.hpp-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .hpp-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 576px) {
    .hpp-grid-6 { grid-template-columns: repeat(2, 1fr); }
}

.hpp-kes-khas-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.hpp-kes-khas-card:hover {
    background-color: #f0f9ff;
    border-color: #bae6fd;
    transform: translateY(-2px);
}

.hpp-kes-khas-card i {
    font-size: 26px;
    display: block;
    margin-bottom: 8px;
}

.hpp-kes-khas-card span {
    font-size: 11.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    display: block;
}

.hpp-info-note-small {
    font-size: 12px;
    color: #475569;
}

/* Kad Muat Turun PDF (Seksyen 7) */
.hpp-pdf-card {
    background-color: #ffffff;
    border: 1px solid #fef08a;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hpp-pdf-icon-wrap {
    width: 60px;
    height: 70px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.hpp-pdf-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: #0b3b60;
    margin-bottom: 4px;
    line-height: 1.3;
}

.hpp-pdf-content p {
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hpp-btn-pdf {
    background-color: #eab308;
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.hpp-btn-pdf:hover {
    background-color: #ca8a04;
}

/* Footer Contact Bar */
.hpp-contact-footer-bar {
    background-color: #0b3b60;
    color: #ffffff;
    border-radius: 8px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 12.5px;
}

@media (max-width: 992px) {
    .hpp-contact-footer-bar { flex-direction: column; text-align: center; }
}

.hpp-contact-footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hpp-contact-footer-item i {
    color: #38bdf8;
}

.hpp-contact-footer-item a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
}

.hpp-contact-footer-item a:hover {
    color: #7dd3fc !important;
}

/* =========================================================
   STYLE KHAS HALAMAN KEMUDAHAN HOSPITAL
   ========================================================= */

.hpp-facility-card {
    padding: 0 !important;
    overflow: hidden;
}

.hpp-facility-content {
    padding: 16px 16px 10px 16px;
}

.hpp-facility-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hpp-facility-header h4 {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.3;
}

.hpp-facility-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.hpp-facility-content p {
    font-size: 11.5px;
    color: #475569;
    line-height: 1.35;
    margin: 0 0 10px 0;
}

.hpp-facility-img {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.hpp-facility-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Warna Kad & Sempadan */
.border-green { border: 1px solid #bbf7d0 !important; }
.border-orange { border: 1px solid #fed7aa !important; }
.border-teal { border: 1px solid #99f6e4 !important; }
.border-purple { border: 1px solid #e9d5ff !important; }

.bg-light-orange { background-color: #fff7ed !important; }

/* Grid Maklumat Tambahan */
.hpp-extra-info-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: 15px;
    align-items: center;
}

@media (max-width: 992px) {
    .hpp-extra-info-grid { grid-template-columns: repeat(2, 1fr); }
    .hpp-extra-info-title { grid-column: span 2; }
}

@media (max-width: 576px) {
    .hpp-extra-info-grid { grid-template-columns: 1fr; }
    .hpp-extra-info-title { grid-column: span 1; }
}

.hpp-extra-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hpp-extra-info-title h4 {
    font-size: 14px !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

.hpp-extra-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 1px solid #bae6fd;
    padding-left: 12px;
}

@media (max-width: 992px) {
    .hpp-extra-info-item { border-left: none; }
}

.hpp-extra-icon {
    font-size: 22px;
    margin-top: 2px;
}

.hpp-extra-info-item strong {
    display: block;
    font-size: 12px;
    color: #0b3b60;
    margin-bottom: 2px;
}

.hpp-extra-info-item p {
    font-size: 11px;
    color: #475569;
    margin: 0;
    line-height: 1.3;
}

/* =========================================================
   STYLE KHAS HALAMAN PESAKIT BUKAN WARGANEGARA
   ========================================================= */

/* Notice Banner */
.hpp-notice-banner-link {
    background-color: #0f2b48;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.hpp-notice-banner-link:hover {
    background-color: #1a3a5c;
}

.hpp-notice-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
}

.hpp-notice-icon {
    font-size: 22px;
    color: #38bdf8;
}

/* Number Badges & Titles */
.hpp-num-title-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hpp-num-title-badge h3 {
    font-size: 15px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    letter-spacing: 0.5px;
}

.hpp-num-box {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.hpp-card-inner-flex {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    height: 100%;
}

.hpp-card-text-side {
    flex: 1;
}

.hpp-card-img-side {
    width: 140px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hpp-card-img-side img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

@media (max-width: 576px) {
    .hpp-card-inner-flex { flex-direction: column-reverse; }
    .hpp-card-img-side { width: 100%; margin-bottom: 15px; }
}

.hpp-card-desc-text {
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
}

.hpp-link-subtext {
    font-size: 10.5px;
    color: #0284c7;
    margin-top: 4px;
}

/* Alert Box */
.hpp-info-alert-box {
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11.5px;
    color: #1e40af;
    line-height: 1.35;
}

/* Icon Lists */
.hpp-icon-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #334155;
}

.hpp-icon-list-item i {
    margin-top: 3px;
    font-size: 14px;
}

/* Maklumat Penting Section */
.hpp-important-info-grid {
    display: grid;
    grid-template-columns: 1.2fr 3fr 0.8fr;
    gap: 15px;
    align-items: center;
}

@media (max-width: 768px) {
    .hpp-important-info-grid { grid-template-columns: 1fr; }
}

.hpp-important-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hpp-important-icon {
    font-size: 28px;
}

.hpp-important-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hpp-important-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11.5px;
    color: #78350f;
    line-height: 1.35;
}

.hpp-important-item i {
    margin-top: 2px;
}

.hpp-important-badge-img {
    text-align: center;
}

.hpp-important-badge-img img {
    max-height: 70px;
}

/* Custom Style Pekeliling Page */
.hpp-btn-pdf-sm {
    background-color: #dc2626;
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s ease;
}

.hpp-btn-pdf-sm:hover {
    background-color: #b91c1c;
}

.badge-cat {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #ffffff;
    display: inline-block;
}

.badge-cat.bg-blue { background-color: #0284c7; }
.badge-cat.bg-green { background-color: #166534; }
.badge-cat.bg-orange { background-color: #ea580c; }
.badge-cat.bg-purple { background-color: #6b21a8; }

/* Styling Khas Warna Aksen Border Atas */
.border-blue-top { border-top: 4px solid #0284c7 !important; }
.border-teal-top { border-top: 4px solid #0f766e !important; }
.border-orange-top { border-top: 4px solid #ea580c !important; }
.border-purple-top { border-top: 4px solid #6b21a8 !important; }

/* Badge Kategori */
.badge-cat {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #ffffff;
    display: inline-block;
}
.badge-cat.bg-blue { background-color: #0284c7; }
.badge-cat.bg-teal { background-color: #0f766e; }
.badge-cat.bg-orange { background-color: #ea580c; }
.badge-cat.bg-purple { background-color: #6b21a8; }

.border-blue-top { border-top: 4px solid #0284c7 !important; }
.border-teal-top { border-top: 4px solid #0f766e !important; }
.border-orange-top { border-top: 4px solid #ea580c !important; }
.border-purple-top { border-top: 4px solid #6b21a8 !important; }

.badge-cat {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #ffffff;
    display: inline-block;
}
.badge-cat.bg-blue { background-color: #0284c7; }
.badge-cat.bg-teal { background-color: #0f766e; }
.badge-cat.bg-orange { background-color: #ea580c; }
.badge-cat.bg-purple { background-color: #6b21a8; }

/* ============================================================
   HPP TENDER & SEBUT HARGA - CUSTOM CSS
   ============================================================ */

/* 1. Grid 4 Lajur untuk Kad Kategori */
.hpp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

/* Responsive Grid untuk Skrin Kecil / Telefon */
@media (max-width: 992px) {
  .hpp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .hpp-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* 2. Gaya Kad Bekas (Card Box) */
.hpp-card-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hpp-card-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 3. Akses Warna Border Atas Kad Kategori */
.border-blue-top { border-top: 4px solid #0284c7 !important; }
.border-teal-top { border-top: 4px solid #0f766e !important; }
.border-orange-top { border-top: 4px solid #ea580c !important; }
.border-purple-top { border-top: 4px solid #6b21a8 !important; }

/* 4. Gaya Warna Latar & Teks Khas */
.bg-light-blue { background-color: #f0f9ff !important; }
.border-blue { border-color: #bae6fd !important; }
.text-blue { color: #0284c7 !important; }
.text-teal { color: #0f766e !important; }
.text-orange { color: #ea580c !important; }
.text-purple { color: #6b21a8 !important; }
.margin-bottom-25 { margin-bottom: 25px !important; }

/* 5. Tajuk Seksyen & Icon */
.hpp-sec-title {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 6. Butang Tindakan Jadual (Muat Turun / Info Lanjut) */
.hpp-btn-pdf-sm {
  color: #ffffff !important;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: none;
}

.hpp-btn-pdf-sm:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* 7. Butang Kembali / Utama */
.hpp-back-wrapper {
  margin-top: 20px;
  margin-bottom: 20px;
}

.hpp-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  color: #334155 !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}

.hpp-btn-back:hover {
  background-color: #e2e8f0;
  color: #0f172a !important;
}

/* 8. Bar Hubungi Kami Kaki Halaman */
.hpp-contact-footer-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 18px 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.hpp-contact-footer-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hpp-btn-navy {
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.hpp-btn-navy:hover {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

.hpp-pub-item:hover .hpp-cover-img {
    transform: scale(1.06);
}

/* BESARKAN SAIZ BENDERA LANGUAGE SWITCHER JOOMLA */
.mod-languages img,
.mod-languages ul.lang-inline li a img,
.mod-languages .lang-inline img {
    width: 28px !important;
    height: 18px !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 2px !important;
    vertical-align: middle !important;
}

/* Selaraskan Jarak dan Kedudukan Menegak */
.mod-languages ul.lang-inline li {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 5px !important;
}



/* Import Font Montserrat & Poppins dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Poppins:wght@700;800&display=swap');

/* =========================================================
   GAYA MODEN, TEGAS & MENONJOL UNTUK MENU UTAMA (HEADER)
   ========================================================= */

/* 1. Paksa Teks Menu Jadi Extra Bold, Lebih Besar & Jelas */
.sp-megamenu-parent > li > a, 
.sp-megamenu-parent > li > span {
    font-family: 'Montserrat', 'Poppins', sans-serif !important;
    font-size: 15px !important;            /* Saiz dinaikkan ke 15px */
    font-weight: 800 !important;            /* EXTRA BOLD (Tebal & Menonjol) */
    color: #0b3b60 !important;              /* Biru Pekat Korporat (Tinggi Kontras) */
    text-transform: uppercase !important;    /* Huruf besar tegas */
    letter-spacing: 0.8px !important;       /* Penjarakkan huruf premium */
    padding: 0 14px !important;
    position: relative !important;
    transition: all 0.2s ease-in-out !important;
}

/* 2. Kesan Hover & Menu Aktif (Biru Terang + Terangkat Sikit) */
.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li.active > a {
    color: #2b84ff !important;              /* Bertukar Biru Terang HPP */
    transform: translateY(-2px) !important;
}

/* 3. Garisan Indikator Bawah Yang Lebih Tebal (Glowing Accent) */
.sp-megamenu-parent > li > a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 6px !important;
    left: 50% !important;
    width: 0 !important;
    height: 3.5px !important;               /* Garisan penunjuk lebih tebal */
    background: #2b84ff !important;
    border-radius: 4px !important;
    transition: all 0.25s ease-in-out !important;
    transform: translateX(-50%) !important;
}

.sp-megamenu-parent > li:hover > a::after,
.sp-megamenu-parent > li.active > a::after {
    width: 85% !important;                  /* Kembangkan garisan bila hover/active */
}

/* 4. Mampatkan Ikon Dalam Menu Supaya Selari Rata */
.sp-megamenu-parent > li > a i,
.sp-megamenu-parent > li > span i {
    font-size: 16px !important;             /* Saiz ikon dibesarkan sepadan dengan font */
    color: #0284c7 !important;
    margin-right: 6px !important;
}

/* =========================================================
   MEMBETULKAN GARISAN PEMBAHAGI TOPBAR DUDUK CENTER
   ========================================================= */

/* 1. Ratakan semua elemen topbar selari menegak */
#sp-top2 .sp-column,
.hrpb-topbar-left-group {
    display: flex !important;
    align-items: center !important; /* Center menegak */
    justify-content: flex-end !important;
    gap: 8px !important;            /* Jarak seragam antara elemen */
}

/* 2. Format Garisan Pembahagi Putih */
.topbar-divider {
    display: inline-block !important;
    width: 1.5px !important;            /* Ketebalan garisan */
    height: 18px !important;            /* Ketinggian samakan dengan ikon (18px) */
    background-color: #ffffff !important;/* Warna putih bersih */
    opacity: 0.7 !important;            /* Kejelasan yang selesa dipandang */
    margin: 0 6px !important;           /* Jarak kiri & kanan garisan */
    align-self: center !important;       /* Kunci kedudukan di tengah tepat */
}

/* 3. Pastikan gambar ikon tidak terkeluar dari garisan menegak */
.hrpb-topbar-left-group img {
    vertical-align: middle !important;
    display: block !important;
}


/* =========================================================
   PELARASAN GARISAN PEMBAHAGI KIRI (CENTERING FIX)
   ========================================================= */

.topbar-divider {
    display: inline-block !important;
    width: 1.5px !important;
    height: 18px !important;
    background-color: #ffffff !important;
    opacity: 0.7 !important;
    
    /* ANJAKKAN KE KIRI:
       -10px margin-left menarik garisan rapat ke bendera UK */
    margin-left: -6px !important;
    margin-right: 4px !important;
    
    align-self: center !important;
}

/* Hilangkan sebarang margin kanan berlebihan pada modul Language Switcher */
#sp-top2 .mod-languages,
#sp-top2 .mod-languages ul {
    margin-right: 0 !important;
    padding-right: 0 !important;
}

/* =========================================================
   TAJUK HOSPITAL DALAM ANGKA (UNIVERSAL BM & EN)
   ========================================================= */

/* Format tajuk di tengah, warna putih & tanpa garisan untuk BM dan EN */
.sppb-section:has(.sppb-animated-number) .sppb-section-title,
.sppb-section:has(.sppb-animated-number) .sppb-title-heading,
.sppb-section:has(.sppb-animated-number) h2 {
    text-align: center !important;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    border-left: none !important;
    border-bottom: none !important;
    padding-left: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 30px !important;
    display: block !important;
}

/* 1. Warna Latar Belakang & Sudut Kotak Kad Phoca Download */
#phoca-dl-categories-box .card {
    background-color: #f5f7f9 !important; /* Warna latar belakang lembut */
    border: 1px solid #e2e8f0 !important;   /* Garis sempadan nipis */
    border-radius: 8px !important;         /* Lengkungan sudut kotak */
    transition: all 0.3s ease;
}

/* Kesan apabila tetikus lalu di atas kad (Hover) */
#phoca-dl-categories-box .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* 2. Gaya Tajuk Utama Kategori (Pengurusan, Perubatan, dll.) */
#phoca-dl-categories-box .card-title a {
    color: #8b0000 !important;      /* Warna merah gelap JKN Perak (Atau guna #0056b3 untuk biru) */
    font-weight: 700 !important;
    font-size: 20px !important;
    text-decoration: none !important;
}

#phoca-dl-categories-box .card-title a:hover {
    color: #ff0000 !important;      /* Warna apabila di-hover */
}

/* 3. Gaya Senarai Sub-Kategori Dalam Kad */
#phoca-dl-categories-box .list-group-item {
    background-color: transparent !important; /* Kekalkan warna latar kad */
    border-bottom: 1px dashed #e0e0e0 !important; /* Garis putus-putus sub-kategori */
    padding: 8px 0 !important;
}

#phoca-dl-categories-box .list-group-item a {
    color: #333333 !important;      /* Warna teks senarai */
    font-size: 14px !important;
    text-decoration: none !important;
}

#phoca-dl-categories-box .list-group-item a:hover {
    color: #8b0000 !important;      /* Warna teks bila hover */
    padding-left: 5px;             /* Kesan anjakan sedikit ke kanan */
    transition: all 0.2s ease;
}

/* 4. Gaya Bahagian Bawah Kad (Card Footer: Jumlah Files/Categories) */
#phoca-dl-categories-box .card-footer {
    background-color: #eef2f5 !important;
    border-top: 1px solid #e2e8f0 !important;
    font-size: 12px !important;
    color: #666666 !important;
}

/* 1. Kurangkan jarak ruang kosong di atas kandungan Phoca Download */
#sp-main-body {
    padding-top: 10px !important; /* Nilai asal biasanya 50px-80px */
}

/* 2. Buang margin bahagian atas pada kontena Phoca Download */
#phoca-dl-categories-box,
.com-phocadownload #sp-component {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 3. Rapatkan jarak antara breadcrumbs dan bahagian kandungan di bawahnya */
#sp-breadcrumbs {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Mengecilkan saiz font tajuk Most Downloaded Files */
#phoca-dl-most-viewed-box h3,
.pd-documents h3 {
    font-size: 18px !important; /* Ubah nilai ini (cth: 16px atau 18px) mengikut kesesuaian */
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

/* =========================================================
   MEMAKSA SEMUA SUBMENU BERTINGKAT BUKA KE KIRI
   ========================================================= */

/* 1. Paksa Semua Submenu Tingkat Ke-2 dan Ke-3 Terbuka ke KIRI */
#sp-header .sp-dropdown .sp-dropdown-sub,
#sp-header .dropdown-submenu .dropdown-menu,
#sp-header .sp-megamenu-parent > li:nth-child(n+3) .sp-dropdown-sub,
#sp-header .sp-megamenu-parent > li:nth-child(n+3) .dropdown-menu {
    left: auto !important;
    right: 100% !important;                  /* Membuka ke arah kiri */
    margin-left: 0 !important;
    margin-right: 2px !important;
    border-left: none !important;
    border-right: 3px solid #2b84ff !important; /* Pola garis penunjuk pindah ke kanan */
    border-radius: 8px 0 8px 8px !important;
    box-shadow: -8px 8px 25px rgba(0,0,0,0.15) !important;
}

/* 2. Memastikan Teks Menu Panjang Tetap Rapi dan Tidak Terpotong */
#sp-header .sp-dropdown-sub a,
#sp-header .dropdown-menu a {
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.4 !important;
    padding: 8px 15px !important;
}

/* 3. Efek Hover Rapi saat Kursor Diarahkan ke Submenu */
#sp-header .sp-dropdown-sub a:hover,
#sp-header .dropdown-menu a:hover {
    background-color: #f1f5f9 !important;
    color: #2b84ff !important;
    padding-left: 18px !important;
}

/* =========================================================
   1. REKA BENTUK BUTANG TUKAR WARNA TEMA (THEME SWITCHER)
   ========================================================= */

/* Warna Petak Butang Tema */
.theme-default { background-color: #0b3b60 !important; }
.theme-green   { background-color: #00875a !important; }
.theme-purple  { background-color: #6b21a8 !important; }
.theme-red     { background-color: #8b0000 !important; }

.btn-theme {
    width: 23px !important;
    height: 23px !important;
    border: 1.5px solid #ffffff !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
}

.btn-theme:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8) !important;
}

/* Kunci Header (Logo & Menu) kekal Latar Belakang Putih & Teks Gelap */
header#sp-header,
#sp-header,
#sp-header .container {
    background-color: #ffffff !important;
}

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
    color: #1e293b !important;
}

/* =========================================================
   2. SUSUNAN & KEMASAN TOPBAR KANAN (#sp-top2) - CENTERED FIX
   ========================================================= */

/* Paksa modul-modul di top2 duduk sebaris melintang tanpa ruang kosong asal */
#sp-top2 .sp-column,
#sp-top2 .sp-column > div,
#sp-top2 .sp-module {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Modul Bendera - Buang margin berlebihan di sebelah kanan bendera UK */
#sp-top2 .mod-languages,
#sp-top2 .mod-languages ul,
#sp-top2 .mod-languages ul.lang-inline {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
}

#sp-top2 .mod-languages ul.lang-inline li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Modul Color Switcher (Garisan Pemisah Putih Kiri & Kanan - Rapat Maksimum) */
.theme-color-switcher {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;              /* Jarak antara petak warna */
    vertical-align: middle !important;
    
    /* Garisan Putih Kiri */
    border-left: 1.5px solid rgba(255, 255, 255, 0.8) !important;
    padding-left: 10px !important;   /* Jarak lega ke petak warna biru */
    margin-left: -2px !important;     /* Rapat maksimum ke bendera UK */

    /* Garisan Putih Kanan */
    border-right: 1.5px solid rgba(255, 255, 255, 0.8) !important;
    padding-right: 10px !important;  /* Jarak lega ke petak warna merah */
    margin-right: -2px !important;    /* Rapat maksimum ke ikon FAQ */
    
    height: 18px !important;        /* Ketinggian garisan */
}

/* Modul 4 Ikon Utiliti (FAQ, Hubungi, Aduan, Peta Laman) */
.hrpb-topbar-left-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   INDICATOR BENDERA BAHASA TERPILIH (ACTIVE LANGUAGE)
   ========================================================= */

/* 1. Bendera yang TIDAK DIPILIH (Pudar sedikit untuk beza) */
#sp-top2 .mod-languages ul.lang-inline li a img,
#sp-top2 img[src*="my.png"],
#sp-top2 img[src*="en.png"] {
    opacity: 0.55 !important;
    border: 1.5px solid transparent !important;
    border-radius: 3px !important;
    transition: all 0.25s ease !important;
}

/* 2. Bendera YANG SEDANG DIPILIH / AKTIF (Terang & Ada Ring Bersinar) */
#sp-top2 .mod-languages ul.lang-inline li.lang-active a img,
#sp-top2 .mod-languages ul.lang-inline li.active a img,
#sp-top2 .mod-languages ul.lang-inline li a.active img {
    opacity: 1 !important;
    border: 1.5px solid #ffd700 !important; /* Bingkai Kuning Emas */
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.9) !important; /* Kesan Glowing */
    transform: scale(1.08) !important; /* Membesar sikit daripada bendera biasa */
}

/* 3. Kesan Hover pada Bendera Biasa */
#sp-top2 .mod-languages ul.lang-inline li:not(.lang-active) a:hover img {
    opacity: 0.9 !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}


/* =========================================================
   3. SAIZ ELEMEN IMAGES TOPBAR (IKUT STANDARD HRPB)
   ========================================================= */

/* Saiz 4 Ikon Utiliti (24px x 24px) */
.hrpb-topbar-left-group img.flag-img,
#sp-top2 .mod-custom img[src*="faq"],
#sp-top2 .mod-custom img[src*="hubungi"],
#sp-top2 .mod-custom img[src*="maklum"],
#sp-top2 .mod-custom img[src*="petalaman"] {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    transition: transform 0.2s ease !important;
}

/* Saiz Bendera (32px x 20px) */
#sp-top2 .mod-languages img,
#sp-top2 img[src*="my.png"],
#sp-top2 img[src*="en.png"] {
    width: 32px !important;
    height: 20px !important;
    max-width: 32px !important;
    max-height: 20px !important;
    object-fit: cover !important;
    vertical-align: middle !important;
}

/* Kesan Hover Membesar */
#sp-top2 a:hover img {
    transform: scale(1.1) !important;
}

/* =========================================================
   PELARASAN RESPONSIF MOBILE TOPBAR (2 BARIS / WRAP AUTO)
   ========================================================= */

@media (max-width: 767.98px) {
    /* 1. Benarkan kontena topbar melipat elemen ke baris baharu (wrap) */
    #sp-top-bar,
    #sp-top2,
    #sp-top2 .sp-column {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 4px 2px !important;
        margin: 0 !important;
        gap: 6px !important;              /* Jarak seimbang antara kumpulan elemen */
    }

    /* 2. Susun modul bendera, butang warna & ikon utiliti di Baris 1 */
    #sp-top2 .mod-languages,
    .theme-color-switcher,
    .hrpb-topbar-left-group {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 3. Kemaskan Saiz Bendera di Mobile (26px x 16px) */
    #sp-top2 .mod-languages img,
    #sp-top2 img[src*="my.png"],
    #sp-top2 img[src*="en.png"] {
        width: 26px !important;
        height: 16px !important;
        max-width: 26px !important;
        max-height: 16px !important;
        object-fit: cover !important;
    }

    /* 4. Kemaskan Butang Tukar Warna Tema di Mobile */
    .theme-color-switcher {
        gap: 3px !important;
        border-left: 1px solid rgba(255, 255, 255, 0.5) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.5) !important;
        padding: 0 5px !important;
        margin: 0 2px !important;
        height: 16px !important;
    }

    .theme-color-switcher .btn-theme {
        width: 18px !important;
        height: 18px !important;
    }

    /* 5. Kemaskan Saiz 4 Ikon Utiliti di Mobile (20px x 20px) */
    .hrpb-topbar-left-group {
        gap: 5px !important;
    }

    .hrpb-topbar-left-group img.flag-img,
    #sp-top2 .mod-custom img[src*="faq"],
    #sp-top2 .mod-custom img[src*="hubungi"],
    #sp-top2 .mod-custom img[src*="maklum"],
    #sp-top2 .mod-custom img[src*="petalaman"] {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
        object-fit: contain !important;
    }

    /* 6. Paksa Kotak Carian Turun ke Baris 2 di Tengah */
    #sp-top2 .mod-finder,
    #sp-top2 .carianweb {
        width: 100% !important;
        flex: 0 0 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 2px !important;
    }

    #sp-top2 .mod-finder input {
        width: 80% !important;            /* Kotak carian kemas di tengah baris 2 */
        max-width: 220px !important;
        height: 26px !important;
        font-size: 11px !important;
        padding: 2px 8px !important;
        text-align: center !important;
        border-radius: 12px !important;    /* Bucu melengkung moden */
    }
}