:root {
    --transition-effect: all .3s ease-in-out;
}

/*=== container ===*/
.local-container {
    margin-block: 20px;
}

.local-container .section_header {
    margin-bottom: 15px;
}

/*=== elements ===*/
.form-control:focus {
    border-color: var(--mainOrangeColor);
    box-shadow: none;
}

.form-control {
    font: 14px / 18px IRANSansFaNum-regular;
    padding: 10px 20px;
    display: block;
    width: 100%;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.butt {
    border: 1px solid var(--hoverTextColor);
    padding: 8px 12px;
    color: var(--hoverTextColor);
    border-radius: 5px;
    background-color: white;
    font: 12px IRANSansFaNum-regular !important;
}

.butt:hover {
    background-color: var(--hoverTextColor);
    color: white;
    transition: var(--transition-effect);
}

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

.alert-danger {
    --bs-alert-color: var(--mainRedColor);
}

input.text {
    font-weight: 400;
    color: #2d2d2d;
    font: 12.5px IRANSansFaNum-regular;
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #2d2d2d;
}

select.text {
    font-weight: 400;
    color: #2d2d2d;
    font: 12px IRANSansFaNum-regular;
    padding: 5px;
    border-radius: 5px;
    background-color: #fff;
}

select.form-control-sm {
    background-color: #fff;
    border: 1px solid var(--hoverTextColor);
}

.form-control-sm {
    min-height: calc(1.5em + (.5rem + 2px));
    padding: .25rem .5rem;
    font-size: .875rem;
    border-radius: .2rem;
}

/*=== contacts page ===*/
#contacts .form-group {
    margin-bottom: 10px;
}


/*=== archive page ===*/
.archive_form, .search_form_c {
    border: 1px solid #cfcfcf;
    background: #e9e9e9;
    border-radius: 10px;
}

.archive_form div, .search_form_c div {
    padding: 3px;
}

.asearch_elements {
    display: flex;
    gap: 5px;
    align-items: center;
}

.frm_label {
    color: #000;
    font: 13px IRANSansFaNum-regular;
    margin-right: 5px;
    margin-left: 5px;
}

#archive select.text, #search select.text, #archive input.text, #search input.text {
    width: 100%;
    direction: rtl;
}

#archive .frm_label, #search .frm_label {
    text-wrap: nowrap;
}

#archive #pager {
    margin: 10px !important;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

#pager {
    font: 13px IRANSansFaNum-regular;
    font-style: normal;
    line-height: normal;
    font-weight: 400;
    color: #000;
    margin: 5px 0 3px;
    display: flex;
}

#pager a {
    padding: 5px;
    background-color: #fff;
    font: 12px IRANSansFaNum-regular;
    font-weight: 600;
    color: var(--hoverTextColor);
    text-decoration: none;
    border: 1px solid var(--hoverTextColor);
    border-radius: 5px;
}

#pager a:hover {
    transition: var(--transition-effect);
    color: white;
    background-color: var(--hoverTextColor);
}

.listNews a {
    text-align: right;
}

.list_special_news {
    margin-top: 20px;
}

/*=== about page ===*/
.about_content {
    font: 13px / 30px IRANSansFaNum-regular;
}

#contacts {
    font: 13px / 30px IRANSansFaNum-regular;
}
#search .searchNav tbody tr {
    display: flex;
    flex-wrap: wrap;
}
#search .searchNav tbody tr td {
    padding: 10px;
    display: flex;
}

/*=== tags page ===*/
div.pagination {
    padding: 3px;
    margin: 3px;
    direction: ltr;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

div.pagination span.current {
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--mainOrangeColor);
    font-weight: 700;
    background-color: var(--mainOrangeColor);
    color: #fff;
    border-radius: 5px;
}

div.pagination a {
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--mainOrangeColor);
    text-decoration: none;
    color: #000;
    border-radius: 5px;
}

div.pagination a:hover {
    background-color: var(--mainOrangeColor);
    border: 1px solid var(--mainOrangeColor);
    color: #fff;
}

#form .btn-primary {
    margin-bottom: 10px;
}

#polls .l_box .section_header{
    display: none;
}

.optionsSubscribe {
    display: flex;
    gap: 10px;
}

#activate .newsletter_message {
    padding-block: 5px;
}
/*=== responsive ===*/
@media only screen and (min-width: 992px) {
    .col_local_right {
        padding-left: 10px;
    }

    .col_local_left {
        padding-right: 10px;
    }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .inside_left_one {
        padding-left: 7px;
    }

    .inside_left_two {
        padding-right: 7px;
    }

    .col_local_left {
        margin-top: 10px;
    }
}
@media (max-width: 575px) {
    .container {
        padding-inline: 12px !important;
    }
    .bordered-sec,
    .bordered-sec .section_header {
        margin-bottom: 15px;
    }
}

