/* ===== منتقل‌شده از CSS اسکوپ‌شده‌ی Blazor: Home.razor.css =====
   اکنون سراسری است؛ برای حفظ همان اولویت قبلی (specificity) انتخاب‌گرها ایمن‌سازی شده‌اند. */
.carousel-viewport.carousel-viewport, .main-slider.main-slider {
    overflow: hidden;
    position: relative;
    width: 100%
}

.main-slider.main-slider {
    margin-top: 25px
}

.carousel-viewport.carousel-viewport {
    margin-top: 0
}

.slider-wrapper.slider-wrapper {
    width: 100%;
    padding: 25px 3%;
    box-sizing: border-box
}

.custom-control.custom-control, .dot.dot {
    padding: 0;
    cursor: pointer
}

.main-slider.main-slider {
    border-radius: 22px;
    background: #e9ecef;
    box-shadow: 0 15px 40px rgba(0,0,0,.15),0 5px 15px rgba(0,0,0,.08)
}

.carousel-viewport.carousel-viewport {
    /* مهم: صفحه RTL است و در RTL محور flex معکوس می‌شود؛ ترک اسلایدر با translateX
       (که منفی می‌شود) به‌جای اسلاید، فضای خالی نشان می‌داد. مکانیزم اسلایدر باید LTR باشد. */
    direction: ltr;
    touch-action: pan-y;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none
}

.carousel-viewport.dragging.dragging {
    cursor: grabbing
}

/* ارتفاع اسلایدر (دسکتاپ و تبلت)؛ بخش «درباره ما» هم از همین متغیر استفاده می‌کند تا هم‌قد بمانند.
   در موبایل ارتفاع اسلایدر بسته به متن هر اسلاید فرق می‌کند؛ مقدار موبایل = عکس ۱۶/۱۰ + یک کادر متن معمولی. */
:root {
    --home-hero-h: clamp(240px, 42vw, 540px);
}

.carousel-track.carousel-track {
    display: flex;
    height: var(--home-hero-h);
    will-change: transform
}

.carousel-item.carousel-item {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #e9ecef;
    margin: 0; /* ریست مارجین پیش‌فرض تگ figure */
}

.slider-caption.slider-caption {
    direction: rtl;
    text-align: right;
    position: absolute;
    right: 24px;
    bottom: 44px;
    max-width: min(70%, 520px);
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    color: #fff;
    line-height: 1.7;
    z-index: 4;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slider-caption-header.slider-caption-header {
    font-size: 12px;
    font-weight: 600;
    opacity: .85;
    letter-spacing: .2px;
}

.slider-caption-title.slider-caption-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.slider-caption-text.slider-caption-text {
    font-size: 14px;
    opacity: .95;
}

@media (max-width: 768px) {
    /* زیرنویس بین دو فلش (هر کدام ۵۰ تا ۵۶ پیکسل) می‌ماند تا نوشته زیر فلش‌ها نرود */
    .slider-caption.slider-caption {
        right: 56px;
        bottom: 38px;
        max-width: calc(100% - 112px);
        padding: 8px 12px;
    }

    .slider-caption-header.slider-caption-header {
        font-size: 10.5px;
    }

    .slider-caption-title.slider-caption-title {
        font-size: 14px;
    }

    .slider-caption-text.slider-caption-text {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.slider-image.slider-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    max-width: none;
    pointer-events: none;
    -webkit-user-drag: none
}

.slider-overlay.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,rgba(0,0,0,.05),rgba(0,0,0,.2));
    pointer-events: none
}

.carousel-dots.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 5
}

.custom-arrow.custom-arrow, .custom-control.custom-control {
    align-items: center;
    display: flex
}

.dot.dot {
    width: 9px;
    height: 9px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255,255,255,.65);
    transition: width .3s,border-radius .3s,background-color .3s,transform .3s
}

.dot.active.active {
    width: 30px;
    border-radius: 20px;
    background-color: #fff;
    transform: scale(1.05)
}

