@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* Change search button background */
.SearchContainer__searchIcon {
    background-color: #611DB5 !important;
}

.SearchContainer__searchIcon svg {
    fill: #ffffff !important;
}

/* --- Adjust Search Box Width --- */
.Header__globalSearchAlt {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.SearchContainer__globalSearch {
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    
    background-color: #ffffff !important;
    border-radius: 5px !important;
    overflow: hidden !important;
}

#searchContainer2 {
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
}

.globalfixednav #searchContainer2, 
.Header__homeNavbarFixed #searchContainer2 {
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
    position: relative !important;
    pointer-events: auto !important;
    
    display: flex !important;
    justify-content: center !important;
    z-index: 1000 !important;
    margin-top: 5px !important;
}

.Header__globalSearchAlt {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.SearchContainer__globalSearch {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    background-color: #ffffff !important;
    border-radius: 5px !important;
}

/* Change Go Up button background */
.AppContainer__backToTop {
    background-color: #611DB5 !important;
}

/* Optional: change the arrow icon color */
/* 1. Main Button Container - Keeps the scroll logic working */
.AppContainer__backToTop {
    /* Centering Basics */
    text-align: center !important;        
    line-height: 41px !important;         
    
    /* Shape */
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    
    /* Color & Border */
    background-color: #611DB5 !important;
    border: 2px solid #ffffff !important;
    padding: 0 !important;
}

/* 2. The Arrow Icon - With Manual Nudge */
.AppContainer__backToTop svg {
    display: inline-block !important;
    vertical-align: middle !important;
    fill: #ffffff !important;
    
    width: 20px !important;
    height: 20px !important;
    
    /* --- MANUAL ADJUSTMENT HERE --- */
    /* If it looks to the left, we add margin to the left to push it right. */
    margin: 0 !important; 
    margin-left: 1px !important; /* Increase this number (e.g., 4px, 5px) to move further right */
    margin-top: 1px !important; /* Adjusts vertical alignment if needed */
}

/* Target the linked texts */
a.commonStyle__zt3Brand {
    color: #611DB5 !important;          /* Text color */
    border-color: #611DB5 !important;   /* If it has a border */
    background-color: transparent !important; /* If background is filled, set as needed */
}

/* Default state: brand color background, white text */
.Button__footerBtn {
    background-color: #611DB5 !important;
    color: #ffffff !important;
    border: 2px solid #611DB5 !important; /* optional, for visible border */
}

/* Hover state: white background, brand color text & border */
.Button__footerBtn:hover {
    background-color: #ffffff !important;
    color: #611DB5 !important;
    border: 2px solid #611DB5 !important;
}
.Icon__icon.Icon__greyShade70 use {
    fill: #611db5 !important;
    stroke: #611db5 !important;
}

/* Change color of the small search icon on KB / My Area pages */
.SearchContainer__searchBoxIcon .Icon__brand svg,
.SearchContainer__searchBoxIcon .Icon__brand {
    fill: #611db5 !important;
    color: #611db5 !important;
}

/* Additional backup */
svg.Icon__brand {
    fill: #611db5 !important;
    stroke: #611db5 !important;
}

/* eskayvie.com to white text */
.Header__tabsTab a {
    color: white !important;       /* Force white text */
    text-decoration: none !important;  /* Remove underline */
}
.Header__tabsTab a:hover {
    color: #8843de !important;        /* Optional: hover effect */
}

/* HYPERLINK */
a {
    color: #611DB5 !important;       /* Set desired hyperlink color */
    text-decoration: none !important; /* Remove underline */
}

/* Optional: hover state for hyperlinks */
a:hover {
    color: #8843DE !important;       /* Slightly different color on hover */
    text-decoration: none !important; /* Keep hover without underline */
}

/* Force Sign In/Up link to white */
.LoginDetail__signin .signinLink {
    color: white !important;
}

.LoginDetail__tabLink.signupLink {
    color: white !important;
}

/* Optional: hover effect */
.LoginDetail__signin .signinLink:hover {
    color: #8843DE !important;
}
.LoginDetail__tabLink.signupLink:hover {
    color: #8843DE !important;
}

/* Small Button */
.Button__btnFont.Button__primaryBorder {
    background-color: #611db5 !important;
    border-color: #611db5 !important;
    color: #ffffff !important;
}

/* Scroll Progress Bar */
.Readingprogress__progressBar::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #611db5 0%, #611db5 95%, #ffffff 100%);
    transition: width 0.3s ease;
}


