/*Colors*/

body[data-theme="light"] {
    --text: #383E43;
    --text-hover: #007BFF;
    --background-1: #f9f9f9;
    --background-2: #FFFFFF;
    --card: #FFFFFF;
    --primary-1: #007BFF;
    --primary-2: #0056b3;
    --success-1: #0FA862;
    --warning-1: #FF9900;
    --info: #3D85B7;
    --black-1: #000000;
    --black-3: #32323C;
    --black-5: #eeeeee;
    --grey-1: #7D7D87;
    --grey-3: #AFAFB6;
    --grey-5: #AFAFB6;
    --grey-6: #EEEEEE;
    --grey-7: #f9f9f9;
    --white: #FFFFFF;
    --elevation: #383E4330;
    --border-primary: #EEEEEE;
    --border-secondary: #AFAFB6;
    --header--header-background: #FFFFFF;
    --header--mobile-title-background: #f9f9f9;
    --header--khabaryab-typography: #32323C;
    --header--khabaryab-logo: #007BFF;
    --header--menu-link: #383E43;
    --header--search-icon-background: #32323C;
    --header--search-icon: #FFFFFF;
    --single-article--header-background: #FFFFFF;
    --button--contained--default-text: #FFFFFF;
    --button--contained--default-background: #32323C;
    --button--contained--default-border: #32323C;
    --button--outline--default-text: #383E43;
    --button--outline--default-border: #EEEEEE;
    --button--text--default-text: #383E43;
    --button--contained--secondary-text: #383E43;
    --button--contained--secondary-background: #FFFFFF;
    --button--contained--secondary-border: #FFFFFF;
    --button--outline--secondary-text: #383E43;
    --button--outline--secondary-border: #EEEEEE;
    --button--text--secondary-text: #FFFFFF;
    --button--contained--primary-text: #FFFFFF;
    --button--contained--primary-background: #007BFF;
    --button--contained--primary-border: #007BFF;
    --button--outline--primary-text: #383E43;
    --button--outline--primary-border: #007BFF;
    --button--text--primary-text: #383E43;
    --button--contained--text-disable: #AFAFB6;
    --button--contained--background-disable: #7D7D87;
    --button--contained--spinner: #FFFFFF;
    --button--contained--spinner-border: #AFAFB6;
    --button--outline--text-disable: #AFAFB6;
    --button--outline--background-disable: 'transparent';
    --button--outline--spinner: #32323C;
    --button--outline--spinner-border: #AFAFB6;
    --shadow: 5px 5px 5px 0px rgba(112, 141, 164, 0.2);
    --footer--footer-background: #f9f9f9;
    --footer--footer-background-2: #d8d8d8;
}

body[data-theme="dark"] {
    --text: #E8E2D8;
    --text-hover: #66B2FF;
    --background-1: #202425;
    --background-2: #1D1F20;
    --card: #292C2D;
    --primary-1: #007BFF;
    --primary-2: #66B2FF;
    --success-1: #0FA862;
    --warning-1: #FF9900;
    --info: #3D85B7;
    --black-1: #000000;
    --black-3: #AFAFB6;
    --black-5: #4B4B55;
    --grey-1: #EEEEEE;
    --grey-3: #AFAFB6;
    --grey-5: #7A7878;
    --grey-6: #292C2D;
    --grey-7: #383737;
    --white: #FFFFFF;
    --elevation: rgba(28, 25, 25, 0.24);
    --border-primary: #4B4B55;
    --border-secondary: #7A7878;
    --header--header-background: #1D1F20;
    --header--mobile-title-background: #292C2D;
    --header--khabaryab-typography: #FFFFFF;
    --header--khabaryab-logo: #66B2FF;
    --header--menu-link: #E8E2D8;
    --header--search-icon-background: #FFFFFF;
    --header--search-icon: #AFAFB6;
    --single-article--header-background: #000000;
    --button--contained--default-text: #E8E2D8;
    --button--contained--default-background: #383737;
    --button--contained--default-border: #383737;
    --button--outline--default-text: #E8E2D8;
    --button--outline--default-border: #4B4B55;
    --button--text--default-text: #E8E2D8;
    --button--contained--secondary-text: #E8E2D8;
    --button--contained--secondary-background: #383737;
    --button--contained--secondary-border: #383737;
    --button--outline--secondary-text: #E8E2D8;
    --button--outline--secondary-border: #4B4B55;
    --button--text--secondary-text: #E8E2D8;
    --button--contained--primary-text: #E8E2D8;
    --button--contained--primary-background: #007BFF;
    --button--contained--primary-border: #007BFF;
    --button--outline--primary-text: #E8E2D8;
    --button--outline--primary-border: #007BFF;
    --button--text--primary-text: #E8E2D8;
    --button--contained--text-disable: #AFAFB6;
    --button--contained--background-disable: #383737;
    --button--contained--spinner: #FFFFFF;
    --button--contained--spinner-border: #AFAFB6;
    --button--outline--text-disable: #AFAFB6;
    --button--outline--background-disable: 'transparent';
    --button--outline--spinner: #AFAFB6;
    --button--outline--spinner-border: #383737;
    --shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.5);
    --footer--footer-background: #18191b;
    --footer--footer-background-2: #151617;
}

