/*
    Axxess customer theme for HESK 3.7.x
    Ported from the old help.axxess.co.za install (HESK 3.2.2).

    Activate: Admin -> Settings -> General -> Customer Theme -> "axxess"

    Structure:
      1. BASE      — copy of HESK's "Modern Light" theme. It restores the HESK 3.2
                     palette the old site was built on (white page, #26282a text,
                     #1776ea links), which 3.7's default navy palette replaced.
      2. AXXESS    — the Axxess customisations, ported from the old templates.

    HESK loads theme files BEFORE its core CSS, so selector rules are scoped with
    .theme_axxess (and page classes like .page-view-article, both on <html>) and
    use !important where core CSS would otherwise win.
*/

/* =========================== 1. BASE (Modern Light) =========================== */
:root {
    --primary: #1776EA;
    --secondary: #1776ea;
    --tertiary: #1776ea;

    --surface: #ffffff;
    --main-background: #ffffff;

    --font__pri-clr: #26282a;
    --font__sec-clr: #6b7480;

    --header__bg: #fff;
    --header_logo__clr: rgb(197, 202, 212);
    --header_nav__clr: #1776ea;
    --header_nav__hover_clr: var(--link__pri-hover-clr);

    --search__bg: #ffefdc;

    --breadcrumbs__a-hover-clr: #002d73;
    --link__pri-hover-clr: #002d73;

    --info: #002d73;
    --info-2: #ebf8ff;

    --input-bg: #fff;

    --datepicker__clr: var(--gray-5);

    --shadow-1-30: var(--shadow-1-10);

    --notification__clr: var(--font__pri-clr);

    --table_row__bg-hover: color-mix(in srgb, var(--surface) 90%, var(--secondary));

    --navlink__title-clr: #002d73;
    --navlink__hover-bg: #f1fbff;
    --preview__clr: var(--font__pri-clr);
    --preview__hover-bg: #f9fafd;
    --preview__border-clr: #dfe4ec;
    --suggest_preview__hover-icon-fill: var(--primary);

    --ticket_response__bg: color-mix(in srgb, white 90.5%, var(--green-1));

    --header_profile__clr: #1776ea;

    --icon_circle__clr: var(--gray-2);
    --icon_circle__bg: var(--white-2);
    --navlink_icon_hover__clr: var(--white-2);
    --navlink_icon_hover__bg: var(--gray-2);

    --link__sec-hover-clr: #2c70a2;

    --dropdown__clr: var(--font__pri-clr);
}

/* ADDITIONAL OVERWRITES BELOW - CSS helper vars, and general selector overwrites:
(needed for specifically desired themes, which are currently not part of admin variables.
They ALL require !important; to properly override followup loaded CSS!
*/
:root {
    --header_border__clr: var(--white-7) !important;
    --btn_full__hover_bg: var(--link__pri-hover-clr) !important;
    --dropdown_input__border-clr: var(--white-7) !important;
    --dropdown_label__border-clr: var(--white-7) !important;
    --dropdown_list__border-clr:  var(--white-7) !important;
}
.preview {
    box-shadow: none !important;
}
.preview .preview__text span:not(.lightgrey),
.preview .preview__text .navlink__descr {
    color: var(--gray-7) !important;
}
.tabbed__head .tabbed__head_tabs li.current {
    background: none !important;
    box-shadow: none !important;
}
.tabbed__tabs .tabbed__tabs_tab {
    box-shadow: none !important;
}
.divider {
    height: 1px !important;
    margin: 30px 0 !important;
}
.ticket__block-footer {
    border-top: none !important;
}
a.link {
    text-decoration: none !important;
}
.ticket__params .params--block .row {
    border-bottom: none !important;
}
.main__content .article .block__head {
    background: none !important;
    box-shadow: none !important;
}
.preview:hover .icon-in-circle .icon {
    fill: var(--primary) !important;
}
.article__heading {
    color: var(--navlink__title-clr) !important;
}
.tabbed__head .tabbed__head_tabs li.current {
    color: var(--gray-7) !important;
}
.select__title {
    color: var(--gray-7) !important;
}

