@font-face {
    font-family: iransharp;
    font-weight: 900;
    src: url("font/iransharp_bold_web.woff") format("woff");
}

@font-face {
    font-family: iransharp;
    font-weight: 800;
    src: url("font/iransharp_bold_web.woff") format("woff");
}

@font-face {
    font-family: iransharp;
    font-weight: 700;
    src: url("font/iransharp_bold_web.woff") format("woff");
}

@font-face {
    font-family: iransharp;
    font-weight: 600;
    src: url("font/iransharp_regular_web.woff") format("woff");
}

@font-face {
    font-family: iransharp;
    font-weight: 500;
    src: url("font/iransharp_regular_web.woff") format("woff");
}

@font-face {
    font-family: iransharp;
    font-weight: 400;
    src: url("font/iransharp_regular_web.woff") format("woff");
}

@font-face {
    font-family: iransharp;
    font-weight: 300;
    src: url("font/iransharp_light_web.woff") format("woff");
}

@font-face {
    font-family: iransharp;
    font-weight: 200;
    src: url("font/iransharp_light_web.woff") format("woff");
}

@font-face {
    font-family: iransharp;
    font-weight: 100;
    src: url("font/iransharp_light_web.woff") format("woff");
}



* {
    font-family: 'iransharp', 'IRANSansX', sans-serif !important;
}

.content-container {
    width: 100%;
    max-width: 1150px;
    margin-inline: auto;
    padding-inline: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .content-container {
        padding-inline: 20px;
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .content-container {
        padding-inline: 24px;
        gap: 5px;
    }
}

.content-title {
    width: 100%;
    font-size: 25px;
    font-weight: 700;
    text-align: start;
    line-height: 1.8;
}

.content-text {
    font-size: 16px;
    line-height: 28px;
    color: #1f2937;
    text-align: justify;
}


/* کانتینر پیش‌فرض بردکرامب */
.c-breadcrumb {
    width: 100%;
    margin-inline: auto;
    padding-inline: 16px;
    margin-top: 2rem;
}

/* موبایل */
@media (max-width: 768px) {
    .c-breadcrumb {
        margin-top: 1rem;
    }
}

@media (min-width: 1024px) {
    .c-breadcrumb {
        margin-top: 1rem;
        padding-inline: 24px;
    }
}

/* wide countainer */
.c-breadcrumb--wide {
    max-width: 1700px;
}

.c-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #4b5563;
    font-weight: 400;
}

.c-breadcrumb__link {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
    font-size: 13px !important;
    font-weight: 400;
}

.c-breadcrumb__link:hover {
    color: #111827;
}

.c-breadcrumb__separator {
    display: inline-flex;
    align-items: center;
    color: #9ca3af;
}

.c-breadcrumb__chevron {
    width: 16px;
    height: 16px;
}


/* RTL/LTR */
html[dir="rtl"] .c-breadcrumb__chevron {
    transform: rotate(180deg);
}

html[dir="ltr"] .c-breadcrumb__chevron {
    transform: rotate(0deg);
}


.dmgv-video-block,
.dmgv-video-block *,
.dmgv-modal,
.dmgv-modal * {
    box-sizing: border-box;
}


.dmgv-video-block {
    width: 100%;
    margin-inline: auto;
    margin-top: clamp(24px, 4vw, 64px);
}

/* کاور */
.dmgv-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    line-height: 0; /* رفع offsetهای inline image */
    isolation: isolate;
}

.dmgv-cover__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

/* لایه مشکی روی کاور (۳۰٪) */
.dmgv-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    z-index: 1;
    pointer-events: none;
    transition: background-color 0.25s ease;
}

/* اختیاری: روی hover کمی روشن‌تر */
.dmgv-cover:hover::before {
    background: rgba(0, 0, 0, 0.20);
}

/* دکمه پلی دقیقاً وسط (ایزوله از استایل‌های global) */
.dmgv-cover__play {
    all: unset;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    width: clamp(56px, 6vw, 84px);
    height: clamp(56px, 6vw, 84px);
    border-radius: 999px;

    display: grid;
    place-items: center;
    cursor: pointer;

    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.dmgv-cover__play:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background: rgba(0, 0, 0, 0.75);
}

.dmgv-cover__play:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.dmgv-cover__play svg {
    width: clamp(24px, 2.4vw, 36px);
    height: clamp(24px, 2.4vw, 36px);
    display: block;
    fill: currentColor;
    margin-left: 2px; /* بالانس مثلث پلی */
}

/* مودال */
.dmgv-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.dmgv-modal.is-open {
    display: block;
}

.dmgv-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.dmgv-modal__dialog {
    position: relative;
    width: min(96vw, 1500px);
    height: min(92vh, 900px);
    margin: 4vh auto;
    display: grid;
    place-items: center;
}

.dmgv-modal__player-wrap {
    width: 100%;
    height: 100%;
}

.dmgv-modal__player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
    border-radius: 12px;
}

/* دکمه بستن - بالا راست */
.dmgv-modal__close {
    all: unset;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;

    width: 44px;
    height: 44px;
    border-radius: 999px;

    display: grid;
    place-items: center;
    cursor: pointer;

    font-size: 32px;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.dmgv-modal__close:hover {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.24);
}

.dmgv-modal__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* موبایل */
@media (max-width: 768px) {
    .dmgv-video-block {
        width: 100%;
    }

    .dmgv-modal__dialog {
        width: 100vw;
        height: 100vh;
        margin: 0;
    }

    .dmgv-modal__player {
        border-radius: 0;
    }

    .dmgv-modal__close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 30px;
    }
}

