﻿/* =========================================================
   ASP.NET / RAZOR
   COMPLETE RESPONSIVE SYSTEM
   ========================================================= */


/* =========================================================
   01 - GLOBAL RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Vazirmatn", "Tahoma", sans-serif;
    line-height: 1.8;
}

#wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

main,
.site-main,
.page-content,
.content-wrapper {
    width: 100%;
    max-width: 100%;
}


/* =========================================================
   02 - CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.container-full {
    width: 100%;
    max-width: 100%;
}


/* =========================================================
   03 - IMAGES
   ========================================================= */

img {
    max-width: 100%;
    height: auto;
}

video,
iframe {
    max-width: 100%;
}

video {
    display: block;
}


/* =========================================================
   04 - ROW
   ========================================================= */

.row {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-wrap: wrap;
}


/* =========================================================
   05 - HEADER
   ========================================================= */

#header {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1000;
}

#header .main-header {
    width: 100%;
    max-width: 100%;
}

#header .wrapper-header {
    width: 100%;
    max-width: 100%;
}


/* =========================================================
   06 - LOGO
   ========================================================= */

#header .logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

#header .logo-header img {
    width: auto;
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}


/* =========================================================
   07 - DESKTOP NAVIGATION
   ========================================================= */

.box-navigation {
    width: 100%;
    max-width: 100%;
}

.box-nav-ul {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.box-nav-ul .menu-item {
    position: relative;
}

.box-nav-ul .item-link,
.box-nav-ul > li > a {
    display: block;
    text-decoration: none;
    white-space: nowrap;
}


/* =========================================================
   08 - DESKTOP SUBMENU
   ========================================================= */

.box-nav-ul .sub-menu {
    z-index: 9999;
}


/* =========================================================
   09 - HAMBURGER
   سایت شما از Bootstrap Offcanvas استفاده می‌کند
   ========================================================= */

.tf-lg-hidden {
    display: none;
}

.tf-lg-hidden a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tf-lg-hidden svg {
    width: 28px;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   10 - MOBILE OFFCANVAS
   ========================================================= */

.canvas-mb {
    width: min(85vw, 360px);
    max-width: 360px;
}

.nav-ul-mb {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-mb-item {
    width: 100%;
    border-bottom: 1px solid #eeeeee;
}

.mb-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 10px;
    text-decoration: none;
}

.sub-nav-menu {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0 15px 10px;
}

.sub-nav-link {
    display: block;
    width: 100%;
    padding: 10px;
}


/* =========================================================
   11 - SWIPER GLOBAL
   ========================================================= */

.swiper {
    width: 100%;
    max-width: 100%;
}

.swiper-wrapper {
    max-width: 100%;
}

.swiper-slide {
    max-width: 100%;
}


/* =========================================================
   12 - GENERAL POST SLIDERS
   مقالات / اخبار / محصولات
   ========================================================= */

.tf-sw-recent,
.tf-sw-post,
.tf-sw-news,
.tf-sw-products {
    width: 100%;
    max-width: 100%;
}


/* =========================================================
   13 - TABLET / SURFACE
   768px - 1024px

   مقالات / اخبار / محصولات = 2
   ========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    .container {
        width: calc(100% - 32px);
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
    }

    .container-full {
        padding-left: 16px;
        padding-right: 16px;
    }


    /* Header */

    #header .wrapper-header {
        min-height: 75px;
    }


    /* Desktop menu hidden */

    .tf-md-hidden {
        display: none !important;
    }


    /* Hamburger */

    .tf-lg-hidden {
        display: block !important;
    }


    /* Logo */

    #header .logo-header img {
        max-height: 58px;
    }


    /* -----------------------------------------
       مقالات / اخبار / محصولات
       2 کارت
       ----------------------------------------- */

    .tf-sw-recent .swiper-slide,
    .tf-sw-post .swiper-slide,
    .tf-sw-news .swiper-slide,
    .tf-sw-products .swiper-slide {

        width: 50%;
        max-width: 50%;
        flex: 0 0 50%;

    }


    /* Typography */

    h1 {
        font-size: 34px;
        line-height: 1.5;
    }

    h2 {
        font-size: 28px;
        line-height: 1.5;
    }

    h3 {
        font-size: 23px;
        line-height: 1.5;
    }

    p {
        font-size: 15px;
        line-height: 2;
    }

}


