:root {
    --white: #fff;
    /* رنگ بک گراند */
    --blue: #00008B;
    /* رنگ اصلی */
    --blue-light: #BFCFFF;
    --text: #333333;
    /* رنگ نوشته */
    --text-light: #383A3F;
    --light-text: #FAFAFA;
    --light: #D5E1F3;
    --black: #000000;
    --back-light: #EFF3FB;
    --social-color: #D0D9DD;
    --hover: #2388d8;
    --kaf-teal: #00c4b4;
    /* رنگ مکمل */
    --kaf-blue: #00008B;
    --kaf-gold: #FFD700;
    /* رنگ مکمل */
    --top-bar-bg: #e9ecef;
    --text-gray: #6c757d;
    --bg-main: #02021e;
    --bg-darker: #010114;
    --accent-gold: #ffc107;
    /* یا #00d2ff اگر تم فیروزه‌ای می‌خواهید */
    --text-mute: rgba(255, 255, 255, 0.6);
    --border-line: rgba(255, 255, 255, 0.1);
}
/* تعریف فونت با نسخه FD */
@font-face {
    font-family: 'MyFarsiFont';
    /* آدرس فایل فونت که اعدادش فارسی است را بدهید */
    src: url('../fonts/Vazirmatn-FD.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* اعمال به کل سایت */

* {
    font-family: Vazirmatn;
    outline: medium none !important;
    text-decoration: none !important;
    list-style: none !important;
}

body {
font-family: 'Vazirmatn RD', sans-serif;
    /* این دستور در برخی فونت‌های وریبل اعداد را فارسی می‌کند */
    font-feature-settings: "ss01";     overflow-y: auto;
    margin: 0;
    padding: 0;
    direction: rtl;
    /* position: relative; */
    background-color: var(--white);
}

* {
    box-sizing: border-box;
}


/* .row {
  flex-direction: row-reverse;
} */
.category-scroll-wrapper span {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
#top-links a {
    padding: 10px;
}

#top-links a:hover {
    color: var(--blue);
    border-radius: 5px;
    cursor: pointer;
}

.top-links,
.dat {
    font-size: 15px;
    gap: 15px;
    padding: 10px;
}

.dat {
    margin-right: 4rem;
}

@media screen and (max-width: 1200px) {

    .top-links,
    .dat {
        font-size: 9px;
    }

    .dat {
        margin-right: 10px;
    }
}

/* .container {    max-width: 100%;    padding: 0.5% 4%;} */
a {
    color: var(--black);
}

svg {
    width: 100%;
}

ul {
    padding: 0;
    margin: 0;
}

p {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover {
    border: none;
}

.nav-tabs {
    border: none;
}

.show-overlay {
    display: flex !important;
}

a:hover {
    color: var(--hover);
}

.widget-container {
    width: 100% !important;
}

.MainInner .container {
    padding-left: 0px !important;
}

.LeftInner .container {
    padding-right: 0px !important;
}

/*---------------------- /Public Style ---------------------*/
/*---------------------- header ---------------------*/
/* تنظیم کانتینر روی 1160 پیکسل */
/* .container {    max-width: 1160px !important;      width: 100%;     margin-right: auto;    margin-left: auto;    padding-right: 15px;    padding-left: 15px;} */
/* --- نوار خاکستری بالا (Top Bar) --- */
.top-bar {
    background-color: var(--top-bar-bg);
    color: var(--text-gray);
    font-size: 13px;
    border-bottom: 1px solid #dee2e6;
    font-weight: bolder;
    gap: 1rem;
    margin: 10px 0px 10px 0px;
    display: flex;
    width: 100%;
    border-radius: 10px;
}

.top-bar a {
    color: var(--text-gray);
    text-decoration: none;
    margin-right: 20px;
    transition: 0.3s;
    
}

.top-bar a:hover {
    color: var(--kaf-blue);
}

/* --- هدر اصلی (Main Header) --- */
.main-header {
    background-color: var(--kaf-blue);
    padding: 20px 0px ;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    justify-content: end;
    display: flex;
}

/* بخش لوگو */
.logo-area a {
    width: 82px;
    right: -13px;
    padding: 10px 10px;
    position: absolute;
    border-radius: 15px;
    position: relative;
}

.logo-area a img {
    background-color: var(--blue);
    top: -83px;
    padding: 10px 10px;
    position: absolute;
    border-radius: 15px;
    width: 82px;
}

.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.logo-area .logo-circle {
    width: 46px;
    height: 46px;
    border: 2px solid var(--kaf-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
    float: right;
    margin-left: 10px;
}

.brand-text h1 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	text-align: right;
	line-height: 1.4;
	margin-bottom: 20px;
}

.brand-text span {
    font-size: 0.7rem;
    opacity: 0.9;
    display: block;
    text-align: left;
}

/* منوی ناوبری اصلی (دسکتاپ) */
.main-nav {
    gap: 1rem;
    flex-grow: 1;
    display: flex;
    margin-left: 13rem;
    align-items: center;

    @media screen and (max-width:992px) {

        align-items: start;
    }
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

/* استایل لینک‌های منو */
.main-nav .nav-link.menu {
    color: white !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0 0 0px 0 !important;
    transition: 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.main-nav .nav-link.menu:hover,
.main-nav .nav-link.menu.active {
    color: var(--kaf-gold) !important;
    border-bottom: 2px solid var(--kaf-gold) !important;
}

.main-nav .nav-link.menu.active {
    font-weight: 700;
    border-bottom: 2px solid var(--kaf-gold);
}

.main-nav .nav-item i {
    font-size: 2rem;
}

.item a img {
    border-radius: 15px;
}

/* باکس جستجو (Capsule) */
.search-capsule {
    /* box-shadow: -1px 3px 5px #3b1d86 inset, 2px 2px 10px #013d5c; */
    background: white;
    border-radius: 50px;
    height: 38px;
    display: flex;
    align-items: center;
    padding: 2px;
    width: 306px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    /* left: 180px; */
}

.search-socials {
    display: flex;
    gap: 8px;
    padding: 0 10px;
    border-left: 1px solid #ddd;
}

.search-socials a {
    display: flex;
    align-items: center;
}

.search-socials a i {
    color: #adb5bd;
    font-size: 15px;
    transition: 0.3s;
}

.search-socials a i:hover {
    color: var(--kaf-blue);
}

.search-input {
    border: none;
    outline: none;
    font-size: 0.8rem;
    padding: 0 10px;
    flex-grow: 1;
    background: transparent;
    z-index: 9999;
}

.btn-search {
    width: 34px;
    height: 34px;
    background-color: var(--kaf-blue);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    margin-right: -14px;
    padding: 10px;
}

.btn-search:hover {
    background-color: #000055;
    transform: scale(1.05);
}

.navbar {
    margin-right: 10px;
}



/* --- تنظیمات موبایل (Responsive) --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--kaf-blue);
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        z-index: 1050;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
        display: flex;
    }

    .main-nav .nav-link.menu {
        font-size: 1rem;
        display: block;
    }

    .btn-close-custom {
        position: absolute;
        top: 10px;
        left: 15px;
        background: none;
        border: none;
        color: white;
        font-size: 30px;
        cursor: pointer;
    }
}

/*---------------------- /header ---------------------*/
/*---------------------- main ---------------------*/
.fix-container .container {
    padding: 0 !important;
}

.news-ticker-bar {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin: 15px 0;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.ticker-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    overflow: hidden;
}

.ticker-label {
    background-color: var(--kaf-blue);
    color: white;
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-dot {
    width: 7px;
    height: 7px;
    background-color: var(--kaf-gold);
    border-radius: 50%;
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* استایل اسلایدر داخل تیکر */
.content-main .ticker-owl {
    flex-grow: 1;
}

.content-main .ticker-link {
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    display: block;
    transition: color 0.2s;
}

.content-main .ticker-link:hover {
    color: var(--kaf-blue);
}

/* دکمه‌های کنترل سفارشی */
.content-main .ticker-controls {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

.content-main .ticker-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.content-main .ticker-btn i {
    font-size: 10px;
}

.content-main .ticker-btn:hover {
    background: var(--kaf-blue);
    transform: scale(1.1);
}

/* حذف فلش‌های پیش‌فرض Owl */
.content-main .ticker-owl .owl-nav {
    display: none !important;
}

/*---------------------- slider-section ---------------------*/
/* --- Hero Section Styles --- */
/* ۱. کاهش ارتفاع برای حالت مینیمال مشابه تصویر اول */
.fixed-h {
    height: 220px;
}

.hero-section.mb-4 {
    margin-bottom: 0px !important;
}

.slider-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.hero-section .slider-img-wrap {
    width: 35%;
    position: relative;
}

.hero-section .slider-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .slider {
    margin-bottom: 15px;
}

.hero-section .slider-content {
    width: 65%;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
}

.hero-section .slider-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    color: #212529;
    line-height: 1.4;
    transition: 0.3s;
}

.hero-section .slider-title:hover {
    color: var(--kaf-teal);
}

.hero-section .slider-desc {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.6;
    text-align: justify;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-section .slider-meta {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: auto;
    padding-bottom: 5px;
}

/* دکمه‌های ناوبری */
.hero-section .slider-nav {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-section .slider-nav-btn {
    width: 30px;
    height: 30px;
    background-color: var(--kaf-blue);
    color: var(--kaf-gold);
    border: 1px solid var(--kaf-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hero-section .slider-nav-btn:hover {
    background-color: var(--kaf-gold);
    color: var(--kaf-blue);
    border-color: var(--kaf-gold);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* تبلیغات کناری */
.side-ad {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.side-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

/*---------------------- /slider-section ---------------------*/
/*---------------------- body-section ---------------------*/
/* ================= DIALOG / INTERVIEW SECTION ================= */
.news-widget-wrapper {
    background: #fff;
    margin-bottom: 2rem;
    direction: rtl;
    /* اطمینان از راست‌چین بودن */
}


.widget-header {
    border-bottom: 2px solid #eee;
    margin-bottom: 1.2rem;
    position: relative;
    display: flex;
}

.widget-title-kaf {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--kaf-blue);
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--kaf-blue);
    margin-bottom: -2px;
    position: relative;
    z-index: 1;
}

.widget-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #eee;
    transition: all 0.3s ease;
}

.widget-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* تصویر بندانگشتی گفتگو */
.widget-news-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    margin-left: 12px;
    /* فاصله از سمت چپ تصویر به متن در RTL */
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.widget-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* افکت زوم روی عکس در هاور */
.widget-news-item:hover .widget-news-thumb img {
    transform: scale(1.1);
}

.widget-news-content {
    flex-grow: 1;
}

.widget-news-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.3s;
    display: block;
}

.widget-news-item:hover .widget-news-link {
    color: var(--kaf-blue);
}

.widget-news-meta {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
    display: block;
}

/*----------------------suggest-sec ---------------------*/
/* ================= GENERAL SECTION STYLES ================= */
.section-header-style {
    display: flex;
    align-items: center;
}



.hideTitle .special-news-container .section-header-style {
    
    display: none;
    
}


.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--kaf-blue);
    margin: 0;
    padding: 10px 10px;
    border-bottom: 2px solid var(--kaf-blue);
    margin-bottom: -2px;
    position: relative;
}

/* ================= EDITOR'S PICK (SIDEBAR) ================= */
/* ================= GENERAL SECTION STYLES ================= */

/* ================= EDITOR'S PICK (SIDEBAR) ================= */
.text-news-card {
    display: block;
    padding: 0px 15px 15px 0;
    border-bottom: 1px dashed #e5e5e5;
    position: relative;
    text-decoration: none;
    margin-top: 1rem;
}

.text-news-card:last-child {
    border-bottom: none;
}

.text-news-card::before {
    content: '';
    position: absolute;
    right: 0;
    top: 22px;
    width: 6px;
    height: 6px;
    background-color: var(--kaf-gold);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.simplebar-scrollbar::before {
  width: 2px;
  background: var(--kaf-teal);
}

.simplebar-track.simplebar-vertical {
  width: 2px;
}

/* ۱. کانتینر اصلی */
.info-suggest.custom-scrollbar {
    max-height: 400px;
    overflow-y: auto !important;
    padding-left: 10px !important;
    direction: rtl;
    scroll-behavior: smooth;
    /* فایرفاکس به صورت پیش‌فرض فلش ندارد */
    scrollbar-width: thin;
    scrollbar-color: var(--kaf-teal) transparent;
}

.info-suggest.custom-scrollbar::-webkit-scrollbar{
    width: 6px !important;
    height: 6px !important;
}

/* ۲. حذف دکمه‌ها (فلش‌های بالا و پایین) */
.info-suggest.custom-scrollbar::-webkit-scrollbar-button {
    display: none !important;
    height: 0;
    width: 0;
}

/* ۳. تنظیم عرض کل اسکرول‌بار */
.info-suggest.custom-scrollbar::-webkit-scrollbar {
    width: 3px !important;
}

/* ۴. مسیر اسکرول (شفاف و تمیز) */
.info-suggest.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent !important;
}

/* ۵. استایل بخش متحرک (آبی نئونی و گرد) */
.info-suggest.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--kaf-blue) !important;
    /* ایجاد افکت گرادینت برای زیبایی بیشتر */
    background: linear-gradient(180deg, var(--kaf-blue) 0%, #4facfe 100%) !important;
    border-radius: 50px !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* ۶. حالت هاور (کمی پهن‌تر و پررنگ‌تر برای راحتی کاربر) */
.info-suggest.custom-scrollbar:hover::-webkit-scrollbar {
    width: 5px !important;
}

.info-suggest.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: var(--blue) !important;
}

/* ۷. لایه محو کننده پایین لیست (برای زیبایی خیره‌کننده) */
.suggest-sec {
    position: relative;
}

.suggest-sec::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 8px;
    /* فاصله از اسکرول */
    right: 0;
    height: 50px;
    background: linear-gradient(to top, #ffffff 20%, rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 5;
    border-radius: 0 0 10px 10px;
}

.text-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    margin-bottom: 6px;
}

/* تعریف انیمیشن ورود بسیار نرم و آهسته */
@keyframes fadeInUpSlow {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(5px);
        /* اضافه کردن کمی تاری برای نرمی بیشتر */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* اعمال روی کارت‌ها با تاخیرهای پله‌ای */
.text-news-card,
.card-ui {
    opacity: 0;
    animation: fadeInUpSlow 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* تاخیر برای هر ردیف خبر (آرام‌تر شدن ورود) */
.text-news-card:nth-child(1) {
    animation-delay: 0.2s;
}

.text-news-card:nth-child(2) {
    animation-delay: 0.4s;
}

.text-news-card:nth-child(3) {
    animation-delay: 0.6s;
}

.text-news-card:nth-child(4) {
    animation-delay: 0.8s;
}

.category-tag {
    color: var(--kaf-teal) !important;
    font-weight: 700;
}

.time-tag {
    color: #999;
    font-weight: 300;
}

.text-news-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.text-news-card:hover {
    background-color: #fff;
    padding-right: 20px;
}

.text-news-card:hover .text-news-title {
    color: var(--kaf-blue);
}

.text-news-card:hover::before {
    top: 10%;
    height: 80%;
    border-radius: 2px;
    background-color: var(--kaf-blue);
    width: 4px;
}

.suggest-sec {
    margin-bottom: 20px;
}

/* ۱. تنظیمات کانتینر اصلی */
.info-suggest {
    display: flex;
    flex-direction: column;
    height: 369px;
    max-height: 400px;
    overflow-y: auto !important;
    padding-left: 5px;
    /* کمی فاصله برای اینکه اسکرول نچسبد به محتوا */
    direction: rtl;
    scroll-behavior: smooth;
    /* برای فایرفاکس */
    scrollbar-width: thin;
    scrollbar-color: var(--kaf-blue, #00008b) transparent;
}

/* ۲. تنظیم ضخامت اسکرول‌بار (کروم و اج) */
.info-suggest::-webkit-scrollbar {
    width: 2px !important;
    /* ضخامت نوار - اگر ۱ بزنید خیلی نازک می‌شود */
}

/* ۳. مسیر اسکرول (کاملا شفاف) */
.info-suggest::-webkit-scrollbar-track {
    background: transparent !important;
}

/* ۴. بخش متحرک (نوار آبی مویی) */
.info-suggest::-webkit-scrollbar-thumb {
    background: var(--kaf-blue, #00008b) !important;
    border-radius: 10px !important;
}

/* ۵. حالت هوور (اختیاری - اگر می‌خواهید در هاور پهن نشود این بخش را حذف کنید) */
.info-suggest:hover::-webkit-scrollbar {
    width: 2px !important;
}

.info-suggest::-webkit-scrollbar-thumb:hover {
    background: #4facfe !important;
    /* تغییر رنگ ملایم در هاور */
}

/*---------------------- /suggest-sec ---------------------*/
/* *********************** EVentlist ******************* */
.events-panel {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    /* height: 28.8rem; */
    width: 100%;
    border-top: 5px solid var(--secondary-teal);
    border: 0.1px solid var(--kaf-teal);
}

.events-panel .events-header {
    background: var(--kaf-teal);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iconleft:hover{
    background: #009485;
    color: var(--blue-light);
}
.iconleft {
    display: flex;
    gap: 5px;
    padding: 5px;
    border-radius: 5px;
}

.iconleft i {
    background-color: transparent;
    padding: 3px;
    border-radius: 100px;
}

.events-panel .events-list {
    padding: 0;
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--kaf-teal) transparent;
    @media screen and (max-width:768px) {
        font-size: 12px;
        
    }
}

.events-panel .events-list li {
    padding: 15px;
    transition: 0.3s;
    display: flex;
    align-items: flex-start;

    @media screen and (max-width:1200px) {
        padding: 5px;

    }
}

.events-list li:hover {
    background-color: #f0fdfc;
    border-right: 4px solid var(--secondary-teal);
}

.events-panel .date-badge {
    background: #e0f2f1;
    color: var(--secondary-teal);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 10px;
    min-width: 60px;
    text-align: center;
    
}

/*----------------------news-slide ---------------------*/
.content-main .body-section .news-slide .item {
    gap: 12px;
    margin-bottom: 10px;
}

.content-main .body-section .news-slide .item .img-slider img {
    width: 70px;
    height: 50px;
}

.content-main .body-section .news-slide .item .info-slider .slider-card {
    font-size: 14px;
    color: var(--text);
    font-weight: 300;
    transition: 0.5s all;
}

.content-main .body-section .news-slide .item .info-slider .slider-card:hover {
    color: var(--blue)
}

/*----------------------/news-slide ---------------------*/
/*----------------------banners-site ---------------------*/
.content-main .body-section .banners-site .banners-right img {
    width: 120px;
    height: 250px;
    padding: 0 0 0 5px;
}

.content-main .body-section .banners-site .banners-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.content-main .body-section .banners-site .banners-left img {
    width: 100%;
    height: 171px;
    padding: 0 5px;
}

.content-main .body-section .banners-site .banners-left a img:last-child {
    height: 122px !important;
}

/*----------------------/banners-site ---------------------*/
/*----------------------banner-info ---------------------*/
/* --- استایل بنرهای سایدبار --- */
.sidebar-ads-wrapper {
    margin-bottom: 2rem;
}

.ads-section {
    padding: 15px 0;
    margin: 15px 0;
    background-color: #f8f9fa;
}

.ads-section .container {
    padding: 0px !important;
}

/* ظرف اصلی هر بنر */
.ad-banner-item {
    display: block;
    border-radius: 16px;
    /* لبه‌های گرد مدرن */
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 180px;
    /* ارتفاع ثابت برای کل ردیف - می‌توانید کم و زیاد کنید */
}

/* تنظیم عکس‌ها */
.ad-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* عکس را بدون دفرمه شدن فیت می‌کند */
    display: block;
    transition: transform 0.6s ease;
}

/* افکت هوور */
.ad-banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}

.ad-banner-item:hover img {
    transform: scale(1.05);
    /* زوم ملایم روی عکس */
}

/* برچسب آگهی شیشه‌ای */
.ad-label {
    position: absolute;
    top: 12px;
    right: 12px;
    /* در RTL سمت راست بهتر است */
    background: rgba(255, 255, 255, 0.7);
    color: #666;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 2;
    letter-spacing: 0.5px;
}

/* تنظیمات ریسپانسیو برای موبایل */
@media (max-width: 991px) {
    .ad-banner-item {
        height: 150px;
        margin-bottom: 10px;
    }
}

/*----------------------/banner-info ---------------------*/
/*---------------------- im-news ---------------------*/
.content-main .body-section .im-news {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-main .body-section .im-news .info-news {
    background-color: rgb(213, 225, 243, 0.3);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
    transition: 0.5s;
}

.content-main .body-section .im-news .info-news:hover {
    background-color: var(--blue);
}

.content-main .body-section .im-news .info-news .img-card img {
    width: 100%;
}

.content-main .body-section .im-news .all-news {
    gap: 8px;
    margin-bottom: 38px;
}

.content-main .body-section .im-news .all-news .info-news {
    display: flex;
    flex-direction: column;
}

.content-main .body-section .news-card a {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 33px 12px;
}

.content-main .body-section .news-card h3 {
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: 0.5s all;
}

.content-main .body-section .im-news .info-news:hover .news-card h3 {
    color: var(--white);
}

.content-main .body-section .im-news .info-news:hover .news-card p {
    color: var(--white);
}

/*---------------------- /im-news ---------------------*/
/*---------------------- news-site --------------------*/
/* ================= MAIN NEWS FEED (Uniform List) ================= */
.news_spertial .special-news-container .main-news-feed {
    border: 0px solid #e9e9e9;
    background-color: red;
}

.special-news-container .main-news-feed {
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    padding-top: 20px;
    
}

.news-list-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.news-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item-thumb {
    width: 130px;
    height: 90px;
    flex-shrink: 0;
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.news-item-content .news-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: flex-start;
    transition: 0.3s;
    text-decoration: none;
}

.news-item-content a {
    text-decoration: none;
}

.news-item-content .news-title:hover {
    color: var(--kaf-blue);
}

/* علامت مربع طلایی کنار تیتر که توی کد خودت بود */
.news-item-content .news-title::before {
    content: "▪";
    color: var(--kaf-gold);
    font-size: 1.2rem;
    line-height: 1;
    margin-left: 8px;
    margin-top: 2px;
}

.news-item-content .news-summary {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.7;
    margin-bottom: 8px;
    max-height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-item-meta {
    font-size: 0.75rem;
    color: #aaa;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 767.98px) {
    .news-list-item {
        flex-direction: row;
        /* اگر می‌خواهی در موبایل هم عکس کنار متن باشد */
    }

    .news-item-thumb {
        width: 100px;
        height: 70px;
    }
}

/*---------------------- /news-site ---------------------*/
/*---------------------- banners ---------------------*/
.content-main .body-section .banners {
    margin-bottom: 38px;
}

.content-main .body-section .banners .banners-info {
    margin-bottom: 10px;
}

.content-main .body-section .banners .banners-style img {
    width: 100%;
}

.content-main .body-section .banners .banners-style.banner-2 img {
    padding: 0 5px 0 0;
}

.content-main .body-section .banners .banners-style.banner-4 a {
    display: flex;
}

.content-main .body-section .banners .banners-style.banner-4 img {
    width: 100px;
}

.content-main .body-section .banners .banners-style.banner-4 img {
    height: 288px !important;
}

.content-main .body-section .banners .box-banners {
    padding-left: 5px;
}

/*---------------------- /banners ---------------------*/
/*---------------------- tabs-news ---------------------*/
/* ================= B5 POPULAR WIDGET STYLE ================= */
.b5-popular-widget {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    direction: rtl;
    margin-top: 1rem;
}

/* استایل دکمه‌های تب */
.b5-popular-widget .nav-tabs {
    border-bottom: 1px solid #eee;
    /* padding: 3px 3px 0 3px; */
    background-color: #fafbfe;
}



.b5-popular-widget .widget-archive-footer {
    background-color: var(--kaf-blue);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 0;
    /* گرد کردن لبه‌های پایین برای هماهنگی با باکس */
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-top: -1px;
    /* برای چسبیدن کامل به باکس بالایی */
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.b5-popular-widget .widget-archive-footer a {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* افکت هاور: به جای سفید شدن، رنگ کمی عمیق‌تر و یک نور ملایم اضافه شود */
.b5-popular-widget .widget-archive-footer:hover {
    background-color: #00004d;
    /* یک سرمه‌ای کمی تیره‌تر */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* اضافه کردن یک خط طلایی باریک در پایین هنگام هاور برای جذابیت */
.b5-popular-widget .widget-archive-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--kaf-gold);
    /* اگر متغیر طلایی نداری کد #D4AF37 بزن */
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.b5-popular-widget .widget-archive-footer:hover::after {
    width: 100%;
}

/* انیمیشن متن هنگام هاور */
.b5-popular-widget .widget-archive-footer:hover a {
    color: #fff;
    transform: scale(1.02);
}

/* اگر آیکون دارید، کمی جابجا شود */
.b5-popular-widget .widget-archive-footer a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.b5-popular-widget .widget-archive-footer:hover a i {
    transform: translateX(-8px);
}

.b5-popular-widget .nav-link {
    border: none !important;
    color: #889;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 14px 0;
    border-radius: 8px 8px 0 0 !important;
    transition: all 0.25s ease-out;
}

.b5-popular-widget .nav-link:not(.active):hover {
    color: var(--kaf-blue);
    background-color: #f5f7fa;
}

.b5-popular-widget .nav-link.active {
    color: var(--kaf-blue) !important;
    background-color: #fff !important;
    border-bottom: 3px solid var(--kaf-blue) !important;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.03);
}


.b5-popular-widget .list-group-item {
    padding: 12px 20px 12px 15px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #444;
    border-bottom: 1px solid #f5f5f5 !important;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    margin-top: 8px;
    font-weight: 500;
}

.b5-popular-widget .list-group-item:last-child {
    border-bottom: none !important;
}

.b5-popular-widget .list-group-item:hover {
    border-right: 3px solid transparent;
    background-color: #f8f9fa;
    color: var(--kaf-blue);
    border-right-color: var(--kaf-blue);
    transform: translateX(-5px);
    /* padding-right: 25px; */
}

/* // sticky */
.make-it-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    
}


/*---------------------- /tabs-news ---------------------*/
/* .design-container > .widget-container {    width: 100% !important;} */
/*---------------------- /body-section ---------------------*/
/*---------------------- gallery-section ---------------------*/
/* --- تنظیمات کلی و هدر --- */
.multimedia-wrapper {
    direction: rtl;
    padding: 20px 0;
}

.multimedia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.multimedia-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--kaf-blue, #00008b);
    position: relative;
    padding-right: 15px;
    /* margin-right: 15px; */

    @media screen and (max-width:480px) {
        font-size: 12px;

    }
}

.multimedia-title::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 5px;
    background: var(--kaf-gold, #ffc107);
    border-radius: 10px;
}

/* --- استایل تب‌ها --- */
.custom-pills .nav-link {
    color: var(--kaf-blue, #00008b);
    border: 1px solid #dee2e6;
    border-radius: 50px;
    margin-left: 10px;
    padding: 7px 22px;
    background: #fff;
    font-weight: 600;
    transition: all 0.4s ease;
}

.custom-pills .nav-link.active {
    background-color: var(--kaf-gold, #ffc107) !important;
    color: #000 !important;
    border-color: var(--kaf-gold, #ffc107);
}

/* --- استایل دکمه‌های ناوبری (بدون پرش) --- */
.btn-prev-media,
.btn-next-media {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fff;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;

    @media screen and (max-width:480px) {
        width: 25px;
        height: 25px;

    }
}

.btn-prev-media:hover,
.btn-next-media:hover {
    background: var(--kaf-blue, #00008b) !important;
    color: #fff !important;
    border-color: var(--kaf-blue, #00008b) !important;
    transform: translateY(-3px);
}

.btn-prev-media svg,
.btn-next-media svg {
    transition: transform 0.3s ease;
}

.btn-prev-media:hover svg {
    transform: translateX(-2px);
}

.btn-next-media:hover svg {
    transform: translateX(2px);
}

/* --- استایل کارت‌ها --- */
.kaf-news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f2f2f2;
    transition: all 0.5s ease;
    height: 100%;
    cursor: pointer;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); */
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;

}

.news-header-meta {
    padding: 2px 15px !important;
    height: 42px !important;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    border: 1px solid #eee;
}

.news-header-meta .print-style {
    border: none !important;
    background-color: transparent !important;
}

.news-header-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.news-header-meta .meta-item i {
    color: var(--kaf-teal);
    font-size: 1.1rem;
}

.news-header-meta .print-style img {
    width: 35px;
}

.text-secondary {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-secondary-rgb), var(--bs-text-opacity)) !important;
}

.news-title {
    color: var(--kaf-blue);
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 22px;
}

.news-lead {

    background-color: #f8f9fa;

    border-right: 5px solid #00b4b4;

    border-radius: 8px;

    padding: 20px 25px;

    margin: 25px 0;

    position: relative;

}

.news-content {
    font-size: 1rem;
    line-height: 2.2;
    color: var(--text);
    text-align: justify;
}

.news-main-image {
    float: left;
    width: 50%;
    margin: 12px 20px 12px 0;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-content img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 12px 0;
    cursor: zoom-in;
    max-width: 100%;
    height: auto;
}

.image-caption {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    text-align: center;
    font-style: italic;
}

.metro-border-left {
    border-left: 2px solid rgba(13, 71, 161, 0.1);
    
}

.id-section {
    justify-content: flex-start;
}

.meta-box-item {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    height: 100%;
}

.meta-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kaf-blue);
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}


.category-scroll-wrapper {
    display: inline-flex;
    align-items: center;
    overflow-x: auto;
    max-width: 500px;
    white-space: nowrap;
    padding-bottom: 6px;
    margin-top: 1px;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--kaf-teal) transparent;

}


.card-img-box {
    position: relative;
    overflow: hidden;
    margin: 10px;
    border-radius: 15px;
}

.card-img-box img {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
    transition: transform 1s ease;
}

.kaf-news-card:hover img {
    transform: scale(1.1);
}

.news-title-h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 10px 15px;
}

.news-title-h3 a {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    color: #333;
    height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

/*---------------------- /gallery-section ---------------------*/
/*---------------------- news-site ---------------------*/
.news-categories-clean {
    background-color: #fcfcfc;
    margin-top: 1.2rem;
}

.news-categories-clean .container {
    padding: 0px !important;
}

.news-categories-clean .cat-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px !important;
}

.news-categories-clean .cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    border-color: #00008b;
}

.news-categories-clean .cat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #f9f9f9;
    padding-bottom: 10px;
}

.news-categories-clean .cat-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #222;
    padding-right: 15px;
    position: relative;
    margin: 0;

    @media screen and (max-width:1000px) {
        font-size: 10px;

    }
}

.news-categories-clean .cat-card-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: var(--kaf-teal);
    border-radius: 10px;
}

