﻿:root {
    --white-color: #fefefe;
    --black-color: #333333;
    --primary-color: #3399cc;
    --accent-color: #3399cc;
    --complementary-color: #3399cc;
    --background-color: #f9f9f9;
    --max-frame-width: 1320px;
    --gap: 20px;
    --menu-type: sticky;
    --border-radious: 6px;
    --cms-bar-height: 0px;
}

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body:has(.ns-admin-topbar) {
    --cms-bar-height: 40px;
}

/* ----- Inputs ----- */

input[type="radio"], input[type=checkbox] {
    margin: 0px;
}

/* ----- Header ----- */

header {
    background: var(--white-color);
    position: var(--menu-type);
    top: 0;
    z-index: 1000;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    flex-shrink: 0;
}

header nav {
    display: flex;
    flex: 0 0 100%;
    justify-content: flex-end;
    align-items:center;
    padding-top: 5px;
    padding-bottom: 5px;
    gap: calc(var(--gap) * 0.8);
    height: -webkit-fill-available;
}

@media (min-width: 768px) {
    header nav {
        gap: calc(var(--gap) * 1);
    }
}

@media (min-width: 1200px) {
    header nav {
        gap: calc(var(--gap) * 1.5);
    }
}

header .logo img, header .logo {
    margin-right: auto;
    height: 100%;
    max-height: 60px;
}

header a {
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.5s;
    font-size: 1.2rem;
    text-wrap: nowrap;
}

header a:hover {
    color: var(--darker-color);
}

header a.active {
    color: var(--darker-color);
}

/* ---------- Mobile Menu ---------- */

.mobile-menu {
    display: flex;
    flex-flow: column;
    align-items: end;
    width: 350px!important;
}

.mobile-menu .logo {
    width: 130px;
}

.mobile-menu img {
    width: 100%;
}

.mobile-menu .close {
    text-align: center;
    width: 50px;
    padding: 10px;
}

.mobile-menu > div {
    width: 100%;
}

.mobile-menu a {
    text-decoration: none;
    transition: 0.5s;
    font-size: 1.4rem;
    padding: 10px 10px 10px 20px;
    width: 100%;
    display: block;
}


/* ----- Body ----- */

body h1 {
    font-size: 2rem;
    margin: 0px;
}

body h2 {
    font-size: 1.5rem;
    margin: 0px;
}

body h3 {
    font-size: 1.25rem;
    margin: 0px;
}

body p {
    font-size: 1rem;
    margin: 0px;
}

@media (min-width: 768px) {
    body h1 {
        font-size: 2.7rem;
        
    }

    body h2 {
        font-size: 1.8rem;
    }

    body h3 {
        font-size: 1.4rem;
    }

    body p {
        font-size: 1.1rem;
    }
}

@media (min-width: 1200px) {
    body h1 {
        font-size: 3.5rem;
    }

    body h2 {
        font-size: 2.25rem;
    }

    body h3 {
        font-size: 1.6rem;
    }

    body p {
        font-size: 1.15rem;
    }
}


/* ----- Section class ----- */

section {
    padding: calc(var(--gap) * 2) 0px calc(var(--gap) * 2) 0px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

section:nth-child(odd) {
    background-color: var(--background-color);
}

section:nth-child(even) {
    background-color: var(--complementary-color);
}

/* --------- Footer -------- */

footer {
    padding: 30px 0px 30px 0px;
    background: #212121;
    color: var(--white-color);
}

footer h3 {
    font-size: 1.1rem;
    margin: 0px;
    text-align: center
}

footer a, footer p {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--white-color);
    transition: 0.5s;
    margin: 0px;
    text-align: center;
}

#authors {
    font-size: 0.9rem;
    opacity: 0.8;
    width: 100%;
    border-top: 1px solid;
    padding-top: 20px;
    color: var(--white-color);
    order: 99;
}

#authors p {
    text-align: center;
}

#brand {
    flex: 0 0 100%;
}

footer nav {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    footer h3 {
        font-size: 1.2rem;
        text-align: left;
    }

    footer a, footer p {
        font-size: 1rem;
        text-align: left;
    }

    footer nav {
        flex: 0 0 45%;
    }
}

@media (min-width: 1200px) {
    footer h3 {
        font-size: 1.3rem;
    }

    footer a, footer p {
        font-size: 1.05rem;
    }

    footer nav {
        flex: 0 0 30%;
    }
}

footer a:hover {
    color: var(--primary-color)
}

footer h5 {
    color: #aaa;
}

footer .logo {
    height: 60px; /* Set the desired height */
}

footer .logo img {
    height: 100%; /* Set the desired height */
}



#socials i {
    margin-right: 10px;
}


/* General usability UI elements */

/* Frame class based on Bootstrap container with CSS variable margins */
.frame-ns {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: var(--gap);

}