/* فقط وقتی مودال باز است */
body.dmgv-lock-scroll {
    overflow: hidden !important;
    touch-action: none;
}


.dmgc-section,
.dmgc-section * {
    box-sizing: border-box;
}

.dmgc-section {
    width: 100%;
    margin-top: clamp(50px, 5vw, 80px);
    margin-bottom: clamp(20px, 4vw, 48px);
}

/* روی موبایل فاصله کناری استاندارد */
@media (max-width: 1023.98px) {
    .dmgc-section {
        padding-inline: 12px;
    }
}

/* گرید یکپارچه (موبایل 1 ستون، دسکتاپ 2 ستون) */
.dmgc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

@media (min-width: 1024px) {
    .dmgc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        padding-inline: 40px;
    }
}

.dmgc-card {
    background: #f1f1f1;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 590px;
    max-width: 490px;
    transition: transform .25s ease, box-shadow .25s ease;
}

/*.dmgc-card:hover {*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);*/
/*}*/

.dmgc-card:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

/* مدیا */
.dmgc-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 485 / 303;
    background: #d1d5db;
}

.dmgc-card__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.dmgc-card:hover .dmgc-card__img {
    transform: scale(1.08);
}

/* overlay */
.dmgc-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.dmgc-card:hover .dmgc-card__media::after {
    opacity: .28;
}

/* بدنه */
.dmgc-card__body {
    padding: 18px 16px 0;
}

.dmgc-card__title {
    margin: 0;
    font-size: clamp(18px, 1.6vw, 20px);
    font-weight: 600;
    line-height: 1.6;
    color: #111827;
}

/* فوتر کارت */
.dmgc-card__footer {
    margin-top: auto; /* مهم‌ترین تغییر */
    padding: 0 20px 12px; /* فاصله کم از لبه پایین */
    display: flex;
    align-items: center;
}

/* RTL: آیکن سمت راست کارت */
html[dir="rtl"] .dmgc-card__footer {
    justify-content: start;
}

/* LTR: آیکن سمت چپ کارت */
html[dir="ltr"] .dmgc-card__footer {
    justify-content: flex-start;
}

/* آیکن */
.dmgc-card__arrow {
    display: inline-flex;
    width: 24px;
    height: 24px;
    color: #111827;
    transition: transform .25s ease;
}

.dmgc-card__arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* حرکت آیکن در hover بر اساس جهت صفحه */
html[dir="rtl"] .dmgc-card:hover .dmgc-card__arrow {
    transform: translateX(-4px);
}

html[dir="ltr"] .dmgc-card:hover .dmgc-card__arrow {
    transform: translateX(4px);
}

/* جهت آیکن برای LTR برعکس شود */
html[dir="ltr"] .dmgc-card__arrow svg {
    transform: scaleX(-1);
}

.mt60 {
    margin-top: 60px;
}

/* =========================
   Content Tabs (Scoped)
   prefix: c-tabs
========================= */

.c-tabs,
.c-tabs * {
    box-sizing: border-box;
}

.c-tabs {
    width: 100%;
    margin-top: 2rem;
    background: #6e757c;
}

/* اگر خواستی مثل breadcrumb wide باشه */
.c-tabs--wide {
    max-width: 1780px;
    margin-inline: auto;
}

/* لیست تب‌ها */
.c-tabs__list {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;

    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.c-tabs__list::-webkit-scrollbar {
    display: none;
}

/* دسکتاپ: حداکثر عرض 1180 و وسط‌چین */
@media (min-width: 1024px) {
    .c-tabs__list {
        width: 100%;
        max-width: 1180px;
        margin-inline: auto;
        justify-content: center; /* اختیاری: اگر می‌خوای آیتم‌ها در وسط جمع بشن */
    }
}


/* آیتم */
.c-tabs__item {
    flex: 0 0 auto;
    background: #6e757c;
    border-inline-start: 1px solid rgb(255 255 255);
}

.c-tabs__item:first-child {
    border-inline-start: none;
}

/* لینک */
.c-tabs__link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding-inline: 30px;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.2px;

    transition: background-color .2s ease, color .2s ease;
}

/* هاور */
.c-tabs__item:hover .c-tabs__link {
    background: #555a5f; /* gray-600 */
}

/* فعال */
.c-tabs__item.is-active .c-tabs__link {
    background: #555a5f; /* gray-600 */
    font-weight: 700;
}

/* ریسپانسیو: روی دسکتاپ وسط‌چین تر و مرتب‌تر */
@media (min-width: 1024px) {
    .c-tabs__list {
        justify-content: center;
    }
}

/* ===== Toolbar (flat, slim, competitor-like) ===== */
.c-toolbar,
.c-toolbar * {
    box-sizing: border-box;
}

.c-toolbar {
    width: 100%;
    margin-top: 8px;
}

.c-toolbar__inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.c-toolbar__left,
.c-toolbar__right {
    display: flex;
    align-items: center;
}

.c-toolbar__right {
    margin-inline-start: auto;
    gap: 10px;
}

/* shared chip */
.c-chip {
    --chip-h: 36px;
    height: var(--chip-h);
    border: 0;
    background: #e5e5e5;
    color: #2f3b4a;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-inline: 16px 12px;
    cursor: pointer;
    line-height: 1;
    font-size: 30px;
    font-weight: 600;
    transition: background-color .15s ease;
    text-align: start;
}

.c-chip--filter,
.c-chip--sort {
    clip-path: polygon(
            0 0,
            100% 0,
            100% 100%,
            15px 100%,
            0 calc(100% - 15px)
    );
}

.c-chip:hover {
    background: #dddddd;
}