.news-categories-clean .cat-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 15px;
}

.news-categories-clean .cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.news-categories-clean .cat-card-text {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    color: #333;
    height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    
}

.news-categories-clean .cat-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f9f9f9;
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.news-categories-clean .cat-card-archive {
    font-size: 11px;
    color: #777;
    background: #f1f1f1;
    padding: 4px 12px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
}

.news-categories-clean .cat-card-archive:hover {
    background-color: var(--blue);
    ;
    color: white;
}

/*---------------------- /news-site ---------------------*/
/*---------------------- /main ---------------------*/
/*---------------------- footer ---------------------*/
.editorial-footer {
    background-color: var(--bg-main);
    color: #fff;
    border-top: 4px solid var(--accent-gold);
    padding: 60px 10px 0px 10px; 
    font-family: 'Tahoma', sans-serif;
    /* فونت سایت خود را جایگزین کنید */
}

.kaf-rtl {
    direction: rtl !important;
    text-align: right !important;
}

.vertical-divider {
    position: relative;
}

@media (min-width: 992px) {
    .vertical-divider::after {
        content: "";
        position: absolute;
        left: 0;
        top: 10%;
        height: 80%;
        width: 1px;
        background: linear-gradient(to bottom, transparent, var(--accent-gold), transparent);
        opacity: 0.2;
    }
}

