html,
body {
  overflow-x: hidden;
}



/* Section 3c: Desktop Styles (for screens 1051px and wider) */
@media (min-width: 1051px) {
    /* Hide the mobile-only buttons on desktop */
    .Header__mobileMenuToggle,
    .Header__mobileMenuClose {
        display: none;
    }
    
    /* On desktop, the main nav is just a wrapper for the left/right lists */
    .Header__mainNav {
        display: contents; /* This makes its children (the uls) direct children of .Header__menuBox */
    }

    /* Your original, working desktop list styles */
    .Header__nav--left,
    .Header__nav--right {
        display: flex;
        gap: 5px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .Header__nav--left {
        margin-right: auto; /* Pushes left list to the left of the logo */
    }
    .Header__nav--right {
        margin-left: auto; /* Pushes right list to the right of the logo */
    }
    
    /* Your original, working desktop link styles */
    .Header__menuLink,
    .Header__link {
        color: black;
        font-weight: bold;
        text-decoration: none;
        padding: 10px 15px;
        display: inline-block;
        transition: color 0.2s ease;
    }
    .Header__menuLink:hover,
    .Header__link:hover {
        color: #009fe3;
    }
}


/* Full-width white background */
.Header__menuWrapper {
  position: relative;
  width: 100%;
  background-color: #ffffff;
}
/* Desktop default */
.Header__welcomeTitle {
  font-size: 48px !important;
}

/* Mobile override */
@media (max-width: 768px) {
  .Header__welcomeTitle {
    font-size: 32px !important;
  }
}

.Header__defaultContent .Header__welcomeTitle,
.Header__defaultContent .Header__welcomeDescription,
.Header__defaultContent .Header__titleDescription {
  display: block !important;
}
.Header__titleDescription {
  margin-bottom: 40px;
}
.Header__welcomeTitle,
.Header__welcomeDescription {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.Header__logo img {
    transition: transform 0.3s ease;
}

/* Your existing hover rule stays the same */
.Header__logo:hover img {
    transform: scale(1.05);
}

.Header__searchSubCont {
	margin-bottom:40px;
  	width: 100%;
}
.Header__searchLink {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.Header__titleDescription {
  text-align: center;
  padding: 20px 0 10px;
  color: white;
}

.Header__welcomeTitle {
  font-size: 32px;
  margin: 0 0 8px;
  color: white;
}

.Header__welcomeDescription {
  font-size: 18px;
  color: white;
}
.CustomBoxes__header .CustomBoxes__scrollWrapper {
  margin-bottom: 0 !important;
}
.Header__homeNavbarFixed .Header__searchSubCont {
  background-color:#002249;
}

#breadCrumbsContainer {
  width: 100%;
  background-color: #f7f7f7;
}

.Header__breadcrumbs {
  margin: 0;
  padding: 0;
}

.BreadCrumbs__breadcrumbsView {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  box-sizing: border-box;
  background-color: #f7f7f7;
  text-align: left;
}

.BreadCrumbs__breadcrumbList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: block;
  white-space: nowrap;
}

.BreadCrumbs__breadCrumbText {
  display: inline-block;
  font-weight: bold;
  color: #000000;
  margin-right: 10px; /* small consistent spacing */
}

.BreadCrumbs__breadCrumbsLink {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.BreadCrumbs__breadCrumbsLink:hover {
  color: #009fe3;
  text-decoration: none;
}

.BreadCrumbs__breadCrumbText span {
  color: #ffcc00;
}

/* WRAPPER */
.CustomBoxes__header {
  width: 100%;
}
.CustomBoxes__scrollWrapper {
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

/* FLEX CONTAINER */
.CustomBoxes__container {
  display: grid;
  gap: 16px;
  max-width: 80rem;
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: border-box;

  grid-template-columns: repeat(2, 1fr); /* Default mobile: 2x2 */
}

/* BOX STYLE */
.CustomBoxes__box {
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: #000 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ICON STYLE */
.CustomBoxes__box img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* TEXT */
.CustomBoxes__box h3 {
  font-size: 16px;
  margin: 0;
}

/* HOVER EFFECTS - DESKTOP ONLY */
@media (min-width: 1024px) {
  .CustomBoxes__box:hover {
    border-color: #009fe3;
    box-shadow: 0 0 20px 4px rgba(0, 159, 227, 0.4);
  }
  .CustomBoxes__box:hover h3 {
    color: #009fe3 !important;
  }
  .CustomBoxes__box:hover img {
    animation: bounceOnce 0.4s ease;
    filter: brightness(0) saturate(100%) invert(39%) sepia(88%) saturate(738%) hue-rotate(173deg) brightness(95%) contrast(96%) !important;
  }
}

/* TABLET: 4 columns */
@media (min-width: 600px) and (max-width: 1023px) {
  .CustomBoxes__container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* DESKTOP: 4 columns */
@media (min-width: 1024px) {
  .CustomBoxes__container {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .CustomBoxes__box {
    padding: 16px;
  }

  .CustomBoxes__box img {
    width: 60px;
    height: 60px;
  }

  .CustomBoxes__box h3 {
    font-size: 18px;
  }
}

/* Bounce keyframe */
@keyframes bounceOnce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}


/* Ensure text stays black */
.CustomBoxes__box,
.CustomBoxes__box * {
  color: #000 !important;
}

/* Optional avatar override */
.Avatar__square.Avatar__medium {
  width: 80px;
  height: 80px;
}

.Avatar__square.Avatar__medium .Avatar__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ModuleItem__moduleHeader {
  padding: 20px;
  overflow: hidden; /* Ensures children don’t spill outside rounded corners */
}
.ModuleItem__moduleItem {
  border-radius: 12px;
  overflow: hidden; /* ensures rounded corners clip content */
}
.KBSubCategoryContainer__boxView .ModuleItem__moduleItem {
  margin-bottom: 20px; /* adjust the gap as needed */
}
.KBSubCategoryContainer__boxView {
  border: none;
  box-shadow: none;
}
.ModuleItem__moduleItem:hover {
  box-shadow: 0 0 12px 0 #009fe3;
}

@keyframes bounceAvatar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.ModuleItem__moduleItem:hover .Avatar__square.Avatar__medium {
  animation: bounceAvatar 0.4s ease;
}

.ModuleItem__moduleItem {
  cursor: pointer;
}

.Button__neutral:hover {
  background-color:#009fe3 !important;
}
.Button__neutral {
    border: .0625rem solid #009fe3;
}}
.Footer__footer {
background-color: #002249;
}
.Footer__container {
  padding: 40px 20px;
  font-size: 16px;
  color: #ffffff;
  text-align: left;
  background-color: #002249;
}

.Footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 80rem;
  margin: 0 auto;
}

.footer__block p {
  color: #ffffff;
  margin-bottom: 10px;
}

.footer__block p.bold {
  color: #ffcc00;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer__block a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out;
}

.footer__block a:hover {
  color: #ffffff;
  opacity: 1;
}

.link-faded {
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}

.link-faded:hover {
  opacity: 1;
  color: #ffffff;
}

.v-stack {
  list-style: none;
  padding: 0;
  margin: 0;
}

.v-stack li {
  margin-bottom: 8px;
}

.prose p {
  color: #ffffff;
  margin-bottom: 10px;
}
.Footer__below .Footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 20px;
}

.Footer__socialWrap {
  margin-top: 40px;
}

.social-media {
  display: flex;
  justify-content: left;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-media li a img {
  width: 27px;
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
  filter: invert(100%);
}

.social-media li a img:hover {
  opacity: 1;
}

.Footer__copyright {
  margin-top: 30px;
  text-align: left;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.Footer__copyright a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
}

.Footer__copyright a:hover {
  opacity: 1;
  color: #ffffff;
}
  .Header__mobileMenuList a:hover {
    color: #009fe3;
  }
/*
 * ===================================================================
 * FINAL RESPONSIVE HEADER NAVIGATION STYLES
 * This single block controls both desktop and mobile views.
 * ===================================================================
*/

/* --- SECTION A: SHARED STRUCTURE & DEFAULTS --- */

.Header__menuBox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    padding: 20px;
    min-height: 70px;
    max-width: 80rem !important;
    margin: 0 auto;
    box-sizing: border-box;
}

.Header__logoPart {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002; /* Logo must be on top of everything */
}

.Header__logo img {
    max-height: 40px;
}


/* --- SECTION B: MOBILE STYLES (for screens under 1051px) --- */

@media (max-width: 1050px) {
    /* Show the hamburger icon */
    .Header__mobileMenuToggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
    }

    /* Style the close button (hidden by default) */
    .Header__mobileMenuClose {
        display: none;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 32px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1001;
    }
    
    /* Style the main <nav> container as a hidden, full-screen menu */
    .Header__mainNav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #ffffff;
        z-index: 1000;
        padding: 80px 30px 30px 30px;
        transform: translateX(-100%);
        transition: transform 0.35s ease-in-out;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    /* When the checkbox is checked, slide the menu in and show the close button */
    #mobileNavToggle:checked ~ .Header__menuWrapper .Header__mainNav {
        transform: translateX(0);
    }
    #mobileNavToggle:checked ~ .Header__menuWrapper .Header__mainNav .Header__mobileMenuClose {
        display: block;
    }

    /* Unified Mobile Menu List Styling */
    .Header__mainNav ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
    }
    .Header__mainNav ul.Header__nav--left {
        margin-bottom: 20px;
    }
    .Header__mainNav li {
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }
    .Header__mainNav a,
    .Header__mainNav .Header__link {
        display: block;
        width: 100%;
        padding: 15px 0;
        color: #000000 !important;
        font-weight: bold;
        font-size: 18px;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    .Header__mainNav a:hover,
    .Header__mainNav .Header__link:hover {
        color: #009fe3;
    }
    .Header__mainNav ul:last-of-type li:last-of-type {
        border-bottom: none;
    }
    .Header__mainNav #logoutDetails ul {
        border: none !important;
    }
}