/* filter sizing */
.c-chip--filter {
    min-width: 125px;
}

.c-chip__label {
    font-size: 14px;
    font-weight: 500;
}

.c-chip__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
}

.c-chip__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* sort */
.c-sort {
    position: relative;
}

.c-chip--sort {
    min-width: 250px;
    max-width: 300px;
}

.c-sort__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
}

.c-sort__chevron {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    transition: transform .2s ease;
}

.c-sort__chevron.is-open {
    transform: rotate(180deg);
}

.c-sort__menu {
    position: absolute;
    top: calc(100% + 5px);
    inset-inline: 0;
    background: #f2f2f2;
    border: 1px solid #ddd;
    z-index: 30;
}

.c-sort__option {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: start;
    padding: 9px 12px;
    cursor: pointer;
    color: #334155;
    font-size: 14px;
}

.c-sort__option:hover {
    background: #e9e9e9;
}

/* view buttons */
.c-view {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
}

.c-view__btn {
    width: 46px;
    height: 36px;
    border: 0;
    background: #9ca3a8;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.c-view__btn + .c-view__btn {
    margin-inline-start: 1px;
}

.c-view__btn svg {
    width: 17px;
    height: 17px;
    display: block;
}

.c-view__btn.is-active {
    background: #e2e2e2;
    color: #111827;
}

/* RTL/LTR رفتار آیکن filter */
html[dir="ltr"] .c-chip--filter .c-chip__icon svg {
    transform: scaleX(1);
}

html[dir="rtl"] .c-chip--filter .c-chip__icon svg {
    transform: scaleX(-1);
}

/* mobile */
@media (max-width: 1023.98px) {
    .c-toolbar__inner {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .c-toolbar__right {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .c-chip--sort {
        min-width: 0;
        width: calc(100% - 102px); /* جا برای 2 دکمه view */
        max-width: none;
    }
}

/* پیش‌فرض: دسکتاپ و تبلت بزرگ نمایش داده شود */
.c-view {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
}

/* موبایل: مخفی */
@media (max-width: 1023.98px) {
    .c-view {
        display: none !important;
    }

    /* چون c-view حذف میشه، چیدمان راست رو هم مرتب کن */
    .c-toolbar__right {
        width: 100%;
        justify-content: flex-start; /* یا space-between اگر چیز دیگری هم کنارش داری */
        gap: 8px;
    }
}

@media (max-width: 1023.98px) {
    .c-toolbar__inner {
        align-items: center;
        justify-content: center;
    }
}

.p40 {
    padding: 40px 0 0 0;
}

/* =========================
   News List Component
   Scoped classes: news-list / news-card
========================= */

.news-list,
.news-list * {
    box-sizing: border-box;
}

.news-list {
    width: 100%;
}

.news-list__container {
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* کارت */
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    /*border: 1px solid #e5e7eb;*/
}

/* دسکتاپ: دو ستونه */
@media (min-width: 1024px) {
    .news-card {
        flex-direction: row;
        min-height: 230px;
    }
}

/* تصویر */
.news-card__media {
    width: 100%;
    display: block;
    overflow: hidden;
    background: #f3f4f6;
}

@media (min-width: 1024px) {
    .news-card__media {
        width: 40%;
        flex-shrink: 0;
        max-height: 280px;
    }
}

.news-card__img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card__img {
    transform: scale(1.04);
}

/* محتوا */
.news-card__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 12px;
}

@media (min-width: 1024px) {
    .news-card__content {
        padding: 20px 20px 20px;
    }
}

/* متا */
.news-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.news-card__sep {
    color: #9ca3af;
}

/* عنوان */
.news-card__title {
    margin: 0;
    font-size: 19px;
    line-height: 1.8;
    font-weight: 700;
    color: #111827;
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
}

/* خلاصه */
.news-card__excerpt {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: #374151;
}

/* فوتر */
.news-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
    justify-content: space-between;
}

/* تگ‌ها */
.news-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    background: #6e757c;
}

/* فلش */
.news-card__arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    text-decoration: none;
    flex-shrink: 0;
}

.news-card__arrow svg {
    width: 22px;
    height: 22px;
    display: block;
    transition: transform .2s ease;
}

/* جهت‌بندی RTL/LTR */
html[dir="rtl"] .news-card__content {
    text-align: right;
}

html[dir="ltr"] .news-card__content {
    text-align: left;
}

/* جای فلش نسبت به جهت صفحه */
html[dir="rtl"] .news-card__footer {
    flex-direction: row;
}

html[dir="ltr"] .news-card__footer {
    flex-direction: row-reverse;
}

/* جهت آیکن برای LTR برعکس شود */
html[dir="ltr"] .news-card__arrow svg {
    transform: scaleX(-1);
}

/* Hover حرکت ظریف */
html[dir="rtl"] .news-card:hover .news-card__arrow svg {
    transform: translateX(-3px);
}

html[dir="ltr"] .news-card:hover .news-card__arrow svg {
    transform: scaleX(-1) translateX(-3px);
}

/* موبایل */
@media (max-width: 768px) {
    .news-list__container {
        width: 100%;
        gap: 30px;
    }

    .news-card__img {
        min-height: 190px;
    }

    .news-card__title {
        font-size: 15px;
    }

    .news-card__excerpt {
        font-size: 13px;
        line-height: 1.85;
    }

    .news-tag {
        min-height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }
}

/* محدود کردن خلاصه خبر به 2 خط + ... */
.news-card__excerpt--clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* تعداد خطوط قابل نمایش */
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
}

.loadmore,
.loadmore * {
    box-sizing: border-box;
}

