/* Add here all your CSS customizations */

@media (min-width: 992px) {
    html.side-header-right:not(.side-header-above) body > .body {
        margin: 0 30% 0 0;
    }

    html.side-header #header.side-header {
        max-width: 30%;
        width: 100%;
    }

    html.side-header #header.side-header .header-nav.header-nav-links-vertical-slide nav ul > li.dropdown > a.dropdown-toggle:after, html.side-header #header.side-header .header-nav.header-nav-links-vertical-slide nav ul > li.dropdown .dropdown-menu li.dropdown-submenu > a.dropdown-item:after, html.side-header-hamburguer-sidebar #header.side-header .header-nav.header-nav-links-vertical-slide nav ul > li.dropdown > a.dropdown-toggle:after, html.side-header-hamburguer-sidebar #header.side-header .header-nav.header-nav-links-vertical-slide nav ul > li.dropdown .dropdown-menu li.dropdown-submenu > a.dropdown-item:after {
        top: 12px;
    }
}

.library .pageContent {
    padding: 30px;
    direction: rtl;
    text-align: justify;
}

.p-static > h1 {
    font-size: 18px;
}

.list-caption {
    list-style: none;
    padding-right: 0;
}

.mr-mines {
    margin-right: 5px !important;
}

.center-element {
    display: block;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.table-custom, .table-custom a {
    color: #543838;
    border-radius: 5px 5px 0 0;
}

.padding-5 {
    padding: 5px;
}

.custom-column {
    display: inline;
    padding: 10px;
}

#footer .footer-ribbon span {
    font-size: 1.3em !important;
}

.img {
    height: 230px;
    width: 163px;
    margin-right: 10px;
    background: #d9d9d9;
    position: relative;
    overflow: hidden;
    color: transparent;
    border-radius: 5px;
}

.img::before {
    position: absolute;
    content: "";
    left: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(to right, #d9d9d9 0%, rgba(0, 0, 0, 0.05) 20%, #d9d9d9 40%, #d9d9d9 100%);
    background-repeat: no-repeat;
    background-size: 450px 400px;
    animation: shimmer 1s linear infinite;
}

.img::before {
    background-size: 650px 600px;
}
.article-segment{display:flex;}
.article-segment1{width:45%;}
.article-segment img{
    width: auto;
    height: 100px;
}
.article-segment2{width:54%; margin-right:1%;}
@keyframes shimmer {
    0% {
        background-position: -450px 0;
    }

    100% {
        background-position: 450px 0;
    }
}

.nowrap-caption {
    white-space: nowrap;
}

.body-splash {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #f3ead8;
    background-image:
        radial-gradient(ellipse at center, rgba(255, 250, 240, 0.78), rgba(243, 234, 216, 0.9)),
        linear-gradient(180deg, rgba(243, 234, 216, 0.78), rgba(243, 234, 216, 0.9)),
        url('/img/parallax/parallax-14.jpg');
    background-size: cover;
    background-position: center top;
}

.container-splash {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0;
    padding: 48px 16px 64px;
    text-align: center;
}

.container-splash img {
    width: min(520px, 88vw);
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(61, 42, 8, 0.12));
}

.splash-lead {
    margin: -8px 0 0;
    color: #5a3c00;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.button-splash {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 8px 14px;
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid #e0cf9f;
    border-radius: 999px;
    color: #3d2a08;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(90, 60, 0, 0.06);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button-splash:hover {
    background: #16382c;
    border-color: #16382c;
    color: #fffdf8;
    text-decoration: none;
    transform: translateY(-1px);
}

.links-splash {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(640px, 92vw);
    direction: rtl;
}

.links-splash a:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

.thumb-info-wrapper .img-fluid {
    height: 230px;
}

@media (max-width: 768px) {
    .links-splash {
        width: min(440px, 94vw);
        gap: 10px;
    }

    .button-splash {
        min-height: 42px;
        font-size: 14px;
    }

    .owl-carousel .owl-item img, .img {
        width: 180px;
        left: 0;
        position: relative;
    }

    .owl-item a img {
        margin-left: 3rem;
    }

    .img {
        left: 15%;
    }

    .thumb-info-wrapper {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: space-around;
    }

    section#search-domain:after {
        display: none;
    }

    .text-xs-center {
        text-align: center !important;
    }

    .articles #content {
        padding: 3rem !important;
        text-align: center !important;
    }
}