.footer-title {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}


.brand-desc {
    color: var(--text-mute);
    line-height: 1.8;
    font-size: 0.85rem;
    text-align: justify;
}

/* Social Icons */
.social-circle-links {
    display: flex;
    gap: 10px;
}

.social-circle-links a {
    width: 35px;
    height: 35px;
    border: 1px solid var(--border-line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
}

.social-circle-links a:hover {
    background-color: var(--accent-gold);
    color: var(--bg-main);
}

/* Tag Cloud (منوهای داینامیک) */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-mute);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: 0.3s;
}

.tag-cloud a:hover {
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
}

/* Ranked Items */
.ranked-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    font-size: 0.85rem;
    text-align: right;

}

.rank-number {
    font-size: 1.5rem;
    font-weight: 900;
    /* color: rgba(255, 255, 255, 0.1); */
    color: rgba(255, 205, 11, 0.75);
    margin-left: 12px;
}

.ranked-item a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.ranked-item:hover a {
    color: var(--accent-gold);
}

/* Gallery */
.footer-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 4px;
    background-color: rgb(0, 255, 13);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 2, 30, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.view-archive-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-bottom {
    background-color: var(--bg-darker);
    /* margin-top: 40px; */
    padding: 15px 0;
    border-top: 1px solid var(--border-line);
}

