@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;
}

/* 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;
  }
}

/* ----------------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; 
    margin-top: 5px; 
}

/* 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; 
    }
}

/* The text under the Selamat datang ke Pusat Bantuan */
html:lang(ms) .Header__description {
    font-size: 0 !important;
    line-height: 0 !important;
}

html:lang(ms) .Header__description::after {
    content: "Layari pangkalan pengetahuan kami untuk mendapatkan maklumat, \A atau kemukakan tiket bagi sebarang pertanyaan dan bantuan lanjut.";
    white-space: pre-wrap !important;
    
    font-size: 16px !important;
    line-height: 1.6 !important;
    display: block !important;
    color: #ffffff !important;
    margin-top: 10px !important;
    text-align: center !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;
}


/* PREVENT HEADER FROM STICKING
#navBar,
.Header__navbar {
    position: absolute !important; 
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;

    transform: none !important;
    transition: none !important;

    z-index: 10 !important; 
}

#searchContainer2,
.Header__globalSearchAlt {
    display: none !important;
} */

/* --- Fix for Header Layout on Scroll --- */

/* Only apply this fix on Desktop screens (so we don't break mobile view) */
@media (min-width: 992px) {
    
    /* 1. Hide the hamburger menu icon when scrolling */
    .Header__navbar.is-sticky .Header__menuicon, 
    .Header__navbar.scrolled .Header__menuicon,
    #menuIconContainer {
        display: none !important;
    }

    /* 2. Force the full menu to stay visible */
    .Header__navbar.is-sticky .Header__menuTab, 
    .Header__navbar.scrolled .Header__menuTab {
        display: block !important;
    }

    /* 3. Ensure the menu items stay in a single horizontal line */
    .Header__navbar.is-sticky .Header__menuList, 
    .Header__navbar.scrolled .Header__menuList {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    /* 4. Ensure Login/Sign up buttons specifically stay side-by-side */
    .LoginDetail__LogoutDetail {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px; /* Adds a small gap between 'Daftar Masuk' and 'Daftar' */
    }
}