@font-face {
    font-family: 'Vazir';
    src: url("/static/fonts/Vazir.woff2") format("woff2"),
    url("/static/fonts/Vazir.woff") format("woff"),
    url("/static/fonts/Vazir.ttf") format("truetype");
    font-display: swap;
}

* {
    font-family: 'Vazir', sans-serif;
}

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

/*End Colors*/

/*Mobile Menu*/

.mobile-menu {
    cursor: pointer;
}

#mobile-nav {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: var(--background-1);
    color: var(--text);
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1002;
    padding: 20px;
}

#mobile-nav ul {
    list-style: none;
    padding: 0;
}

#mobile-nav ul li {
    margin: 15px 0;
}

#mobile-nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 18px;
}

#mobile-nav.open {
    right: 0;
}

#menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#menu-overlay.active {
    display: block;
}

/*End Mobile Menu*/

/*Header*/
.nav-options {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-options {
        display: block;
    }

    .mobile-mode {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

.navbar-header {
    padding-top: 1rem;
}

.navbar {
    background: var(--background-1);
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
}

.second-navbar {
    background: var(--background-2);
    padding-top: 1rem;
}

.header-logo {
    max-width: 240px;
    display: block;
    margin: auto;
}

.header-icons {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text);
}

.mobile-menu {
    font-size: 25px;
    padding: 1rem;
    margin: 0 0.5rem;
}

.header-icons li {
    display: inline-block;
    position: relative;
    font-size: 25px;
    padding: 1rem;
    margin: 0 0.5rem;
}

.header-icons i {
    transition: color 0.3s ease;
}

.header-icons i:hover {
    color: var(--primary-1)
}

header .header-links {
    padding-right: 0;
    margin-top: 10px;
    text-align: right;
}

header .header-links li {
    display: inline-block;
    list-style: none;
}

header .header-links li a {
    position: relative;
    color: var(--text);
    font-size: 12px;
    padding: 10px 15px;
    margin: 10px 0;
    overflow: hidden;
    transition: all ease 0.6s;
    right: 0;
    text-decoration: none;
}

header .header-links li a:hover {
    color: var(--text-hover);
}

header .header-icons li a {
    color: var(--text);
}

header .header-icons li a:hover,
header .header-icons li a:focus,
header .header-icons li a:active {
    color: var(--text-hover);
    text-decoration: none;
}

header .allhead {
    background: var(--primary-1);
    color: #fff;
    float: right;
    /*font-size: 11px;*/
    padding: 5px 0;
    position: relative;
    width: 100%;
    z-index: 3;
}

header .allhead .allhead-menu {
    direction: rtl;
    float: right;
    list-style: none;
    margin: 0;
    padding: 0;
}


header .allhead .allhead-auth {
    float: left;
    /*height: 20px;*/
}

header .allhead .allhead-menu li {
    float: right;
    margin-left: 15px;
    position: relative;
}

header .allhead .allhead-menu li a {
    color: #fff;
}

header .allhead .allhead-auth .allhead-date {
    border-left: 1px solid hsla(0, 0%, 100%, .3);
    margin-left: 5px;
    padding-left: 10px;
}

.allhead i {
    font-size: 17px;
}

.search-btn {
    background: transparent;
    border: none;
    border-left: 1px solid hsla(0, 0%, 100%, .3);
    color: #fff;
    cursor: pointer;
    margin-left: 10px;
    padding: 0 0 0 10px;
    position: relative;
    top: 0;
}

header .allhead .allhead-auth .allhead-user-auth {
    display: inline-block;
    min-width: 37px;
    text-align: left;
}

/*End Header*/

/*main section*/
.main-section {
    background: var(--background-2);
}

/*end main section*/


/* Footer */
.footer {
    font-family: 'Arial', sans-serif;
    color: var(--text);
}

.footer-top {
    background: var(--footer--footer-background);
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget .widget-title {
    color: var(--text);
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget .widget-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--text);
    position: absolute;
    bottom: 0;
    left: 0;
}

.footer-widget .btn-info {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--footer--footer-background-2);
    color: var(--text);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
    border-color: var(--text);
}