@media (min-width: 576px) {
    .frame-ns {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .frame-ns {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .frame-ns {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .frame-ns {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .frame-ns {
        max-width: var(--max-frame-width);
    }
}

.col-ns {
    flex: 0 0 100%;
    min-width: 0;
    gap: calc(var(--gap) * 1) 0px;
    display: flex;
    flex-direction: column;
}

@media only screen and (min-width: 768px) {
    .col-ns {
        flex: 1;
    }
}

.card-ns {
    border-radius: var(--border-radious);
    background-color: var(--white-color);
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    padding: calc(var(--gap) * 1.5);
    display: flex;
    flex-direction: column;
    gap: calc(var(--gap) * 0.5);
    flex: 0 0 100%;
    align-items:center;
}

.card-ns h3 {
    text-align: center;
}

.card-ns img {
    max-height: 200px;
    align-self: center;
    width: auto;
}

.grid-ns {
    display: grid;
    grid-template-columns: repeat(auto-fill, 90%);
    justify-content: space-around;
    gap: 20px 0px;
    width: 100%;
}

@media only screen and (min-width: 768px) {
    .card-ns {
        flex: 0 0 350px;
    }

    .grid-ns {
        justify-content: space-between;
        grid-template-columns: repeat(auto-fill, 300px);
    }
}



/* Checkout progress */
.checkout-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 20px;
    width: 100%;
}

.checkout-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    text-align: center;
}

.checkout-progress .icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    background: #fff;
}

.checkout-progress .label {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #666;
    user-select: none;
    line-height: 1.1;
}

/* Themed states (use var(--primary-color)) */
.checkout-progress .step.active .icon {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.checkout-progress .step.done .icon {
    border-color: var(--bs-success);
    color: var(--white);
    background-color: var(--bs-success);
}

.checkout-progress .step.active .label {
    color: var(--primary-color);
    font-weight: 600;
}

.checkout-progress .step.todo .icon {
    opacity: 0.85;
}

.checkout-progress .line {
    flex: 1 1 0;
    height: 2px;
    background: #ddd;
    border-radius: 2px;
    margin-top: -20px;
}

.checkout-progress .line.done {
    background: var(--bs-success);
}

.mirror-ns {
    display: flex;
    justify-content: space-between; /* first span left, second span right */
    align-items: center;
    width: 100%;
}

/* ===== Blog =====*/

.blog {
    min-height: inherit;
    padding: 20px 0px;
}

@media only screen and (max-width: 768px) {

    .blog-list {
        justify-content: center !important;
    }
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 400px);
    justify-content: space-between;
    gap: 20px 0px;
    padding: 25px 0px;
}

.blog-list:last-child {
    margin-left: auto;
}

.blog-list-highlight {
    display: none;
    padding-top: 25px;
    gap: 15px;
    justify-content:space-between;
}

.blog-post-card p {
    color: var(--white);
}

.blog-meta .date {
    text-align: right;
}

.blog-meta {
    margin: 0px 10px 0px 10px;
}

.blog-meta p {
    margin-bottom: 0px;
}

@media only screen and (min-width: 1400px) {

    .blog-list-highlight {
        display: grid;
        grid-template-columns: 800px 400px;
        grid-template-rows: 442px;
    }

    .blog-list-highlight .blog-post-card:nth-child(1) a {
        flex-flow: column nowrap;
    }

    .blog-list-highlight .blog-post-card:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .blog-list-highlight .blog-post-card:nth-child(1) img {
        height: 442px;
    }

    .blog-list-highlight .blog-post-card:nth-child(1) h3 {
        font-size: 2.4rem;
        width: 100%;
    }

    .blog-list-highlight .blog-post-card:nth-child(1) p {
        width: 100%;
        font-size: 2rem;
    }

    .blog-list-highlight .blog-post-card:nth-child(1) .blog-meta {
        width: 100%;
    }

    .blog-list-highlight .blog-post-card:nth-child(1) .blog-meta p {
        font-size: 1.4rem;
    }

    .blog-list-highlight .blog-post-card:nth-child(1) .card-body {
        min-height: 400px;
    }

    .blog-list > *:nth-child(-n+3) {
        display: none !important;
    }
}

@media only screen and (max-width: 1400px) {

    .blog-list-highlight {
        gap: 20px;
        flex-direction: row;
        height: fit-content;
        justify-content: center;
    }
}

.blog-post-card {
    width: 100%;
    padding: 0px 20px;
    border: solid 1px var(--background-secondary-color)
}

.blog-post-card h3 {
    text-align: left;
    margin: 0px;
}

.blog-post-card .blog-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--primary-color);
    padding: 10px;
    color: #bbb;
}

.blog-post-card img {
    object-fit: cover;
    object-position: left;
    width: 100%;
}

.blog-meta .author {
    order: 1;
}

.blog-meta .date {
    order: 2;
}

.blog-post-card .card-body {
    min-height: 200px;
    padding: 10px;
}

.blog-post {
    margin-top: -20px;
}

.blog-post p {
    text-align: left;
}

.blog-post-header {
    background: var(--black);
    padding: 10px;
    height: 400px;
    display: flex;
    text-align: center;
    align-items: center;
}

.blog-post-body {
    background-color: var(--white) !important;
}

.blog-post-body .container {
    display: flex;
    justify-content: center;
}

.blog-content {
    max-width: 1000px;
}

.blog-content h1, .blog-content h2, .blog-content h3, .blog-content p, .blog-content li {
    color: var(--black) !important;
}

.blog-galery {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-content a {
    color: var(--primary-color);
}

.blog-content img {
    max-width: 100%;
    max-height: 300px;
    margin: 10px;
}

.blog-see-more {
    background-color: var(--black) !important;
}

.blog-see-more h3 {
    color: var(--white);
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}