﻿/* Bold JS-injected links in highlight-side boxes */
#highlight-side-1-list .text-decoration-none,
#highlight-side-2-list .text-decoration-none,
.card-li-style-bank .text-decoration-none {
    font-weight: 700;
}
@font-face {
    font-family: "IRANSans";
    src: url("/static/fonts/iransans_light.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

hr {
    color: #a3a3a3;
    background-color: #a3a3a3;
    height: 1px; /* ضخامت */
    border: none;
}

*:not(i) {
    font-family: 'IRANSans', 'BNazanin', Arial, sans-serif !important;
}

/* آیکون‌های بوت‌استرپ (bootstrap icons) */
.bi {
    font-family: "bootstrap-icons" !important;
}

a {
    font-family: 'IRANSans', 'BNazanin', Arial, sans-serif;
    text-decoration: none !important;
}

ul, li {
    list-style: none;
    font-family: 'IRANSans', 'BNazanin', Arial, sans-serif !important;
}

.ml-15 {
    margin-left: 15px;
}

.flex {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.flex-wrap-1 {
    flex-wrap: wrap;
}

.flex-h {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
}

.flex-h-c {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.flex-h-s {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.flex-h-t {
    display: flex !important;
    align-items: unset;
    justify-content: flex-start;
}

.flex-v-s {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.flex-v {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.flex-v-c {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen {
    width: 100%;
    position: fixed;
    top: 0;
    height: 100%;
}

.full-width {
    width: 100%;
}

.full-height {
    height: 100%;
}

.full-width-height {
    width: 100%;
    height: 100%;
}

.half-width {
    width: 50%;
}

.float-right {
    float: right !important;
}

.lobibox-notify-wrapper.right {
    z-index: 1000000;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.pointer {
    cursor: pointer !important;
}

.customcheckbox {
    width: 35px;
    height: 35px;
    vertical-align: middle;
    cursor: pointer;
}

.fullname {
    color: #daddb7;
    border: 2px solid #daddb7;
    padding: 6px;
    border-radius: 10px;
}

.drtl {
    direction: rtl
}

.bg-news-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #102039 100%);
}

.logo {
    height: 60px; /* ارتفاع ثابت برای دسکتاپ */
    width: auto; /* عرض خودکار برای حفظ نسبت تصویر */
}

.navbar-expand-lg .navbar-nav {
    font-size: 16px;
    font-weight: bold;
}

    .navbar-expand-lg .navbar-nav .nav-item:hover, .navbar-expand-lg .navbar-nav a:hover {
        color: red !important;
    }

.navbar-collapse {
    background: linear-gradient(135deg, #1e3a8a 0%, #102039 100%);
}
/* تعریف انیمیشن */
@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* اعمال به navbar وقتی باز شد */
.navbar-collapse {
    animation: slideInRight 0.3s ease forwards;
    text-align: right; /* آیتم‌ها راست‌چین شوند */
}

.align-items-center {
    justify-content: center; /* وسط‌چین افقی */
    align-items: center; /* وسط‌چین عمودی */
}

.newsonlineSubtitle {
    display: flex; /* flexbox برای وسط کردن */
    align-items: center; /* وسط عمودی */
    position: relative;
    height: 50px;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 4px;
    overflow: hidden;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 45s linear infinite;
    font-size: 16px;
    color: #111;
}

@keyframes scroll {
    0% {
        transform: translateX(30%); /* 🚀 از همون ابتدای راست شروع بشه */
    }

    100% {
        transform: translateX(-10%);
    }
}

.new-tricker {
    position: absolute;
    right: 0;
    top: -50%;
    transform: translateY(-10%);
    font-size: 24px;
    color: rgb(41, 128, 185);
    opacity: 1;
    z-index: 1;
    width: 5%;
}

.container {
    width: 100%;
    max-width: 1600px;
    padding: 0 15px;
    margin: 0 auto;
}

.bg-info {
    background: linear-gradient(135deg, #1e3a8a 0%, #102039 100%) !important;
    color: #fff
}

.card ul {
    padding: 0 0;
}

    .card ul li:nth-child(n+6) {
        display: none;
    }

.card .subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ⬅️ حداکثر 2 خط */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 500
}

.card-li-style-bank {
    display: block !important;
    margin-bottom: 10px;
    height: auto;
    width: 100%;
    padding: 10px;
    cursor: pointer;
}

    .card-li-style-bank:hover {
        box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 4px;
    }



.highlight-side-news-image {
    width: 65px;
    height: 65px;
    object-fit: cover;
    margin-left: 10px;
    border-radius: 35px;
    transition: transform 0.3s;
}

.mid-ads {
    margin: 10px 0;
}

.news-item .curve::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0,20 L0,0 C25,15 75,15 100,0 L100,20 Z'/%3E%3C/svg%3E);*/
}

.news-item {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 10px;
    background-color: #333;
    color: #fff;
}

.image-container {
    width: 100%;
    height: 100%;
    /*overflow: hidden;*/
}

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.5;
    }

.text-container {
    transform: translate(-50%, -50%);
    text-align: center;
    color: #111;
}

    .text-container h3 {
        margin: 0;
        font-size: 24px;
    }

.hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hover-text {
    position: relative;
    z-index: 1;
    text-align: right;
    overflow-y: scroll;
    padding: 25px;
    border-radius: 10px;
}

    .hover-text strong {
        font-size: 16px !important;
        text-align: center;
        margin-bottom: 20px;
    }

.category-latest-news h4 {
    margin: 0 0 10px;
    font-size: 18px;
    padding: 10px;
    padding-top: 25px;
}

.latest-news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    margin-top: 10px;
}

    .latest-news-list li {
        margin-bottom: 5px;
    }

    .latest-news-list a {
        color: #fff;
        text-decoration: none;
    }

        .latest-news-list a:hover {
            text-decoration: underline;
        }

.hover-link {
    color: #fff;
    text-decoration: none !important;
    font-weight: bold;
}

    .hover-link:hover {
        text-decoration: underline;
    }

.news-item:hover .hover-content {
    display: flex;
}

.li-newsBlog {
    font-size: 12px;
    background: color(srgb 0.5 0.5 0.5 / 0.74);
    padding: 5px 2px;
    border-radius: 5px;
    font-weight: 500;
}

#news-card {
    position: relative;
    border-radius: 12px;
    /*    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
*/ overflow: hidden;
    font-family: sans-serif;
    /*    background: #fff;
*/ border: none;
}

    #news-card img {
        width: 100%;
        display: block;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-radius: 12px;
    }

    #news-card .card-footer {
        padding: 10px;
        text-align: center;
        font-weight: bold;
        background: #fff;
        position: relative;
        margin-bottom: 10px;
    }

    #news-card .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.8);
        color: #fff;
        padding: 15px;
        opacity: 0;
        transition: opacity 0.3s ease;
        overflow-y: auto;
    }

        #news-card .overlay h3 {
            font-size: 14px;
            margin-bottom: 10px;
        }

        #news-card .overlay ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

            #news-card .overlay ul li {
                font-size: 12px;
                margin-bottom: 8px;
                border-bottom: 1px solid rgba(255,255,255,0.1);
                padding-bottom: 5px;
            }

                #news-card .overlay ul li a {
                    color: white;
                    background: gray;
                    padding: 2px;
                    border-radius: 4px;
                }

    /* Hover effect */
    #news-card:hover .overlay {
        opacity: 1;
    }