@media (max-width: 380px) {
    .owl-item a img {
        margin-left: 2rem;
    }
    .article-segment{display:block !important;}
    .article-segment1{width:100%;}
    .article-segment1 img{width:100%;height: 200px}
    .article-segment2{width:100%;margin-top:10px;text-align:center}
    .articles{text-align:center}
}

@media (min-width: 768px) {
    section#search-domain {
        height: auto;
    }

    section#search-domain:after {
        position: relative;
        display: flex;
        bottom: -55px;
    }
}

.dropdown-submenu .dropdown-menu {
    overflow-y: auto;
}

.fix-right-position {
    margin-right: auto !important;
    width: auto !important;
}

.fix-left-position {
    margin-left: auto !important;
    width: auto !important;
}

.dropdown-submenu .dropdown-item {
    white-space: break-spaces;
    line-height: 25px;
}

/* Scroll Css */
/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #17a2b8;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #13687a;
}

.width-per-100 {
    width: 100%;
}

ul.dropdown-menu {
    height: auto !important;
}

.dropdown-submenu .dropdown-menu {
    overflow-y: inherit !important;
}

.h-5 {
    height: 50px;
}

.w-5 {
    width: 50px;
}

div#pg0 {
    display: none !important;
}

.arabic-text.mb-2 {
    font-size: 13px;
    line-height: 25px;
}

.no-book {
    background: #eee;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.highlight-permanent {
    background-color: #ffd700;
    color: #000;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.divider.pattern, hr.pattern {
    background: #eee;
    margin: 0;
}

[dir="rtl"] .owl-carousel .owl-nav {
    /* اطمینان از اینکه جهت دکمه‌ها هم rtl باشد */
    direction: ltr;
}

[dir="rtl"] .owl-carousel .owl-nav .owl-prev {
    /* در حالت rtl دکمه قبلی باید سمت راست باشد */
    right: -25px; /* مقدار را با توجه به قالب خود تنظیم کنید */
    left: auto;
}

[dir="rtl"] .owl-carousel .owl-nav .owl-next {
    /* در حالت rtl دکمه بعدی باید سمت چپ باشد */
    left: -25px; /* مقدار را با توجه به قالب خود تنظیم کنید */
    right: auto;
}

.owl-carousel:not(.nav-arrows-1):not(.show-nav-title) .owl-nav button[class*="owl-"]:hover, .owl-carousel:not(.nav-arrows-1):not(.show-nav-title) .owl-nav button[class*="owl-"].hover {
    background-color: #00bcd496;
}

.owl-carousel .owl-nav button.owl-prev:before, .owl-carousel .owl-nav button.owl-next:before {
    font-size: .7rem;
    color: #fff;
    line-height: 33px;
}

.owl-carousel.carousel-center-active-item-2 .owl-item > div {
    padding: 1rem;
}

.owl-carousel.carousel-center-active-item-2 .owl-item.active > div {
    background: #00BCD4;
}

.owl-carousel:not(.nav-arrows-1):not(.show-nav-title) .owl-nav button[class*="owl-"] {
    background-color: #00BCD4;
    border-color: #03A9F4;
}

.owl-carousel.carousel-center-active-item-2 .owl-item > div {
    opacity: 0.1;
}

.owl-carousel.carousel-center-active-item-2 .owl-item.active > div {
    opacity: 1;
}

.dropdown-menu-columns {
    min-width: 400px !important;
    column-count: 2;
    column-gap: 20px;
}

.dropdown-menu-columns > li {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
}

.articles {
    text-align: justify !important;
}

@media (max-width: 768px) {
    .dropdown-menu-columns {
        column-count: 1;
        min-width: auto !important;
    }
}

#header .header-body {
    background: #fffdf8 !important;
    border-bottom: 3px solid #b8923a !important;
    box-shadow: 0 8px 18px rgba(22, 56, 44, 0.06);
}

#header.header-effect-shrink .header-container {
    min-height: 58px;
}

#header .header-logo img {
    max-height: 42px;
}

#header .header-btn-collapse-nav {
    background: #16382c !important;
    color: #fffdf8 !important;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 0;
    border-radius: 10px;
    line-height: 1 !important;
}

@media (max-width: 991px) {
    #header .header-btn-collapse-nav {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    #header .header-btn-collapse-nav i {
        font-size: 16px;
        line-height: 1;
        color: #fffdf8 !important;
    }
}

#header .header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

#header .header-tools .nav {
    margin: 0;
}

#header .header-tools .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16382c !important;
    background: #f3eee4;
    border-radius: 999px;
    padding: 4px 10px !important;
    font-size: 13px;
    line-height: 1.4;
}