/* Hide preview article list under sections & sub-sections */
.kbLanding .ContentList__topicList,
.kbCategory .ContentList__topicList,
.kbSubCategory .ContentList__topicList,
.article_subcategory .ContentList__topicList,
.articleSubCategory .ContentList__topicList {
  display: none !important;
}

/* Hide the "More" link under each preview list */
.kbLanding .ContentList__moreOption,
.kbCategory .ContentList__moreOption,
.kbSubCategory .ContentList__moreOption,
.article_subcategory .ContentList__moreOption,
.articleSubCategory .ContentList__moreOption {
  display: none !important;
}

.ListHeader__description {
  font-size: 12px;   /* adjust as needed */
}

/* dropdown menu */
.lang-dropdown {
  position: relative;
  list-style: none;
}

/* Globe button */
.lang-btn {
  cursor: pointer;
  font-size: 18px;
  color: #fff; /* change to #611DB5 if header is light */
}

/* Dropdown container */
.lang-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: #611DB5; /* or #fff if light dropdown */
  min-width: 160px;
  display: none;
  z-index: 1000;
}

/* Dropdown links */
/* Container */
.lang-dropdown {
  position: relative;
  list-style: none;
  display: inline-block; /* makes hover area tight around globe */
}

/* Globe button */
.lang-btn {
  cursor: pointer;
  font-size: 18px;
  color: #fff;       /* white globe icon */
  background: transparent; /* no background, transparent */
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

/* Optional: hover effect for the globe button */
.lang-btn:hover {
  background: rgba(255,255,255,0.1); /* subtle hover */
}

/* Dropdown menu (hidden by default) */
.lang-menu {
  position: absolute;
  /* changed from 120% to 100% so we can control the gap exactly */
  top: 100%; 
  right: 0;
  background: #fff;         /* white background */
  min-width: 160px;
  display: none;
  z-index: 1000;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  
  /* CRITICAL CHANGE: changed from 'hidden' to 'visible' so the bridge works */
  overflow: visible; 
  
  /* Adds the gap visually */
  margin-top: 10px; 
}

/* NEW: The invisible bridge to fix the closing issue */
.lang-menu::before {
    content: "";
    display: block;
    position: absolute;
    /* This fills the 10px margin gap above the menu */
    top: -10px; 
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent; 
}

/* Dropdown links */
.lang-menu a {
  display: block;
  padding: 10px 14px;
  color: #611DB5;     /* purple text */
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

/* Link hover effect */
.lang-menu a:hover {
  background: rgba(97, 29, 181, 0.1); /* light purple background */
}

/* Show dropdown on hover */
.lang-dropdown:hover .lang-menu {
  display: block;
}

/* Mobile responsive dropdown */
@media (max-width: 768px) {
  .lang-menu {
    right: auto;   /* cancel right positioning */
    left: 0;       /* align to left of parent */
    min-width: 140px; /* optional, smaller width for mobile */
  }
}

/* Footer background to white */
#footerContainer,
#footerContainer .Footer__footerCopyrigt {
    background-color: #ffffff !important;
}

#footerContainer .Footer__footerCopyrigt{
    background-color: #ffffff;       /* Footer background white */
    border-top: 2px solid #cccccc;   /* Grey top border */
    padding: 20px 0;                 /* Optional padding */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    .footer-col {
        margin-bottom: 30px;
        padding-right: 0;
    }
}

/* Custom Hover Effect for Home Page Images */
.custom-hover-image {
    transition: opacity 0.3s ease;
}

.custom-hover-image:hover {
    opacity: 0.7;
    cursor: pointer;
}


/* ABOVE FOOTER */

/* 1. Main Footer Background (The Full Strip) */
.Footer__footerBg {
    background-color: #611DB5 !important;
}

/* 2. Inner Content & Text Color */
/* Ensure the inner container is transparent so the purple shows through, and text is white */
.Footer__footerContent {
    background-color: transparent !important; 
    color: #fff !important;
}