/* --- SECTION C: DESKTOP STYLES (for screens 1051px and wider) --- */

@media (min-width: 1051px) {
    /* Hide the mobile-only buttons */
    .Header__mobileMenuToggle,
    .Header__mobileMenuClose {
        display: none;
    }
    
    /* This makes the <nav> a simple wrapper on desktop */
    .Header__mainNav {
        display: contents;
    }

    /* Your original, working desktop list styles */
    .Header__nav--left,
    .Header__nav--right {
        display: flex;
        gap: 5px;
        list-style: none;
        padding: 0;
        margin: 0;
        align-items: center;
    }
    .Header__nav--left {
        margin-right: auto;
    }
    .Header__nav--right {
        margin-left: auto;
    }
    
    /* Your original, working desktop link styles */
    .Header__menuLink,
    .Header__link {
        color: black;
        font-weight: bold;
        text-decoration: none;
        padding: 10px 15px;
        display: inline-block;
        transition: color 0.2s ease;
    }
    .Header__menuLink:hover,
    .Header__link:hover {
        color: #009fe3;
    }
    
    /* Desktop alignment fixes */
    .Header__nav--right > li.Header__menuList:empty {
        display: none !important;
    }
    #logoutDetails,
    #logoutDetails .LoginDetail__loginContainer {
        display: contents;
    }
    #portal_tabsignin {
        margin-left: 5px;
    }
}
/*
 * ===================================================================
 * FORCED VISIBILITY FIX FOR MOBILE MENU
 * This rule will override any hidden styles on the menu links.
 * ===================================================================
*/
@media (max-width: 1050px) {
    /*
     * When the menu is open, this rule targets every list, list item,
     * and link inside it and forces them to be visible.
    */
    #mobileNavToggle:checked ~ .Header__menuWrapper .Header__mainNav ul,
    #mobileNavToggle:checked ~ .Header__menuWrapper .Header__mainNav li,
    #mobileNavToggle:checked ~ .Header__menuWrapper .Header__mainNav a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 18px !important; /* Force a visible font size */
        
        /* NOTE: Forcing color to RED for debugging */
        color: #000000 !important; 
    }
}
/*
 /*
/*
 * ===================================================================
 * FINAL ALIGNMENT FIX (V3): Mobile Sign In / Sign Up Links
 * This is the definitive fix based on your inspector findings.
 * ===================================================================
*/
@media (max-width: 1050px) {
    /*
     * This rule targets ONLY the "Sign In" and "Sign Up" links.
     * It overrides the platform's default styles that cause the gap,
     * forcing them to be full-width just like your other menu items.
    */
    .Header__mainNav .LoginDetail__tabLink {
        display: block !important;
        width: 100% !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        box-sizing: border-box !important;
    }
}
/*
 * ===================================================================
 * FINAL ALIGNMENT FIX (V4): Force Text-Align Left
 * ===================================================================
*/
@media (max-width: 1050px) {
    /*
     * This rule targets the "Sign In" and "Sign Up" list items,
     * and the links inside them, to force them to be left-aligned.
    */
    .Header__mainNav #portal_tabsignin,
    .Header__mainNav #portal_tabsignup,
    .Header__mainNav .LoginDetail__tabLink {
        text-align: left !important;
    }
}
/*
 * ===================================================================
 * Final Fix: Perfect Logo Centering
 * This rule ensures the logo is always centered on all screen sizes.
 * ===================================================================
*/