.book_archive_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 22px;
}

.book_archive {
    background: #F2F2F2;
    padding: 10px;
    border-radius: 0 10px;
    display: flex;
    gap: 10px;
    --image_size: 99px;
}

.book_archive > a {
    width: var(--image_size);
    height: fit-content;
    aspect-ratio: 1 / 1.5;
    border: 1px solid var(--mainOrangeColor);
    background-color: grey;
    border-radius: 0 10px;
}

.book_archive-text {
    width: calc(100% - 10px - var(--image_size));
    display: flex;
    flex-direction: column;
}

.book_archive-text .Htags {
    color: var(--mainTextColor);
    font: 16px/27px IRANSansFaNum-bold;
}

.book_archive-text .Htags:hover, .book_archive > a:hover + .book_archive-text .Htags {
    color: var(--hoverTextColor);
}

.book_archive-subtitle:not(:empty) {
    color: var(--mainTextColor);
    font: 14px/24px IRANSansFaNum-regular;
    margin-top: 3px;
}

.book_archive-pdate {
    width: fit-content;
    color: var(--mainTextColor);
    font: 12px/20px IRANSansFaNum-light;
    background: white url('/client/themes/fa/main/img/pdate-icon.svg') calc(100% - 3.86px) center no-repeat;
    padding-block: 5px;
    padding-inline: 15px 5px;
    border-radius: 0 5px;
    margin-top: auto;
    margin-inline-start: auto;
}

.book_archive-pdate span {
    margin-inline-start: 6px;
    position: relative;
}

.book_archive-pdate span::before {
    content: '';
    width: 1px;
    height: 10px;
    background: var(--mainTextColor);
    position: absolute;
    top: calc(50% - 5px);
    inset-inline-start: -3px;
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .book_archive_list {
        gap: 16px 18px;
    }

    .book_archive-text .Htags {
        font-size: 14px;
        line-height: 24px;
    }

    .book_archive-subtitle:not(:empty) {
        font-size: 12px;
        line-height: 22px;
    }

    .book_archive-pdate {
        font-size: 11px;
        line-height: 19px;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .book_archive_list {
        gap: 12px 14px;
    }

    .book_archive-text .Htags {
        font-size: 13px;
        line-height: 23px;
    }

    .book_archive-subtitle:not(:empty) {
        font-size: 11px;
        line-height: 19px;
    }

    .book_archive-pdate {
        font-size: 10px;
        line-height: 18px;
    }
}

@media screen and (max-width: 991px) {
    #archive .cat_list_page,
    .cat_list_pager {
        margin-bottom: 20px;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .book_archive_list {
        gap: 10px 12px;
    }

    .book_archive-text .Htags {
        font-size: 12px;
        line-height: 22px;
    }

    .book_archive-subtitle:not(:empty) {
        font-size: 10px;
        line-height: 18px;
    }

    .book_archive-pdate {
        font-size: 10px;
        line-height: 18px;
    }
}

@media screen and (max-width: 767px) {
    .book_archive_list {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 510px) and (max-width: 767px) {
    .book_archive_list {
        gap: 16px 18px;
    }

    .book_archive-text .Htags {
        font-size: 14px;
        line-height: 24px;
    }

    .book_archive-subtitle:not(:empty) {
        font-size: 12px;
        line-height: 22px;
    }

    .book_archive-pdate {
        font-size: 11px;
        line-height: 19px;
    }
}

@media screen and (min-width: 410px) and (max-width: 509px) {
    .book_archive_list {
        gap: 12px 14px;
    }

    .book_archive-text .Htags {
        font-size: 13px;
        line-height: 23px;
    }

    .book_archive-subtitle:not(:empty) {
        font-size: 11px;
        line-height: 19px;
    }

    .book_archive-pdate {
        font-size: 10px;
        line-height: 18px;
    }
}

@media screen and (max-width: 575px) {
    .special_news {
        --image_size: 126px;
    }
}

@media screen and (max-width: 409px) {
    .book_archive_list {
        gap: 10px 12px;
    }

    .book_archive-text .Htags {
        font-size: 12px;
        line-height: 22px;
    }

    .book_archive-subtitle:not(:empty) {
        font-size: 10px;
        line-height: 18px;
        -webkit-line-clamp: 5;
    }

    .book_archive-pdate {
        font-size: 10px;
        line-height: 18px;
    }
}

body#archive footer {
    margin-top: 20px;
}

