/*@import url('https://fonts.googleapis.com/css2?family=Baumans&display=swap');*/
/*@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');*/

/* latin */
@font-face {
    font-family: 'Baumans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    /*src: url('./../libs/fonts/Baumans/baumans.woff2') format('woff2');*/
    src: url('./../libs/fonts/Baumans/Baumans-Regular.ttf') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
    font-family: 'Google Sans Flex';
    font-style: normal;
    font-weight: 1 1000;
    font-stretch: 100%;
    font-display: swap;
    src: url('./../libs/fonts/google_sans_flex/google_sans_flex.ttf') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Variables */

:root {
    /*--primary-color: #002d5d;*/
    /*--primary-color: #4b1dd9;*/
    --primary-color: #2b0099;
    --secondary-color: #4b1dd9;
    --light-color: #cfcffc;
    /*--secondary-color: #F1C21B;*/
    /*--green-color: #198754;*/
    --white-color: white;
    --grey-color: grey;
    --dark-color: #212529;

    --bs-primary: var(--primary-color) !important;
    --bs-btn-bg: var(--primary-color) !important;
}

/* End Variables */

/* Lib */

::-moz-selection {
    color: var(--white-color);
    background: var(--primary-color);
}

::selection {
    color: var(--white-color);
    background: var(--primary-color);
}

/* RTL support (for Arabic) */

[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}

[dir="rtl"] .shape-2 {
    right: 0 !important;
    transform: scale(8) rotateY(37deg) rotateX(217deg) !important;
}

/* End RTL support (for Arabic) */

body {
    background-color: var(--bs-gray-200);
    font-family: "Google Sans Flex", sans-serif;
    line-height: 1.7;
    word-break: break-word;
}

.container {
    max-width: 1920px;
}

.img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

input, textarea {
    border-width: 2px !important;
}

label {
    font-size: 14px;
    font-weight: 400;
    width: 100%;
    line-height: 1.5;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.form-control, .form-select {
    padding: 8px 16px;
    border: 2px solid var(--bs-secondary-bg-subtle);
    border-radius: 2rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    caret-color: var(--primary-color);
    transition: none;
}

.form-control::placeholder {
    color: var(--primary-color);
    font-weight: 300;
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.messages.alert {
    list-style: none;
    margin: 16px 0;
}

.loader {
    max-width: 50px;
    width: 100%;
    height: 50px;
    margin: 0 auto;
}

.loader svg {
    width: 100%;
    height: 100%;
}

.errorlist {
    background-color: var(--bs-danger);
    border-radius: 4px;
    color: white;
    font-weight: bold;
    list-style: none;
    margin-bottom: 8px;
    padding: 2px 8px;
    font-size: 14px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

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

.app-font {
    font-family: "Baumans", system-ui;
}

.scroll-box {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Edge/IE */
}

.scroll-box > * {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.scroll-box::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.badge {
    white-space: break-spaces;
}

/* End Lib */


/* Slider */

.splide__arrow {
    background-color: var(--light-color) !important;
    opacity: 1 !important;
    font-size: 14px;
    max-width: 40px;
    width: 100% !important;
    height: 40px !important;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.splide__arrow--prev {
    left: 0 !important;
    /*transform: translate(-50%, -50%) !important;*/
    transform: translate(4px, -50%) !important;
}

.splide__arrow--next {
    right: 0 !important;
    /*transform: translate(50%, -50%) !important;*/
    transform: translate(-4px, -50%) !important;
}

.sp-prev-outside {
    transform: translate(-50%, -50%) !important;
}

.sp-next-outside {
    transform: translate(50%, -50%) !important;
}

.splide__arrows--ttb .splide__arrow {
    opacity: .5 !important;
}

.splide__arrows--ttb .splide__arrow--prev,
.splide__arrows--ttb .splide__arrow--next {
    top: 50% !important;
    right: 0 !important;
    left: unset !important;
}

.splide__arrows--ttb .splide__arrow--prev {

    transform: translate(-50%, -50%) !important;
}

.splide__arrows--ttb .splide__arrow--next {
    transform: translate(-50%, 100%) !important;
}

.splide__pagination {
    bottom: 0 !important;
    transform: translateY(calc(100% + 16px));
}

.splide__pagination__page.is-active {
    transform: scale(1.2) !important;
}

.splide__slide img {
    max-height: 500px;
    object-fit: contain;
}

/* End Slider */


/* Navbar */

.navbar {
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
    font-size: 14px;
    font-weight: bold;
    padding: 0;
    margin-bottom: 32px;
    background-color: var(--bs-gray-200);
}

.navbar .navbar-brand {
    max-width: 150px;
    font-family: "Baumans", system-ui;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 2px 0;
    color: var(--bs-black);
    line-height: 1;
}

.navbar .navbar-brand .img {
    height: 48px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    word-break: keep-all;
    white-space: nowrap;
    padding: 12px 20px !important;
    /*color: var(--primary-color);*/
    color: var(--bs-black);
    border-radius: 4rem;
    margin: 4px 0;
}

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

.navbar-nav .nav-link.active {
    background-color: var(--white-color) !important;
    /*color: var(--secondary-color) !important;*/
    color: var(--primary-color) !important;
}

.offcanvas {
    background-color: var(--bs-gray-300);
}

.navbar .search-form {
    display: flex;
    align-items: center;
    word-break: keep-all;
    font-size: 14px;
    max-width: 400px;
    width: 100%;
}

.navbar .search-form .form-control {
    border-radius: 4rem 0 0 4rem;
    padding: .5rem 1.5rem;
    border: 1px solid var(--bs-gray-300);
    /*border: 1px solid var(--white-color);*/
}

/*.navbar .search-form .form-control:focus {*/
/*    border: 1px solid var(--primary-color);*/
/*}*/

.navbar .search-form button[type="submit"] {
    border-radius: 0 4rem 4rem 0;
    padding: .5rem 1.5rem;
    font-size: 14px;
}

.navbar .search-form > * {
    /*background: transparent;*/
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--white-color) !important;
    /*background: var(--bs-dark-bg-subtle);*/
    height: 48px;
}

/* End Navbar */


/* Article */

.article-card {
    display: block;
    /*background-color: var(--white-color);*/
    /*background-color: transparent;*/
    background-color: var(--bs-gray-100);
    border: none;
    height: 100%;
    overflow: hidden;
}

.article-card a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.article-card:hover {
    box-shadow: var(--bs-box-shadow-sm) !important;
    background-color: var(--white-color);
}

.article-card .img {
    height: 300px;
}

.article-card .card-title,
.article-card .card-text {
    line-height: 1.4;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .25rem;
    flex-wrap: wrap;
}

/* Trending Box */

.trending-article {
    text-decoration: none;
}

.trending-article .img {
    height: 80px;
}

/* End Trending Box */


/* Featured Box */

.featured-article-card.article-card {
    /*background-color: rgba(255, 255, 255, 0.5);*/
    /*background-color: rgba(240, 240, 240, 0.7);*/
    /*background-color: rgba(255, 255, 255, 0.7);*/
    /*background-color: rgba(240, 240, 240, 0.8);*/

    background-color: rgba(225, 235, 255, 0.8);
}

.featured-article-card.article-card:hover {
    box-shadow: none !important;
}

.featured-article-card a .img {
    flex: 3;
}

.featured-article-card a .card-body {
    flex: 2;
    position: relative;
}

.featured-article-card a .card-body .blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(32px);
}

.featured-articles-list .article-card {
    max-width: 200px;
    width: 100%;
}

.featured-articles-list .article-card .img {
    height: 100px;
}

.featured-articles-list .article-card .card-body {
    padding: 4px;
}

.featured-articles-list .article-card .card-body .card-title {
    font-size: 12px;
}

/* End Featured Box */

/* End Article */


/* Home */

.app-block {
    background-color: var(--bs-gray-100);
    border-radius: var(--bs-border-radius-xl);
    padding: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.user-promote-block {
    border: 2px dashed var(--bs-info);
    text-align: center;
}

/* End Home */


/* Search results */

.search-results .article-card {
    margin-bottom: 2rem;
}

/*.search-results .article-card a {*/
/*    display: flex;*/
/*}*/

.search-results .article-card a img {
    flex: 3;
}

.search-results .article-card .card-body {
    flex: 2;
}

/* End Search results */


/* Footer */

.footer-container {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 32px 0;
    margin-top: 256px;
}

.footer-container .footer-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 8px;
    border-radius: 8px;
}

.footer-container .logo {
    max-width: 200px;
    padding: 16px;
}

.footer-logo a {
    display: block;
}

.footer-container a {
    color: var(--white-color);
}

.footer-shape {
    display: block;
    width: 100%;
    background-repeat: no-repeat;
    background-position: top center;
    object-fit: contain;
    transform: translateY(1px);
}

/* End Footer */


/* START Pagination */

.page-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.page-pagination li {
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    margin: 5px 10px;
}

.page-pagination li a {
    color: var(--primary-color);
    background-color: var(--white-color);
    padding: 10px;
    border-radius: 50px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-decoration: none;
}

.page-pagination li a i {
    line-height: 24px;
}

.page-pagination li a:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
}

.page-pagination li.active a {
    color: var(--white-color) !important;
    background-color: var(--primary-color);
}

.page-pagination li:first-child a {
    color: var(--primary-color);
    width: auto;
    padding: 10px 20px;
}

.page-pagination li:first-child a i {
    margin-right: 10px;
    float: left;
}

.page-pagination li.active a:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
}

.page-pagination li:last-child a {
    width: auto;
    padding: 10px 20px;
    flex-direction: row-reverse;
}

.page-pagination li:last-child a i {
    margin-left: 10px;
    float: right;
}

/* End Pagination */

@media only screen and (min-width: 767px) {
    .featured-article-card a {
        display: flex;
    }
}

@media only screen and (min-width: 1200px) {
    .navbar {
        /* backdrop-filter implementation */
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(1024px);
        -webkit-backdrop-filter: blur(1024px); /* Safari support */
    }
}

@media only screen and (min-width: 1440px) {
    .container {
        padding-left: 64px;
        padding-right: 64px;
    }
}