.custom-control.custom-control {
    position: absolute;
    top: 0;
    height: 100%;
    width: 70px;
    justify-content: center;
    background: transparent;
    border: none;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.custom-control-prev.custom-control-prev {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
}

.custom-control-next.custom-control-next {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
}

.main-slider:hover .custom-control.custom-control {
    opacity: 1
}

.custom-arrow.custom-arrow {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1a2e;
    font-size: 22px;
    font-weight: 300;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-control:hover .custom-arrow.custom-arrow {
    transform: scale(1.12) translateY(-2px);
    background: #ffffff;
    color: #164a8a;
    box-shadow: 0 8px 30px rgba(22, 74, 138, 0.25);
    border-color: rgba(22, 74, 138, 0.2);
}

.slider-navigation.slider-navigation {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 18px
}

.slider-nav-button.slider-nav-button {
    font-family: var(--font-main);
    min-width: 120px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: #fff;
    color: #164a8a;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    transition: .25s
}

    .slider-nav-button.slider-nav-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,.15);
        background: #164a8a;
        color: #fff
    }

    .slider-nav-button.slider-nav-button:active {
        transform: translateY(0)
    }

.nav-icon.nav-icon {
    font-size: 27px;
    line-height: 1;
    font-weight: 300
}

.slider-counter.slider-counter {
    min-width: 70px;
    height: 42px;
    padding: 0 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #f5f7fa;
    color: #333;
    font-size: 14px;
    font-weight: 600
}

.counter-separator.counter-separator {
    color: #999;
    font-weight: 400
}

@media (max-width:992px) {
    :root {
        --home-hero-h: clamp(260px, 46vw, 420px);
    }

    .slider-wrapper.slider-wrapper {
        padding: 20px 2.5%
    }

    .main-slider.main-slider {
        border-radius: 18px
    }

    .carousel-track.carousel-track {
        height: var(--home-hero-h)
    }
}

@media (max-width:768px) {
    .slider-wrapper.slider-wrapper {
        padding: 15px 12px
    }

    .main-slider.main-slider {
        border-radius: 15px
    }

    .carousel-track.carousel-track {
        height: clamp(200px, 56vw, 320px)
    }

    .custom-control.custom-control {
        width: 50px;
        opacity: 1;
        background: transparent !important;
    }

    .custom-arrow.custom-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    }

    .custom-control:hover .custom-arrow.custom-arrow {
        transform: scale(1.05);
    }

    .main-slider .custom-control.custom-control {
        opacity: 1
    }

    .carousel-dots.carousel-dots {
        bottom: 12px
    }

    .dot.dot {
        width: 7px;
        height: 7px
    }

    .dot.active.active {
        width: 22px
    }

    .slider-navigation.slider-navigation {
        gap: 10px;
        margin-top: 14px
    }

    .slider-nav-button.slider-nav-button {
        min-width: 100px;
        height: 44px;
        border-radius: 12px;
        font-size: 14px;
        gap: 6px
    }

    .nav-icon.nav-icon {
        font-size: 23px
    }

    .slider-counter.slider-counter {
        min-width: 55px;
        height: 40px;
        font-size: 13px;
        padding: 0 10px
    }
}

@media (max-width:480px) {
    .slider-wrapper.slider-wrapper {
        padding: 10px
    }

    .main-slider.main-slider {
        border-radius: 12px
    }

    .carousel-track.carousel-track {
        height: clamp(170px, 58vw, 240px)
    }

    .custom-control.custom-control {
        width: 56px
    }

    .custom-arrow.custom-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px
    }

    .carousel-dots.carousel-dots {
        bottom: 8px
    }
}

@media (max-width:400px) {
    .slider-navigation.slider-navigation {
        gap: 7px
    }

    .slider-nav-button.slider-nav-button {
        min-width: 85px;
        height: 42px;
        font-size: 13px
    }
}

/* ============================================================
   اسلایدر در موبایل: عکس بالا با نسبت ثابت، کادر متن زیر عکس.
   (فقط تا ۷۶۸px؛ دسکتاپ هیچ تغییری نمی‌کند.)
   این بلوک عمداً بعد از media queryهای ۷۶۸ و ۴۸۰ بالا آمده تا آن‌ها را override کند.
   ============================================================ */
