/*
Theme Name: shast plus
Author: omid zahedi
Description: template shast plus.
Version: 1.0
*/

:root {
    --backmain-color: #ffffff;
    --font-titels: yekan;
    --font-content: vazir;
    --gradientcolor: linear-gradient(45deg, #359df2, #0066bf);
    --linkcolor: #2196F3;
    --backsingle-color: #ffffff;
}

@font-face {
    font-family: 'custom-title';
    src: url('customfont/title.ttf') format('truetype');
}

@font-face {
    font-family: 'custom-content';
    src: url('customfont/content.ttf') format('truetype');
}

@font-face {
    font-family: 'yekan';
    src: url('fonts/yekan.ttf') format('truetype');
}

@font-face {
    font-family: 'vazir';
    src: url('fonts/vazir.ttf') format('truetype');
}

body {
    margin: 0;
    font-family: var(--font-titels), sans-serif;
    background-color: var(--backmain-color);
    color: hsl(282.46deg 8% 15%);
}

.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5 {
    font-family: var(--font-titels), sans-serif !important;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-titels), sans-serif !important;
}

p, span, div {
    font-family: var(--font-content), sans-serif;
    line-height: 2;
}

a {
    color: var(--linkcolor);
    text-decoration: unset;
}

body::-webkit-scrollbar {
    display: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

article {
    width: 100%;
    margin: 0 auto;
}

.content-container {
    padding-inline: 10px;
}

/* header */
.header {
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

.menu-icon {
    width: 35px;
    height: 35px;
    vertical-align: middle;
}

.menu-toggle img.menu-icon:focus {
    outline: none;
}

.website-logo .custom-icon:focus {
    outline: none;
}

.navbar {
    margin: auto;
    display: flex;
    color: #1b1b1b;
    max-width: 1200px;
    font-family: var(--font-titels), sans-serif !important;
    align-items: center;
}

@media (min-width: 769px) {
    .navbar {
        height: 7.5rem;
        justify-content: space-between;
    }

    .desktop-header {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .header-left {
        flex: 0 0 75%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-right: 15px;
    }

    .header-top {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .header-bottom {
        flex: 1;
        display: flex;
        align-items: center;
        padding-top: 8px;
    }

    .search-logo-container {
       
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        flex-direction: row-reverse;
    }

    .smart-search-container {
        flex: 1;
        margin-left: 10px;
        position: relative;
        z-index: 10000;
    }

    .smart-search-input {
        width: 100%;
        padding: 8px;
        font-size: 1rem;
    }

    .smart-search-results {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 10001;
    }

    .header-logo {
        display: flex;
        align-items: center;
    }

    .header-logo .custom-icon {
       

        height: 40px;
        width: auto;
        display: flex;
        padding: 5px 10px 5px 10px;


    }

    .website-logo .custom-icon {
        height: 75px;
        width: auto;
    }

    .nav.desktop-nav {
        width: 100%;
    }

    .nav-list {
        display: flex;
        gap: 15px;
        width: 100%;
        justify-content: flex-start;
    }

    .menu-toggle {
        display: none;
    }

    .nav:not(.desktop-nav) {
        display: none;
    }

    .mobile-search {
        display: none;
    }

    .desktop-logo {
        display: flex;
    }

    .mobile-menu-logo {
        display: none;
    }
}

.website-logo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
    text-align: left;
}

.website-logo .custom-icon {
    vertical-align: middle;
    margin-left: 5px;
}

.custom-icon {
    width: auto;
    height: 45px;
}

.menu-toggle {
    color: #1b1b1b;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    order: 1;
}

.nav {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 9999;
    font-family: 'yekan';
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    font-weight: 600;
    font-size: 1rem;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    text-decoration: none;
    color: #1b1b1b;
    padding: 0px 15px;
    transition: background-color 0.3s ease;
}

.nav-list > li > a:hover {
    color: var(--linkcolor);
}

.nav-list .sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    list-style: none;
    padding: 5px;
    margin: 0;
    width: 250px;
    background-color: #393939;
    border-radius: 10px;
    font-weight: 400;
    font-size: 14px;
    z-index: 9998;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}

.nav-list > li:hover > .sub-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.nav-list .sub-menu > li > a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.nav-list .sub-menu > li > a:hover {
    color: var(--linkcolor);
}

@media (max-width: 768px) {
    .navbar {
        height: 3rem;
        justify-content: space-between;
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        margin-left: 10px;
        margin-right: 10px;
    }

    .custom-icon {
        width: auto;
        height: 35px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
    }

    .desktop-header {
        display: none;
    }

    .desktop-logo {
        display: none;
    }

    .mobile-search {
        display: flex;
        flex-grow: 1;
        align-items: center;
        margin-right: 5px;
    }

    .mobile-search .smart-search-container {
        width: 100%;
        position: relative;
        z-index: 10000;
    }

    .mobile-search .smart-search-input {
        width: 100%;
        padding: 5px;
        font-size: 0.9rem;
    }

    .mobile-search .smart-search-results {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 10001;
    }

    .nav {
        display: flex;
        flex-direction: column;
        background-color: #333;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100%;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        margin-top: 3rem;
        align-items: flex-start;
        border-radius: 15px 0px 0px 0px;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .mobile-menu-logo {
        display: flex;
        justify-content: center;
        padding: 20px 0;
    }

    .mobile-menu-logo .custom-icon {
        height: 50px;
        width: auto;
        margin-right: 20px;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: 70px;
    }

    .nav-list > li {
        position: relative;
        margin: 10px;
        border-radius: 10px;
    }

    .nav-list > li > a {
        display: flex;
        color: #ffffff;
    }

    .nav-list .sub-menu {
        display: block;
        position: static;
        width: 100%;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        background-color: transparent;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        height: 3rem;
    }
}

/* footer */
footer {
    color: #1b1b1b;
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #ececec;
    margin: 0 auto;
    margin-top: 2rem;
    direction: rtl;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradientcolor);
    z-index: 1;
    opacity: 0.5;
}

.footer-widget-double,
.footer-widget-single,
.footer-bottom-column {
    position: relative;
    z-index: 2;
}

.footer-widget-double {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    text-align: right;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    width: 48%;
}

.footer-widget-single {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.footer-bottom-column {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.footer-widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.footer-widget-item .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-item .menu-item {
    margin-bottom: 10px;
}

.footer-widget-item .menu-item a {
    color: #1b1b1b;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-widget-item .menu-item a:hover {
    color: #0073aa;
}

.footer-widget-item .sub-menu {
    list-style: none;
    padding: 0;
    margin: 5px 15px 0 0;
}

.footer-widget-item .sub-menu .menu-item {
    margin-bottom: 8px;
}

.footer-widget-item .sub-menu .menu-item a {
    font-size: 14px;
    color: #555;
}

.footer-widget-item .sub-menu .menu-item a:hover {
    color: #0073aa;
}

@media (max-width: 768px) {
    .footer-column {
        width: 100%;
    }
}

/* sidebar */
.sidebar,
.blog-sidebar {
    padding: 15px;
    border-radius: 10px;
    font-family: var(--font-titels), sans-serif;
}

.blog-sidebar .sidebar-content {
    padding: 0;
}

.sidebar form,
.blog-sidebar form {
    margin-bottom: 15px;
}

.sort-form {
    display: inline-flex;
    align-items: center;
    width: 100%;
}

.sort-form select {
    padding: 8px 10px;
    font-size: 14px;
    color: #333;
    border: 2px solid #ececec;
    border-radius: 10px;
    background: #fff;
    outline: none;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-titels);
}

.sort-form select:focus {
    border-color: #888;
}

.sidebar .widget,
.blog-sidebar .widget {
    margin-bottom: 15px;
}

.sidebar .widget h3,
.sidebar .widget .widget-title,
.blog-sidebar .widget h3,
.blog-sidebar .widget .widget-title {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
    font-family: var(--font-titels);
    margin-top: 0px;
}

.sidebar .searchform,
.blog-sidebar .searchform {
    display: flex;
}

.sidebar #s,
.sidebar input[type="text"],
.blog-sidebar #s,
.blog-sidebar input[type="text"] {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-titels);
    border: 2px solid #ececec;
    width: 100%;
}

.sidebar #s:focus,
.sidebar input[type="text"]:focus,
.blog-sidebar #s:focus,
.blog-sidebar input[type="text"]:focus {
    border-color: #e2e2e2;
    outline: none;
}

.sidebar #searchsubmit,
.sidebar input[type="submit"],
.blog-sidebar #searchsubmit,
.blog-sidebar input[type="submit"] {
    width: fit-content;
    font-size: 16px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    background: #03A9F4;
    color: #fff;
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-titels);
    margin-top: 5px;
}

.sidebar #searchsubmit:active,
.sidebar input[type="submit"]:active,
.blog-sidebar #searchsubmit:active,
.blog-sidebar input[type="submit"]:active {
    background: #2196F3;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sidebar .widget ul,
.blog-sidebar .widget ul {
    list-style: none;
    padding: 0;
}

.sidebar .widget ul li,
.blog-sidebar .widget ul li {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    font-family: var(--font-titels);
}

.sidebar .widget ul li a,
.blog-sidebar .widget ul li a {
    color: #333;
}

.sidebar .widget ul li a:hover,
.blog-sidebar .widget ul li a:hover {
    color: var(--linkcolor);
}

.sidebar .widget .tagcloud,
.blog-sidebar .widget .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
}

.sidebar .widget .tagcloud a,
.blog-sidebar .widget .tagcloud a {
    display: inline-block;
    padding: 0 5px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    font-size: 13px !important;
    border: 2px solid #ececec;
    border-radius: 10px;
    font-family: var(--font-titels);
}

.sidebar .widget .tagcloud a:hover,
.blog-sidebar .widget .tagcloud a:hover {
    color: #0c6dc8;
}

.sidebar .widget p,
.blog-sidebar .widget p {
    font-size: 14px;
    color: #333;
    font-family: var(--font-titels);
}

.tag-link-count {
    font-family: var(--font-titels);
}

/* header-search */
.search-form {
    display: flex;
    align-items: center;
}

.search-field {
    padding: 8px;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-titels);
    border: 2px solid #ececec;
    width: 100%;
}

