/*
Theme Name: StoreLinkr KB Theme
Description: StoreLinkr theme for the multisite network that hosts the knowledge base.
Author: StoreLinkr
Version: 1.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Network: true
*/

:root {
    --main-color: #2c324e;
    --main-hover-color: #444b67;
    --main-darker-color: #1d2136;
    --primary-color: #ffa74e;
    --primary-color-border: #e1852a;
    --light-background-color: #f1f1f1;
    --medium-background-color: #fee2c7;

    --orange-logo-color: #ffa74e;
    --soft-orange-logo-color: #efe0ce;
    --soft-blue-logo-color: #e5e5f3;
    --light-blue-logo-color: #43c7d6;
    --blue-logo-color: #646aff;
    --dark-blue-logo-color: #00329b;
    --light-purple-logo-color: #ff0066;
    --medium-purple-logo-color: #a90044;
    --dark-purple-logo-color: #660066;
    --green-color: #4a884a;

    --max-width-text-container: 1100px;
}

.container {
    max-width: var(--max-width-text-container) !important;
}

h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, ul, li, input, button {
    /*font-family: 'Poppins', Arial, sans-serif !important;*/
}

/* Allow icon fonts to use their own font-family */
i[class*="la-"],
i[class*="las "],
i[class*="lar "],
i[class*="lab "],
.las, .lar, .lab {
    font-family: "Line Awesome Free", "Line Awesome Brands", "Line Awesome" !important;
}

body {
    font-family: 'Poppins', Arial, sans-serif !important;
    margin: 0;
    padding: calc(76px + 40px) 0 0;
    /*background: var(--light-background-color);*/
    background: #fff;
    color: #333;
}

body.logged-in {
    padding-top: calc(32px + 40px + 76px);
}

/* Topbar styling */
.topbar {
    /*background: var(--main-color);*/
    /*color: #fff;*/
    /*padding: 8px 0;*/
    background: var(--main-color);
    font-size: 14px;
    height: 40px;
    left: 0;
    line-height: 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

body.logged-in .topbar {
    top: 32px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
}

.topbar a:hover {
    color: #fff;
    opacity: 0.8;
}

/* Header styling */
header {
    background: #fff;
    margin-bottom: 0;
}

header img {
    max-height: 50px !important;
}

header .row-logo {
    padding: 13px 0;
}

/* Footer styling */
footer {
    background: var(--main-color);
    color: #fff;
    padding: 30px 20px;
    font-size: 14px;
    font-family: 'Poppins', Arial, sans-serif !important;
    margin-top: 30px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover, footer a:hover, footer a:focus, footer a:hover {
    color: #fff;
    text-decoration: underline;
}

footer .logo-white {
    filter: brightness(0) invert(1);
    height: 50px;
    float: right;
}

/* Bootstrap card customizations for category boxes */
.category-box {
    background: #fafafa;
    transition: box-shadow 0.2s ease;
    border-radius: 8px;
    cursor: pointer;
}

.category-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Ensure clickable category links maintain proper styling */
a .category-box {
    color: var(--main-color);
}

a:hover .category-box {
    color: var(--main-hover-color);
}

.category-box .card-title {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 500;
    font-size: 1.1rem;
}

.category-box .card-title a {
    color: var(--main-color);
    text-decoration: none;
}

.category-box .card-title a:hover {
    color: var(--main-hover-color);
}

.category-box .card-text {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 0.9rem;
    color: #555;
}

.category-icon {
    max-height: 40px;
    width: auto;
    display: block;
}

.btn {
    border-radius: 25px;
    outline: 0;
}

.btn.btn-primary {
    background: var(--light-purple-logo-color);
    border-color: var(--light-purple-logo-color);
    transition: all ease 250ms;
}

.btn.btn-primary:hover,
.btn.btn-primary:active {
    background: var(--medium-purple-logo-color);
    border-color: var(--medium-purple-logo-color);
}

.btn.btn-text-white {
    color: #fff;
}

.btn.btn-success {
    background: var(--light-blue-logo-color);
    border-color: var(--light-blue-logo-color);
    transition: all ease 250ms;
}

.btn.btn-success:hover,
.btn.btn-success:active {
    background: var(--blue-logo-color);
    border-color: var(--blue-logo-color);
}

/* Ensure all headings use Poppins with size restrictions */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Arial, sans-serif !important;
}

/* Progressive heading sizes - all under 2.5rem */
h1 {
    font-size: 30px;
    line-height: 40px;
}

h2 {
    font-size: 26px;
    line-height: 40px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 19px;
}

h5 {
    font-size: 16px;
}

h6 {
    font-size: 14px;
}

/* Navigation styling */
.navbar-nav .nav-link {
    font-family: 'Poppins', Arial, sans-serif !important;
    color: var(--main-color) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--main-hover-color) !important;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.97);
    position: fixed;
    top: 40px;
    width: 100%;
    z-index: 10;
}

body.logged-in .navbar {
    top: calc(40px + 32px);
}