.loadmore {
    width: 100%;
    margin-top: 48px;
    border-top: 1px solid #dcdcdc;
}

.loadmore__inner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* دکمه با همان فرم تصویر:
   بالا صاف، دو گوشه پایین برش‌خورده */
.loadmore__btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-width: 180px;
    height: 35px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    margin-top: -1px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 30px 100%, 0 calc(100% - 30px));
}

/* فقط برای دسترس‌پذیری */
.loadmore__btn:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 3px;
}


/* جهت صفحه (سازگار با RTL/LTR) */
html[dir="rtl"] .loadmore__btn {
    direction: rtl;
}

html[dir="ltr"] .loadmore__btn {
    direction: ltr;
}

@layer utilities {
    .bg-gray-100 {
        background-color: #f1f1f1 !important;
    }
}

/* =========================
   Top Filter Sheet
   Scoped classes: filter-sheet / filter-topic
========================= */

.filter-sheet,
.filter-sheet * {
    box-sizing: border-box;
}

.filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.filter-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: opacity .25s ease;
}

.filter-sheet__panel {
    position: absolute;
    inset-inline: 0;
    top: 0;
    background: #fff;
    width: 100%;
    height: min(56vh, 620px);
    transform: translateY(-105%);
    transition: transform .32s ease;
    display: grid;
    grid-template-rows: auto 1fr auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    overflow: hidden;
}

/* حالت باز */
.filter-sheet.is-open {
    pointer-events: auto;
}

.filter-sheet.is-open .filter-sheet__backdrop {
    opacity: 1;
}

.filter-sheet.is-open .filter-sheet__panel {
    transform: translateY(0);
}

/* header */
.filter-sheet__head {
    padding: 50px 2.2vw 20px;
}

.filter-sheet__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}

.filter-sheet__subtitle {
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

/* body */
.filter-sheet__body {
    overflow: auto;
    padding: 10px 2.2vw 14px;
}

.filter-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* tag */
.filter-topic {
    border: 0;
    background: #efefef;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 34px;
    padding: 0 14px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.filter-topic:hover {
    background: #e6e6e6;
}

.filter-topic.is-active {
    background: #dcdcdc;
}

.filter-topic__count {
    color: #374151;
}

/* footer */
.filter-sheet__foot {
    border-top: 1px solid #ececec;
    background: #f6f6f6;
    min-height: 88px;
    padding: 16px 2.2vw 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.filter-sheet__result {
    font-size: 16px;
    color: #1f2937;
}

/* ناحیه دکمه‌ها */
.filter-sheet__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
}

/* apply button */
.filter-sheet__apply {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 170px;
    height: 42px;
    /*padding: 0 18px;*/
    justify-content: center;
    background: #000;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    clip-path: polygon(
            0 0,
            100% 0,
            100% 100%,
            15px 100%,
            0 calc(100% - 15px)
    );
}

.filter-sheet__apply svg {
    width: 16px;
    height: 16px;
}

/* close chip دسکتاپ: پایین وسط */
.filter-sheet__close {
    all: unset;
    position: absolute;
    inset-inline-start: 45%;
    bottom: -1px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    height: 30px;
    padding: 0 14px;
    cursor: pointer;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}

/* RTL/LTR */
html[dir="rtl"] .filter-sheet__head,
html[dir="rtl"] .filter-sheet__body,
html[dir="rtl"] .filter-sheet__foot {
    text-align: right;
}

html[dir="ltr"] .filter-sheet__head,
html[dir="ltr"] .filter-sheet__body,
html[dir="ltr"] .filter-sheet__foot {
    text-align: left;
}

html[dir="rtl"] .filter-sheet__apply svg {
    transform: none;
}

html[dir="ltr"] .filter-sheet__apply svg {
    transform: scaleX(-1);
}

/* موبایل */
@media (max-width: 1023.98px) {
    .filter-sheet__panel {
        height: 62vh;
    }

    .filter-sheet__head {
        padding: 50px 14px 20px;
    }

    .filter-sheet__subtitle {
        font-size: 14px;
    }

    .filter-sheet__body {
        padding: 8px 14px 12px;
    }

    .filter-topic {
        min-height: 32px;
        padding: 0 10px;
        gap: 10px;
        font-size: 13px;
    }

    /* مهم: footer دیگه ستونی نباشه */
    .filter-sheet__foot {
        min-height: 76px;
        padding: 10px 14px 14px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-sheet__result {
        font-size: 14px;
        padding-bottom: 5px;
        flex: 1 1 100%;
        text-align: center;
    }

    .filter-sheet__actions {
        width: 100%;
        justify-items: center;
    }

    .filter-sheet__apply {
        min-width: 0;
        width: 100%;
    }

    /* close در موبایل از absolute خارج میشه */
    .filter-sheet__close {
        position: static;
        transform: none;
        min-width: 0;
        width: 70%;
        height: 42px;
        font-size: 12px;
        clip-path: none;
    }
}

/* قفل اسکرول */
body.filter-sheet-lock {
    overflow: hidden !important;
    touch-action: none;
}

@media (max-width: 1023.98px) {
    .filter-sheet__apply {
        width: 80% !important;
    }
}

/* ===== Topics Toolbar ===== */
.topics-toolbar {
    width: 90%;
    margin: 2rem auto 0;
}

@media (min-width: 1024px) {
    .topics-toolbar {
        margin-top: 5rem;
    }
}

.topics-toolbar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}


@media (max-width: 768px) {
    .topics-toolbar__inner {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-direction: row;
    }
}


/* topics area */
.topics-toolbar__topics-wrap {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.topics-toolbar__topics {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* chip */
.topics-toolbar__topic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0.45rem 0.65rem;
    background: #6b7280;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.topics-toolbar__topic:hover {
    background: #374151;
}


/* actions */
.topics-toolbar__actions {
    /*display: none;*/
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

@media (min-width: 1024px) {
    .topics-toolbar__actions {
        display: flex;
    }
}

.topics-toolbar__icon-btn {
    all: unset;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3f4043;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.topics-toolbar__icon-btn:hover {
    background: #374151;
}

.topics-toolbar__icon-btn--slanted {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

/* bidi support */
html[dir="rtl"] .topics-toolbar__inner,
[dir="rtl"] .topics-toolbar__inner {
    direction: rtl;
}

html[dir="ltr"] .topics-toolbar__inner,
[dir="ltr"] .topics-toolbar__inner {
    direction: ltr;
}


.post {
    /* tokens */
    --post-max-width: 1200px;
    --post-c-text: #1f2937;
    --post-c-title: #111827;
    --post-c-muted: #4b5563;
    --post-c-muted-2: #6b7280;
    --post-c-surface: #f1f1f1;
    --post-c-surface-2: #e5e7eb;
    --post-c-border: #d1d5db;

    --post-fs-body: 1rem;
    --post-fs-meta: .95rem;
    --post-fs-meta-mobile: .85rem;
    --post-fs-caption: .8rem;

    --post-lh: 1.95;
    --post-lh-desktop: 2;

    --post-space-1: .25rem;
    --post-space-2: .5rem;
    --post-space-3: .75rem;
    --post-space-4: 1rem;
    --post-space-5: 1.25rem;
    --post-space-6: 1.5rem;
    --post-space-7: 2rem;
    --post-space-8: 2.25rem;

    width: min(var(--post-width), var(--post-max-width));
    margin-inline: auto;
    color: var(--post-c-text);
    line-height: var(--post-lh);
}

/* ========= Header ========= */

.post__header {
    margin-top: var(--post-space-7);
}

.post__meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
    font-size: var(--post-fs-meta);
    color: var(--post-c-muted);
}

.post__meta-sep {
    opacity: .55;
    padding-inline: .2rem;
}

.post__title {
    margin: .3rem 0 0;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--post-c-title);
}

.post__lead {
    margin-top: var(--post-space-5);
    font-size: var(--post-fs-body);
}

.post__hero {
    margin: var(--post-space-4) 0 var(--post-space-5);
}

.post__hero-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}


/* ========= Sections ========= */

.post__section {
    /*margin-top: var(--post-space-8);*/
    margin-bottom: 3rem;
}

.post__section-title {
    margin: 0 0 .9rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.5;
    color: var(--post-c-title);
}

.post__content p {
    margin: 0;
    font-size: var(--post-fs-body);
    color: var(--post-c-text);
}

/* ========= Split (content + toc) ========= */

.post__split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--post-space-4);
}