.form input.form-control, .form textarea.form-control {
    border-color: var(--white-7) !important;
}
.form input.form-control::placeholder, .form textarea.form-control::placeholder {
    color: var(--gray-2) !important;
}
.divider {
    background: var(--white-7) !important;
}
.ticket__block-footer {
    color: var(--gray-2) !important;
}
.ticket__params .params--block .row .title {
    color: var(--gray-2) !important;
}
.ticket__body_block h1,
.ticket__body_block h2 {
    color: var(--gray-7) !important;
}
.ticket__body_block.naked {
    box-shadow: 0 2px 4px 0 var(--shadow-1-10), 0 -2px 4px 0 var(--shadow-1-10) !important;
}
.cust-help .h-3 {
    color: var(--gray-7) !important;
}
.title-link {
    color: var(--gray-7) !important;
}
.main__content .article .block__head .h-3 {
    color: var(--gray-7) !important;
}
.header .header__nav .profile__user .profile__menu .profile--view a:hover {
    color: var(--btn_full_clr) !important;
}
.dropdown-select .icon-chevron-down {
    fill: var(--white-9);
}
.param.calendar .calendar--value {
    color: var(--font__pri-clr) !important;
}
.radio-custom [type="radio"]:checked + label {
    color: var(--font__sec-clr) !important;
}
.checkbox-custom [type="checkbox"]:not(:checked) + label,
.checkbox-custom [type="checkbox"]:checked + label {
    color: var(--font__sec-clr) !important;
}


/* =========================== 2. AXXESS =========================== */
:root {
    /* Header (old: .cust-help .header { background-color:#0C81BB; border-bottom:0 }) */
    --header__bg: #0C81BB;
    --header_logo__clr: #ffffff;
    --header_nav__clr: #ffffff;

    /* Search (old app.min.css edit: .search__form background #ffefdc -> transparent) */
    --search__bg: transparent;
    --search__title-clr: #ffffff;
}

:root {
    --header_border__clr: transparent !important;
}

/* ---------- Header + logo ----------
   Old templates swapped the title text for an <img>. Done here in CSS instead,
   so no template edit is needed; the text stays for screen readers. */
.theme_axxess .cust-help .header__inner {
    padding: 11px 0 !important;
}
.theme_axxess .cust-help .header__logo {
    display: block;
    width: 198px;
    height: 50px;
    font-size: 0 !important;
    color: transparent !important;
    background: url('../../img/logo-axxess.svg') no-repeat left center / contain;
}

/* ---------- Search band ----------
   Old: .search-wrapper { background-color:#066BA0; padding:30px 0 130px; }
   New markup has .help-search inside .contr, so it's made full-bleed here. */
.theme_axxess .help-search {
    background-color: #066BA0;
    box-shadow: 0 0 0 100vmax #066BA0;
    clip-path: inset(0 -100vmax);
    padding: 30px 0 130px;
}
.theme_axxess .search__title {
    font-size: 50px !important;
    color: #ffffff !important;
}

/* ---------- Headings ---------- */
.theme_axxess .cust-help .h-3 {
    font-size: 30px !important;
    color: #888888 !important;
}
.theme_axxess .topics {
    margin-top: 20px;
}

/* ---------- KB home category tiles (markup: see knowledgebase/view-category.tiles.php) ---------- */
.theme_axxess .topics-new {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 32px 22px 0;
    border-radius: 2px;
}
.theme_axxess .topics-a {
    display: block;
    margin: 0 10px;
    height: 127px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 10% center;
}
.theme_axxess .topics-txt {
    padding: 13% 0 0 55%;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
}
.theme_axxess #cat-fibre    { background-image: url('/img/cat-fibre-bg.png');    background-color: #812984; }
.theme_axxess #cat-mobile   { background-image: url('/img/cat-mobile-bg.png');   background-color: #F16B21; }
.theme_axxess #cat-adsl     { background-image: url('/img/cat-adsl-bg.png');     background-color: #0985C3; }
.theme_axxess #cat-hosting  { background-image: url('/img/cat-hosting-bg.png');  background-color: #009933; }
.theme_axxess #cat-voice    { background-image: url('/img/cat-voice-bg.png');    background-color: #FDD42A; }
.theme_axxess #cat-hardware { background-image: url('/img/cat-hardware-bg.png'); background-color: #7D7D7D; }

.theme_axxess .divider {display:none;}
.theme_axxess .ticket__params .params--block + .params--block {margin-top:0;}


@media screen and (max-width: 768px) {
    .theme_axxess .topics-a {
        margin: 0 2px;
    }
    .theme_axxess .topics-txt {
        padding: 97px 0 0 0;
        font-size: 18px;
        text-align: center;
    }
    .theme_axxess .topics-new {
        padding: 32px 0 0;
    }
}