/* =========================================================
   14 - LAPTOP
   1025px - 1366px

   مقالات / اخبار / محصولات = 3
   ========================================================= */

@media (min-width: 1025px) and (max-width: 1366px) {

    .container {
        max-width: 1200px;
    }

    .container-full {
        padding-left: 30px;
        padding-right: 30px;
    }


    .tf-sw-recent .swiper-slide,
    .tf-sw-post .swiper-slide,
    .tf-sw-news .swiper-slide,
    .tf-sw-products .swiper-slide {

        width: 33.333333%;
        max-width: 33.333333%;
        flex: 0 0 33.333333%;

    }

}


/* =========================================================
   15 - LARGE DESKTOP
   1367px+

   مقالات / اخبار / محصولات = 4
   ========================================================= */

@media (min-width: 1367px) {

    .container {
        max-width: 1400px;
    }

    .container-full {
        padding-left: 50px;
        padding-right: 50px;
    }


    .tf-sw-recent .swiper-slide,
    .tf-sw-post .swiper-slide,
    .tf-sw-news .swiper-slide,
    .tf-sw-products .swiper-slide {

        width: 25%;
        max-width: 25%;
        flex: 0 0 25%;

    }

}


/* =========================================================
   16 - MOBILE
   0px - 767px

   مقالات / اخبار / محصولات = 2
   ========================================================= */

@media (max-width: 767px) {

    /* =========================================
       CONTAINER
       ========================================= */

    .container {
        width: calc(100% - 24px);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .container-full {
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }


    /* =========================================
       HEADER
       ========================================= */

    #header {
        width: 100%;
        max-width: 100%;
    }

    #header .main-header {
        width: 100%;
    }

    #header .wrapper-header {
        width: 100%;
        min-height: 65px;
    }


    /* =========================================
       HAMBURGER
       ========================================= */

    .tf-lg-hidden {
        display: block !important;
    }

    .tf-lg-hidden a {
        width: 42px;
        height: 42px;
    }

    .tf-lg-hidden svg {
        width: 25px;
    }


    /* =========================================
       DESKTOP MENU
       ========================================= */

    .tf-md-hidden {
        display: none !important;
    }


    /* =========================================
       LOGO
       ========================================= */

    #header .logo-header {
        justify-content: center;
    }

    #header .logo-header img {
        width: auto;
        max-width: 150px;
        max-height: 52px;
    }


    /* =========================================
       HEADER ICONS
       ========================================= */

    #header .nav-icon {
        gap: 8px !important;
    }

    #header .nav-icon-item {
        font-size: 18px;
    }

    #header .count-box {
        font-size: 10px;
    }


    /* =========================================
       MOBILE MENU
       ========================================= */

    .canvas-mb {
        width: 85vw;
        max-width: 350px;
    }

    .mb-menu-link {
        font-size: 14px;
        padding: 14px 8px;
    }

    .sub-nav-link {
        font-size: 13px;
        padding: 9px;
    }


    /* =========================================
       ROW
       ========================================= */

    .row {
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }


    /* =========================================
       COLUMNS
       ========================================= */

    .row > [class*="col-"] {
        max-width: 100%;
    }


    /* =========================================
       TYPOGRAPHY
       ========================================= */

    h1 {
        font-size: clamp(25px, 7vw, 32px);
        line-height: 1.45;
    }

    h2 {
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.5;
    }

    h3 {
        font-size: clamp(19px, 5vw, 24px);
        line-height: 1.5;
    }

    h4 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
        line-height: 2;
    }


    /* =========================================
       IMAGES
       ========================================= */

    img {
        max-width: 100%;
        height: auto;
    }


    /* =========================================
       VIDEO
       ========================================= */

    video,
    iframe {
        max-width: 100%;
    }


    /* =========================================
       TABLE
       ========================================= */

    .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }


    /* =========================================
       FORM
       ========================================= */

    input,
    textarea,
    select {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
    }


    /* =========================================
       BUTTON
       ========================================= */

    button,
    .btn,
    .tf-btn {
        max-width: 100%;
    }


    /* =====================================================
       ARTICLES / NEWS / PRODUCTS
       موبایل = 2 کارت
       ===================================================== */

    .tf-sw-recent .swiper-slide,
    .tf-sw-post .swiper-slide,
    .tf-sw-news .swiper-slide,
    .tf-sw-products .swiper-slide {

        width: 50% !important;
        min-width: 50% !important;
        max-width: 50% !important;

        flex: 0 0 50% !important;

    }


    /* Wrapper */

    .tf-sw-recent .swiper-wrapper,
    .tf-sw-post .swiper-wrapper,
    .tf-sw-news .swiper-wrapper,
    .tf-sw-products .swiper-wrapper {

        display: flex;
        width: 100%;
        max-width: 100%;

    }


    /* Card */

    .tf-sw-recent .swiper-slide > *,
    .tf-sw-post .swiper-slide > *,
    .tf-sw-news .swiper-slide > *,
    .tf-sw-products .swiper-slide > * {

        width: 100%;
        max-width: 100%;

    }


    /* Images */

    .tf-sw-recent .swiper-slide img,
    .tf-sw-post .swiper-slide img,
    .tf-sw-news .swiper-slide img,
    .tf-sw-products .swiper-slide img {

        max-width: 100%;
        height: auto;

    }


    /* =========================================
       CUSTOM GRID
       ========================================= */

    .posts-grid,
    .articles-grid,
    .news-grid,
    .products-grid {

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
        width: 100%;
        max-width: 100%;

    }


    /* =========================================
       GENERIC 2 COLUMN
       ========================================= */

    .grid-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }


    /* =========================================
       GENERIC 3/4 COLUMN
       موبایل = 2
       ========================================= */

    .grid-3,
    .grid-4 {

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;

    }


    /* =========================================
       FLEX
       ========================================= */

    .flex-container {
        width: 100%;
        max-width: 100%;
    }


    /* =========================================
       SECTIONS
       ========================================= */

    section {
        width: 100%;
        max-width: 100%;
    }


    /* =========================================
       HORIZONTAL SCROLL PROTECTION
       ========================================= */

    .site-main,
    main,
    .content,
    .page-content,
    .section-container {

        width: 100%;
        max-width: 100%;
        overflow-x: hidden;

    }

}