.post__toc {
    display: none;
    background: var(--post-c-surface);
    border: 1px solid var(--post-c-border);
}

.post__toc-title {
    margin: 0;
    padding: .9rem 1rem;
    font-size: .95rem;
    font-weight: 700;
    border-bottom: 1px solid var(--post-c-border);
    background: #f1f1f1;
}

.post__toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post__toc-list li + li {
    border-top: 1px solid var(--post-c-border);
}

.post__toc-list a {
    display: block;
    background: #f1f1f1;
    padding: .85rem 1rem;
    font-size: .95rem;
    color: var(--post-c-title);
    text-decoration: none;
    transition: background-color .2s ease;
}

.post__toc-list a:hover {
    background: #fff;
}


@media (max-width: 768px) {
    /* یا هر عرضی که مد نظر شماست */
    .post__split {
        flex-direction: column; /* در موبایل زیر هم قرار بگیرند */
    }

    /* تغییر ترتیب نمایش */
    .post__toc {
        order: 2; /* مقالات مرتبط می‌رود بعد از محتوا */
        width: 100%; /* اگر می‌خواهید کل عرض را بگیرد */
    }

    .post__content {
        order: 1; /* محتوا اول نمایش داده شود */
        width: 100%; /* اگر می‌خواهید کل عرض را بگیرد */
    }
}

/* ========= Media block ========= */

.post__media-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--post-space-4);
}

.post__figure {
    margin: 0;
}

.post__figure img {
    display: block;
    width: 100%;
    height: auto;
}

.post__figure figcaption {
    margin-top: .6rem;
    font-size: var(--post-fs-caption);
    color: var(--post-c-muted-2);
    line-height: 1.7;
}

/* ========= Direction (unified) ========= */

.post:dir(rtl) {
    direction: rtl;
    text-align: right;
}

.post:dir(ltr) {
    direction: ltr;
    text-align: left;
}

/* ========= Responsive ========= */

@media (max-width: 640px) {
    .post__meta {
        font-size: var(--post-fs-meta-mobile);
        gap: .3rem;
    }

    .post__hero-image {
        max-height: 300px;
    }
}

@media (min-width: 1024px) {
    .post {
        line-height: var(--post-lh-desktop);
    }

    .post__header {
        margin-top: var(--post-space-4);
    }

    .post__split {
        grid-template-columns: 30% 1fr;
        gap: 1.25rem;
        align-items: start;
    }

    .post__toc {
        display: block;
        position: sticky;
        top: 9rem;
    }

    .post__media-block {
        grid-template-columns: 45% 1fr;
        gap: 1.25rem;
        align-items: start;
    }

    /* modifier: image side */
    .post__media-block--start:dir(rtl),
    .post__media-block--start:dir(ltr) {
        grid-template-columns: 45% 1fr;
    }

    .post__media-block--end:dir(rtl),
    .post__media-block--end:dir(ltr) {
        grid-template-columns: 1fr 45%;
    }
}