.navbar .container {
    margin: 0 auto;
    max-width: 1320px;
}

.navbar li a.nav-cart {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 15px;
    background: #f1f1f1;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar li a.nav-cart i.las {
    font-size: 24px;
    margin-right: 5px;
    margin-top: -6px;
    margin-left: -4px;
}

@media only screen and (max-width: 990px) {
    .navbar {
        overflow-x: auto;
    }
}

@media only screen and (min-width: 900px) {
    .navbar li.nav-item {
        margin-right: 15px;
    }

    .navbar li.dropdown-language-toggle {
        margin-right: 0 !important;
    }
}

.navbar a {
    color: var(--main-color);
    text-decoration: none;
    margin: 0 auto;
    display: block;
    font-size: 18px;
    line-height: 42px;
}

@media only screen and (max-width: 990px) {
    .navbar a {
        line-height: 23px;
    }
}

.navbar a.nav-link {
    font-size: 16px;
}

@media only screen and (max-width: 1280px) and (min-width: 990px) {
    .navbar a.nav-link {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

.navbar a.nav-link:hover,
.navbar a.nav-link:active,
.navbar a.nav-link:focus {
    text-decoration: none;
    color: var(--medium-purple-logo-color);
}

.navbar a.navbar-brand {
    font-family: 'Poppins', sans-serif;
    margin-right: 30px;
    font-size: 23px;
}

.navbar a.navbar-brand img {
    max-height: 60px;
}

@media only screen and (max-width: 992px) {
    .navbar a.navbar-brand {
        text-align: left;
        margin: 0;
    }
}

.navbar button.navbar-toggler {
    color: var(--main-color);
}

.navbar .dropdown-language-toggle img.flag-icon {
    height: 20px;
    margin-right: 4px;
    margin-top: -3px;
    border-radius: 5px;
}

.navbar .dropdown-language-toggle .dropdown-menu {
    border-radius: 15px;
    margin-top: -15px;
}

@media only screen and (min-width: 990px) {
    .navbar .dropdown-language-toggle .dropdown-menu {
        transform: translateX(-75px);
    }
}


/* Sidebar styling */
.sidebar {
    background: #fff;
}

.sidebar h5 {
    color: var(--main-color);
    font-weight: 600;
    padding-bottom: 8px;
    font-size: 16px;
}

.sidebar ul li a {
    transition: all 0.2s ease;
    padding: 5px 0;
    display: block;
    font-size: 14px;
}

.sidebar ul li a:hover {
    color: var(--main-hover-color) !important;
    padding-left: 10px;
}

/* Related questions styling */
.related-questions h4 {
    color: var(--main-color);
    font-weight: 600;
}

.related-questions .card {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.related-questions .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.related-questions .card-title a {
    color: var(--main-color);
    font-weight: 500;
}

.related-questions .card-title a:hover {
    color: var(--main-hover-color);
}

/* Recent questions styling */
.recent-question-box {
    background: #fff;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.recent-question-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.recent-question-box .card-title {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 22px;
}

.recent-question-box .card-title a {
    color: var(--main-color);
    text-decoration: none;
}

.recent-question-box .card-title a:hover {
    color: var(--main-hover-color);
}

.recent-question-box .card-text {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Category posts box styling */
.category-posts-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.post-title-line {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    font-family: 'Poppins', Arial, sans-serif !important;
}

.post-title-line:last-child {
    border-bottom: none;
}

.post-title-line a {
    color: var(--main-color);
    margin-left: 8px;
    font-weight: 400;
}

.post-title-line a:hover {
    color: var(--main-hover-color);
}

.category-description {
    font-family: 'Poppins', Arial, sans-serif !important;
    color: #666;
    font-size: 0.95rem;
}

#toc-container {
    padding: 0;
    margin: 0;
}

.toc-link {
    font-family: 'Poppins', Arial, sans-serif !important;
    transition: all 0.2s ease;
    display: block;
    padding: 0;
    border-radius: 4px;
}

.toc-link:hover {
    color: var(--main-hover-color) !important;
    background-color: rgba(44, 50, 78, 0.05);
    padding-left: 8px !important;
}

.toc-link.active {
    color: var(--main-color) !important;
    font-weight: bold !important;
    background-color: rgba(44, 50, 78, 0.1);
}

/* Hero Section Styling */
.hero-section {
    background: #f8f9fa;
    padding: 80px 0;
    margin-top: -40px;
    margin-bottom: 60px;
    border-bottom: 1px solid #e9ecef;
}

.hero-title {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 30px;
    font-weight: 600;
    color: var(--main-color);
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    border: 2px solid #e9ecef;
    border-radius: 50px 0 0 50px;
    padding: 15px 25px;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 16px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    /*border-color: var(--light-purple-logo-color);*/
    outline: none;
}

.search-btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Responsive hero section */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .search-input,
    .search-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .search-btn {
        padding: 12px 25px;
    }
}

.card-title {
    line-height: 22px;
}

pre {
    background: #f1f1f1;
    padding: 10px;
}

img {
    max-width: 100%;
}