﻿@charset "utf-8";

/* ================= Fonts: Vazirmatn ================= */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ================= Base ================= */

html,
body {
    font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f6f8;
    color: #222;
    line-height: 1.8;
    font-size: 0.95rem;
}

.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

/* ================= Topbar ================= */

.topbar {
    background: #111827;
    color: #e5e7eb;
    font-size: 0.85rem;
    padding: .35rem 0;
}

    .topbar a {
        color: #9ca3af;
        text-decoration: none;
    }

        .topbar a:hover {
            color: #f97316;
        }

/* ================= Navbar ================= */

.main-navbar {
    background-color: #b11c1f;
    border-bottom: 1px solid #8d1518;
    box-shadow: 0 2px 4px rgba(0,0,0,.06);
}

.navbar-brand-text .brand-title {
    color: #ffffff;
}

.navbar-brand-text .brand-subtitle {
    color: #fde68a;
}

.main-menu .nav-link {
    padding: .6rem 0.9rem;
    color: #f9fafb;
    font-weight: 500;
}

    .main-menu .nav-link:hover,
    .main-menu .nav-link.active {
        color: #fffbeb;
        background-color: rgba(0,0,0,.08);
        border-radius: .35rem;
    }

/* فلش جدا برای باز کردن زیرمنو در منوی اصلی */
.nav-caret-only {
    border: none;
    background: transparent;
    padding-right: .15rem;
    padding-left: .15rem;
    cursor: pointer;
    color: #f9fafb; /* هم‌رنگ لینک‌ها */
}

    .nav-caret-only::after {
        margin-left: 0; /* چون RTL هستیم */
    }

/* مطمئن شو آیتم‌های dropdown کنار هم درست می‌چینند */
.nav-item.dropdown.d-flex.align-items-center .dropdown-menu {
    top: 100%;
    right: 0;
}


/* Header Search */

.header-search {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 0;
    margin-right: 1.7rem;
}

    .header-search input {
        background-color: #ffffff;
        border: 1px solid #e5e7eb;
        border-left: none;
        border-radius: 0 999px 999px 0;
        height: 37px;
        padding: 0 1rem;
        font-size: .85rem;
        min-width: 230px;
        box-shadow: none;
    }

    .header-search button {
        background-color: #edeaea;
        border: 1px solid #e5e7eb;
        border-right: none;
        border-radius: 999px 0 0 999px;
        height: 37px;
        width: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        box-shadow: none;
    }

        .header-search button i {
            font-size: 1rem;
            color: #6b7280;
        }

        .header-search input:focus,
        .header-search button:focus {
            outline: none;
            border-color: #f97316;
            box-shadow: 0 0 0 2px rgba(249,115,22,.12);
        }

        .header-search button:hover i {
            color: #dc2626;
        }

/* ================= Breaking news ticker ================= */

.breaking-news {
    background: #111827;
    color: #f9fafb;
    padding: .35rem 0;
    border-bottom: 2px solid #dc2626;
    font-size: 0.8rem;
}

.breaking-label {
    background: #dc2626;
    padding: .15rem .5rem;
    border-radius: .25rem;
    font-size: .8rem;
}

.breaking-ticker {
    overflow: hidden;
    flex: 1;
}

    .breaking-ticker ul {
        display: flex;
        gap: 2rem;
        padding: 0;
        margin: 0;
        list-style: none;
        animation: ticker 22s linear infinite;
    }

    .breaking-ticker a {
        color: #e5e7eb;
        font-size: .8rem;
        text-decoration: none;
    }

        .breaking-ticker a:hover {
            color: #f97316;
        }

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-40%);
    }
}