/* 3. Specific Text Elements */
.Footer__footerQus, 
.Footer__footerDescription span {
    color: #fff !important;
}

/* 4. Button - Standard State */
.Footer__footerBtn button.Button__footerBtn {
    background-color: #fff !important;
    color: #611DB5 !important;
    border: 1px solid #fff !important;
    transition: all 0.3s ease;
}

/* 5. Button - Hover State */
/* Background becomes Purple, Text becomes White, Border stays White */
.Footer__footerBtn button.Button__footerBtn:hover {
    background-color: #d9d9d9 !important;
    border: 1px solid #fff !important;
}


/* FOOTER */

/* --- Footer Container --- */
.custom-site-footer {
    background-color: #f2f2f2;
    padding: 40px 0;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}

/* --- Columns --- */
.footer-col {
    flex: 1;
    min-width: 150px;
    margin-bottom: 20px;
    padding-right: 0;
}

.footer-col:nth-child(3), 
.footer-col.social-col {
    flex: 1.5; 
}

.footer-col.language-select {
    flex: 0 0 auto; /* Do not stretch this column */
    /* margin-left: auto; Push to the far right */
    width: auto;
}

/* --- Headings --- */
.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    margin-top: 0; /* Reset Zoho defaults */
}

/* --- Links & Lists --- */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a,
.contact-info a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 12px;
}

.footer-col ul li a:hover,
.contact-info a:hover {
    color: #000;
    text-decoration: underline;
}

/* --- Social Icons --- */
.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #611DB5;
    color: #fff !important; /* Force white icon color */
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 0; /* Override previous link margin */
}

.social-links a:hover {
    opacity: 1;
 	background-color: #4a148c;
    text-decoration: none;
}

/* --- Live Chat Text --- */
.live-chat-text {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.chat-label {
    display: block;
    margin-bottom: 4px;
    color: #333;
}

.live-chat-text small {
    font-size: 11px;
    color: #777;
}

/* --- CSS-Only Dropdown Container --- */
.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 180px;
    font-family: Arial, sans-serif;
}

/* --- The Button (Looks like the select box) --- */
.dropdown-btn {
    background-color: #f2f2f2; /* Light gray bg like original */
    color: #333;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-btn .arrow {
    font-size: 10px;
    color: #555;
    margin-left: 10px;
}

/* --- The Dropdown List (Hidden by default) --- */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Snaps exactly to the bottom of the button */
    left: 0;
    background-color: #fff;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border: 1px solid #ccc;
    border-radius: 4px;
    
    /* FIX: Remove margin so there is no gap */
    margin-top: 0; 
    
    padding-top: 5px; 
    background-clip: content-box;
}

/* creates an invisible layer to catch your mouse */
.dropdown-content::before {
    content: "";
    display: block;
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

/* --- The Links inside the list --- */
.dropdown-content a {
    color: #333;
    padding: 10px 12px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Hover effects */
.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #000;
}

/* --- Show the menu on Hover --- */
.custom-dropdown:hover .dropdown-content {
    display: block;
}

/* Change border color of button when menu is open */
.custom-dropdown:hover .dropdown-btn {
    border-color: #999;
}
/* Desktop */
.Header__header{
  background-size: cover;
}

@media (max-width: 600px){
  body .Header__header{
    background-size: 190% auto !important;
    background-position: calc(100% - 10%) center !important;
    background-repeat: no-repeat !important;
    background-color: #611DB5 !important;
  }
}

/* ================================================== */
/* FIX: REMOVE FOOTER GAP ON MOBILE                   */
/* ================================================== */

@media (max-width: 768px) {
    .footer-container {
        gap: 0 !important; /* Buang gap pada mobile */
    }
}

/* ----------------LAST LOAD---------------------- */
/* Change Top Menu Text */
/* 1. Target the Link inside the Home Tab */
#portal_tabHome a {
    font-size: 0 !important;
    display: inline-block;
    min-width: 50px;
}

/* 2. Create the New Text Label */
#portal_tabHome a::after {
    /* UPDATED: Using the variable you found */
    font-size: var(--size-base13) !important; 
    display: block;
    line-height: normal;
}

/* 3. Text Definitions */
#portal_tabHome a::after {
    content: "Home"; 
}