/* =========================================================
   17 - METAL TEMPLATES
   فلز | فولاد | آلومینیوم | مس | سرب

   موبایل = فقط 1 کارت
   ========================================================= */

@media (max-width: 767px) {

    /* -----------------------------------------
       فلز
       ----------------------------------------- */

    .metal-section .swiper-slide,
    .metal-template .swiper-slide,

    /* -----------------------------------------
       فولاد
       ----------------------------------------- */

    .steel-section .swiper-slide,
    .steel-template .swiper-slide,

    /* -----------------------------------------
       آلومینیوم
       ----------------------------------------- */

    .aluminum-section .swiper-slide,
    .aluminum-template .swiper-slide,

    /* -----------------------------------------
       مس
       ----------------------------------------- */

    .copper-section .swiper-slide,
    .copper-template .swiper-slide,

    /* -----------------------------------------
       سرب
       ----------------------------------------- */

    .lead-section .swiper-slide,
    .lead-template .swiper-slide {

        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;

        flex: 0 0 100% !important;

    }


    /* =========================================
       Wrapper
       ========================================= */

    .metal-section .swiper-wrapper,
    .metal-template .swiper-wrapper,

    .steel-section .swiper-wrapper,
    .steel-template .swiper-wrapper,

    .aluminum-section .swiper-wrapper,
    .aluminum-template .swiper-wrapper,

    .copper-section .swiper-wrapper,
    .copper-template .swiper-wrapper,

    .lead-section .swiper-wrapper,
    .lead-template .swiper-wrapper {

        display: flex;
        width: 100%;
        max-width: 100%;

    }


    /* =========================================
       Card
       ========================================= */

    .metal-section .swiper-slide > *,
    .metal-template .swiper-slide > *,

    .steel-section .swiper-slide > *,
    .steel-template .swiper-slide > *,

    .aluminum-section .swiper-slide > *,
    .aluminum-template .swiper-slide > *,

    .copper-section .swiper-slide > *,
    .copper-template .swiper-slide > *,

    .lead-section .swiper-slide > *,
    .lead-template .swiper-slide > * {

        width: 100%;
        max-width: 100%;

    }


    /* =========================================
       Images
       ========================================= */

    .metal-section img,
    .metal-template img,

    .steel-section img,
    .steel-template img,

    .aluminum-section img,
    .aluminum-template img,

    .copper-section img,
    .copper-template img,

    .lead-section img,
    .lead-template img {

        max-width: 100%;
        height: auto;
        object-fit: cover;

    }

}