/* ---------- Footer (old: .footer { background-color:#0C81BB; color:#fff; }) ---------- */
.theme_axxess .axxess-footer {
    background-color: #0C81BB;
    color: #ffffff;
    padding: 16px;
}
.theme_axxess .axxess-footer p {
    margin: 0;
    text-align: center;
}

/* ---------- Text & links (old 3.2 colours) ---------- */
.theme_axxess .topics__list a {
    color: #1776ea;
}
.theme_axxess .topics__list a:hover {
    color: #002d73;
}

/* ---------- Search box (old kb-search.php customisation) ----------
   Old: no icon inside the input, rounded corners, orange icon-only button. */
.theme_axxess .search__form .search__submit {
    display: none;
}
.theme_axxess #kb_search {
    width: auto;
    flex: 1 1 auto;
    padding: 17px 16px;
    border-radius: 5px;
}
.theme_axxess #search-button {
    width: 152px;
    flex: 0 0 152px;
    height: 56px;
    margin-left: 10px;
    border: 0;
    border-radius: 5px;
    font-size: 0;
    color: transparent;
    background: #FF8000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cline x1='15.5' y1='15.5' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat center / 30px 30px;
}
.theme_axxess #search-button:hover,
.theme_axxess #search-button:focus {
    background-color: #FF8000;
}

/* ---------- Breadcrumbs ----------
   Old site: none on category or search pages; on articles they sit below the
   search band (moved in view-article.php). */
.theme_axxess.page-view-category .breadcrumbs,
.theme_axxess.page-search-results .breadcrumbs {
    display: none;
}

/* ---------- KB home heading: old site had no icon next to "Knowledgebase" ---------- */
.theme_axxess.page-view-category .content > .block__head .icon-in-circle {
    display: none;
}

/* ---------- Article page: old site had no "Article Details" box ---------- */
.theme_axxess.page-view-article .params--block.details {
    display: none !important;
}

/* ---------- Category topic lists (old 3.2 look) ----------
   Old: 16px spacing between links, blue links and bullets, grey folder icons. */
.theme_axxess .topics__list {
    color: #1776ea;
}
.theme_axxess .topics__list a {
    margin: 16px 0;
}
.theme_axxess .topics__list li:before {
    background-color: currentColor;
}
.theme_axxess .topics__title .icon {
    fill: #959eb0;
}

/* ---------- Sub-category heading + "(Go back)" link ---------- */
.theme_axxess.page-view-category .back-link {
    margin-top: 0;
    font-size: 14px;
}

/* ---------- Article text ----------
   HESK's core CSS justifies article text. Headings stay left-aligned everywhere,
   and body text goes left-aligned on narrow screens, where justify leaves big gaps. */
.theme_axxess .ticket__body_block h1 {
    text-align: left;
}

/* =========================== MOBILE =========================== */
@media screen and (max-width: 900px) {
    /* Keep the search input and button on one row (core CSS wraps them) */
    .theme_axxess .search__form .form-group {
        flex-wrap: nowrap;
    }
    .theme_axxess #search-button {
        flex: 0 0 120px;
        width: 120px;
        height: 56px !important;
        margin-top: 0;
    }
}

@media screen and (max-width: 640px) {
    .theme_axxess .help-search {
        padding: 20px 0 30px;
    }
    .theme_axxess .search__title {
        font-size: 28px !important;
        line-height: 1.2;
        margin: 0 0 8px;
    }
    .theme_axxess .search__form {
        padding: 8px 0;
    }
    .theme_axxess #kb_search {
        min-width: 0;
    }
    .theme_axxess #search-button {
        flex: 0 0 56px;
        width: 56px;
        min-width: 56px;
        margin-left: 8px;
        background-size: 24px 24px;
    }

    .theme_axxess .cust-help .h-3 {
        font-size: 22px !important;
    }

    /* Article page */
    .theme_axxess .ticket--article {
        margin-top: 16px;
    }
    .theme_axxess .ticket__body_block {
        padding: 16px;
        text-align: left;
    }
    .theme_axxess .ticket__body_block h1 {
        font-size: 22px;
    }
    .theme_axxess .block--description img {
        max-width: 100%;
        height: auto;
    }

    /* Header logo */
    .theme_axxess .cust-help .header__logo {
        width: 150px;
        height: 38px;
    }
}



	