html:lang(ms) #portal_tabHome a::after {
    content: "Laman Utama";
}

/* --- REPEAT FOR 'MY REQUESTS' --- */
#portal_tabCases a {
    font-size: 0 !important;
    display: inline-block;
}

#portal_tabCases a::after {
    /* UPDATED: Using the variable you found */
    font-size: var(--size-base13) !important;
    
    display: block;
    content: "My Tickets"; 
}

html:lang(ms) #portal_tabCases a::after {
    content: "Tiket Saya"; 
}

.signinLink,
.signinLink a {
    font-size: 0 !important;
    display: inline-block;
}

.signinLink::after {
    font-size: var(--size-base13) !important;
    display: block;
    content: "Sign In";
}

html:lang(ms) .signinLink::after {
    content: "Log Masuk";
}

/* FIX MOBILE ALIGNMENT for eskayvie.com */
@media (max-width: 768px) {
    #portal_tabEskayvie a {
        padding-left: 7px !important; 
    }
}

/*ENGLISH & MALAY*/
/* 1. Default: Hide both spans first to avoid flickering */
.lang-en, .lang-ms {
    display: none !important;
}

/* 2. Show English when lang is 'en' */
html:lang(en) .lang-en {
    display: block !important;
}

/* 3. Show Malay when lang is 'ms' */
html:lang(ms) .lang-ms {
    display: block !important;
}

.Header__searchTitle {
	font-weight: 1000 !important;
}

/*Header padding top and bottom */
.Header__homeContent .Header__searchSection {
    padding: 7rem 0 3rem 0; !important;
    display: block; !important;
}

/* mobile */
@media (max-width: 768px) {
    .Header__homeContent .Header__searchSection {
        padding: 5rem 0 1rem 0 !important;
        display: block !important;
    }
}

/* 4. Common Styling for both descriptions */
.Header__description {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    margin-top: 10px !important;
    text-align: center !important;
}

/* 5. Hyperlink Styling */
.Header__kbLink {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

/* --- TUKAR "ARTIKEL POPULAR" KEPADA "ARTIKEL TUMPUAN" --- */

html:lang(ms) h5[data-id="popularAricles"] {
    font-size: 0 !important;
    line-height: 0 !important;
}

html:lang(ms) h5[data-id="popularAricles"]::after {
    content: "Artikel Tumpuan";
    
    font-size: 20px !important; 
    font-weight: 600 !important;
    line-height: normal !important;
    display: block !important;
  
    color: inherit !important; 
}

/* --- Text Malay Atas Footer (CTA) --- */
/* 1. Tukar "Masih tidak jumpa jawapan?" ke "Masih tidak menemui jawapan?" */
html:lang(ms) .Footer__footerQus {
    font-size: 0 !important;
}

html:lang(ms) .Footer__footerQus::after {
    content: "Masih tidak menemui jawapan?";
    font-size: 30px !important;
    line-height: 1.3 !important;
    display: block !important;
    color: #ffffff !important;
  	transform: translateY(-10px) !important;
}

/* 2. Tukar ayat huraian ke "Sila hantarkan tiket..." */
html:lang(ms) .Footer__footerDescription {
    margin-top: -15px !important;
  	transform: translateY(-10px) !important;
}

html:lang(ms) .Footer__footerDescription span {
    font-size: 0 !important;
}

html:lang(ms) .Footer__footerDescription span::after {
    content: "Sila hantarkan tiket dan kami akan memberikan maklum balas dalam masa terdekat.";
    font-size: 16px !important;
    line-height: 1.5 !important;
    display: block !important;
    color: #ffffff !important;
    margin-top: -5px !important;
}

/* 3. Tukar "Serahkan Tiket" ke "Hantarkan Tiket" */
html:lang(ms) button.Button__footerBtn {
    font-size: 0 !important;
}

html:lang(ms) button.Button__footerBtn::after {
    content: "Hantarkan Tiket";
    font-size: 14px !important; /* Saiz font butang */
    /* font-weight: 600 !important; */
    display: block !important;
    line-height: normal !important;
    color: inherit !important; 
}


/* ---------FOOTER LANGUAGE CHECK--------- */
/* 1. Default State (English Page) */
/* Show English, Hide Malay */
.footer-en {
    display: flex !important;
}
.footer-ms {
    display: none !important;
}

/* 2. Malay Page State */
/* If the html tag has lang="ms" or "ms-MY", switch visibility */
html[lang="ms"] .footer-en,
html[lang="ms-MY"] .footer-en {
    display: none !important;
}

html[lang="ms"] .footer-ms,
html[lang="ms-MY"] .footer-ms {
    display: flex !important;
}


/* ================================================== */
/* FIX: HEADER COLOR ON SCROLL (PURPLE)               */
/* ================================================== */

.globalfixednav,
.Header__homeNavbarFixed {
    background-color: #611DB5 !important;
  	border-bottom: none !important; /* Buang garisan bawah jika ada */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important; /* Tambah bayang sikit supaya nampak kemas */
}

.globalfixednav #navBar,
.Header__homeNavbarFixed #navBar {
    background-color: #611DB5 !important;
}