.footer-bottom .text-secondary {
    font-size: 14px;
}

.footer-bottom-links a {
    color: var(--text-mute);
    font-size: 14px;
    margin-right: 15px;
    text-decoration: none;
}

.footer-bottom .f-dev-tag {
    font-size: 14px;
}

.footer-bottom .f-dev-tag a {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: bold;
    color: #fff;
    font-size: 13px;
}

.footer-bottom .f-dev-tag a:hover {
    color: #0056ff;
    text-shadow: 0 0 8px rgba(0, 86, 255, 0.4);
    transform: translateY(-1px);
}

.footer-bottom .f-dev-tag a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    right: 50%;
    background-color: #0056ff;
    transition: all 0.3s ease;
    transform: translateX(50%);
}

.footer-bottom .f-dev-tag a:hover::after {
    width: 100%;
}

.hover-gold:hover {
    color: var(--accent-gold) !important;
}

.logo-area-footer {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 15px;
    gap: 10px;
}

.logo-area-footer img {
    width: 66px;
}

/* .side-widget {    border-radius: 15px;    padding: 15px;    margin-bottom: 30px;    position: relative;    background-color: rgba(79, 185, 179, 0.03);    border: 1px solid rgba(79, 185, 179, 0.3);    transition: .3s;    text-align: start;} */
/*---------------------- /footer-Copyright ---------------------*/
/*---------------------- /footer ---------------------*/
/*---------------------- inner-page-styles ---------------------*/
/*---------------------- news-meta-box---------------------*/
.content-main .news-meta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--back-light);
    padding: 10px 15px;
    color: var(--blue);
    font-size: 14px;
    margin-bottom: 30px;
    direction: rtl;
}