@media (max-width:768px) {
    :root {
        --home-hero-h: calc((100vw - 24px) * .625 + 90px);
    }

    /* کارت: عکس + متن زیرش داخل یک کادر گرد و سفید */
    .main-slider.main-slider {
        background: #fff;
    }

    /* برای قرار دادن نقطه‌ها دقیقاً پایین عکس (نه پایین کل اسلاید) از واحدهای cqw استفاده می‌شود */
    .carousel-viewport.carousel-viewport {
        container-type: inline-size;
    }

    /* ارتفاع ثابت برداشته می‌شود؛ ارتفاع = عکس + متن */
    .carousel-track.carousel-track {
        height: auto;
    }

    .carousel-item.carousel-item {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        background: #fff;
    }

    .slider-image.slider-image {
        flex: 0 0 auto;
        height: auto !important;
        aspect-ratio: 16 / 10;
        object-fit: cover !important;
    }

    /* سایه‌ی تیره فقط روی خود عکس، نه روی کادر متن */
    .slider-overlay.slider-overlay {
        inset: 0 0 auto 0;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    /* کادر متن: از روی عکس برداشته می‌شود و زیر آن قرار می‌گیرد */
    .slider-caption.slider-caption {
        position: static;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 14px 16px 18px;
        border-radius: 0;
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        color: #1a1a2e;
        line-height: 1.9;
        gap: 4px;
    }

    .slider-caption-header.slider-caption-header {
        font-size: 12.5px;
        font-weight: 600;
        color: #6b7385;
        opacity: 1;
        letter-spacing: 0;
        line-height: 1.8;
    }

    .slider-caption-title.slider-caption-title {
        font-size: 16px;
        font-weight: 700;
        color: #1a1a2e;
        line-height: 1.8;
    }

    .slider-caption-text.slider-caption-text {
        font-size: 14px;
        color: #3d4455;
        opacity: 1;
        line-height: 2;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* فلش‌های روی عکس مخفی می‌شوند؛ ناوبری با دکمه‌های «قبلی/بعدی» زیر اسلایدر و swipe انجام می‌شود */
    .custom-control.custom-control {
        display: none;
    }

    /* نقطه‌ها: بالای لبه‌ی پایین عکس (عکس 16/10 است ⇒ ارتفاعش ۶۲٫۵٪ عرض) */
    .carousel-dots.carousel-dots {
        bottom: auto;
        top: calc((100vw - 24px) * .625 - 19px); /* fallback برای مرورگرهای قدیمی */
        top: calc(62.5cqw - 19px);
    }

    .dot.dot {
        box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    }
}

@media (prefers-reduced-motion:reduce) {
    .carousel-track.carousel-track {
        transition: none !important
    }
}





.online-card.online-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin: 10px auto;
    width: 100%;
}

.online-card-content.online-card-content {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(22, 74, 138, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(22, 74, 138, 0.06);
    position: relative;
    overflow: hidden;
}

    .online-card-content.online-card-content::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 30% 50%, rgba(22, 74, 138, 0.03), transparent 60%);
        pointer-events: none;
    }