/*
 * This makes the main header bar the 'positioning anchor'
 * for the logo.
*/
.Header__menuBox {
    position: relative !important;
}

/*
 * This takes the logo's container out of the normal document flow
 * and locks it perfectly in the horizontal and vertical center of
 * the .Header__menuBox.
*/
.Header__logoPart {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  	min-width: 11rem; !important
}
.Header__mainNav a {
    font-weight: bold !important;
}
/*
 * ===================================================================
 * Mobile & Tablet Styles for the User Profile Popup (New Modal Design)
 * ===================================================================
*/

@media (max-width: 1050px) {

    /*
     * Step 1: Make the main popup container a full-screen, semi-transparent overlay.
     * Tapping this overlay will likely close the popup (a built-in platform feature).
    */
    .Header__nav--right #logoutDetails .LoginDetail__content.Popup__isOpen {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-color: rgba(0, 0, 0, 0.5) !important; /* Dark overlay */
        
        /* Use flexbox to center the content box within the overlay */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        
        /* Remove old box styling from this outer container */
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        transform: none !important;
    }
    
    /*
     * Hide the old "speech bubble" arrow.
    */
    .Header__nav--right #logoutDetails .LoginDetail__content .Popup__arrow {
        display: none !important;
    }

    /*
     * Step 2: Style the INNER container as the main white panel.
     * This is the "square with radius" you wanted.
    */
    .LoginDetail__userDetail {
        background-color: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
        padding: 20px !important;
        width: 90vw !important;
        max-width: 350px !important;
        position: relative !important; /* This is crucial for positioning the 'X' */
        padding-top: 50px !important; /* Add extra space at the top for the 'X' */
    }
    /*
     * Step 4: Stack the buttons vertically for a mobile-friendly layout.
    */
    .LoginDetail__profileLgout {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .LoginDetail__profileLink,
    .LoginDetail__logoutLink {
        padding: 12px 10px !important;
    }
}
/*
 * ===================================================================
 * Final Popup Tweak: Enable "Click Outside to Close"
 * This keeps the modern look but restores the easy closing mechanism.
 * ===================================================================
*/

@media (max-width: 1050px) {

    /*
     * Step 1: Tell the dark, full-screen overlay to ignore all clicks,
     * allowing the click to "pass through" to the page behind it.
    */
    .Header__nav--right #logoutDetails .LoginDetail__content.Popup__isOpen {
        pointer-events: none;
    }

    /*
     * Step 2: Re-enable clicks ONLY for the white panel in the middle,
     * so you can still use the buttons and links inside it.
    */
    .LoginDetail__userDetail {
        pointer-events: auto;
    }
}