/* ================= Breaking news ticker (Mobile: single item) ================= */
@media (max-width: 575.98px) {

    /* ارتفاع ثابت و جلوگیری از بلند شدن نوار */
    .breaking-ticker {
        position: relative;
        overflow: hidden;
        height: 32px; /* اگر خواستی 28 یا 36 هم میشه */
    }

        /* دیگه حالت flex و انیمیشن افقی رو برای موبایل خاموش می‌کنیم */
        .breaking-ticker ul {
            display: block !important;
            animation: none !important;
        }

        /* پیش‌فرض همه آیتم‌ها مخفی */
        .breaking-ticker li {
            display: none;
        }

            /* فقط آیتم فعال نمایش داده شود */
            .breaking-ticker li.bn-active {
                display: block;
            }

        /* متن تک‌خطی و ... */
        .breaking-ticker a {
            display: block;
            white-space: nowrap !important;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 32px; /* با height هماهنگ */
        }

        /* افکت ورود/خروج (اختیاری ولی قشنگه) */
        .breaking-ticker li.bn-enter {
            animation: bnSlideIn 350ms ease both;
        }

        .breaking-ticker li.bn-exit {
            animation: bnSlideOut 350ms ease both;
        }

    @keyframes bnSlideIn {
        from {
            transform: translateX(30px);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes bnSlideOut {
        from {
            transform: translateX(0);
            opacity: 1;
        }

        to {
            transform: translateX(-30px);
            opacity: 0;
        }
    }
}


/* ================= Hero slider ================= */

.hero-slider .hero-img {
    max-height: 420px;
    object-fit: cover;
}

.hero-caption {
    background: linear-gradient(to top, rgba(0,0,0,.88), transparent);
    text-align: right;
    padding: 15px 20px !important;
    border-radius: 8px;
}

    .hero-caption h2,
    .hero-caption p,
    .hero-caption .cat-badge {
        margin-bottom: 6px;
    }

.hero-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.hero-summary {
    font-size: .85rem;
    margin-top: .25rem;
    color: #e5e7eb;
}

.cat-badge {
    background-color: #dc2626;
    font-size: .7rem;
}

/* ================= Sections / News cards ================= */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .5rem;
}

    .section-header h3 {
        font-size: 1.05rem;
        font-weight: 700;
        border-right: 3px solid #dc2626;
        padding-right: .5rem;
        margin: 0;
    }

    .section-header .more-link {
        font-size: .8rem;
        color: #4b5563;
        text-decoration: none;
        border-left: 3px solid #dc2626;
        padding-left: .5rem;
    }

        .section-header .more-link:hover {
            color: #dc2626;
        }

.news-card {
    display: flex;
    gap: .75rem;
    background: #ffffff;
    border-radius: .5rem;
    padding: .6rem;
    border: 1px solid #e5e7eb;
    transition: all .2s ease;
    height: 100%;
}

    .news-card:hover {
        box-shadow: 0 6px 18px rgba(15,23,42,.12);
        transform: translateY(-2px);
    }

.news-thumb img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: .4rem;
}

.news-body {
    flex: 1;
}

.news-cat {
    font-size: .7rem;
    color: #dc2626;
    text-decoration: none;
}

.news-title {
    font-size: .9rem;
    font-weight: 700;
    margin: .1rem 0;
}

    .news-title a {
        color: #111827;
        text-decoration: none;
    }

        .news-title a:hover {
            color: #dc2626;
        }

.news-excerpt {
    font-size: .78rem;
    color: #6b7280;
    margin-bottom: .25rem;
}

.news-meta {
    font-size: .7rem;
    color: #9ca3af;
    display: flex;
    gap: .75rem;
}

/* ========== Featured News layout ========== */

.featured-news .news-card-featured {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: .6rem .7rem .55rem .7rem;
}

.news-card-featured .news-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.news-card-featured .news-thumb {
    display: block;
    overflow: hidden;
    border-radius: 0.45rem;
    flex-shrink: 0;
}

    .news-card-featured .news-thumb img {
        display: block;
        width: 120px;
        height: 90px;
        object-fit: cover;
    }

.news-card-featured .news-body {
    padding: 0;
}

.news-subtitle {
    font-size: .78rem;
    color: #6b7280;
    margin-top: .15rem;
    margin-bottom: .35rem;
}

.news-excerpt-wide {
    margin-top: .4rem;
    margin-bottom: .6rem;
    font-size: .8rem;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: .4rem;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    font-size: .7rem;
    color: #9ca3af;
    justify-content: space-between;
}

    .news-meta-footer .news-meta-item i {
        margin-left: .25rem;
        font-size: .85em;
    }

/* ================= Video cards ================= */

.video-card {
    background: #ffffff;
    border-radius: .5rem;
    padding: .5rem;
    border: 1px solid #e5e7eb;
    transition: all .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .video-card:hover {
        box-shadow: 0 6px 18px rgba(15,23,42,.12);
        transform: translateY(-2px);
    }

    .video-card .video-thumb {
        position: relative;
        overflow: hidden;
        border-radius: .45rem;
        margin-bottom: .5rem;
    }

        .video-card .video-thumb img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            display: block;
        }

    .video-card .video-play-icon {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,.55);
        color: #fff;
        font-size: 2rem;
        opacity: 0;
        transition: opacity .2s;
    }

    .video-card .video-thumb:hover .video-play-icon {
        opacity: 1;
    }

.video-title {
    font-size: .85rem;
    margin-top: .2rem;
    margin-bottom: 0;
}

    .video-title a {
        color: #111827;
        text-decoration: none;
    }

        .video-title a:hover {
            color: #dc2626;
        }

/* آخرین ویدئو در سایدبار */