.online-card-icon.online-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #164a8a;
    background: rgba(22, 74, 138, 0.08);
    padding: 10px;
    border-radius: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.online-card-info.online-card-info {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.online-card-number.online-card-number {
    font-size: 32px;
    font-weight: 800;
    color: #164a8a;
    line-height: 1.1;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.online-card-label.online-card-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.online-card-pulse.online-card-pulse {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    z-index: 1;
}

.pulse-ring.pulse-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

.pulse-dot.pulse-dot {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .online-card-content.online-card-content {
        padding: 14px 24px;
        gap: 14px;
        border-radius: 16px;
    }

    .online-card-number.online-card-number {
        font-size: 26px;
    }

    .online-card-icon.online-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .online-card-icon.online-card-icon {
        padding: 8px;
        border-radius: 12px;
    }

    .online-card-pulse.online-card-pulse {
        width: 32px;
        height: 32px;
    }

    .pulse-ring.pulse-ring {
        width: 32px;
        height: 32px;
    }

    .pulse-dot.pulse-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .online-card.online-card {
        padding: 12px 0;
        margin: 4px auto;
    }

    .online-card-content.online-card-content {
        padding: 10px 16px;
        gap: 10px;
        border-radius: 14px;
    }

    .online-card-number.online-card-number {
        font-size: 20px;
    }

    .online-card-label.online-card-label {
        font-size: 11px;
    }

    .online-card-icon.online-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .online-card-icon.online-card-icon {
        padding: 6px;
        border-radius: 10px;
    }

    .online-card-pulse.online-card-pulse {
        width: 26px;
        height: 26px;
    }

    .pulse-ring.pulse-ring {
        width: 26px;
        height: 26px;
        border-width: 1.5px;
    }

    .pulse-dot.pulse-dot {
        width: 8px;
        height: 8px;
    }
}

/* ============================================================
   بخش «مقایسه تصاویر» (تصاویر مقایسه‌ای فعال از بک‌اند)
   ============================================================ */
.compare-section.compare-section {
    width: 100%;
    padding: 25px 3%;
    box-sizing: border-box;
}

.compare-block.compare-block {
    max-width: 980px;
    margin: 0 auto 36px;
    padding: 0 6px;
}

.compare-title.compare-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #164a8a;
}

.compare-desc.compare-desc {
    max-width: 720px;
    margin: 0 auto 22px;
    text-align: center;
    font-size: 14.5px;
    line-height: 2;
    color: #555;
}

@media (max-width: 768px) {
    .compare-section.compare-section {
        padding: 15px 12px;
    }

    .compare-title.compare-title {
        font-size: 18px;
    }

    .compare-desc.compare-desc {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .compare-block.compare-block {
        margin-bottom: 26px;
    }
}

/* زیرنویس اسلاید در زبان‌های چپ‌به‌راست */
:root[dir="ltr"] .slider-caption.slider-caption {
    direction: ltr;
    text-align: left;
    right: auto;
    left: 24px;
}

@media (max-width: 768px) {
    :root[dir="ltr"] .slider-caption.slider-caption {
        right: auto;
        left: 56px;
    }
}

/* ============================================================
   بخش «دسته‌بندی محصولات» (زیر اسلایدر و بالای تصاویر مقایسه‌ای)
   ============================================================ */
.category-section.category-section {
    width: 100%;
    padding: 25px 3% 10px;
    box-sizing: border-box;
}

.category-section-head.category-section-head {
    max-width: 980px;
    margin: 0 auto 22px;
    text-align: center;
}

.category-section-title.category-section-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #164a8a;
}

.category-section-sub.category-section-sub {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* هر ردیف حداکثر ۳ آیتم دارد و آیتم‌های هر ردیف کل عرض را پر می‌کنند:
   ۱ آیتم = تمام‌عرض ، ۲ آیتم = نصف‌نصف ، ۳ آیتم = سه‌قسمت ؛ آیتم چهارم به ردیف بعد می‌رود (و همین قاعده در آن ردیف هم اجرا می‌شود) */
.category-grid.category-grid {
    --category-gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--category-gap);
}

.category-card.category-card {
    flex: 1 1 calc((100% - 2 * var(--category-gap)) / 3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--color-border-light, #ddd6fe);
    box-shadow: 0 4px 14px rgba(99, 102, 241, .10);
    text-decoration: none;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s cubic-bezier(.4, 0, .2, 1), border-color .25s;
    -webkit-tap-highlight-color: transparent;
}

    /* خط زیرینِ سراسریِ لینک‌ها برای کارت لازم نیست */
    .category-card.category-card::after {
        content: none;
    }

    .category-card.category-card:hover {
        transform: translateY(-5px);
        text-shadow: none;
        border-color: var(--color-primary-light, #a5b4fc);
        box-shadow: 0 14px 30px rgba(99, 102, 241, .22);
    }

    .category-card.category-card:focus-visible {
        outline: 3px solid var(--color-focus-ring, #a5b4fc);
        outline-offset: 3px;
    }

.category-card-media.category-card-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef0f6;
}

    .category-card-media.category-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s cubic-bezier(.22, 1, .36, 1);
    }

    .category-card-media.category-card-media::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 45%;
        background: linear-gradient(to top, rgba(30, 27, 75, .28), transparent);
        pointer-events: none;
    }

.category-card:hover .category-card-media.category-card-media img {
    transform: scale(1.07);
}

/* آیتمی که تنها در ردیف خودش است (تمام‌عرض می‌شود) تصویر سینمایی‌تر می‌گیرد تا خیلی بلند نشود */
.category-card:only-child .category-card-media.category-card-media,
.category-card:last-child:nth-child(3n + 1) .category-card-media.category-card-media {
    aspect-ratio: 21 / 9;
}

.category-card-desc.category-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    padding: 0 12px 14px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.8;
    color: #6b7280;
}

.category-card-name.category-card-name {
    padding: 14px 12px 6px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    color: #1e1b4b;
}