.content-main .news-meta-box .meta-icons a {
    color: var(--blue);
    margin-left: 10px;
    transition: 0.3s;
}

.content-main .news-meta-box .meta-icons a i {
    font-size: 20px;
}

.content-main .news-meta-box .meta-icons a:hover {
    color: var(--hover);
}

.content-main .news-meta-box .meta-info {
    gap: 28px;
    display: flex;
    align-items: center;
}

.content-main .news-meta-box .meta-info .meta {
    display: flex;
    align-items: center;
    gap: 5px;
}

.content-main .news-meta-box .meta-info .meta-fild {
    color: var(--text-light);
}

.content-main .news-meta-box .meta-info i {
    font-size: 18px;
    margin-left: 4px;
    color: var(--blue);
}

/*---------------------- /news-meta-box---------------------*/
/*---------------------- article-content---------------------*/
/*---------------------- abstract---------------------*/
.content-main .abstract {
    margin-bottom: 14px;
    color: var(--text-light);
    font-weight: 400;
    font-size: 14px;
    text-align: justify;
}

.content-main .abstract .article-body {
    text-align: justify;
}

/*---------------------- /abstract---------------------*/
.content-main .article-content {
    padding: 0 0 30px 0;
    color: var(--black);
    font-size: 16px;
    line-height: 2;
    direction: rtl;
    text-align: justify;
}

.content-main .article-content p {
    line-height: 2.3;
}

.content-main .article-content .about {
    color: var(--blue);
    font-weight: bold;
    margin-bottom: 14px;
}

.content-main .article-title {
    font-size: 20px;
    color: var(--text);
    font-weight: bold;
    margin-bottom: 14px;
}

.content-main .article-subtitle {
    font-size: 20px;
    color: var(--text);
    font-weight: bold;
    margin: 30px 0 14px 0;
}

.content-main .body-section .news-section.single-news .news-title {
    font-size: 16px;
    margin-top: 20px;
}

.content-main .article-image img {
    width: 100%;
}

.content-main .reporter-meta {
    direction: rtl;
    font-size: 14px;
    padding: 30px 0 30px 0;
}

.content-main .reporter-meta .row {
    align-items: center !important;
    background-color: red;
}

.content-main .reporter-meta .reporter {
    gap: 28px;
    display: flex;
    align-items: center;
}

.content-main .reporter-meta .copy .btn {
    padding: 4px 12px;
}

.content-main .reporter-meta strong {
    color: var(--blue);
}

.content-main .reporter-meta .form-control {
    background: var(--back-light);
    border: none;
}

.content-main .reporter-meta .tags {
    gap: 15px;
    display: flex;
    align-items: center;
}

.content-main .reporter-meta .tags span {
    color: var(--blue);
    font-size: 17px;
}

.content-main .reporter-meta .tags .badge {
    padding: 6px 10px;
    background-color: var(--blue);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.5s;
    border: none;
    border-radius: 0;
}

.content-main .reporter-meta .tags .badge:hover {
    background-color: var(--back-light);
}

.content-main .reporter-meta .share-icons .icon-share a i {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--white);
    background-color: var(--hover);
    padding: 8px;
    transition: all 0.5s;
}

.content-main .reporter-meta .share-icons .icon-share a i:hover {
    background-color: var(--blue);
}

.content-main .reporter-meta .btn {
    color: var(--back-light);
    background-color: var(--blue);
    border-radius: 0;
}

.content-main .reporter-meta input {
    padding: 4px;
}

.content-main .reporter-meta .bi-check-square {
    color: var(--blue);
}

/*---------------------- /article-content---------------------*/
/*---------------------- recommended-articles---------------------*/
.content-main .recommended-articles .card {
    transition: all 0.3s;
    border: none;
    background-color: var(--back-light);
    border-radius: 0;
}

.content-main .recommended-articles .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px var(--text);
}

.content-main .recommended-articles img {
    max-height: 180px;
    object-fit: contain;
    padding: 10px;
}

.content-main .recommended-articles .card-text {
    font-weight: 400;
    font-size: 14px;
    transition: 0.5s all;
}

.content-main .recommended-articles .card-text:hover {
    color: var(--blue);
}

/*---------------------- /recommended-articles---------------------*/
/*---------------------- advertisement---------------------*/
.content-main .advertisement {
    padding: 30px 0 30px 0;
}

/*---------------------- /advertisement---------------------*/
/*---------------------- contact-section---------------------*/
.content-main .contact-section {
    background-color: var(--white);
    border-radius: 0 !important;
}

.content-main .contact-section h3 {
    color: var(--blue);
}

.content-main .contact-section input {
    background-color: var(--light-text);
}

.content-main .contact-section input,
.content-main .contact-section textarea {
    padding: 10px;
    border: none;
    background-color: var(--light-text);
}

.content-main .contact-section input::placeholder,
.content-main .contact-section textarea::placeholder {
    color: var(--text);
    border: none;
}

.content-main .contact-section button {
    background-color: var(--blue-light);
    border: none;
    border-radius: 0;
    color: var(--blue);
}

.content-main .contact-section .btn-submit {
    text-align: center;
}

.content-main .contact-section .btn-submit button {
    font-weight: 700;
    transition: 0.5s all;
}

.content-main .contact-section button:hover {
    background-color: var(--blue);
    color: var(--white);
}