.sidebar-widget .video-card-mini {
    padding: .4rem .4rem .5rem .4rem;
}

    .sidebar-widget .video-card-mini .video-thumb {
        position: relative;
        overflow: hidden;
        border-radius: .45rem;
        margin-bottom: .35rem;
    }

        .sidebar-widget .video-card-mini .video-thumb img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            display: block;
        }

    .sidebar-widget .video-card-mini .video-play-icon {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,.55);
        color: #fff;
        font-size: 1.8rem;
        opacity: 0;
        transition: opacity .2s;
    }

    .sidebar-widget .video-card-mini .video-thumb:hover .video-play-icon {
        opacity: 1;
    }

    .sidebar-widget .video-card-mini .video-title-mini a {
        font-size: .8rem;
        color: #111827;
        text-decoration: none;
    }

        .sidebar-widget .video-card-mini .video-title-mini a:hover {
            color: #dc2626;
        }

/* ================= Sidebar ================= */

.sidebar-widget {
    background: #ffffff;
    padding: .75rem;
    border-radius: .5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: .75rem;
}

.widget-title {
    font-size: .9rem;
    font-weight: 700;
    border-right: 3px solid #dc2626;
    padding-right: .4rem;
    margin-bottom: .5rem;
}

.widget-list li {
    padding: .25rem 0;
    font-size: .8rem;
}

.widget-list a {
    color: #374151;
    text-decoration: none;
}

    .widget-list a:hover {
        color: #dc2626;
    }

/* پربازدیدترین اخبار */

.sidebar-widget.most-viewed-widget .widget-list {
    margin: 0;
    padding: 0;
}

.sidebar-widget.most-viewed-widget .widget-list-item {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

    .sidebar-widget.most-viewed-widget .widget-list-item:last-child {
        border-bottom: none;
    }

.sidebar-widget.most-viewed-widget .widget-list-link {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
    color: inherit;
    font: inherit;
}

    .sidebar-widget.most-viewed-widget .widget-list-link:hover {
        color: #bb2124;
        text-decoration: none;
    }

/* ================= Ads ================= */

.ad-box img {
    width: 100%;
    border-radius: .5rem;
    object-fit: cover;
}

.sidebar-ads .ad-sidebar-card {
    border: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,.03);
    border-radius: .75rem;
    overflow: hidden;
}

.sidebar-ads .card-body {
    padding: .75rem;
}

.sidebar-ads .ad-item {
    border-radius: .75rem;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .sidebar-ads .ad-item + .ad-item {
        margin-top: .5rem;
    }

.sidebar-ads .ad-item-sm img,
.sidebar-ads .ad-item-lg img {
    display: block;
    width: 100%;
    height: auto;
}

.sidebar-ads .ad-box {
    text-decoration: none;
}

.sidebar-ads .ad-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

/* ================= Footer ================= */

.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.footer-title {
    font-size: .9rem;
    color: #f9fafb;
    margin-bottom: .5rem;
}

.footer-text,
.footer-links li {
    font-size: .78rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links a {
        color: #9ca3af;
        text-decoration: none;
    }

        .footer-links a:hover {
            color: #f97316;
        }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: .75rem;
    margin-top: 1.5rem;
    font-size: .7rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ================= Back to top ================= */

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #dc2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .2s;
    z-index: 999;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

/* ================= Home Gallery ================= */

/* کمربند گالری در پایین صفحه اصلی */
.home-gallery-belt {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0 2rem;
    margin-top: 1.5rem;
}

.home-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .75rem;
}

    .home-gallery-header h3 {
        font-size: 1.05rem;
        font-weight: 700;
        border-right: 3px solid #dc2626;
        padding-right: .5rem;
        margin: 0;
    }

    .home-gallery-header .more-link {
        font-size: .8rem;
        color: #6b7280;
        text-decoration: none;
        border-left: 3px solid #dc2626;
        padding-left: .5rem;
    }

        .home-gallery-header .more-link:hover {
            color: #dc2626;
        }

/* --- کارت گالری --- */

.gallery-card {
    display: block;
    position: relative;
    border-radius: .75rem;
    overflow: hidden;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all .25s ease;
    height: 100%;
}

.gallery-thumb {
    position: relative;
    overflow: hidden;
}

    .gallery-thumb img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
        transition: transform .35s ease;
    }

.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .45rem .55rem .55rem;
    background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,0));
    color: #f9fafb;
    transition: padding .25s ease, background .25s ease;
    direction: rtl;
    text-align: right;
}


.gallery-label {
    display: inline-block;
    font-size: .65rem;
    padding: .05rem .35rem;
    border-radius: .35rem;
    background-color: #dc2626;
    margin-bottom: .15rem;
}

.gallery-title {
    font-size: .8rem;
    margin: 0;
    line-height: 1.6;
}