/* =========================
   Post Comments
========================= */

.post-comments {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--post-c-border, #d1d5db);
}

.post-comments__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.post-comments__title {
    margin-bottom: 0;
}

.post-comments__count {
    margin: 0;
    font-size: .92rem;
    color: var(--post-c-muted, #4b5563);
}

/* form */
.post-comments__form {
    background: var(--post-c-surface, #f3f4f6);
    padding: 1rem;
    margin-bottom: 1rem;
}

.post-comments__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

.post-comments__field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.post-comments__label {
    font-size: .9rem;
    color: var(--post-c-title, #111827);
    font-weight: 700;
}

.post-comments__input,
.post-comments__textarea {
    width: 100%;
    border: 1px solid var(--post-c-border, #d1d5db);
    background: #fff;
    color: var(--post-c-text, #1f2937);
    font: inherit;
    line-height: 1.7;
    padding: .65rem .75rem;
    outline: none;
    font-size: 12px;
}

.post-comments__input:focus,
.post-comments__textarea:focus {
    border-color: #9ca3af;
}

.post-comments__textarea {
    resize: vertical;
    min-height: 120px;
}

.post-comments__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .75rem;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
}

.post-comments__submit {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
    padding-inline: 1rem;
    background: #000000;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.post-comments__submit:hover {
    background: #262626;
}

.post-comments__hint {
    margin: 0;
    font-size: .82rem;
    color: var(--post-c-muted-2, #6b7280);
}

/* list */
.post-comments__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
}

.post-comment {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    border: 1px solid var(--post-c-border, #d1d5db);
    background: #fff;
    padding: .85rem;
}

.post-comment--child {
    margin-inline-start: 1.75rem;
    background: #fafafa;
}

.post-comment__avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
}

.post-comment__body {
    min-width: 0;
    flex: 1;
}

.post-comment__meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.post-comment__author {
    color: var(--post-c-title, #111827);
    font-size: .95rem;
}

.post-comment__date {
    font-size: .82rem;
    color: var(--post-c-muted, #4b5563);
}

.post-comment__text {
    margin: .5rem 0 0;
    color: var(--post-c-text, #1f2937);
    font-size: .96rem;
    line-height: 1.9;
}

.post-comment__reply {
    all: unset;
    cursor: pointer;
    margin-top: .55rem;
    font-size: .85rem;
    color: #2563eb;
}

.post-comment__reply:hover {
    text-decoration: underline;
}

/* desktop */
@media (min-width: 768px) {
    .post-comments__form {
        padding: 1.1rem;
    }

    .post-comments__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* RTL/LTR safe */
.post:dir(rtl) .post-comments__head,
.post:dir(rtl) .post-comment__meta,
.post:dir(rtl) .post-comments__actions {
    direction: rtl;
}

.post:dir(ltr) .post-comments__head,
.post:dir(ltr) .post-comment__meta,
.post:dir(ltr) .post-comments__actions {
    direction: ltr;
}

@media (max-width: 640px) {
    .post-comment--child {
        margin-inline-start: .75rem;
    }
}

.post-comment__avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #858585;
    border-radius: 50%;
}

.post-comment__avatar-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.post-comment__reply {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    cursor: pointer;
    margin-top: .55rem;
    font-size: .85rem;
    color: #000000;
    line-height: 1;
    font-weight: 600;
}

.post-comment__reply:hover {
    text-decoration: underline;
}

.post-comment__reply-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

/* جهت آیکون برای RTL/LTR */
.post:dir(rtl) .post-comment__reply-icon {
    transform: scaleX(-1);
}

.post__split {
    grid-template-columns: 30% 1fr;
}

@media (min-width: 1024px) {
    .post__split {
        grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
        gap: .7rem;
        align-items: start;
    }

    .post__toc {
        width: 100%;
        max-width: 240px;
        justify-self: start; /* در RTL هم start درست هندل می‌شود */
    }
}

.post {
    --post-space-4: 1rem;
}

@media (max-width: 768px) {
    .post__split {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}


.post__toc {
    display: block !important;
    background: #f1f1f1 !important;
    border: 1px solid #eaeaea !important;
}

/* Contact Intro (RTL/LTR ready) */
.contact-intro,
.contact-intro * {
    box-sizing: border-box;
}

.contact-intro {
    width: min(90%, 1150px);
    margin-inline: auto;
    margin-top: 80px;

    display: flex;
    flex-direction: column;
    gap: 24px;

    /* bidi */
    direction: inherit;
    text-align: start;
}

.contact-intro__title {
    margin: 0;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.6;
}

.contact-intro__text {
    margin: 0;
    font-size: 16px;
    line-height: 30px;
}

/* Desktop */
@media (min-width: 1024px) {
    .contact-intro__title {
        font-size: 28px;
    }
}

/* Optional: explicit direction helpers if you want per-section control */
.contact-intro.is-rtl {
    direction: rtl;
}

.contact-intro.is-ltr {
    direction: ltr;
}

.mt20 {
    margin-top: 20px !important;
}

/* ============================
   1. تنظیمات پایه و آیتم‌ها
   ============================ */
.mainnav__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem; /* فاصله بین آیتم‌های منو */
}

.mainnav__item {
    position: relative; /* برای موقعیت‌دهی صحیح زیرمنو ضروری است */
    display: flex;
    align-items: center;
}

/* استایل لینک‌های ساده */
.mainnav__link {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.mainnav__link:hover,
.mainnav__link.active {
    /*color: var(--primary-color, #007bff); !* رنگ فعال *!*/
}

/* استایل دکمه‌های تریگر (آیتم‌هایی که زیرمنو دارند) */
.mainnav__trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.mainnav__trigger:hover,
.mainnav__trigger.active {
    /*color: var(--primary-color, #007bff);*/
}

/* آیکون فلش */
.mainnav__caret {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* چرخش فلش وقتی منو باز است */
.mainnav__item.is-open > .mainnav__trigger .mainnav__caret {
    transform: rotate(180deg);
}

/* ============================
   2. زیرمنو (Dropdown / Mega)
   ============================ */
.solid-menu {
    position: absolute;
    top: 138%; /* دقیقاً زیر آیتم والد */
    right: 0; /* در فارسی راست‌چین می‌شود */
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    list-style: none;
    margin: 0;
    z-index: 1000;

    /* حالت مخفی پیش‌فرض */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* نمایش زیرمنو در دسکتاپ (با هاور) */
@media (min-width: 769px) {
    .mainnav__item:hover > .solid-menu,
    .mainnav__item.is-open > .solid-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* استایل لینک‌های داخل زیرمنو */
.solid-menu li a {
    display: block;
    padding: 0.8rem 0.5rem;
    border-top: 1px solid #f1f1f1;
    margin: 0rem 1rem;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.solid-menu li a:hover {
    background-color: #fff;
    /*color: var(--primary-color, #007bff);*/
}

/* ============================
   3. تنظیمات موبایل (Mobile)
   ============================ */
@media (max-width: 768px) {
    /* مخفی کردن منوی دسکتاپ */
    .mainnav__links {
        display: none; /* یا توسط JS کنترل می‌شود */
    }

    /* اگر منوی موبایل جداگانه دارید، استایل‌های مربوط به آنجا */
    /* اما اگر می‌خواهید همین ساختار در موبایل هم نمایش داده شود: */
    .mainnav__links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: #fff;
        padding: 1rem 0;
    }

    .mainnav__item {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid #eee;
    }

    .mainnav__link,
    .mainnav__trigger {
        width: 100%;
        padding: 1rem;
        justify-content: space-between;
    }

    /* در موبایل زیرمنو به صورت پیش‌فرض مخفی است */
    .solid-menu {
        position: static; /* در جریان صفحه قرار می‌گیرد */
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background-color: #f9f9f9;
        display: none; /* مخفی کردن کامل */
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    /* کلاس برای نمایش در موبایل (باید توسط JS اضافه شود) */
    .mainnav__item.is-open > .solid-menu {
        display: block;
        max-height: 500px; /* ارتفاع تقریبی برای انیمیشن */
    }

    .mt80 {
        margin-top: 60px !important;
    }

    a {
        font-size: 14px !important;
    }
}

.post__content {
    line-height: 2.2;
}

.form-control {
    height: 58px;
    width: calc(100% - 42px);
    background: #f1f2f2;
    border: none;
    border-bottom: 4px solid #bebdbd;
    padding: 0px 21px;
    font-size: 17px;
    font-style: normal;
    font-weight: 300;
    line-height: 18px;
    letter-spacing: 0em;
    text-align: right;
}

.alvand-form__field.col-md-6 {
    width: 47%;
}

.alvand-form__field.col-12 {
    width: 96%;
}

.alvand-form h2 {
    font-weight: 800;
    font-size: 1.8rem;
}

@media (max-width: 768px) {

    .alvand-form {
        display: flex;
        flex-wrap: wrap;
    }

    .alvand-form__field {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .form-control {
        width: 100% !important;
        box-sizing: border-box;
    }
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url('your-icon.svg');
    background-repeat: no-repeat;
    background-position: left 10px center;

    padding-left: 40px;
}

.btnMain {
    color: #fff;
    text-align: center;
    height: 45px;
    width: 100%;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0em;
    background: linear-gradient(45deg, transparent 10px, #000000 0) top left !important;
    cursor: pointer;
}

h1 {
    font-size: clamp(28px, 4vw, 37px);
    margin-bottom: 5px;
}

h2 {
    font-size: clamp(24, 3.5vw, 33px);
    margin-bottom: 5px;
}

h3 {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 5px;
}

h4 {
    font-size: clamp(20px, 2.5vw, 24px);
    margin-bottom: 5px;
}

h5 {
    font-size: clamp(18px, 2vw, 20px);
    margin-bottom: 5px;
}

h6 {
    font-size: clamp(15px, 1.5vw, 18px);
    margin-bottom: 5px;
}

p {
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 2.2;
}

span {
    font-size: clamp(14px, 1.5vw, 15px);
}

/* لیست‌ها */
ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 16px 0;
}

ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin: 16px 0;
}

li {
    /*margin-bottom: 8px;*/
    line-height: 1.6;
    /*margin-inline-start: 34px;*/
}

/* لینک */
a {
    color: #5e646a;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 800;
    font-size: 17px;
}

a:hover {
    text-decoration: underline;
    font-weight: 900;
}

/* نقل قول */
blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 16px;
    margin: 20px 0;
    color: #555;
    font-style: italic;
}

/* کد */
code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9em;
}

pre {
    background: #111827;
    color: #f9fafb;
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background: transparent;
    padding: 0;
}

/* تصویر */
img {
    max-width: 100%;
    height: auto;
    /*margin: 30px 5px;*/
}

/* خط جداکننده */
hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

/* جدول */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #e5e7eb;
    padding: 10px;
    text-align: start;
}

th {
    background: #f9fafb;
    font-weight: 600;
}

/* متن بولد و ایتالیک */
strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

/* لیست توضیحی */
dl {
    margin: 16px 0;
}

dt {
    font-weight: 600;
}

dd {
    margin-left: 16px;
    margin-bottom: 8px;
}

/* ویدیو / iframe */
iframe, video {
    max-width: 100%;
    border-radius: 10px;
    margin: 16px 0;
}

.btn-call {
    width: fit-content;
    padding: 0px 20px;
    font-size: 15px;
}

.mt80 {
    margin-top: 80px;
}

.lang-flag {
    max-width: 50px;
}

.js-lang-switch {
    display: flex;
}

.js-lang-link {
    margin: 5px;
}

/*
      * ============================================================
      * بخش اصلی: استایل‌دهی تصاویر CKEditor
      * این کلاس‌ها دقیقاً مشابه خروجی CKEditor هستند
      * ============================================================
      */

/* کلاس پایه برای تمامی بلوک‌های تصویر */
.image {
    display: table;
    clear: both;
    text-align: center;
    margin: 1em auto; /* مرکز به صورت پیش‌فرض */
    min-width: 50px; /* جلوگیری از فشرده شدن بیش از حد */
}

/* استایل تصویر داخلی */
.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/*
 * مدیریت کپشن (متن توضیحات زیر عکس)
 */
.image > figcaption {
    display: table-caption;
    caption-side: bottom;
    word-break: break-word;
    color: #666;
    font-size: 0.9em;
    margin-top: 0.5em;
    padding: 0 5px;
    text-align: center; /* متن زیر عکس وسط چین باشد */
}

/* کلاسی که وقتی کاربر عکس را تغییر سایز می‌دهد اضافه می‌شود */
.image.image_resized {
    max-width: 100%; /* مطمئن می‌شویم از کانتینر بیرون نمی‌زند */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* وقتی تصویر ریسایز می‌شود، عرض inline تنظیم می‌شود، ما آن را پشتیبانی می‌کنیم */
.image.image_resized img {
    width: 100%; /* پر کردن کانتینر ریسایز شده */
}

/*
 * استایل‌های تراز (Alignment)
 * در زبان فارسی (RTL):
 * align-left یعنی سمت چپ صفحه
 * align-right یعنی سمت راست صفحه
 */

/* تصویر تمام عرض */
.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}

/* تصویر سمت راست (تراز راست در RTL) */
.image-style-align-right {
    margin-left: auto;
    margin-right: 0;
}

/* تصویر سمت چپ (تراز چپ در RTL) */
.image-style-align-left {
    margin-right: auto;
    margin-left: 0;
}

/*
 * استایل Side (تصویر در کنار متن)
 * در حالت RTL معمولاً تصویر سمت راست قرار می‌گیرد تا متن از سمت چپ جریان داشته باشد
 * اما شما می‌توانید جهت را تغییر دهید.
 */
.image-style-side {
    float: right; /* شناور شدن در راست */
    margin-left: var(--spacing-unit); /* فاصله از متن سمت چپ */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    max-width: 50%; /* حداکثر عرض نصف صفحه */
}

/* اگر کاربر از نسخه LTR استفاده می‌کند و می‌خواهد سمت چپ باشد */
.image-style-side.image-style-align-left {
    float: left;
    margin-right: var(--spacing-unit);
    margin-left: 0;
}

/*
 * پاکسازی شناوری (Clearfix)
 * برای جلوگیری از به هم ریختگی پاراگراف‌های بعدی
 */
.image::after {
    content: '';
    display: block;
    clear: both;
}

/* سایر المان‌های CKEditor برای تکمیل قالب */
blockquote {
    border-right: 4px solid var(--primary-color);
    margin: 1.5em 0;
    padding: 0.5em 1.5em;
    background-color: #f8f9fa;
    color: #555;
    font-style: italic;
}

hr {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 2rem 0;
}

/* واکنش‌گرا (Responsive) برای موبایل */
@media (max-width: 600px) {
    .ck-content-wrapper {
        padding: 20px;
        margin: 10px;
    }

    /* در موبایل، تصاویر شناور (Side) باید تمام عرض بگیرند تا خوانایی متن حفظ شود */
    .image-style-side {
        float: none;
        display: block;
        margin: 1rem auto;
        max-width: 100%;
    }
}



/* =========================
   Licenses Section
   Scoped classes: licenses-section, licenses-grid, license-card
========================= */

.licenses-section,
.licenses-section * {
    box-sizing: border-box;
}

.licenses-section {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 40px;
    padding-block: 60px;
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /*gap: 30px;*/
    margin-top: 3rem;
}

.license-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.license-card__media {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: pointer;
}

.license-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .35s ease;
}

.license-card:hover .license-card__media img {
    transform: scale(1.08);
}

.license-card__title {
    margin: 12px 0 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #111827;
    text-align: center;
}

@media (max-width: 1024px) {
    .licenses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .licenses-section {
        padding-inline: 24px;
    }
}

@media (max-width: 768px) {
    .licenses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .licenses-section {
        padding-inline: 16px;
        padding-block: 40px;
    }
}

@media (max-width: 480px) {
    .licenses-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .license-card__media {
        padding: 20px;
    }
}

/* =========================
   License Lightbox
========================= */

.license-lightbox[hidden] {
    display: none;
}

.license-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.license-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .85);
}

.license-lightbox__panel {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.license-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    /*border-radius: 8px;*/
}

.license-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    padding: 4px 12px;
    line-height: 1;
    opacity: .8;
}

.license-lightbox__close:hover {
    opacity: 1;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 45px;
    justify-content: space-around;
}

.footer-badge {
    width: 90px;
    height: auto;
    display: block;
}