/*---------------------- /contact-section---------------------*/
/*---------------------- /inner-page-styles ---------------------*/
/* ================= NEW style: MAIN NEWS FEED (Middle Column) ================= */
.main-news-feed {
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    padding: 20px;

    @media screen and (max-width:1200px) {
        padding: 0px;
    }
}

.featured-news-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.featured-news-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.featured-news-item .news-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 10px;
}

.featured-news-item .news-title:hover {
    color: var(--kaf-blue);
}

.featured-news-item .news-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.news-list-item {
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.news-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item-thumb {
    width: 130px;
    height: 90px;
    flex-shrink: 0;
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    
}

.news-item-content .news-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    text-align: justify;
    
}

.news-item-content .news-title:hover {
    color: var(--kaf-blue);
}

.news-item-content .news-title::before {
    content: "▪";
    color: var(--kaf-gold);
    font-size: 1.2rem;
    line-height: 1;
    margin-left: 8px;
    margin-top: 4px;

    @media screen and (max-width:1200px) {
        display: none;
    }

}

@media (min-width: 1200px) {
    .news-summary {
        display: block !important;
    }
}

.news-item-content .news-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.news-item-meta {
    font-size: 0.75rem;
    color: #aaa;
    
}

/* Responsive adjustments for main feed */
@media (max-width: 767.98px) {
    .news-list-item {
        flex-direction: column;
    }

    .news-item-thumb {
        width: 100%;
        height: auto;
        /* max-height: 200px; */
    }
}

/* --- Module: News Card (Container for Content) --- */
.kaf-news-item {
    background-color: var(--white);
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.kaf-news-link {
    text-decoration: none;
    display: block;
    padding: 15px;
    height: 100%;
}

.kaf-news-image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.kaf-news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.kaf-news-content {
    padding: 0 5px;
    display: flex;
    flex-direction: column;
}

.kaf-news-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--kaf-blue);
    margin-bottom: 12px;
    line-height: 1.6;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kaf-news-summary {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kaf-news-meta {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: #9aa0a6;
    font-size: 0.75rem;
    gap: 8px;
}

.kaf-news-meta .date-icon {
    font-size: 1rem;
}

.kaf-news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 139, 0.15);
}

.kaf-news-item:hover .kaf-news-image-wrapper img {
    transform: scale(1.05);
}

.kaf-news-item:hover .kaf-news-title {
    color: var(--hover);
}

.kaf-news-item:hover .date-icon {
    color: var(--kaf-teal);
}

/* -----------News Card------------ */
/* --- News Meta Box (Strict Palette) --- */
/* --- Module: News Card (Container for Content) --- */
.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); */
    padding: 0px;
    /* margin-bottom: 20px; */
    overflow: hidden;
}

.news-card .news-main-figure img {
    width: 50%;
    float: left;
    margin-right: 20px;
    margin-bottom: 6.66666667px;
}

/* --- Module: Breadcrumb (آپدیت شده طبق درخواست شما) --- */
.custom-breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    
}

.custom-breadcrumb .breadcrumb-item a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: var(--kaf-blue);
}

.custom-breadcrumb .breadcrumb-item.active {
    color: var(--kaf-blue);
    font-weight: 700;
}

.custom-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: var(--kaf-gold);
    content: "/";
    font-weight: bold;
    float: right;
    /* برای سازگاری با RTL */
    margin-left: 0.5rem;
}

/* --- Module: News Meta Bar (آپدیت شده - کپسولی و مدرن) --- */
.news-header-meta {
    background-color: #F8F9FA;
    border: 1px solid #e9ecef;
    border-right: 4px solid var(--kaf-blue);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.news-header-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.news-header-meta .meta-item i {
    color: var(--kaf-teal);
    font-size: 1.1rem;
}

/* --- Module: Typography (Title & Lead) --- */
.news-title {
    color: var(--kaf-blue);
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 22px;
}

.news-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--light);
    padding-bottom: 1rem;
}

/* استایل باکس نقل قول (لید خبر) */
.news-lead {
    background-color: #f8f9fa;
    /* رنگ پس‌زمینه روشن */
    border-right: 5px solid #00b4b4;
    /* بردر ضخیم سمت راست مشابه تصویر */
    border-radius: 8px;
    /* گرد کردن گوشه‌ها */
    padding: 20px 25px;
    margin: 25px 0;
    position: relative;
}

.news-lead p {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    font-weight: 500;
    text-align: justify;
    margin-bottom: 0;
    /* افزودن گیومه در صورت تمایل */
}

/* افکت اختیاری برای شبیه شدن بیشتر به نقل قول */
.news-lead p::before {
    content: "«";
    color: #00b4b4;
    margin-left: 5px;
    font-weight: bold;
}

.news-lead p::after {
    content: "»";
    color: #00b4b4;
    margin-right: 5px;
    font-weight: bold;
}

.news-main-image {
    float: left;
    width: 50%;
    margin: 12px 20px 12px 0;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-main-image img {
    width: 100%;
    height: 350px;
    /* ارتفاع کنترل شده */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-main-image:hover img {
    transform: scale(1.05);
}

/* استایل کپشن روی عکس */
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff !important;
    padding: 20px 10px 10px;
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
}

/* یک پاک‌کننده فلوت برای اینکه محتوای بعدی به مشکل نخورد */
.news-content::after {
    content: "";
    display: table;
    clear: both;
}

/* ریسپانسیو برای موبایل: در گوشی عکس تمام‌عرض شود */

.image-caption {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    text-align: center;
    font-style: italic;
}

/* --- Module: News Body Content --- */
.news-content {
    font-size: 1rem;
    line-height: 2.2;
    color: var(--text);
    text-align: justify;

}

.news-content p {
    margin-bottom: 0rem;
}

.news-content strong {
    color: var(--kaf-blue);
}

/* 1. تنظیمات محفظه اسکرول */

/* 2. تنظیم ضخامت اسکرول‌بار (کمی بزرگتر از قبل) */
.category-scroll-wrapper::-webkit-scrollbar {
    height: 4px !important;
    /* ضخامت استاندارد و ظریف */
}

/* حذف فلش‌های ابتدا و انتها */
.category-scroll-wrapper::-webkit-scrollbar-button {
    display: none !important;
}

/* استایل بدنه اسکرول‌بار */
.category-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* استایل بخش متحرک (Thumb) */
.category-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--kaf-blue, #007bff);
    border-radius: 10px;
}

/* 3. استایل دسته‌بندی‌ها و هاور */
.category-text {
    background: #f8f9fa;
    padding: 2px 12px;
    margin: 0 4px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #444;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: inline-block;
}

.category-text:hover {
    background-color: var(--kaf-blue, #007bff);
    color: #fff !important;
    border-color: var(--kaf-blue, #007bff);
    transform: translateY(-1px);
}

/* 4. فشرده‌سازی ارتفاع کل باکس هدر */
.news-header-meta {
    padding: 2px 0px !important;
    height: 42px !important;
    /* ارتفاع کنترل شده */
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    border: 1px solid #eee;
}

.news-header-meta .print-style {
    border: none !important;
    background-color: transparent !important;
}

.news-header-meta .print-style img {
    width: 35px;
}

/* ثابت نگه داشتن تاریخ و بازدید */
.meta-item:not(:first-child) {
    flex-shrink: 0;
    padding-right: 12px;
    margin-right: 5px;
    border-right: 1px solid #eee;
    font-size: 0.85rem;
}

/* تصاویر داخل متن (آپدیت شده طبق درخواست شما با افکت هاور) */
.news-content img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 12px 0;
    cursor: zoom-in;
    max-width: 100%;
    height: auto;
}

.news-content img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* --- Table Styles --- */
.news-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--light);
}

.news-content table thead {
    background-color: var(--kaf-blue);
    color: var(--white);
}

.news-content table th,
.news-content table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid var(--light);
}

.news-content table tbody tr:nth-child(even) {
    background-color: rgba(239, 243, 251, 0.5);
}

/* --- List Styles --- */
.news-content ul,
.news-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.news-content ul li {
    list-style: none;
    position: relative;
    margin-bottom: 0.5rem;
}