.search-field:focus {
    border-color: #e2e2e2;
    outline: none;
}

.search-submit {
    width: fit-content;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 8px;
    margin: 4px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to bottom, #03A9F4, #2196F3);
    box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.2), 0px 1px 2px rgba(0, 0, 0, 0.2);
    text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
    font-family: var(--font-titels);
}

.search-submit:active {
    background: #2196F3;
    box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 0px rgba(255, 255, 255, 0.2);
}

/* next-after-button */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    padding: 2px 14px;
    margin: 2px;
    background: #2196F3;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    display: inline-block;
    font-size: 15px;
    transition: background 0.3s;
    font-family: var(--font-titels);
}

.pagination a:hover {
    background: #187dcf;
}

.page-numbers {
    padding: 2px 14px;
    margin: 2px;
    background: #2195f3a9;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    display: inline-block;
    font-size: 15px;
    transition: background 0.3s;
    font-family: var(--font-titels);
}

/* navbar-bar-home-style */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 18px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 9%);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #ececec;
    padding: 15px;
}

.breadcrumb a {
    color: var(--linkcolor);
    text-decoration: unset;
    font-weight: bold;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #888;
    font-size: 28px;
    line-height: 0;
}

.breadcrumb-current {
    color: #555;
    font-weight: bold;
    line-height: 0;
    font-size: 18px;
}