/* بج تاریخ */
.gallery-date-badge {
    display: inline-block;
    margin-top: .35rem;
    padding: .1rem .5rem;
    border-radius: 999px;
    background-color: #f44336;
    color: #fff;
    font-size: .7rem;
}

/* افکت hover کارت */
.gallery-card:hover {
    box-shadow: 0 8px 22px rgba(15,23,42,.16);
    transform: translateY(-3px);
    border-color: #d1d5db;
}

    .gallery-card:hover .gallery-thumb img {
        transform: scale(1.06);
    }

    .gallery-card:hover .gallery-overlay {
        padding-bottom: .8rem;
    }

/* --- اسلایدر گالری --- */

.gallery-carousel {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* ویوپورت */
.gallery-viewport {
    overflow: hidden;
    flex: 1 1 auto;
}

/* ترک: نوار افقی اسلایدها */
.gallery-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform .4s ease;
}

/* هر اسلاید (گالری) */
.gallery-slide {
    flex: 0 0 25%;
    max-width: 25%;
}

/* دکمه‌های ناوبری چپ/راست */
.gallery-arrow {
    border: none;
    background: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease, color .15s ease;
    color: #333;
}

    .gallery-arrow:hover {
        background-color: #f44336;
        color: #fff;
        transform: translateY(-1px);
    }

    .gallery-arrow:disabled {
        opacity: .5;
        cursor: default;
        transform: none;
    }

/* موبایل: ۲ تا در هر نما */
@media (max-width: 767.98px) {
    .gallery-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .gallery-thumb img {
        height: 150px;
    }
}




/* ================= Responsive ================= */

@media (max-width: 575.98px) {
    .hero-caption {
        padding-bottom: 1rem;
    }

    .hero-title {
        font-size: 1rem;
    }

    .news-thumb img {
        width: 100px;
        height: 70px;
    }

    .video-card .video-thumb img {
        height: 180px;
    }

    .news-card-featured .news-main {
        flex-direction: column;
    }

    .news-card-featured .news-thumb img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 991.98px) {
    .news-card {
        flex-direction: row;
    }

    .main-navbar {
        padding-top: .3rem;
        padding-bottom: .3rem;
    }
}

/* ================= Dropdown Menu ================= */

.main-navbar .dropdown-menu {
    border: none;
    border-radius: 0 0 .6rem .6rem;
    padding: .4rem 0;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
    transition: all .25s ease;
    min-width: 200px;
}

.main-navbar .dropdown-item {
    font-size: .85rem;
    color: #374151;
    padding: .45rem 1rem;
    border-radius: 0;
    transition: all .2s ease;
}

    .main-navbar .dropdown-item:hover,
    .main-navbar .dropdown-item:focus {
        background: #fef2f2;
        color: #dc2626;
        padding-right: 1.3rem;
    }

.main-navbar .dropdown-menu.show {
    animation: dropdownFade .25s ease forwards;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .main-navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* ================= Gallery Details Page ================= */

.gallery-details-card {
    background: #ffffff;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(15,23,42,.06);
    padding: 1.25rem 1.3rem 1.3rem;
}

.gallery-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.gallery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .9rem;
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: .75rem;
}

.gallery-meta-item i {
    margin-left: .25rem;
    font-size: .9em;
}

/* کاور گالری */
.gallery-cover-wrapper {
    border-radius: .75rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-cover-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* توضیحات گالری */
.gallery-description {
    font-size: .9rem;
    color: #374151;
    line-height: 1.9;
}

/* گرید تصاویر */
.gallery-images-grid .gallery-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border-radius: .5rem;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-images-grid .gallery-thumb-link:hover img {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(15,23,42,.18);
}

/* ================= Related News Block ================= */

.gallery-related-news {
    margin-top: 1.5rem;
}

.gallery-related-title {
    font-size: .95rem;
    font-weight: 700;
    border-right: 3px solid #dc2626;
    padding-right: .45rem;
    margin-bottom: .6rem;
}

.related-news-card {
    display: flex;
    gap: .75rem;
    padding: .6rem .7rem;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.related-news-thumb img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: .5rem;
    display: block;
}

.related-news-body {
    flex: 1;
}

.related-news-title {
    font-size: .85rem;
    margin: 0 0 .3rem 0;
    font-weight: 600;
}

.related-news-meta {
    font-size: .78rem;
    color: #6b7280;
}

    .related-news-meta i {
        margin-left: .25rem;
    }

.related-news-card:hover {
    border-color: #f97316;
    box-shadow: 0 6px 20px rgba(15,23,42,.16);
    transform: translateY(-2px);
}

/* ================= Gallery Lightbox ================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
    box-sizing: border-box;
}

    .gallery-lightbox.is-open {
        display: flex;
    }

.gallery-lightbox-dialog {
    max-width: 960px;
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    color: #f9fafb;
}

/* جلوگیری از اسکرول صفحه زیر لایت‌باکس */
body.gallery-lightbox-open {
    overflow: hidden;
}

.lightbox-close {
    align-self: flex-start;
    border: none;
    background: transparent;
    color: #f9fafb;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    margin-bottom: .3rem;
}

.lightbox-image-wrapper {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
    border-radius: .75rem;
    overflow: hidden;
}

    .lightbox-image-wrapper img {
        max-width: 100%;
        max-height: 70vh;
        object-fit: contain;
        display: block;
    }

.lightbox-footer {
    font-size: .85rem;
}

.lightbox-caption {
    margin-bottom: .25rem;
    min-height: 1.2em;
}

.lightbox-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    font-size: .8rem;
    color: #e5e7eb;
}

