
/* ==========================================
   NOWNOW HELP CENTRE — VERSION 2.6
   Complete Clean Custom CSS
   ========================================== */

:root {
    --nn-red: #f33327;
    --nn-ink: #262329;
    --nn-muted: #747078;
    --nn-border: #eee6e3;
    --nn-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ==========================================
   1. HIDDEN ELEMENTS
   ========================================== */

/* SalesIQ, ticket footer, copyright, old promo */
.zsiq_floatmain.zsiq_theme1,
.Footer__footerBg,
.Footer__footerCopyrigt,
.nownow-promo {
    display: none !important;
}

/* Article social sharing and category menus */
.KbDetailLtContainer__userSocialIcon,
.KbCategory__dottedPopup {
    display: none !important;
}

/* Hide homepage breadcrumb label entirely */
[data-id="kbLanding_breadcrumb_0"] {
    display: none !important;
}

/* ==========================================
   2. GLOBAL NOWNOW GRADIENT
   ========================================== */

html {
    min-height: 100%;
    background: #f8f7f8;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse at 85% 18%,
            rgba(255,228,172,.55),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 8% 70%,
            rgba(255,194,180,.42),
            transparent 58%
        ),
        linear-gradient(
            135deg,
            #f2f3f7,
            #fffaf6
        ) !important;
    background-attachment: fixed !important;
}

/* Allow gradient through Knowledge Base wrappers */
#layoutContainer,
.Layout__oneColumn,
.Layout__layout1,
.WidgetContainer__list,
.WidgetContainer__contentList,
.KbCategoryContainer__row {
    background: transparent !important;
}

/* ==========================================
   3. HEADER
   ========================================== */

.Header__navbar {
    background: #fff !important;
    border-bottom: 1px solid #f0eae7;
    box-shadow: 0 2px 12px rgba(40,25,20,.025);
}

.Header__navbar .Header__container {
    max-width: 1200px;
    margin: 0 auto;
}

.Header__logo img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.Header__name {
    color: var(--nn-ink);
    font-weight: 700;
}

.Header__menuList a {
    transition: color .2s ease;
}

.Header__menuList a:hover {
    color: var(--nn-red);
}

/* ==========================================
   4. BREADCRUMBS
   ========================================== */

/*
   Homepage:
   Hide the Knowledge Base label.

   Category and article pages:
   Display Help Centre instead.
*/

/* Rename only breadcrumb links to KB homepage */
a.BreadCrumbs__breadCrumbsLink[href="/portal/en/kb"] {
    font-size: 0 !important;
}

a.BreadCrumbs__breadCrumbsLink[href="/portal/en/kb"]::after {
    content: "Help Centre";
    font-size: 14px;
    font-weight: 400;
    color: var(--nn-ink);
}

/* ==========================================
   5. SEARCH / HERO
   ========================================== */

.Header__searchSection {
    position: relative;
    overflow: hidden;
    background: transparent !important;
    padding: 42px 20px 38px;
}

.Header__searchSection::before,
.Header__searchSection::after {
    background: none !important;
}

.Header__searchSection > .Header__container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.Header__searchTitle {
    color: var(--nn-ink) !important;
    font-size: clamp(25px, 4vw, 36px);
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.8px;
    margin-bottom: 10px;
}

.Header__description {
    color: var(--nn-muted) !important;
    font-size: 14px;
    line-height: 1.6;
}

.Header__searchSection input[type="search"],
.Header__searchSection input[type="text"] {
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.Header__searchSection input:focus {
    border-color: var(--nn-red);
    box-shadow: 0 0 0 3px rgba(243,51,39,.08);
    outline: none;
}

/* ==========================================
   6. KNOWLEDGE BASE HOMEPAGE
   ========================================== */

#layoutContainer[data-id="kbLanding"] {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 45px !important;
}

#layoutContainer[data-id="kbLanding"]
.Layout__layout1,
#layoutContainer[data-id="kbLanding"]
.WidgetContainer__list,
#layoutContainer[data-id="kbLanding"]
.WidgetContainer__contentList {
    min-height: 0 !important;
    height: auto !important;
}

#layoutContainer[data-id="kbLanding"]
.KbCategoryContainer__row {
    margin-bottom: 0 !important;
}

/* ==========================================
   7. CATEGORY TILES
   ========================================== */

#layoutContainer[data-id="kbLanding"] .KbCategory__box {
    position: relative;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--nn-border);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(50,28,20,.045);
    transition:
        transform .25s var(--nn-ease),
        box-shadow .25s var(--nn-ease),
        border-color .25s ease;
}

/* Extend existing category links across tiles */
#layoutContainer[data-id="kbLanding"]
.KbCategory__topic,
#layoutContainer[data-id="kbLanding"]
.KbCategory__topic a {
    position: static !important;
}

#layoutContainer[data-id="kbLanding"]
.KbCategory__topic a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: 16px;
    cursor: pointer;
}

/* Hover feedback */
@media (hover: hover) {
    #layoutContainer[data-id="kbLanding"]
    .KbCategory__box:hover {
        transform: translateY(-4px);
        border-color: #ffb6a5;
        box-shadow: 0 14px 30px rgba(171,66,38,.11);
    }
}

/* Tap feedback */
#layoutContainer[data-id="kbLanding"]
.KbCategory__box:active {
    transform: scale(.985);
}

/* Keyboard focus */
#layoutContainer[data-id="kbLanding"]
.KbCategory__box:focus-within {
    border-color: var(--nn-red);
    box-shadow: 0 0 0 3px rgba(243,51,39,.12);
}

/* Preserve original category icons and noon One logo */
#layoutContainer[data-id="kbLanding"]
.KbCategory__box img {
    object-fit: contain;
}

/* ==========================================
   8. ACCESSIBILITY
   ========================================== */

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--nn-red);
    outline-offset: 3px;
}

/* ==========================================
   9. MOBILE
   ========================================== */

@media (max-width: 767px) {
    body {
        background-attachment: scroll !important;
    }

    .Header__searchSection {
        padding: 30px 16px 28px;
    }

    .Header__searchTitle {
        font-size: 26px;
    }

    .Header__description {
        font-size: 13px;
    }

    #layoutContainer[data-id="kbLanding"] {
        padding-bottom: 30px !important;
    }
}

/* ==========================================
   10. REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    #layoutContainer[data-id="kbLanding"]
    .KbCategory__box {
        transition: none !important;
        transform: none !important;
    }
}

