/*
Theme Name:     KnowAll Child Theme
Theme URI: 		http://herothemes.com/
Description:    Child theme for KnowAll 
Author: 		HeroThemes
Author URI: 	http://herothemes.com
Template:       knowall
Version:        1.1.18
*/


/* ------- Insert custom styles below this line ------- */


/*#region CSS variables */

:root {
    --ahi-blue: #4c6280;
    --ahi-blue-dark: #102e6d;
    --ahi-blue-light: #007fab;
    --ahi-orange: #f16d1e;
    --ahi-orange-dark: #e5671c;
    --ahi-green: #65b44b;
    --ahi-green-dark: #57ad50;
    --ahi-grey-lighter: #717171;
    --ahi-grey-light: #f2f1ef;
    --ahi-grey-light-accent: #d8d7d7;
    --ahi-grey-medium: #313746;
    --ahi-grey-dark: #333;
    --ahi-grey-dark-border: #aaa;
    --ahi-black: #000;
    --cta-colour: var(--ahi-orange);
    --cta-colour-dark: var(--ahi-orange-dark);
    --cta-colour-secondary: var(--ahi-green);
    --cta-colour-secondary-dark: var(--ahi-green-dark);
    --cta-colour-text: #fff;
    --cta-colour-text-secondary: var(--ahi-green);
    --cta-height: 52px;
    --cta-min-width: 270px;
    --cta-max-width: 380px;
    --text-colour: var(--ahi-grey-medium);
    --text-colour-secondary: var(--ahi-blue-dark);
    --text-colour-active: var(--ahi-orange);
    --size-10: .625rem;
    --size-12: .75rem;
    --size-13: .8125rem;
    --size-14: .875rem;
    --size-16: 1rem;
    --size-17: 1.0625rem;
    --size-18: 1.125rem;
    --size-20: 1.25rem;
    --size-25: 1.5625rem;
    --size-30: 1.875rem;
    --size-35: 2.1875rem;
    --size-40: 2.5rem;
    --size-50: 3.125rem;
    --size-60: 3.75rem;
    --size-130: 8.125rem;
    --size-150: 9.375rem;
    --h1-size: clamp(var(--size-30), calc(1.25rem + 2.5vw), var(--size-50));
    --h2-size: clamp(var(--size-25), calc(1.094rem + 1.88vw), var(--size-40));
    --h3-size: clamp(var(--size-20), calc(.938rem + 1.25vw), var(--size-30));
    --h4-size: clamp(var(--size-17), calc(0.969rem + 0.38vw), var(--size-20));
    --body-size: clamp(var(--size-16), calc(.938rem + .25vw), var(--size-18));
    --small-size: var(--size-13);
}

/*#endregion */


/*#region Fonts */

@font-face {
    font-family: 'FS Elliot';
    src: url("/source/5dfb113021bf4b28c5b2de2f7d73cc27") format('woff2'), url("/source/af7ef52df2e3a2c833a2931a59a62b7d/FSElliotWeb-Regular.woff") format('woff'), url("/source/95705eb10c892a071a3211d318ccd120/FSElliotWeb-Regular.eot") format('eot');
    font-weight: normal;
    font-style: normal;
    font-display: optional
}
@font-face {
    font-family: 'FS Elliot';
    src: url("/source/b9123b4bb8753b6509aa00504d1c5edf") format('woff2'), url("/source/22b361e5c860126d2f63251a16fe5e78/FSElliotWeb-Light.woff") format('woff'), url("/source/31d3f40569ebe60b0c1f32db2a4f7294/FSElliotWeb-Light.eot") format('eot');
    font-weight: 200;
    font-style: normal;
    font-display: optional
}
@font-face {
    font-family: 'FS Elliot';
    src: url("/source/1e91d7ee82bdde19fa9480a5b00d7983") format('woff2'), url("/source/c00515b25638e3f000198773dbe5eae6/FSElliotWeb-Bold.woff") format('woff'), url("/source/249b04d92cf74f3acc5410fb0b44b210/FSElliotWeb-Bold.eot") format('eot');
    font-weight: bold;
    font-style: normal;
    font-display: optional
}
body.ahi {
    font-size: var(--body-size);
    font-weight: normal;
    font-style: normal;
    color: var(--text-colour);
    transition: color 350ms ease 0s;
}
@media only screen and (max-width: 767px) {
    h1 {
        font-weight: bold;
    }
    h2 {
        font-weight: bold;
    }
}
a:hover {
    text-decoration: revert;
}