.lightbox-counter {
    opacity: .85;
}

.lightbox-nav-btns {
    display: inline-flex;
    gap: .35rem;
}

.lightbox-nav {
    border: none;
    background: #111827;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background-color .2s ease, transform .15s ease;
}

    .lightbox-nav:hover {
        background-color: #f97316;
        transform: translateY(-1px);
    }

/* ================= Gallery Share Bar ================= */

.gallery-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem .5rem;
    font-size: .82rem;
    color: #6b7280;
    margin-bottom: .5rem;
}

.gallery-share-label {
    font-weight: 500;
}

.gallery-share-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
    font-size: 1rem;
}

    .gallery-share-btn:hover {
        background-color: #f97316;
        color: #ffffff;
        box-shadow: 0 4px 10px rgba(249,115,22,.35);
    }

/* ================= Gallery Comments ================= */

.gallery-comments {
    margin-top: 2rem;
}

.gallery-comments-title {
    font-size: .95rem;
    font-weight: 700;
    border-right: 3px solid #dc2626;
    padding-right: .45rem;
    margin-bottom: .6rem;
}

.gallery-comments-list {
    margin-bottom: 1rem;
}

/* هر آیتم نظر */
.comment-item {
    background: #ffffff;
    border-radius: .6rem;
    border: 1px solid #e5e7eb;
    padding: .6rem .75rem;
    margin-bottom: .5rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: .25rem;
}

.comment-author {
    font-weight: 600;
    font-size: .85rem;
    color: #111827;
}

.comment-meta {
    font-size: .75rem;
    color: #9ca3af;
}

.comment-body {
    font-size: .85rem;
    color: #4b5563;
    line-height: 1.8;
}

/* فرم ارسال دیدگاه */
.gallery-comment-form {
    background: #ffffff;
    border-radius: .6rem;
    border: 1px solid #e5e7eb;
    padding: .8rem .9rem;
}

.comment-form-title {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .6rem;
}

/* کپچای فرضی */
.captcha-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: .25rem .5rem;
    border-radius: .4rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    font-family: "Vazirmatn", system-ui;
}

/* موبایل */
@media (max-width: 575.98px) {
    .gallery-cover-img {
        max-height: 260px;
    }

    .related-news-card {
        flex-direction: column;
    }

    .related-news-thumb img {
        width: 100%;
        height: 160px;
    }
}

/* ========== Video archive tweaks ========== */

/* تفاوت ظریف کارت‌های آرشیو با کارت‌های صفحه اصلی */
.video-card-archive {
    margin-bottom: .25rem;
}

/* زیرعنوان زیر عنوان ویدئو در آرشیو */
.video-subtitle {
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: .35rem;
}

/* متای پایین کارت: تاریخ و ... */
.video-meta {
    display: flex;
    gap: .75rem;
    font-size: .75rem;
    color: #9ca3af;
}

.video-meta-item i {
    margin-left: .25rem;
    font-size: .9em;
}

/* بج مدت زمان روی تصویر ویدئو */
.video-duration-badge {
    position: absolute;
    left: .45rem;
    bottom: .45rem;
    padding: .05rem .45rem;
    border-radius: 999px;
    background: rgba(15,23,42,.9);
    color: #f9fafb;
    font-size: .7rem;
    line-height: 1.5;
}

/* ========== Video Details Page ========== */

.video-details {
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.video-details-header {
    margin-bottom: .75rem;
}

.video-title-main {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.video-subtitle-main {
    font-size: .9rem;
    color: #6b7280;
    margin-bottom: .35rem;
}

.video-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .75rem;
    color: #9ca3af;
}

    .video-details-meta .video-meta-item i {
        margin-left: .25rem;
        font-size: .9em;
    }

/* پلیر ریسپانسیو 16:9 */
.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background-color: #000;
    border-radius: .6rem;
    overflow: hidden;
}

.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* خلاصه و بدنه ویدئو */
.video-summary {
    font-size: .9rem;
    color: #4b5563;
}