#header .header-tools .dropdown-menu {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(22, 56, 44, 0.12);
    padding: 6px;
    min-width: 168px;
    max-height: 280px;
    overflow-y: auto;
}

#header .header-tools .dropdown-item {
    border-radius: 8px;
    color: #16382c;
}

#header .header-tools .dropdown-item:hover {
    background: #f3eee4;
    color: #16382c;
}

#header .header-social-icons a {
    color: #16382c !important;
}

@media (min-width: 992px) {
    #header .header-nav,
    #header .header-nav-main nav > ul > li > a {
        min-height: 0 !important;
    }

    #header .header-nav-main nav > ul > li > a {
        color: #16382c !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Beat the theme rule that forces a transparent background on header-nav-line links. */
    #header .header-nav.header-nav-line .header-nav-main nav > ul > li.open > a,
    #header .header-nav.header-nav-line .header-nav-main nav > ul > li:hover > a,
    #header .header-nav.header-nav-line .header-nav-main nav > ul > li > a:focus,
    #header .header-nav.header-nav-links .header-nav-main nav > ul > li.open > a,
    #header .header-nav.header-nav-links .header-nav-main nav > ul > li:hover > a,
    #header .header-nav.header-nav-links .header-nav-main nav > ul > li > a:focus,
    #header .header-nav.header-nav-line .header-nav-main nav > ul:not(:hover) > li > a.active,
    #header .header-nav.header-nav-links .header-nav-main nav > ul:not(:hover) > li > a.active {
        background: #16382c !important;
        color: #fffdf8 !important;
    }

    #header .header-nav-main nav > ul > li.dropdown .dropdown-menu {
        border-top-color: #b8923a !important;
    }

    #header .header-nav.header-nav-line nav > ul > li > a:before,
    #header .header-nav.header-nav-line nav > ul > li > a.active:before {
        background: #b8923a !important;
    }
}

@media (max-width: 991px) {
    #header .header-nav-main.header-nav-main-square nav > ul > li > a,
    #header .header-nav-main.header-nav-main-square nav > ul > li > a:hover,
    #header .header-nav-main.header-nav-main-square nav > ul > li > a:focus {
        color: #16382c !important;
        background: transparent !important;
    }

    #header .header-nav-main.header-nav-main-square nav > ul > li > a.active,
    #header .header-nav-main.header-nav-main-square nav > ul > li > a.active:hover,
    #header .header-nav-main.header-nav-main-square nav > ul > li > a.active:focus {
        background: #16382c !important;
        color: #fffdf8 !important;
        border-radius: 10px !important;
    }
}

.c-download-app-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: block;
    margin: 0;
    padding: 14px 16px;
    background: #16382c;
    box-shadow: 0 -10px 28px rgba(12, 32, 26, 0.22);
}

body:has(.c-download-app-banner) {
    padding-bottom: 92px;
}

body:has(.c-download-app-banner) .scroll-to-top {
    bottom: 92px;
}

html.pwa-banner-dismissed .c-download-app-banner,
.c-download-app-banner[hidden] {
    display: none !important;
}

html.pwa-banner-dismissed body:has(.c-download-app-banner) {
    padding-bottom: 0;
}

html.pwa-banner-dismissed body:has(.c-download-app-banner) .scroll-to-top {
    bottom: 0;
}

.pwa-banner-close {
    position: absolute;
    top: 10px;
    inset-inline-end: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.16);
    color: #fffdf8;
    font-size: 24px;
    line-height: 32px;
    cursor: pointer;
}

@media (display-mode: standalone) {
    .c-download-app-banner {
        display: none !important;
    }
}

.ic-pwa img {
    width: 22px;
    height: 22px;
    margin-inline-end: 8px;
}

.ic-pwa .container {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.ic-pwa .font-weight-normal,
.ic-pwa .pwa-ios-hint {
    color: #fffdf8;
    text-align: start;
    line-height: 1.7;
}

.ic-pwa .pwa-ios-hint {
    margin-top: 8px;
    font-size: 14px;
}

.ic-pwa .call-to-action-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .ic-pwa .font-weight-normal,
    .ic-pwa .pwa-ios-hint {
        text-align: center;
    }

    .ic-pwa .font-weight-normal {
        margin-bottom: 16px !important;
    }

    .ic-pwa .call-to-action-btn {
        text-align: center;
    }

    body:has(.c-download-app-banner) {
        padding-bottom: 148px;
    }

    body:has(.c-download-app-banner) .scroll-to-top {
        bottom: 148px;
    }
}