.footer-widget .btn-info:hover {
    background-color: var(--footer--footer-background);
}

.footer-widget .links-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-widget .links-list li {
    margin-bottom: 10px;
}

.footer-widget .links-list li a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-widget .links-list li a:hover {
    color: var(--text-hover);
}

.footer-widget .contact p {
    font-size: 14px;
    line-height: 1.5;
}

.footer-widget .social-icons {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
}

.footer-widget .social-icons li a:hover {
    text-decoration: none;
}

.footer-widget .social-icons li {
    margin: 0 10px;
}

.footer-widget .social-icons a {
    color: var(--text);
    font-size: 24px;
    transition: color 0.3s;
}

.footer-widget .social-icons a:hover {
    color: var(--text-hover);
}

.footer-bottom {
    background: var(--footer--footer-background-2);
    color: var(--text);
    padding: 30px 0;
    text-align: center;
}

.footer-bottom .footer-notes {
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom .footer-notes span {
    display: block;
    margin-bottom: 10px;
}

.hidden-xs {
    display: none;
}

@media (min-width: 576px) {
    .hidden-xs {
        display: block;
    }
}

/*general*/

.text-solid {
    text-decoration: none;
}

.main-box {
    background: var(--background-1);
    padding: 20px 15px 10px 15px;
    margin: 20px 0 20px 0;
    white-space: nowrap;
    text-align: right;
    text-overflow: ellipsis;
    border-radius: 5px;
    box-shadow: var(--shadow);
    display: block;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.main-box .title-txt {
    position: relative;
    font-size: 14px;
    color: var(--info);
    padding: 10px 10px 0 10px;
    margin-bottom: 10px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list-items {
    border-right: none;
    background: var(--background-2);
    margin-bottom: 10px;
    padding-right: 0;
}

.news-list-items li {
    position: relative;
    overflow: visible;
    width: 100%;
    padding: 4px 7px 4px 3px;
    background: var(--background-2);
    line-height: 20px;
    display: flex;
    gap: 10px;
}

.news-list-items img {
    padding: 7px;
    max-width: 60px;
    object-fit: cover;
}

.news-list-items li:nth-child(2n) {
    background: var(--background-1);
    border-right-color: var(--background-1);
}

.news-list-items li > a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    font-size: 13px;
    padding: 4px 0 4px 10px;
}

.news-list-items a:hover {
    color: var(--text-hover);
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.gap-1 {
    gap: 10px;
}

.gap-2 {
    gap: 20px;
}

.pl-0 {
    padding-left: 0;
}

.pr-0 {
    padding-right: 0;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cursor-pointer {
    cursor: pointer;
}

.ad {
    margin: 20px 0 20px 0;
    text-align: center;
}

.news-date {
    margin-left: 3px;
    padding-left: 3px;
    border-left: 1px solid var(--info);
}

.text-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    max-height: 4.5em;
    line-height: 1.5em;
}

/*end general*/

/*start slider*/

.owl-carousel .owl-stage-outer {
    display: block;
    position: relative;
    overflow: hidden;
    margin: 20px 0 20px 0;
    box-shadow: var(--shadow);
}

.owl-carousel .item {
    background: var(--background-1);
    padding: 0 0 0 20px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 250px;
}

/*.slide-image {*/
/*    flex: 1;*/
/*    max-width: 50%;*/
/*    !*height: auto;*!*/
/*    border-radius: 10px;*/
/*    margin-left: 20px;*/
/*    width: 364px;*/
/*    height: 200px;*/
/*}*/

.slide-image {
    flex: 1;
    max-width: 50%;
    /* height: auto; */
    /*border-radius: 10px;*/
    border-radius: 0 5px 5px 0;
    margin-left: 20px;
    width: 364px;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    color: var(--text);
    flex: 2;
    /*padding: 20px;*/
}

.slide-title {
    color: var(--text);
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 10px;
}

.slide-summary {
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.slide-navigation {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-135%);
    display: flex;
    gap: 5px;
}

@media (max-width: 768px) {
    .slide-navigation {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 5px;
    }

    .owl-carousel .item {
        padding: 0 0 0 0;
        height: 420px;
    }

    .slide-image {
        border-radius: 5px 5px 0 0;
        max-width: 384px;
        max-height: 194px;
    }
}

.slide-navigation button {
    background: var(--background-2);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--text);
    border-radius: 3px;
}

.slide-navigation button.active {
    background-color: var(--text-hover);
    color: var(--white);
}

@media (max-width: 768px) {
    .owl-carousel .item {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }

    .slide-image {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .slide-content {
        padding: 20px;
        text-align: right;
    }
}

/*end slider*/

/*second slider*/

.second-slider .owl-stage-outer {
    display: block;
    position: relative;
    overflow: hidden;
    margin: 10px 0;
    box-shadow: var(--shadow);
}

.second-slider .item {
    border-radius: 5px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 170px;
}

.second-slider .slide-image {
    flex: 1;
    /*max-width: 40%;*/
    border-radius: 0 5px 5px 0;
    margin-left: 10px;
    width: 150px;
    height: 100%;
    object-fit: cover;
    max-width: 154px;
    /*max-height: 110px;*/
}

.second-slider .slide-content {
    color: var(--text);
    flex: 2;
    font-size: 14px;
}

.second-slider .slide-title {
    color: var(--text);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.second-slider .slide-summary {
    color: var(--text);
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 3rem;
}

.second-slider .slide-navigation {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-145%);
    display: flex;
    gap: 5px;
}

.second-slider .slide-navigation button {
    background: var(--background-2);
    border: none;
    padding: 3px 6px;
    cursor: pointer;
    color: var(--text);
    border-radius: 3px;
}

.second-slider .slide-navigation button.active {
    background-color: var(--text-hover);
    color: var(--white);
}

@media (max-width: 768px) {
    .second-slider .item {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
        height: 245px;
    }

    .second-slider .slide-image {
        border-radius: 5px 5px 0 0;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        height: 120px;
    }

    .second-slider .slide-content {
        padding: 10px;
        text-align: right;
    }

    .second-slider .slide-navigation {
        bottom: 5px;
    }

    .second-slider .slide-navigation {
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 5px;
    }
}

.text-truncate-sec {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    max-height: 4.5em;
    line-height: 1.5em;
}

/*end second slider*/


/*category*/
.cat-box .title-txt {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cat-box .title-txt a {
    color: var(--text);
    text-decoration: none;
}

.category-list-items {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.category-list-items li {
    flex: 1 1 50%;
    margin-bottom: 10px;
}

.category-list-items li a {
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 4px;
    background-color: var(--background-2);
    text-align: center;
    /*border: 1px solid #ddd;*/
}

.category-list-items li a:hover {
    /*background-color: #e9ecef;*/
    border-bottom: 1px solid var(--text-hover);
    color: var(--text-hover);
}

.category-list-items li a.active {
    background-color: #e9ecef;
    color: var(--text-hover);
}

/*end category*/

.modal-content {
    background: var(--background-1);
}

.modal-title {
    color: var(--text);
}

.modal-body label {
    color: var(--text);
}

.modal-body .form-control {
    background-color: var(--background-1);
}

.no-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.contact-us .btn-info {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--footer--footer-background-2);
    color: var(--text);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
    border-color: var(--text);
}

.mb-2 {
    margin-bottom: 3rem;
}

/*toggle*/
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* اسلایدر toggle */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #409eff;
    transition: 0.4s;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #409eff;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.mode {
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.mode.moon {
    left: 10px;
}

.mode.sun {
    right: 10px;
    opacity: 0;
}

input:checked + .slider .moon {
    opacity: 0;
}

input:checked + .slider .sun {
    opacity: 1;
}

.language {
    font-size: 22px;
    font-weight: normal;
    cursor: pointer;
}


/*end toggle*/


.news-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-content a {
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.news-icons {
    margin-top: 5px;
    display: flex;
    gap: 10px;
    font-size: 16px;
    padding-left: 1rem;
    padding-right: 2rem;
    direction: ltr;
}

.news-icons .link-icon, .news-icons .dislike-icon {
    color: var(--text);
    cursor: pointer;
    transition: color 0.3s;
}

.news-icons .link-icon:hover, .news-icons .dislike-icon:hover {
    color: var(--text-hover);
}

.news-icons .link-icon, .news-icons .like-icon {
    color: var(--text);
    cursor: pointer;
    transition: color 0.3s;
}

.news-icons .link-icon:hover, .news-icons .like-icon:hover {
    color: var(--text-hover);
}

.news-meta {
    font-size: 12px;
    color: var(--info);
    margin-top: 5px;
}

.like-count,
.dislike-count {
    /*margin-left: 5px;*/
    font-size: 12px;
    color: #555;
}


/*go to top btn*/

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    width: 50px;
    height: 50px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

#scrollToTopBtn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

#scrollToTopBtn:active {
    background-color: #004494;
    transform: scale(1);
}


/*end go to top btn*/

/*news hover*/
.news-popup {
    display: none;
    position: absolute;
    top: 40px;
    left: 100px;
    background-color: var(--background-2);
    padding: 15px;
    box-shadow: var(--shadow);
    border-radius: 5px;
    width: 500px;
    z-index: 1000;
    color: var(--text);
    backdrop-filter: blur(10px);
}

.news-popup::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 300px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--background-2);
}

.news-popup-title {
    width: 100%;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-popup-content {
    display: flex;
    justify-content: space-between;
}

.news-popup img {
    max-width: 40%;
    height: auto;
    margin-left: 10px;
    object-fit: cover;
}

.news-popup-summary {
    max-width: 55%;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
    font-size: 14px;
}

.news-list-items li {
    position: relative;
}

.news-title-link:hover + .news-popup {
    display: block;
}

/*end news hover*/

.justify-between {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

header .allhead {
    background: var(--primary-1);
    color: #fff;
    float: right;
    padding: 5px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    background: var(--background-1);
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    position: fixed;
    top: 34px;
    width: 100%;
    z-index: 999;
}

body {
    padding-top: 90px;
}

/*New Header Topics*/
.category-list-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    grid-gap: 15px;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.category-list-items li {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.category-list-items li a {
    display: block;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: background 0.3s ease;
}

.category-list-items li a:hover {
    background: rgba(0, 0, 0, 0.7);
}

.category-title {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.links-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.links-list li {
    margin: 0 15px;
}

.links-list li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.links-list li a:hover {
    background-color: #f0f0f0;
}

.mob-control-adv {
    display: block;
}

@media (min-width: 800px) {
    .mob-control-adv {
        display: none;
    }
}

.pc-control-adv {
    display: block;
}

@media (max-width: 800px) {
    .pc-control-adv {
        display: none;
    }
}

.form-control {
    background-color: var(--background-1);
    color: var(--text);
}

.main-box h3 {
    color: var(--text);
}