.video-body {
    font-size: .9rem;
    color: #374151;
    line-height: 1.9;
}

    .video-body p {
        margin-bottom: .75rem;
    }

/* اشتراک‌گذاری */

.video-share .share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.share-btn-telegram {
    background: #0088cc;
}

.share-btn-whatsapp {
    background: #25d366;
}

.share-btn-x {
    background: #111827;
}

.share-btn-copy {
    background: #6b7280;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    opacity: .95;
}

/* نظرات */

.video-comments .comment-list {
    border-radius: .6rem;
    border: 1px solid #e5e7eb;
    padding: .75rem .9rem;
    background-color: #f9fafb;
}

.comment-item + .comment-item {
    border-top: 1px solid #e5e7eb;
    margin-top: .5rem;
    padding-top: .5rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: #6b7280;
    margin-bottom: .2rem;
}

.comment-author {
    font-weight: 600;
    color: #374151;
}

.comment-body {
    font-size: .85rem;
    color: #4b5563;
    margin-bottom: 0;
}

.comment-form {
    border-radius: .6rem;
    border: 1px solid #e5e7eb;
}

/* ویدئوهای دیگر در سایدبار */

.video-card-mini .video-thumb {
    position: relative;
    overflow: hidden;
    border-radius: .45rem;
}

    .video-card-mini .video-thumb img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        display: block;
    }

.video-card-mini .video-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 1.8rem;
    opacity: 0;
    transition: opacity .2s;
}

.video-card-mini .video-thumb:hover .video-play-icon {
    opacity: 1;
}

.video-title-mini {
    font-size: .8rem;
    margin: .25rem 0 .1rem 0;
}

    .video-title-mini a {
        color: #111827;
        text-decoration: none;
    }

        .video-title-mini a:hover {
            color: #dc2626;
        }

/* بج مدت زمان روی تصویر ویدئو (استفاده مشترک) */
.video-duration-badge {
    position: absolute;
    left: .45rem;
    bottom: .45rem;
    padding: .05rem .45rem;
    border-radius: 999px;
    background: rgba(15,23,42,.9);
    color: #f9fafb;
    font-size: .7rem;
    line-height: 1.5;
}

/* موبایل */
@media (max-width: 575.98px) {
    .video-player-wrapper {
        border-radius: .5rem;
    }

    .video-details-meta {
        gap: .45rem;
    }

    .video-card-mini .video-thumb img {
        height: 140px;
    }
}

/* ===== Article (News Details) ===== */
.article-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.article-card {
    background: #ffffff;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 10px rgba(15,23,42,0.04);
}

.article-header {
    margin-bottom: .75rem;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .35rem;
}

    .article-category a {
        font-size: .75rem;
        color: #dc2626;
        text-decoration: none;
        font-weight: 600;
    }

        .article-category a:hover {
            color: #b91c1c;
        }

.article-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 .35rem 0;
    color: #111827;
}

.article-subtitle {
    font-size: .9rem;
    color: #4b5563;
    margin-bottom: .45rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    font-size: .75rem;
    color: #9ca3af;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: .4rem 0;
    margin-bottom: .75rem;
}

.article-meta-item i {
    margin-left: .25rem;
    font-size: .85em;
}