.globalfixednav a,
.Header__homeNavbarFixed a,
.globalfixednav .Header__name,
.Header__homeNavbarFixed .Header__name {
    color: #ffffff !important;
}

.globalfixednav .Header__menu,
.Header__homeNavbarFixed .Header__menu {
    filter: invert(1) brightness(2);
}

/* ================================================== */
/* HIDE HAMBURGER MENU ON SCROLL                      */
/* ================================================== */

/* Hide the menu icon container when the header is sticky/scrolled */
.globalfixednav .Header__menuicon,
.Header__homeNavbarFixed .Header__menuicon {
    display: none !important;
}

/* ================================================== */
/* NEW: LANGUAGE LINKS UNDER SEARCH BAR (ALL WHITE)   */
/* ================================================== */

/* 1. Style Asas (Desktop - Putih) */
.Header__langLinks {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.Header__langLinks a {
    color: #ffffff !important; /* Putih */
    text-decoration: none !important;
    font-weight: 600 !important;
    margin: 0 8px;
    cursor: pointer;
}

.Header__langLinks .separator {
    color: #ffffff !important; /* Garis Putih */
    opacity: 0.7;
}

.Header__langLinks a:hover {
    text-decoration: underline !important;
    opacity: 0.9;
}

/* Hide English | Malay button under the search when scrolling */
.Header__navopen .Header__langLinks,
.globalnavopen .Header__langLinks {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.globalfixednav .Header__langLinks, 
.Header__homeNavbarFixed .Header__langLinks {
    visibility: hidden !important; /* Ganti display: none */
    opacity: 0 !important;         /* Fade out (optional) */
    pointer-events: none !important; /* Supaya tak boleh klik bila hilang */
    transition: opacity 0.2s ease; /* Tambah effect pudar sikit */
}

/* 2. Style Mobile - KEKAL PUTIH */
@media (max-width: 768px) {
    .Header__langLinks {
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }

    /* Paksa warna Putih walaupun di Mobile */
    .Header__langLinks a,
    .Header__langLinks .separator {
        color: #ffffff !important; 
    }
}

/* Space between header and body */
@media (max-width: 769px) {
    .Layout__oneColumn, .Layout__twoColumn {
        padding: 1rem 0;
    }
}

/* ================================================== */
/* Boxes Grid */
/* ================================================== */

/* 1. Main Container (Grid Layout) */
#subCategoryContainer.KbSubCategoryContainer__row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: center !important;
    padding: 20px 20px !important; 
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Setiap Kotak (Card Style) */
#subCategoryContainer .KbSubCategoryContainer__contentList {
    flex: 0 0 calc(25% - 12px) !important; 
    max-width: calc(25% - 12px) !important;
    
    background: #efe8f8 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    padding: 20px 15px !important;
    
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    
    /* PENTING UNTUK CLICKABLE BOX */
    position: relative !important; 
    cursor: pointer !important;
}

/* Hover Effect */
#subCategoryContainer .KbSubCategoryContainer__contentList:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
    border-color: #611db5 !important; 
    transform: translateY(-3px) !important;
}

/* 3. Header (Centerkan Ikon & Tajuk - KHAS UNTUK GRID SAHAJA) */
#subCategoryContainer .ListHeader__listHeader2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 0 !important;
    border: none !important;
    width: 100% !important;
}

