
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

@font-face {
    font-family: "vazir";
    src: url(assets/font/Vazir.ttf);
    font-display: swap;
}

.bold {
    font-weight: bold;
}

html {
    scroll-behavior: smooth !important;
}

body {
    margin: 0;
    line-height: 1.6;
    direction: rtl;
}

h1 {
    margin: 0;
}

h1:focus-within{
    outline: none;
}

ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

img,
iframe {
    vertical-align: middle;
}
figure{
    margin:0;
}

body {
    font-family: "vazir", "Noto Sans Arabic", tahoma;
}

p[data-f-id="pbf"] {
    display: none;
}

input,
textarea,
button,
select {
    font-family: "Vazir";
}

p:has(img):not(:has(:not(img))) {
    text-align: center;
}

#article-body a {
    color: #314351;
    font-weight: 700;
    border-bottom: 1px solid #314351;
    -webkit-transition: color ease-in-out 0.125s;
    -o-transition: color ease-in-out 0.125s;
    transition: color ease-in-out 0.125s;
}

    #article-body a:hover {
        color: #304ddb;
        border-color: #304ddb;
        -webkit-transition: color ease-in-out 0.125s;
        -o-transition: color ease-in-out 0.125s;
        transition: color ease-in-out 0.125s;
    }

#article-body p {
    margin: 0 0 24px 0;
}

    #article-body p:last-child {
        margin-bottom: 57px;
    }

#article-body h2 {
    margin: 57px 0 18px 0;
    color: #131b24;
}

#article-body h3 {
    margin: 38px 0 13px 0;
}

#article-body img {
    max-width: 100% !important;
    margin: 40px 0;
}

#article-body ul {
    list-style: disc;
    margin: revert;
    padding: revert;
}


#article-body table{
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 1em 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    #article-body  th,
    #article-body td {
        border: 1px solid #ddd;
        padding: 10px 15px;
        text-align: right;
        vertical-align: middle;
    }

#article-body  thead {
    background-color: #0078d7;
    color: white;
}

#article-body tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#article-body tbody tr:hover {
    background-color: #e6f0ff;
}

#article-body caption {
    caption-side: bottom;
    text-align: center;
    padding: 8px;
    font-style: italic;
    color: #666;
}



a {
    text-decoration: none;
}

ul span {
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.fsb {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.container {
    margin: 0 auto;
    padding: 0 12px;
    max-width: 1650px;
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}

.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.title-heading {
    font-size: 36px;
    color: #131b24;
    margin-bottom: 28px;
}

.sub-heading {
    font-size: 18px;
    max-width: 700px;
    margin: 0 0 58px 0px;
    color: #314351;
}

.page-right {
    width: 73%;
    margin-top: 75px;
}

.page-left {
    width: 23%;
    margin-top: 75px;
}

aside {
    margin-bottom: 30px;
    border-radius: 5px;
    background-color: #f2f9fc;
}

    aside ul {
        padding: 20px 15px 10px 10px;
        border: solid 1px #e4e4e4;
        border-bottom-right-radius: 5px;
        border-bottom-left-radius: 5px;
    }

.aside-head {
    background-color: #304ddb;
    color: white;
    padding: 10px 15px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

.a-item {
    font-size: 13px;
    margin-bottom: 12px;
    cursor: pointer;
    color: #131b24;
}

    .a-item a {
        color: #131b24;
    }

.news-area-head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    border-bottom: 1px solid #f1f3f5;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

    .news-area-head div {
        font-size: 24px;
        color: #131b24;
        font-weight: bold;
    }

    .news-area-head a {
        color: rgb(48, 77, 219);
        font-weight: bold;
    }

.row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.article-col {
    width: 32%;
    margin-bottom: 25px;
}

.ArticleItemThumbnail {
    display: block;
    height: 265px;
    margin-bottom: 20px;
}

    .ArticleItemThumbnail img {
        border-radius: 5px;
        -o-object-fit: cover;
        object-fit: cover;
    }

.ArticleItemMeta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    color: #556575;
    font-size: 13px;
}

.dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: gray;
    margin: 0 5px;
}

.ArticleItemTitle {
    line-height: 30px;
    height: 59px;
    overflow: hidden;
    margin-top: 6px;
}

.ArticleItemTitleLink {
    font-size: 18px;
    color: #131b24;
}

.ArticleItemDetails p {
    font-size: 14px;
    color: #556575;
}

.pagination {
    margin-top: 25px;
}

.pagination-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    direction: ltr;
}

.pagination-item {
    margin: 0 12px 0 0;
    width: 56px;
    height: 56px;
    border: solid 1px #304ddb;
    border-radius: 7px;
}

.dots {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.pagination-item:hover {
    background-color: #eaeaea;
}

.pagination-item a {
    height: 100%;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #304ddb;
    font-weight: bold;
}

.pagination-item svg {
    width: 24px;
    height: auto auto;
}

.pagination-item-active {
    background-color: #304ddb;
}

    .pagination-item-active:hover {
        background-color: #304ddb;
    }

    .pagination-item-active a {
        color: white;
    }

@media (max-width: 767px) {
    .nomobile {
        display: none;
    }

    #article-body p {
        text-align: justify;
    }

    #article-body img {
        height: auto !important;
        -o-object-fit: cover !important;
        object-fit: cover !important;
    }
}

.custom-error-message {
    padding: 1rem;
    background-color: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.4s ease-in-out;
    margin: 1rem auto 150px auto;
    width: 75%;
    justify-content: center
}

.custom-error-icon {
    font-size: 1.5rem;
    line-height: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}