/* =========================================================
   18 - SMALL MOBILE
   زیر 480px

   مقالات / اخبار / محصولات = 1 کارت
   فلزات = 1 کارت
   ========================================================= */

@media (max-width: 480px) {

    /* -----------------------------------------
       Articles / News / Products
       ----------------------------------------- */

    .tf-sw-recent .swiper-slide,
    .tf-sw-post .swiper-slide,
    .tf-sw-news .swiper-slide,
    .tf-sw-products .swiper-slide {

        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;

        flex: 0 0 100% !important;

    }


    /* -----------------------------------------
       Grid
       ----------------------------------------- */

    .posts-grid,
    .articles-grid,
    .news-grid,
    .products-grid,
    .grid-2,
    .grid-3,
    .grid-4 {

        grid-template-columns: 1fr !important;

    }


    /* -----------------------------------------
       Container
       ----------------------------------------- */

    .container {
        width: calc(100% - 20px);
    }

    .container-full {
        padding-left: 8px;
        padding-right: 8px;
    }


    /* -----------------------------------------
       Logo
       ----------------------------------------- */

    #header .logo-header img {
        max-width: 125px;
        max-height: 45px;
    }


    /* -----------------------------------------
       Header icons
       ----------------------------------------- */

    #header .nav-icon {
        gap: 5px !important;
    }

    #header .nav-icon-item {
        font-size: 16px;
    }


    /* -----------------------------------------
       Typography
       ----------------------------------------- */

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 21px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 13.5px;
        line-height: 1.9;
    }


    /* -----------------------------------------
       Mobile menu
       ----------------------------------------- */

    .canvas-mb {
        width: 88vw;
        max-width: 340px;
    }


    /* -----------------------------------------
       Metal templates
       همیشه یک کارت
       ----------------------------------------- */

    .metal-section .swiper-slide,
    .metal-template .swiper-slide,

    .steel-section .swiper-slide,
    .steel-template .swiper-slide,

    .aluminum-section .swiper-slide,
    .aluminum-template .swiper-slide,

    .copper-section .swiper-slide,
    .copper-template .swiper-slide,

    .lead-section .swiper-slide,
    .lead-template .swiper-slide {

        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;

        flex: 0 0 100% !important;

    }

}


/* =========================================================
   19 - SAFE RESPONSIVE UTILITIES
   ========================================================= */

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 767px) {

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

}


/* =========================================================
   20 - LONG WORD / URL FIX
   ========================================================= */

a,
span,
div,
p,
h1,
h2,
h3,
h4,
h5,
h6 {

    overflow-wrap: break-word;
    word-wrap: break-word;

}

....
هدر انتقالی 
...../* =========================================================
   HEADER — استایل کامل هدر اصلی سایت
   ========================================================= */

/* هدر اصلی */
#header {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    z-index: 9999 !important;
    background: #ffffff !important;

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}


/* =========================================================
   نوار مشکی بالای هدر
   ========================================================= */

#header::before {
    content: "جستجو        درباره ما   |   تماس با ما   |   👤 ورود / ثبت نام";

    display: block !important;

    width: 100% !important;
    min-height: 34px !important;

    background: #1a1a1a !important;
    color: #dddddd !important;

    padding: 6px 40px !important;

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
    font-size: 11px !important;
    line-height: 22px !important;

    text-align: left !important;
    direction: rtl !important;

    border-bottom: 1px solid #333333 !important;

    box-sizing: border-box !important;
}


/* =========================================================
   هدر سفید اصلی
   ========================================================= */

#header .main-header {
    width: 100% !important;

    min-height: 65px !important;
    height: 65px !important;

    padding: 0 !important;

    background: #ffffff !important;

    /* خط پایین ظریف */
    border-bottom: 1px solid #eeeeee !important;

    /* سایه خیلی ملایم */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;

    /* گرد شدن پایین هدر */
    border-radius: 0 0 18px 18px !important;

    overflow: visible !important;
}