/* 4. Icon Size */
#subCategoryContainer .Avatar__avatar, 
#subCategoryContainer .Avatar__avatarImg {
    width: 55px !important;
    height: 55px !important;
    margin-bottom: 12px !important;
}

/* 5. Title */
#subCategoryContainer .ListHeader__header2 {
    margin: 0 !important;
    width: 100% !important;
}

#subCategoryContainer .ListHeader__header2 a {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
}

/* ================================================== */
/* FEATURE 2: MAKE WHOLE BOX CLICKABLE                */
/* ================================================== */
#subCategoryContainer .ListHeader__header2 a::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; 
}

/* Link artikel/button lain (safety) */
#subCategoryContainer .ContentList__topicList a, 
#subCategoryContainer .ContentList__moreOption a {
    position: relative !important;
    z-index: 5 !important;
}

#subCategoryContainer .ListHeader__dottedPopup,   
#subCategoryContainer .ListHeader__clBoth {
    display: none !important;
}

/* mobile */

@media (max-width: 1024px) {
    #subCategoryContainer .KbSubCategoryContainer__contentList {
        flex: 0 0 calc(33.33% - 10px) !important;
        max-width: calc(33.33% - 10px) !important;
    }
}

@media (max-width: 768px) {
    #subCategoryContainer .KbSubCategoryContainer__contentList {
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        padding: 15px 10px !important;
    }
    
    #subCategoryContainer .ListHeader__header2 a {
        font-size: 14px !important; 
    }
}

#subCategoryContainer .ListHeader__listHeader2 {
    display: block !important; /* Tukar dari flex ke block */
    text-align: center !important;
    width: 100% !important;
}

#subCategoryContainer .ListHeader__kbSubcategoryImg {
    display: inline-block !important;
    margin: 0 auto 10px auto !important;
    float: none !important; /* Buang sebarang float */
}

#subCategoryContainer .ListHeader__headerContent {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: center !important;
}

#subCategoryContainer .ListHeader__header2 {
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

#subCategoryContainer .ListHeader__linkText {
    display: inline-block !important;
    text-align: center !important;
    width: 100% !important;
}

/* ================================================== */
/* HOME PAGE: FULL BOX CLICKABLE FIX                  */
/* ================================================== */

/* 1. Target the box and the inner container */
.KbCategory__box, 
.KbCategory__boxInner {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
  	background: #efe8f8 !important;
    border-radius: 8px !important;
}

/* 2. Make the link tag the "Master" layer */
.KbCategory__topic a {
    /* We don't just use ::before, we ensure the base <a> can expand */
    position: static !important; 
}

/* 3. The "Ghost Layer" - aggressively stretched */
.KbCategory__topic a::before {
    content: "" !important;
    position: absolute !important;
    
    /* We anchor this to the very top-level box */
    top: -60px !important; /* Adjust if icon is higher */
    left: -80px !important; /* Adjust to cover horizontal padding */
    
    /* Better yet, use a massive fixed area to ensure coverage */
    width: 400px !important; 
    height: 300px !important;
    
    /* Shift it to center the coverage */
    transform: translate(-20%, -20%) !important;
    
    z-index: 999 !important;
    display: block !important;
    background: rgba(255, 0, 0, 0) !important; /* Keep transparent */
}

/* 4. Crucial: Ensure the container doesn't hide our ghost link */
.MediaObject__mediaContent, 
.KbCategory__wordWrap {
    position: static !important;
    overflow: visible !important;
}

/* 5. Fix Title wrapping (Prevents cut-off text) */
.KbCategory__topic, 
.KbCategory__topic a,
.commonStyle__overflowDotted {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
}

/* ================================================== */
/* HEADER LINK: BOLD ONLY (NO UNDERLINE)              */
/* ================================================== */

.Header__kbLink {
    color: #ffffff !important;
    text-decoration: none !important;  /* Buang garisan bawah */
    font-weight: bold !important;      /* Kekalkan tebal */
    cursor: pointer !important;        /* Tunjuk jari bila mouse lalu */
}

/* Optional: Kalau nak garisan tu muncul BILA mouse hover je */
.Header__kbLink:hover {
    text-decoration: underline !important; 
    opacity: 0.9 !important;
  	color: #fff !important;
}