.btn-footer-blog strong {
    background: red;
    padding: 4px;
    border-radius: 5px;
    color: white;
    font-size: 14px;
}

.title-span {
    position: relative;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    display: inline-block;
    padding-bottom: 6px;
}

    .title-span::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 60%;
        height: 3px;
        background: #4f9cf9; /* رنگ آبی زیر متن */
        border-radius: 2px;
    }

.footer-logo {
    margin-top: 30px;
}

.social-media {
    padding: 10px 16px;
    border-radius: 50%;
    background: gray;
    font-size: 20px;
    margin-left: 10px;
}

    .social-media a {
        color: white;
    }

.footer-links a {
    margin-top: 5px;
    font-size: 14px;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    position: relative;
    padding-right: 15px;
}

    .footer-links a:hover {
        color: white;
    }

.btn-news-email {
    position: absolute;
    top: 0;
    z-index: 1;
    left: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 0.65rem
}

.sidebar-item.red {
    /*border-left: 5px solid #ff0000;*/
}

.sidebar-item.right-label.red {
    /*    border-right: 5px solid #ff0000;
    border-left: 1px;
*/
}

.sidebar-item.green {
    /*border-left: 5px solid #00cc00;*/
}

.sidebar-item img {
    width: 300px;
    height: 100px;
}

.sidebar-item {
    margin-top: 15px;
    background-color: #fff;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
}

    .sidebar-item ul li {
        padding: 50px 0;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        gap: 5px;
    }




@media (max-width: 768px) {
    .logo {
        height: 40px; /* کوچکتر روی موبایل */
    }

    .navbar-expand-lg .navbar-nav a {
        color: white
    }

    .scrolling-text {
        animation: scroll 5s linear infinite;
    }

    .add-banner-container img {
        height: 40px;
    }

    .d-flex.Serach {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .logo {
        height: 67px; /* کوچکتر روی موبایل */
    }

    .navbar-expand-lg .navbar-nav a {
        color: white
    }

    li.Serach {
        display: none !important;
    }
}

.navbar-collapse.collapse.show {
    z-index: 3;
}
/*///////*/

.swiper-slide {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 300px; /* ارتفاع هر اسلاید */
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.swiper-slide:hover .slide-image {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.slide-caption {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 2;
    color: #fff;
    text-align: right;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

    .slide-caption .title {
        font-weight: 700;
        font-size: 1.2rem;
    }

    .slide-caption .desc {
        font-size: 0.9rem;
    }

.swiper-slide {
    position: relative;
}

.swiper-wrapper {
    margin-bottom: 40px;
}

footer {
    margin-top: 20px;
}

.swiper-slide .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px;
    border-radius: 12px 12px 12px 12px;
    border: 3px solid #102039;
    height: auto;
    max-height: 240px;
}

.video-section-title {
    background: #102039;
    color: white;
    padding: 7px 10px;
    margin-bottom: 9px;
    border-radius: 15px;
}

.swiper-slide {
    position: relative;
}

    .swiper-slide img {
        display: block;
    }

    .swiper-slide .overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.6);
        color: #fff;
        padding: 10px;
        border-radius: 0 0 12px 12px;
    }

.ticker-item {
    color: #000000;
    font-size: 14px;
    line-height: 44px;
    padding-inline: 12px;
    border-inline-end: 1px solid rgba(255,255,255,.15);
}

    .ticker-item:last-child {
        border: 0;
    }

/* احتیاط برای اسکرول افقی کل صفحه */
html, body {
    overflow-x: hidden;
}

#news-card img {
    width: 100%;
    height: 200px;
}