@media (max-width: 768px) {
    .category-section.category-section {
        padding: 15px 16px 6px;
    }

    .category-section-head.category-section-head {
        margin-bottom: 16px;
    }

    .category-section-title.category-section-title {
        font-size: 18px;
    }

    .category-section-sub.category-section-sub {
        font-size: 12.5px;
    }

    /* موبایل: در هر ردیف فقط یک آیتم */
    .category-grid.category-grid {
        --category-gap: 14px;
    }

    .category-card.category-card {
        flex: 1 1 100%;
        border-radius: 14px;
    }

    .category-card-media.category-card-media,
    .category-card:only-child .category-card-media.category-card-media,
    .category-card:last-child:nth-child(3n + 1) .category-card-media.category-card-media {
        aspect-ratio: 16 / 9;
    }

    .category-card-name.category-card-name {
        padding: 10px 8px 12px;
        font-size: 13.5px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .category-grid.category-grid {
        --category-gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-card.category-card,
    .category-card-media.category-card-media img {
        transition: none;
    }

        .category-card.category-card:hover,
        .category-card:hover .category-card-media.category-card-media img {
            transform: none;
        }
}

/* ===== بخش «درباره ما» =====
   ارتفاع کارت = ارتفاع اسلایدر (--home-hero-h)؛ عکس ۳۰٪ عرض کارت و بقیه متن هم‌قد عکس.
   فاصله‌ی چپ/راست از لبه‌های سایت مثل اسلایدر (۳٪) است. */
.about-section.about-section {
    width: 100%;
    padding: 25px 3% 10px;
    box-sizing: border-box;
}

.about-card.about-card {
    width: 100%;
    max-width: none;
    height: var(--home-hero-h);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 30% minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--color-border-light, #ddd6fe);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, .12);
}

.about-media.about-media {
    margin: 0;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: auto;
    background: #f1f5f9;
}

    .about-media.about-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    }

.about-card:hover .about-media.about-media img {
    transform: scale(1.04);
}

.about-body.about-body {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px clamp(20px, 3vw, 44px);
    box-sizing: border-box;
    text-align: start;
}

.about-eyebrow.about-eyebrow {
    align-self: flex-start;
    flex: none;
    margin-bottom: 10px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #4f46e5;
    background: rgba(99, 102, 241, .10);
}

.about-title.about-title {
    flex: none;
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.6;
    color: #164a8a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* متن به اندازه‌ی ارتفاع باقی‌مانده‌ی کارت نمایش داده می‌شود؛ بقیه با محوشدگی پایین بریده می‌شود */
.about-text.about-text {
    flex: 1 1 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    font-size: 15px;
    line-height: 2.1;
    color: #4b5563;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
}

.about-more.about-more {
    flex: none;
    align-self: flex-start;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
}

    .about-more.about-more:hover {
        text-decoration: underline;
    }

/* تبلت: کمی فشرده‌تر */
@media (max-width: 992px) {
    .about-section.about-section {
        padding: 20px 2.5% 8px;
    }

    .about-card.about-card {
        border-radius: 18px;
    }

    .about-body.about-body {
        padding: 18px 22px;
    }

    .about-title.about-title {
        font-size: 20px;
    }

    .about-text.about-text {
        font-size: 14px;
        line-height: 2;
    }
}

/* موبایل: عکس سمت شروع (در صفحه‌ی راست‌به‌چپ = سمت راست)، متن کنارش هم‌قد عکس و لینک «بیشتر بخوانید» زیر متن */
@media (max-width: 768px) {
    .about-section.about-section {
        padding: 15px 12px 6px;
    }

    .about-card.about-card {
        grid-template-columns: 40% minmax(0, 1fr);
        border-radius: 15px;
    }

    .about-body.about-body {
        padding: 12px 14px;
    }

    .about-eyebrow.about-eyebrow {
        margin-bottom: 6px;
        padding: 2px 10px;
        font-size: 11px;
    }

    .about-title.about-title {
        margin-bottom: 6px;
        font-size: 15px;
        line-height: 1.7;
    }

    .about-text.about-text {
        font-size: 12.5px;
        line-height: 1.95;
    }

    .about-more.about-more {
        margin-top: 6px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-media.about-media img {
        transition: none;
    }

    .about-card:hover .about-media.about-media img {
        transform: none;
    }
}