.article-tools {
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.article-tool-btn {
    border: none;
    background: #f3f4f6;
    color: #4b5563;
    font-size: .8rem;
    padding: .25rem .45rem;
    border-radius: .35rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
}

    .article-tool-btn i {
        font-size: 1rem;
    }

    .article-tool-btn:hover {
        background: #e5e7eb;
        color: #111827;
    }

    .article-tool-btn span.font-btn {
        font-weight: 700;
    }

.article-cover {
    margin: .9rem 0 1rem 0;
}

    .article-cover img {
        width: 100%;
        border-radius: .75rem;
        display: block;
        object-fit: cover;
        max-height: 460px;
    }

.article-summary {
    background: #fef2f2;
    border-radius: .5rem;
    padding: .7rem .8rem;
    font-size: .85rem;
    color: #7f1d1d;
    border: 1px solid #fee2e2;
    margin-bottom: .8rem;
}

    .article-summary strong {
        display: inline-block;
        margin-left: .35rem;
    }

.article-body {
    font-size: .95rem;
    line-height: 2;
    color: #111827;
}

    .article-body p {
        margin-bottom: .8rem;
    }

    .article-body img {
        max-width: 100%;
        height: auto;
        margin: .5rem auto;
        display: block;
        border-radius: .5rem;
    }

.article-tags {
    margin-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
    padding-top: .6rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}

.article-tags-label {
    font-size: .78rem;
    color: #6b7280;
}

.article-tag {
    font-size: .75rem;
    padding: .1rem .5rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

    .article-tag:hover {
        background: #e5e7eb;
        color: #111827;
    }

.article-share {
    margin-top: 1rem;
    border-top: 1px dashed #e5e7eb;
    padding-top: .6rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
}

.article-share-left,
.article-share-right {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}

.share-label {
    color: #6b7280;
}

.share-btn {
    border-radius: 999px;
    border: none;
    padding: .25rem .55rem;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    width: 34px;
    height: 34px;
}

    .share-btn i {
        font-size: 1.1rem;
    }

.share-btn-telegram {
    background: #289bd7;
}

    .share-btn-telegram:hover {
        background: #1a7cab;
    }

.share-btn-whatsapp {
    background: #22c55e;
}

    .share-btn-whatsapp:hover {
        background: #16a34a;
    }

.share-btn-copy {
    background: #4b5563;
}

    .share-btn-copy:hover {
        background: #111827;
    }

.short-link-box {
    background: #f9fafb;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: .2rem .6rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    max-width: 100%;
}

.short-link-text {
    font-size: .75rem;
    color: #374151;
    direction: ltr;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.short-link-copy-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #6b7280;
}

    .short-link-copy-btn:hover {
        color: #111827;
    }

/* Related news */
.related-news-section {
    margin-top: 1.75rem;
}

.related-header {
    font-size: .95rem;
    font-weight: 700;
    border-right: 3px solid #dc2626;
    padding-right: .4rem;
    margin-bottom: .6rem;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-item {
    display: flex;
    gap: .5rem;
    padding: .4rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.related-thumb {
    flex-shrink: 0;
    border-radius: .4rem;
    overflow: hidden;
    width: 78px;
    height: 52px;
}

    .related-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.related-body {
    flex: 1;
}

.related-title {
    font-size: .8rem;
    margin: 0 0 .1rem 0;
}

    .related-title a {
        color: #111827;
        text-decoration: none;
    }

        .related-title a:hover {
            color: #dc2626;
        }

.related-meta {
    font-size: .7rem;
    color: #9ca3af;
}

/* Comments */
.comments-section {
    margin-top: 2rem;
}

.comments-header {
    font-size: .95rem;
    font-weight: 700;
    border-right: 3px solid #4b5563;
    padding-right: .4rem;
    margin-bottom: .7rem;
}

.comment-card {
    display: flex;
    gap: .65rem;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    padding: .6rem .7rem;
    background: #f9fafb;
    margin-bottom: .5rem;
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    color: #374151;
    flex-shrink: 0;
}

.comment-main {
    flex: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: #6b7280;
    margin-bottom: .25rem;
}

.comment-author {
    font-weight: 600;
}

.comment-body {
    font-size: .8rem;
    color: #111827;
}

.comment-form-card {
    margin-top: 1rem;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: .75rem .8rem;
}

    .comment-form-card .form-label {
        font-size: .8rem;
        margin-bottom: .2rem;
    }

    .comment-form-card .form-control {
        font-size: .85rem;
    }

.comment-form-hint {
    font-size: .75rem;
    color: #6b7280;
    margin-top: .15rem;
}

.comment-form-card button[type="submit"] {
    font-size: .85rem;
}

/* Sidebar tweaks */
.article-sidebar .sidebar-widget {
    margin-bottom: .75rem;
}

@media (max-width: 991.98px) {
    .article-card {
        padding: .85rem;
    }
}

@media (max-width: 575.98px) {
    .article-title {
        font-size: 1.05rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-tools {
        margin-right: 0;
    }
}

/* Social follow icons */
.social-follow {
    display: flex;
    gap: .6rem;
}

    .social-follow .social-btn {
        width: 40px;
        height: 40px;
        border-radius: 999px;
        border: 1px solid #e5e7eb;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #4b5563;
        background-color: #ffffff;
        text-decoration: none;
    }

        .social-follow .social-btn:hover {
            background-color: #f3f4f6;
            color: #111827;
        }




/* ===== Category (News List by Category) ===== */

.category-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.category-header {
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid #e5e7eb;
}

.category-label {
    font-size: .78rem;
    color: #6b7280;
    display: inline-block;
    margin-bottom: .2rem;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: #111827;
}

.category-description {
    font-size: .85rem;
    color: #4b5563;
    margin-top: .35rem;
}

/* هر آیتم خبر در دسته‌بندی */
.category-news-list {
    margin-top: .5rem;
}

.category-news-item {
    margin-bottom: .75rem;
}

/* سایدبار در صفحه دسته */
.article-sidebar .sidebar-widget {
    margin-bottom: .75rem;
}

/* آیکن‌های ما را دنبال کنید – کمی بزرگ‌تر و خاکستری تیره‌تر */
.social-follow .social-btn.social-btn-circle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #4b5563;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .15s ease;
    margin-inline-end: .35rem;
}

    .social-follow .social-btn.social-btn-circle:hover {
        background: #d1d5db;
        color: #111827;
        transform: translateY(-1px);
    }

/* کارت‌های خبر در صفحه دسته‌بندی */
.category-news-list .news-card-featured {
    display: flex;
    flex-direction: column;
}

/* جداکننده بین بدنه و فوتر متا */
.news-meta-separator {
    margin: .4rem 0 .2rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

/* فوتر متای خبر - تمام عرض کارت */
.news-meta.news-meta-footer {
    font-size: .75rem;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    justify-content: flex-start;
}

/* ===== Contact Us Page ===== */

.contact-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: #ffffff;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

.contact-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: .6rem;
    margin-bottom: 1rem;
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 .25rem 0;
    color: #111827;
}

.contact-subtitle {
    font-size: .85rem;
    color: #6b7280;
    margin: 0;
}

.contact-form .form-label {
    font-size: .85rem;
    color: #374151;
}

.contact-form .form-control {
    font-size: .85rem;
}

.contact-validation {
    font-size: .8rem;
    margin-bottom: .7rem;
}

.contact-extra {
    border-top: 1px dashed #e5e7eb;
    padding-top: .8rem;
}

.contact-extra-title {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.contact-extra-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .8rem;
    color: #4b5563;
}

    .contact-extra-list li {
        display: flex;
        align-items: center;
        gap: .4rem;
        margin-bottom: .2rem;
    }

    .contact-extra-list i {
        font-size: 1rem;
        color: #9ca3af;
    }

@media (max-width: 575.98px) {
    .contact-card {
        padding: 1rem 1rem;
    }

    .contact-title {
        font-size: 1.1rem;
    }
}


/*============= ContactUs View ============= */
.contact-page-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
}

    .contact-card .card-body {
        padding: 1.25rem 1.35rem;
    }

    .contact-card .form-label {
        font-size: .85rem;
    }

    .contact-card .form-control {
        font-size: .85rem;
    }

.contact-info-card {
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
}

    .contact-info-card .card-body {
        padding: 1.1rem 1.2rem;
    }

.contact-info-list i {
    font-size: 1rem;
    color: #6b7280;
}

.contact-info-list span {
    font-size: .85rem;
    color: #374151;
}

.contact-map {
    margin-top: .75rem;
    border-radius: .75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

    .contact-map iframe {
        width: 100%;
        height: 220px;
        border: 0;
    }

.g-recaptcha {
    transform-origin: right top;
}

@media (max-width: 575.98px) {
    .contact-card .card-body,
    .contact-info-card .card-body {
        padding: .95rem;
    }
}


/* استایل کلی کارت نظر */
.comment-card {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    background-color: #f9fafb;
}

    /* آواتار کنار کامنت (آیکن کاربر) */
    .comment-card .comment-avatar {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0.75rem;
        font-size: 1.2rem;
    }

/* تو رفتگی برای پاسخ‌ها – چون سایت راست‌به‌چپه، margin-right می‌ذاریم */
.comment-reply {
    margin-right: 3rem; /* میزان تو رفتگی */
    background-color: #ffffff; /* کمی متفاوت با والد، دلخواه */
    border-right: 2px solid #e5e7eb; /* خط راهنما کنار پاسخ‌ها، دلخواه */
}

    /* اگر خواستی متن جواب‌ها کمی ریزتر یا متفاوت باشد (اختیاری) */
    .comment-reply .comment-main {
        font-size: 0.95rem;
    }


/* =========================
   جستجوی هدر (RTL صحیح)
   ========================= */
.header-search {
    max-width: 260px;
    direction: rtl; /* برای اینکه سمت‌ها قطعی درست باشند */
}

    /* هم‌ارتفاع و یکپارچه شدن */
    .header-search .form-control,
    .header-search .btn {
        height: 32px;
        line-height: 32px;
        border-radius: 0 !important; /* گردی پیش‌فرض بوت‌استرپ را صفر می‌کنیم */
    }

    /* تکست‌باکس: لبه بیرونی چپ گرد، لبه چسبیده به دکمه (راست) تیز */
    .header-search .form-control {
        border-top-right-radius: .25rem !important;
        border-bottom-right-radius: .25rem !important;
    }

    /* دکمه جستجو: لبه بیرونی راست گرد، لبه چسبیده به تکست‌باکس (چپ) تیز */
    .header-search .btn-search {
        border-top-left-radius: .25rem !important;
        border-bottom-left-radius: .25rem !important;
    }

/* دکمه جستجو */
.btn-search {
    background-color: #f1f1f1;
    border: 1px solid #ced4da;
    color: #555;
}

    .btn-search:hover {
        background-color: #e6e6e6;
        color: #000;
    }