.news-content ul li::before {
    content: "■";
    color: var(--kaf-gold);
    font-size: 1.2rem;
    position: absolute;
    right: -1.5rem;
    top: -3px;
    line-height: 1;
}

.news-content ol li::marker {
    color: var(--kaf-blue);
    font-weight: bold;
}

/* --- Blockquote --- */
.news-content blockquote {
    background: #f9f9f9;
    border-right: 5px solid var(--kaf-teal);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 8px 0 0 8px;
    font-style: italic;
    color: #555;
    position: relative;
}

.news-content blockquote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--light);
    position: absolute;
    top: -35px;
    left: 20px;
    font-family: serif;
}

.blockquote p {
    margin: 0;
}

.blockquote p:not(:empty) {
    margin: 0;
}


/* --- Inline Links --- */
.news-content a {
    color: var(--kaf-blue);
    border-bottom: 1px dashed var(--kaf-gold);
    padding-bottom: 1px;
}

.news-content a:hover {
    background-color: var(--kaf-gold);
    color: var(--black);
    border-bottom: none;
    text-decoration: none;
}

/* --- Gallery Section --- */


.gallery-title {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    border-right: 4px solid var(--kaf-gold);
    padding-right: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}


.gallery-title {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    /* کمی فاصله بیشتر */
    border-right: 4px solid var(--kaf-gold);
    padding-right: 10px;
    display: flex;
    align-items: center;
}

.gallery-grid {
    display: grid;
    /* تنظیم تعداد ستون‌ها: در موبایل 2 عدد و در دسکتاپ تا 4 عدد */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    /* مهم: طبق تصویر دوم گوشه‌ها باید گرد باشند */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    /* اگر می‌خواهید تصاویر کاملاً مربع باشند این خط را نگه دارید، 
       در غیر این صورت می‌توانید حذف کنید تا ارتفاع آزاد باشد */
    aspect-ratio: 16/9;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* سایه ملایم برای جذابیت بیشتر */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Tags --- */
.news-tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-tag {
    background-color: var(--light);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.news-tag:hover {
    background-color: var(--kaf-blue);
    color: var(--white);
}

/* --- Sidebar Styles --- */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}






.align-items-stretch {

    align-items: stretch !important;

    display: flex;

    flex-direction: row-reverse;

}

.modern-meta-container {
    background-color: #F8F9FA;
    border-radius: 20px;
    direction: rtl;
    border: 1px solid rgba(13, 71, 161, 0.05);
}

.meta-box-item {
    padding: 20px 55px;
    display: flex;
    align-items: center;
    height: 100%;
    flex-wrap: wrap;

        @media screen and (max-width:1200px) and (min-width:680px) {
        flex-wrap: nowrap;
        padding: 5px 5px;
    }

}

.id-section {
    justify-content: flex-start;
}

.meta-content {
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

.meta-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.meta-number {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 800;
}

.meta-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kaf-blue);
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.modern-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 50px;
    padding: 4px;
    width: 100%;
    max-width: 450px;
}

.modern-input {
    border: none !important;
    background: transparent !important;
    padding: 8px 2px 8px 14px !important;
    direction: ltr;
    text-align: center;
    width: 100%;
    font-size: 0.8rem;
    
}


.link-icon-start {
    position: absolute;
    right: 15px;
    color: #00897b;
    font-size: 1.3rem;
}

.copy-btn-modern {
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    background-color: var(--kaf-blue);
    color: var(--white);
    border: none;
    border-radius: 40px;
    padding: 0 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    z-index: 5;
    

    @media screen and (max-width:1200px) and (min-width:680px) {
        padding: 0 10px;

    }
}

.copy-btn-modern:hover {
    background-color: #00897b;
}

.link-label-text {
    color: var(--text-muted);
    white-space: nowrap;
    

}

.news-tag {
    background: #e1f5fe;
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-left: 8px;
    transition: 0.3s;
}

.news-tag:hover {
    background: var(--blue);
    color: white;
}

/* -----------News Meta Box----------- */

/* --------------modern-paging-news---------------- */

.modern-paging .pagination {
    background: #f8fbff;
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid #eef2f7;
    display: flex;
    gap: 6px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.modern-paging .page-item .page-link {
    border: none;
    background: white;
    color: #1a237e;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.modern-paging .page-item.active .page-link {
    background-color: #0d47a1;
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.3);
}

.modern-paging .page-item:first-child .page-link,
.modern-paging .page-item:last-child .page-link {
    width: auto;
    padding: 0 18px;
    border-radius: 20px !important;
    background: #e3f2fd;
    color: #0d47a1;
}

.modern-paging .page-item .page-link:hover:not(.disabled) {
    background-color: #0d47a1;
    color: white !important;
}

.modern-paging .page-item.disabled span.page-link {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #90a4ae;
}

/* --------------modern-paging-news---------------- */
/* --------------search-box-news---------------- */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 8px 20px rgba(0, 46, 135, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}


.search-box:focus-within {
    box-shadow: 0 10px 25px rgba(0, 46, 135, 0.12);
    border-color: #002e87;
}


.search-box .form-control {
    border: none !important;
    background: transparent !important;
    height: 38px;
    padding: 0 20px;
    font-size: 0.95rem;
    color: #333;
    box-shadow: none !important;
    flex-grow: 1;
}


.search-box .btn-search-style {
    background: linear-gradient(135deg, #002e87 0%, #0056ff 100%);
    color: #fff;
    border: none;
    height: 36px;
    padding: 0 25px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}


.search-box .btn-search-style:hover {
    padding: 0 30px;
    filter: brightness(1.1);
}


.search-box .btn-search-style i {
    font-size: 0.9rem;
}

.search-box .form-control:focus {
    outline: none;
}

/* --------------search-box-news---------------- */



/* --------------cloud-wrapper---------------- */

.keyword-cloud-container {
    direction: rtl;

}

.cloud-title {
    color: white;
    margin-bottom: 15px;
    font-family: tahoma, arial;
}


.cloud-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}


.cloud-item {
    display: inline-block;
    padding: 8px 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0);
}


.cloud-item:hover,
.cloud-item.active {
    border: 1px solid #FFD700;
    color: #FFD700;
    background-color: rgba(255, 255, 255, 0.05);
}


/* --------------/cloud-wrapper---------------- */



/* --------------breadcrumb---------------- */