/* =========================================================
   ردیف اصلی
   ========================================================= */

#header .wrapper-header {
    width: 100% !important;

    min-height: 65px !important;
    height: 65px !important;

    display: flex !important;
    align-items: center !important;
}


/* =========================================================
   لوگو
   ========================================================= */

#header .logo-header {
    height: 65px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    text-decoration: none !important;
}

#header .logo-header img {
    display: block !important;

    width: auto !important;
    height: 40px !important;

    max-width: 100% !important;
    max-height: 40px !important;

    object-fit: contain !important;
}


/* =========================================================
   منوی اصلی
   ========================================================= */

#header .box-navigation {
    width: 100% !important;
    height: 65px !important;

    display: flex !important;
    align-items: center !important;
}


#header .box-nav-ul {
    width: 100% !important;
    height: 65px !important;

    display: flex !important;
    align-items: center !important;

    justify-content: flex-start !important;

    gap: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


/* =========================================================
   آیتم‌های منو
   ========================================================= */

#header .box-nav-ul > li {
    position: relative !important;

    height: 65px !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   لینک‌های منو
   ========================================================= */

#header .box-nav-ul > li > a,
#header .box-nav-ul .item-link {
    height: 65px !important;

    display: flex !important;
    align-items: center !important;

    padding: 0 10px !important;

    color: #444444 !important;

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;

    font-size: 11px !important;
    font-weight: 700 !important;

    text-decoration: none !important;

    white-space: nowrap !important;

    border-bottom: 3px solid transparent !important;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease !important;
}


/* =========================================================
   هاور منو
   ========================================================= */

#header .box-nav-ul > li > a:hover,
#header .box-nav-ul .item-link:hover {
    color: #ff4500 !important;

    background-color: #f9f9f9 !important;

    border-bottom-color: #ff4500 !important;
}


/* =========================================================
   منوی ویژه نارنجی
   ========================================================= */

#header .box-nav-ul > li.highlight-menu > a {
    color: #ff4500 !important;
}

#header .box-nav-ul > li.highlight-menu > a:hover {
    background-color: #fff5f0 !important;
}


/* =========================================================
   آخرین آیتم منو
   ========================================================= */

#header .box-nav-ul > li:last-child {
    border-right: 1px solid #dddddd !important;
}


/* =========================================================
   منوی کشویی
   ========================================================= */

#header .box-nav-ul .sub-menu {
    z-index: 99999 !important;
}


/* =========================================================
   آیکون منوی موبایل
   ========================================================= */

#header .tf-lg-hidden a {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    color: #333333 !important;
}

#header .tf-lg-hidden svg {
    width: 28px !important;
    height: 28px !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /* نوار مشکی */
    #header::before {
        min-height: 30px !important;

        padding: 4px 12px !important;

        font-size: 9px !important;
        line-height: 20px !important;

        text-align: center !important;
    }


    /* هدر سفید */
    #header .main-header {
        min-height: 65px !important;
        height: 65px !important;

        border-radius: 0 0 14px 14px !important;
    }


    /* ردیف */
    #header .wrapper-header {
        min-height: 65px !important;
        height: 65px !important;
    }


    /* لوگو */
    #header .logo-header {
        height: 65px !important;
    }

    #header .logo-header img {
        width: auto !important;

        height: 38px !important;

        max-width: 150px !important;
        max-height: 38px !important;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    #header::before {
        min-height: 28px !important;

        padding: 4px 8px !important;

        font-size: 8px !important;
    }

    #header .logo-header img {
        height: 35px !important;

        max-width: 125px !important;
        max-height: 35px !important;
    }
}




.blog-grid-main .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.blog-grid-main .col-xl-4, 
.blog-grid-main .col-md-6, 
.blog-grid-main .col-12 {
    display: flex !important;
    flex-direction: column !important;
}

.blog-article-item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; 
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.blog-article-item .article-thumb img {
    width: 100% !important;
    height: 220px !important; / ارتفاع ثابت برای تمام عکس‌ها /
    object-fit: cover !important; / برش هوشمند عکس /
    display: block !important;
}

.blog-article-item .article-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important; / پر کردن فضای خالی برای تراز شدن پایین کارت‌ها /
    padding: 15px !important;
}