.card-curve {
    position: absolute;
    top: -27px;
    left: 0;
    width: 100%;
    height: 61%;
    background-color: transparent;
    z-index: 1;
    overflow: hidden;
}

    .card-curve::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0,20 L0,0 C25,15 75,15 100,0 L100,20 Z'/%3E%3C/svg%3E");
    }

#news-card .card-style {
    border: 1px solid #c1c1c1;
    margin-bottom: 10px;
    border-radius: 15px;
}

.swiper-rtl .swiper-button-next, .swiper-rtl .swiper-button-prev {
    right: var(--swiper-navigation-sides-offset, 10px);
    left: auto;
    background: #8f8080;
    padding: 24px;
    top: 75px;
    color: aqua;
    border-radius: 15px;
}

    .swiper-rtl .swiper-button-next::after, .swiper-rtl .swiper-button-prev::after {
        font-size: 22px !important;
    }

.swiper-horizontal > .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: -10px;
}



/*News list*/
.top-list {
    padding: 30px 15px 15px 15px;
}

    .top-list h1 {
        font-size: 24px;
    }

.news-list {
    margin-top: 30px;
}

.news-list-card {
    transition: all 0.3s ease; /* انیمیشن نرم */
    margin-bottom: 15px;
}

    .news-list-card:hover {
        transform: translateY(-5px); /* حرکت ۵ پیکسل به بالا */
    }

        .news-list-card:hover .details-code-list {
            -webkit-box-shadow: 5px 7px 15px 5px rgba(0,0,0,0.34);
            box-shadow: 5px 7px 15px 5px rgba(0,0,0,0.34);
        }

    .news-list-card .details-code-list {
        border: 1px solid #ddd;
        border-top: none;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        padding: 10px;
        padding-bottom: 30px;
        padding-top: 0;
        -webkit-box-shadow: 5px 7px 15px 5px rgba(0,0,0,0.19);
        box-shadow: 5px 7px 15px 5px rgba(0,0,0,0.19);
    }



.img-list img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    width: 100%;
    height: 250px;
}

.news-code-list {
    font-size: 14px;
    color: #666
}

    .news-code-list .code-list {
        margin: 0 3px;
    }

.detail-list {
    text-align: center;
}

    .detail-list .subtitle {
        text-align: justify;
        display: -webkit-box;
        -webkit-line-clamp: 4; /* حداکثر ۴ خط */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
/*News Details*/
.news-details h1 {
    font-size: 28px;
}

.details-img img {
    width: 100%;
    height: 333px;
    border-radius: 8px;
}

.details-category {
    color: red
}

.short-subtitle {
    padding: 0 10px;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* حداکثر ۴ خط */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.long-details {
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
    direction: rtl;
    margin-bottom: 20px;
}

.box-news-list {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

    .box-news-list img {
        width: 50px;
        height: 50px;
        border-radius: 5px;
        margin-left: 10px;
        object-fit: cover;
        margin-left: 3px;
    }

    .box-news-list .subtitle {
        /*text-align: justify;*/
        display: -webkit-box;
        -webkit-line-clamp: 1; /* حداکثر ۴ خط */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.details-share {
    cursor: pointer;
    font-size: 16px;
    color: #0A131C;
    padding: 10px;
    background-color: #f4f4f4;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .details-share:hover {
        background-color: #e0e0e0; /* رنگ زمینه تغییر کنه (اختیاری) */
        transform: scale(1.05); /* کمی زوم این بشه */
    }

.commenting-box h3 {
    position: relative;
    display: inline-block;
}

    .commenting-box h3::after {
        content: "";
        position: absolute;
        right: 12px;
        bottom: -4px; /* فاصله خط از متن */
        width: 150px;
        height: 2px;
        background-color: #4f9cf9;
    }

.send-comment-box {
    background: #f9f9f9;
    padding: 15px 40px;
}

.commenting-box h5 {
    position: relative;
    display: inline-block;
}

    .commenting-box h5::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -4px; /* فاصله خط از متن */
        width: 150px;
        height: 2px;
        background-color: #4f9cf9;
    }