.custom-breadcrumb-nav .breadcrumb {
    background: transparent !important;
    padding: 0;
    margin: 0;
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.custom-breadcrumb-nav .breadcrumb-item {
    font-size: 14px;
    display: flex;
    align-items: center;
}


.custom-breadcrumb-nav .breadcrumb-item a {
    color: #6c757d !important;
    text-decoration: none !important;
    padding: 2px 4px;
    display: inline-block;
    transition: color 0.2s;
}

.custom-breadcrumb-nav .breadcrumb-item a:hover {
    color: #000 !important;
}


.custom-breadcrumb-nav .breadcrumb-item.active,
.custom-breadcrumb-nav .breadcrumb-item:last-child {
    color: #000080 !important;
    font-weight: bold;
    cursor: default;
}

.custom-breadcrumb-nav .breadcrumb-item+.breadcrumb-item::before {
    content: "/" !important;
    color: #ffc107 !important;
    font-weight: bold;
    padding: 0 8px;
    pointer-events: none;
}

/* --------------/cloud-wrapper---------------- */
/* --------------breadcrumb---------------- */
.custom-breadcrumb-nav {
    padding-top: 2rem;
    direction: rtl;
    position: relative;
    z-index: 5;
}

.custom-breadcrumb-nav .breadcrumb {
    background: transparent !important;
    padding: 0;
    margin: 0;
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.custom-breadcrumb-nav .breadcrumb-item {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.custom-breadcrumb-nav .breadcrumb-item a {
    color: #6c757d !important;
    text-decoration: none !important;
    padding: 2px 4px;
    display: inline-block;
    transition: color 0.2s;
}

.custom-breadcrumb-nav .breadcrumb-item a:hover {
    color: #000 !important;
}

.custom-breadcrumb-nav .breadcrumb-item.active,
.custom-breadcrumb-nav .breadcrumb-item:last-child {
    color: #000080 !important;
    font-weight: bold;
    cursor: default;
}

.custom-breadcrumb-nav .breadcrumb-item+.breadcrumb-item::before {
    content: "/" !important;
    color: #ffc107 !important;
    font-weight: bold;
    padding: 0 8px;
    pointer-events: none;
}

/* --------------/breadcrumb---------------- */


@media screen and (min-width:1200px)and (max-width:1399px) {

    .main-nav {
        margin-left: 2rem;
    }
}



.security{
    width: 450px;
}



/* Root variables for easy theming */

/* Main container */
.box-inner-page {
    background: var(--bg-light);
    border-radius: 5px;
    padding: 24px;
    border: 1px solid #eaeaea;
}

/* Section headers */
.head-box {
    margin: 24px 0 16px;
}

.form-select {
    border: none;
}

.form-select {
    display: block;
    padding: 0px !important;
}

.form-select.col-12.commet_box {
    width: 100%;
}

.email_box,
.name_box {
    width: 50%;
    
}
.title-box{
    background-color: var(--back-light);
    padding: 10px 10px 10px 0px;
    border-radius: 20px;    
}

.title-box .title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding: 10px;
    display: flex;
    background-color: var(--back-light);
    border-radius: 5px;
    color: var(--text-gray);
    /* display: none; */
}

.title-box .title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 60%;
    background: var(--primary);
    transform: translateY(-50%);
    border-radius: 10px;
}

/* Add comment button */
.add-comment-section {
    font-size: 14px;
    border-radius: 5px;
    transition: var(--transition);
    color: var(--text-gray);
}


.add-comment-section img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.add-comment-btn {
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
}


/* Form sections */
.form-contact-section {
    margin-top: 20px;
}

.form-select {
    --bs-form-select-bg-img: none;
    padding: .375rem 100px .375rem .75rem;
}

/* Labels */
.lbl-input {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-select textarea {
    border: 0.1px solid var(--blue-light);

}

/* Inputs & textarea */
.input-control {
    width: 100% !important;
    padding: 12px 14px;
    border-radius: 5px;
    font-size: 0.95rem;
    border: 0.1px solid white;
    background: var(--light-text);
}

.input-control:focus {
    border: 0.1px solid var(--blue-light);

    outline: none;
    /* border-color: var(--primary); */
    /* box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) inset; */
}

/* Textarea */
textarea.input-control {
    min-height: 120px;
    resize: vertical;
}

/* Submit button */

.input-control-btn {
    background: var(--blue);
    color: var(--back-light);
    border: none;
    font-weight: 500;
    padding: 12px 28px;
    cursor: pointer;
    transition: var(--transition);
}


/* Message feedback */
.input-message {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Comments list */
.comments-container {
    margin-top: 10px;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comments-list li {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.comments-list li:hover {
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.footer-bottom-links {
	display: contents;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .box-inner-page {
        padding: 16px;
    }
    
    .add-comment-section {
        gap: 12px;
    }

    .title-box .title {
        font-size: 1rem;
        align-items: center;
        justify-content: center;
    }
}
#refresh-button {
  border: none !important;
  background: transparent !important;
  width: 50px !important;
}
    .title-box img{
        width: 30px !important;
    }




.events-list li a{
  width: 260px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



    :root {
        --white: #fff;
        --Primary: #8fb6d9;
        --Primary-1: #DCECFF;
        --blue-1: #0059CF;
        --blue-2: #005477;
        --blue-3: #052948;
        --blue-4: #154472;
        --blue-5: #5bc2e0;
        --blue-6: #0C61AC;
        --black: #000;
        --blue-light: #E7EFF7;
        --light: #F7F9FC;
        --light-2: #7E91A2;
        --text: #959FAE;
        --kaf-teal: #00c4b4;
        --background-template: #f8faff;
        --color-bg-light: #e3f2fd;
        --text-links: #37474f;
        --color-secondary: #00897b;
        --color-text-main: #37474f;
        --color-text-muted: #666;
        --card-radius: 24px;
    }
.Search-box-header{
    margin-top: 6rem;
}
    /* هدر گرادینت */
    .search-header-bg {
        background: linear-gradient(135deg, var(--blue-4) 0%, var(--blue-1) 100%);
        padding-bottom: 110px;
        padding-top: 60px;
        color: var(--white);
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
        margin-bottom: 2rem;
        text-align: center;
    }

    /* باکس جستجوی شناور */
    .search-box-wrapper {
        margin-top: -85px; /* ایجاد حالت شناور روی هدر */
        background: var(--white);
        padding: 25px;
        border-radius: var(--card-radius);
        box-shadow: 0 15px 40px rgba(5, 41, 72, 0.1);
        position: relative;
        z-index: 10;
    }

    .form-control-custom {
        background-color: var(--light);
        border: 1px solid transparent;
        padding: 12px;
        border-radius: 12px;
        color: var(--blue-3);
    }

    .form-control-custom:focus {
        background-color: var(--white);
        border-color: var(--blue-6);
        box-shadow: 0 0 0 4px var(--Primary-1);
    }

    .btn-search-custom {
        background-color: var(--blue-6);
        color: var(--white);
        border-radius: 12px;
        padding: 12px;
        transition: all 0.3s;
        border: none;
        font-weight: bold;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btn-search-custom:hover {
        background-color: var(--blue-1);
        color: var(--white);
    }

    /* کارت‌های نتایج */
    .result-card {
        background: var(--white);
        border: 1px solid var(--blue-light);
        border-radius: var(--card-radius);
        margin-bottom: 25px;
        transition: transform 0.3s, box-shadow 0.3s;
        overflow: hidden;
        position: relative;
    }

    .result-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(21, 68, 114, 0.1);
        border-color: var(--Primary);
    }

    .card-stripe {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        z-index: 2;
    }

    /* تم‌بندی کارت‌ها بر اساس نوع */
    .type-news .card-stripe {
        background-color: var(--blue-6);
    }

    .type-news .type-badge {
        background-color: var(--color-bg-light);
        color: var(--blue-6);
    }

    .type-page .card-stripe {
        background-color: var(--kaf-teal);
    }

    .type-page .type-badge {
        background-color: #e0f2f1;
        color: var(--color-secondary);
    }

    /* تصاویر کارت */
    .card-img-col {
        min-height: 200px;
        position: relative;
        overflow: hidden;
    }

    .news-img {
        width: 100%;
        height: 100%;
        min-height: 220px;
        object-fit: cover;
        transition: 0.5s;
    }

    .result-card:hover .news-img {
        transform: scale(1.05);
    }

    /* آیکون جایگزین برای صفحاتی که عکس ندارند */
    .static-icon-wrapper {
        width: 100%;
        height: 100%;
        min-height: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--light);
        font-size: 3.5rem;
        color: var(--light-2);
        transition: 0.3s;
    }

    .result-card:hover .static-icon-wrapper i {
        color: var(--kaf-teal);
        transform: scale(1.1) rotate(-5deg);
    }

    .card-body-custom {
        padding: 1.8rem;
    }

    .type-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        border-radius: 50px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 12px;
    }

    .result-title {
        font-size: 1.15rem;
        font-weight: 800;
        text-decoration: none;
        color: var(--blue-3);
        display: block;
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .result-title:hover {
        color: var(--blue-6);
    }

    /* اطلاعات متای کارت */
    .meta-info {
        font-size: 0.85rem;
        color: var(--light-2);
        margin-top: auto;
        padding-top: 15px;
        border-top: 1px dashed var(--blue-light);
        display: flex;
        align-items: center;
        justify-content: right;
        gap: 10px;
        position: relative;
    }
    
    .Contaier-content {
        display: flex;
        align-items: center;
        justify-content: left;
        position: absolute;
        left: 0;
    }

    .Contaier-content a {
        padding: 6px 12px;
        border-radius: 8px;
        transition: 0.3s;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: bold;
    }

    /* لینک دکمه بر اساس تم */
    .type-news .Contaier-content a {
        color: var(--blue-6);
    }
    .type-news .Contaier-content:hover a {
        background-color: var(--blue-light);
    }

    .type-page .Contaier-content a {
        color: var(--color-secondary);
    }
    .type-page .Contaier-content:hover a {
        background-color: #e0f2f1; 
    }

    /* استایل صفحه‌بندی */
    .pagination-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