/*#endregion */


/*#region Nav and header */

.site-logo img {
    max-height: 60px;
}
.site-header__banner {
    *zoom: 1;
    box-shadow: 0px 3px 6px #00000029;
    z-index: 2;
    padding: 12px 0;
    position: relative
}
.site-header__banner::before,
.site-header__banner::after {
    content: "";
    display: table
}
.site-header__banner::after {
    clear: both
}

/* more specific selector to overwrite inline styles from editor */

.ahi .nav-header ul li a {
    color: var(--text-colour)!important;
}
.nav-header ul li a {
    font-weight: bold;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}
.nav-header>ul>li ul li a {
    font-size: 15px;
}
.nav-header>ul>li:hover>a {
    background: none;
    border-bottom: 2px solid var(--text-colour-active);
}
.nav-header>ul>li.menu-item-has-children>a::after {
    filter: brightness(0.7);
    position: absolute;
    left: calc(50% - 10px);
    bottom: -8px;
    width: 10px;
    opacity: 1;
    transition: 150ms all ease-out;
}
.nav-header>ul>li:hover.menu-item-has-children>a::after {
    opacity: 0;
    bottom: -12px;
}
.site-header__banner .ht-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: nowrap;
    -moz-flex-wrap: nowrap;
    -ms-flex-wrap: none;
    flex-wrap: nowrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px
}
@media screen and (min-width: 768px) {
    .site-header__banner {
        padding: 15px 0
    }
    .nav-header ul li a {
        font-size: 16px;
    }
    .nav-header>ul>li ul li a {
        font-size: 16px;
    }
    .site-header__banner .ht-container {
        padding-left: 30px;
        padding-right: 30px
    }
    .nav-header>ul>li ul li a:hover {
        background: var(--ahi-grey-light);
    }
}
.site-header .site-header__title {
    font-size: var(--h1-size);
}
.hkb-site-search .hkb-site-search__field {
    padding: 14px 20px 14px 45px;
    box-shadow: none;
}
.hkb-site-search .hkb-site-search__field::placeholder {
    color: var(--text-colour);
}
.ahi .nav-header .nav-header__mtoggle span,
.ahi .nav-header .nav-header__mtoggle span::before,
.ahi .nav-header .nav-header__mtoggle span::after {
    background: var(--ahi-grey-dark);
}
@media screen and (max-width: 767px) {
    .site-header__banner .ht-container {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    .nav-header {
        justify-content: flex-start;
    }
    .site-logo {
        flex-grow: 1;
    }
}

/*#endregion */


/*#region Breadcrumb and search on category pages */

.ht-pageheader {
    padding: 7px 0;
    background: var(--ahi-blue);
}
.hkb-breadcrumbs a {
    color: #fff;
}
.hkb-breadcrumbs li:last-child {
    color: #fff;
}
.hkb-breadcrumbs .hkb-breadcrumbs__icon {
    fill: #fff;
}
.ht-pageheader .hkb-site-search .hkb-site-search__field {
    box-shadow: none;
    border: none;
    padding: 16px 15px 16px 50px;
    font-size: var(--body-size);
}
@media screen and (min-width: 768px) {
    .ht-pageheader .hkb-site-search .hkb-site-search__field {
        width: 360px;
    }
}
.hkb-breadcrumbs {
    font-size: var(--body-size);
}
.ht-pageheader .hkb-site-search .hkb-site-search__field::placeholder {
    color: var(--text-colour);
}
.ht-pageheader .hkb-site-search::after {
    opacity: 0.7;
    left: 18px;
}

/*#endregion */


/*#region Homepage */

.home .ht-page .ht-container {
    padding: 0;
}
.ht-page:has(.hkb-archive) {
    background: var(--ahi-grey-light);
    padding: 40px 0;
}
.hkb-archive .hkb-category .hkb-category__link {
    border: none;
}
.hkb-archive .hkb-category.hkb-category--boxed {
    background: #fff;
    border: 1px solid var(--ahi-grey-light);
    box-shadow: 0px 3px 4px #001d5a29;
}
.hkb-archive.hkb-archive--6cols>li {
    /*width: 100%;*/
    width: calc(50% - 6px);
}
@media screen and (min-width: 650px) {
    /*.hkb-archive.hkb-archive--6cols>li {
        width: 50%
    }*/
}
@media screen and (min-width: 850px) {
    .hkb-archive.hkb-archive--6cols>li {
        width: 33.333%
    }
}
@media screen and (min-width: 950px) {
    .hkb-archive.hkb-archive--6cols>li {
        width: 25%
    }
}
@media screen and (min-width: 1150px) {
    .hkb-archive.hkb-archive--6cols>li {
        width: 16.666%
    }
}
.hkb-archive>li {
    height: 180px;
}
.hkb-archive .hkb-category__link .hkb-category__iconwrap {
    height: 40px;
    align-items: center;
    display: flex;
}
.hkb-category.hkb-category--boxed:not(.hkb-category--witharticles) .hkb-category__link {
    row-gap: 10px;
}
@media screen and (max-width: 649px) {
    .hkb-archive {
        gap: 12px;
        padding: 0 22px;
        margin: 0;
    }
    .hkb-archive.hkb-archive--6cols>li {
        width: calc(50% - 6px);
        margin: 0;
        height: 140px;
        padding: 0;
    }
    .hkb-category.hkb-category--boxed:not(.hkb-category--witharticles) .hkb-category__link {
        padding: 0 10px;
    }
    .ht-page:has(.hkb-archive) {
        padding: 50px 0 20px;
        margin-top: -45px;
    }
    .site-header .site-header__search {
        padding: 20px 0;
    }
    .hkb-site-search .hkb-site-search__field {
        border: 1px solid #C9C9C9;
        padding: 10px 20px 10px 45px;
    }
}

/*#endregion */


/*#region Category page tweaks */

.ht-categoryheader .ht-categoryheader__title {
    font-size: var(--h1-size);
    font-weight: normal;
}
@media only screen and (max-width: 767px) {
    .ht-categoryheader .ht-categoryheader__title {
        font-weight: bold;
    }
}
.ht-categoryheader {
    border: none;
}
.hkb-subcats {
    gap: 20px;
    row-gap: 50px;
}
.hkb-subcats>div {
    flex: 1 1 420px;
    max-width: 600px;
}
.ahi-category__link {
    background: var(--ahi-grey-light);
    border-radius: 4px;
    display: flex;
    padding: 24px;
    text-decoration: none;
    align-items: flex-start;
    color: var(--text-colour);
}
.ahi-category__link .hkb-category__title {
    font-size: var(--h3-size);
    border-bottom: 2px solid #E5E5E5;
    color: var(--text-colour);
    margin: 0 0 15px;
    padding-bottom: 10px;
    position: relative;
    transition: color 50ms ease 0s;
}
.ahi-category__link .hkb-category__title:after {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34.1 19' fill='%23fbfbfb'%3E%3Cpath d='M17 19c-0.5 0-1-0.2-1.4-0.6L0.6 3.4c-0.8-0.8-0.8-2 0-2.8 0.8-0.8 2-0.8 2.8 0L17 14.2 30.7 0.6c0.8-0.8 2-0.8 2.8 0 0.8 0.8 0.8 2 0 2.8L18.4 18.4C18 18.8 17.5 19 17 19z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    height: 10px;
    width: 16px;
    filter: brightness(0);
    transform: rotate(270deg);
    top: calc(50% - 10px);
}
.ahi-category__link .hkb-category__content {
    width: 100%;
}
.ahi-category__link:hover {
    text-decoration: none;
}
.ahi-category__link:hover .hkb-category__title {
    color: var(--text-colour-active);
    text-decoration: underline;
}
.ahi-category__link:hover .hkb-category__description {
    color: var(--text-colour);
}
.ahi-category__articlelist {
    list-style: none;
    padding-left: 24px;
    padding-right: 24px;
}
.ahi-category__articlelist>li {
    margin-bottom: 6px;
}
@media screen and (max-width: 899px) {
    .hkb-subcats>div {
        background: var(--ahi-grey-light);
        border-radius: 4px;
        padding: 24px;
    }
    .ahi-category__link {
        background: none;
        border: none;
        padding: 0 0 10px;
    }
    .ahi-category__articlelist {
        padding: 0;
    }
}
.hkb-article__link:hover .hkb-article__title {
    color: var(--text-colour-active);
    text-decoration: underline;
}

/*#endregion */


/*#region Footer */

.site-footer {
    background: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    margin-top: 50px;
    border-top: 1px dashed #C9C9C9;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.site-footer .site-footer__copyright,
.site-footer .site-footer__copyright p {
    font-size: var(--small-size);
    color: var(--text-colour);
    line-height: 1.8;
}
.site-footer .site-footer__copyright p {
    font-weight: bold;
}

.site-footer .nav-footer {
    float: none;
}

.site-footer .nav-footer ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.site-footer .nav-footer ul:before,
.site-footer .nav-footer ul:after {
    display: none;
}

.site-footer .nav-footer ul li {
    margin: 0;
}

/*#endregion*/


/*#region CTAs */

.btn {
    background: var(--cta-colour);
    border: 0;
    border-radius: 50px;
    color: #fff;
    font-weight: bold;
    outline: none;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    max-width: 380px;
    min-width: 270px;
    width: fit-content;
    position: relative;
    min-height: 52px;
    clear: left;
    cursor: pointer;
    text-align: left;
    padding: 10px 20px 10px 20px;
    transition: 100ms all ease-in-out;
    text-decoration: none;
}
.btn-sec {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--cta-colour-secondary);
    color: var(--cta-colour-secondary);
}
.btn-icon {
    display: inline-block;
    height: 24px;
    width: 14px;
    padding: 0 2px;
    position: relative;
    top: -1px;
    fill: var(--cta-colour-secondary);
}
.btn:hover,
.btn:active,
.btn:focus {
    background: var(--cta-colour-dark);
    color: #fff;
}
.btn-sec:hover,
.btn-sec:active,
.btn-sec:focus {
    background: var(--cta-colour-secondary);
    color: #fff;
}
.btn-sec:hover .btn-icon {
    fill: #fff
}

/*#endregion */


/*#region Article pages */

@media screen and (min-width: 768px) {
    .ht-page.ht-page--sidebarleft .ht-page__content {
        padding-left: 50px;
    }
}
.ahi .hkb_widget_toc ol li.active>a {
    background: var(--ahi-blue);
}
.hkb-article .hkb-article__title {
    font-size: var(--h1-size);
    font-weight: normal;
}
.hkb-article__content h2 {
    font-size: var(--h2-size);
    font-weight: normal;
}
.hkb-article__content h3 {
    font-size: var(--h3-size);
    font-weight: normal;
}
@media only screen and (max-width: 767px) {
    .hkb-article .hkb-article__title,
    .hkb-article__content h2 {
        font-weight: bold;
    }
}
.hkb-article__content a {
    text-decoration: underline;
}
.wp-block-image {
    margin-top: 60px;
    margin-bottom: 50px;
}
.widget {
    background: var(--ahi-grey-light);
    font-weight: 200;
    font-size: 16px;
    padding: 25px;
}
.hkb_widget_toc .widget__title {
    font-size: var(--h4-size);
    color: var(--text-colour);
    margin-bottom: 8px;
}
.hkb-feedback {
    background: var(--ahi-grey-light);
    margin: 110px 0;
    padding-top: 33px;
    padding-bottom: 33px;
}
.hkb-feedback .ht-voting-upvote {
    background-color: #6FB259;
}
.hkb-feedback .ht-voting-upvote:hover {
    background-color: #579343;
}
.hkb-feedback .ht-voting-downvote {
    background-color: #CF5656;
}
.hkb-feedback .ht-voting-downvote:hover {
    background-color: #bb3535;
}
.hkb-article-related {
    font-size: var(--body-size);
}
.hkb-article-related .hkb-article-list {
    list-style: none;
}
.hkb-article-related .hkb-article-list a {
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 8px;
}

/*#endregion */