.blog-article-item .article-title {
    font-size: 18px !important;
    margin-bottom: 10px !important;
    height: 55px !important; / رزرو فضای ثابت برای تیترها /
    overflow: hidden;
    line-height: 1.4 !important;
}

    text-decoration: none; {
    color: #333;
    display: block;
}

.blog-article-item .desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-bottom: 15px !important;
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important; / نمایش فقط ۳ خط اول /
    -webkit-box-orient: vertical !important;
}
.blog-grid-main .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

.blog-grid-main .col-xl-4, 
.blog-grid-main .col-md-6, 
.blog-grid-main .col-12 {
    display: flex !important;
    flex-direction: column !important;
}

.blog-article-item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; 
    background: #ffffff !important;
    border: 1px solid #eee !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.blog-article-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}


.blog-article-item .article-thumb {
    width: 100% !important;
    height: 220px !important; 
    overflow: hidden !important;
}

.blog-article-item .article-thumb img {
    width: 100% !important;
    height: 100% !important; 
    object-fit: cover !important; 
    display: block !important;
}

.blog-article-item .article-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important; 
    padding: 15px !important;
    overflow: hidden !important;
}


.blog-article-item .article-title {
    font-size: 17px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
    height: 24px !important; / رزرو فضای یک خط /
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important; 
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.blog-article-item .article-title a {
    text-decoration: none !important;
    color: #333 !important;
}

.blog-article-item .desc {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-bottom: 15px !important;
    height: 44px !important; / رزرو فضای دو خط /
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; 
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


@media (max-width: 768px) {
    .blog-article-item .article-thumb {
        height: 180px !important;
    }
}

.blog-grid-main .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

.blog-grid-main .col-xl-4, 
.blog-grid-main .col-md-6, 
.blog-grid-main .col-12 {
    display: flex !important;
    flex-direction: column !important;
}

/ ۲. استایل بدنه کارت مقاله /
.blog-article-item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; 
    background: #ffffff !important;
    border: 1px solid #eee !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.blog-article-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

/ ۳. یکسان‌سازی عکس‌ها (بدون دفرمه شدن) /
.blog-article-item .article-thumb {
    width: 100% !important;
    height: 220px !important; 
    overflow: hidden !important;
}

.blog-article-item .article-thumb img {
    width: 100% !important;
    height: 100% !important; 
    object-fit: cover !important; 
    display: block !important;
}

/ ۴. استایل محتوای متنی /
.blog-article-item .article-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important; 
    padding: 15px !important;
    overflow: hidden !important;
}

/ ۵. تیتر: دقیقاً ۱ خط (با سه نقطه در انتها) /
.blog-article-item .article-title {
    font-size: 17px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
    height: 24px !important; / رزرو فضای یک خط /
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important; 
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.blog-article-item .article-title a {
    text-decoration: none !important;
    color: #333 !important;
}

/ ۶. توضیحات: دقیقاً ۲ خط (با سه نقطه در انتها) /
.blog-article-item .desc {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-bottom: 15px !important;
    height: 44px !important; / رزرو فضای دو خط /
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; 
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/ ۷. تنظیمات موبایل */
@media (max-width: 768px) {
    .blog-article-item .article-thumb {
        height: 180px !important;
    }
}

.blog-article-item .article-content > .desc:first-child,
.blog-article-item .desc:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/ ۲. به حداقل رساندن فاصله بخش محتوا با عکس /
.blog-article-item .article-content {
    padding-top: 8px !important; / فاصله از زیر عکس /
}

/ ۳. چسباندن تیتر به بالای کارت /
.blog-article-item .article-title {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

/* ۱. اصلاح جهت خط در تمام نقل‌قول‌ها و لیدها */
blockquote, 
.lead, 
.article-lead, 
.news-lead {
    border-left: none !important;           /* حذف خط از سمت چپ */
    border-right: 3px solid #666 !important; /* اضافه کردن خط به سمت راست */
    padding-left: 0 !important;             /* حذف فاصله داخلی سمت چپ */
    padding-right: 15px !important;         /* ایجاد فاصله مناسب بین متن و خط جدید در راست */
    text-align: right !important;           /* اطمینان از راست‌چین بودن متن */
    direction: rtl !important;
}