/* =========================================================
   Ariana - News & Articles
   ========================================================= */

.aryana_latest {
    width: 100%;
    padding: 55px 20px 45px;
    box-sizing: border-box;
}

.aryana_latest_inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

/* -----------------------------
   عنوان بخش
   ----------------------------- */

.aryana_latest_heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 32px;
}

.aryana_latest_heading h2 {
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.5;
}

.aryana_latest_line {
    width: 55px;
    height: 2px;
    background: #f28c28;
    border-radius: 5px;
}


/* =========================================================
   Ariana Blog Button
   ========================================================= */

.news-archive-blog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
    margin-right: 75px;
    padding: 8px 28px 8px 22px;
    direction: rtl;
    font-family: ramin, Tahoma, sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.8;
    color: #FF9400;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: 0 3px 8px rgba(80, 20, 20, 0.07);
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* هاور، فوکوس و کلیک */
.news-archive-blog-button:hover,
.news-archive-blog-button:focus-visible,
.news-archive-blog-button:active {
    color: #FF1760;
    background: #ffffff;
    border-color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(80, 20, 20, 0.09);
}

/* آیکون فلش خطی */
.news-archive-blog-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.25s ease;
}

/* حرکت فلش هنگام هاور، فوکوس و کلیک */
.news-archive-blog-button:hover .news-archive-blog-arrow,
.news-archive-blog-button:focus-visible .news-archive-blog-arrow,
.news-archive-blog-button:active .news-archive-blog-arrow {
    transform: translate(-2px, -1px);
}

/* اندازه آیکون */
.news-archive-blog-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* فوکوس صفحه‌کلید */
.news-archive-blog-button:focus-visible {
    outline: 2px solid #FF1760;
    outline-offset: 3px;
}

/* -----------------------------
   Grid
   ----------------------------- */

.aryana_latest_grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

/* -----------------------------
   Card
   ----------------------------- */

.aryana_content_card {
    min-width: 0;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    box-sizing: border-box;
}

/* بالا آمدن کل کارت */

.aryana_content_card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* -----------------------------
   Link
   ----------------------------- */

.aryana_content_card_link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* -----------------------------
   Image
   ----------------------------- */

.aryana_content_image_wrapper {
    width: 100%;
    height: 205px;
    overflow: hidden;
    background: #f5f5f5;
}

.aryana_content_image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transition:
        transform 0.45s ease;
}

/* بزرگ‌نمایی عکس هم‌زمان با حرکت کارت */
.aryana_content_card:hover .aryana_content_image {
    transform: scale(1.07);
}

/* -----------------------------
   Card body
   ----------------------------- */

.aryana_content_body {
    padding: 18px 19px 20px;
}

/* -----------------------------
   Tag
   ----------------------------- */

.aryana_content_tag {
    display: inline-block;
    padding: 5px 11px;
    margin-bottom: 10px;
    background: #fff1e3;
    color: #FF9400;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

/* تگ اخبار کمی متفاوت */

.aryana_content_tag.aryananews_tag {
    background: #fff0df;
    color: #FF9400;
}

/* -----------------------------
   Title
   ----------------------------- */

.aryana_content_title {
    margin: 0 0 10px;
    color: #555555;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
    transition:
        color 0.25s ease;
}

/* تغییر رنگ عنوان */

.aryana_content_card:hover .aryana_content_title {
    color: #FF9400;
}

/* -----------------------------
   Excerpt
   ----------------------------- */

.aryana_content_excerpt {
    margin: 0;
    color: #777;
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-archive-hero {
    position: relative;
    width: 100vw;
    min-height: 220px;
    margin-right: calc(50% - 50vw);
    margin-top: -30px !important;
    margin-bottom: 42px;
    padding: 0 8%;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: linear-gradient(to left,
            #ff9800 0%,
            #ff9000 8%,
            #ff8205 16%,
            #ff720d 25%,
            #ff631c 35%,
            #ff5530 45%,
            #ff4743 55%,
            #ff3b55 65%,
            #ff2d5d 75%,
            #ff205f 87%,
            #ff1760 100%);
}

/* =========================
   عکس سمت چپ
========================= */

.news-archive-hero-image {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    height: 100%;
    z-index: 2;
    overflow: visible;
}

.news-archive-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    -webkit-mask-image: linear-gradient(to right,
            #000 0%,
            #000 70%,
            rgba(0, 0, 0, 0.85) 80%,
            rgba(0, 0, 0, 0.5) 90%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            #000 0%,
            #000 70%,
            rgba(0, 0, 0, 0.85) 80%,
            rgba(0, 0, 0, 0.5) 90%,
            transparent 100%);
}

/* =========================
   متن سمت راست
========================= */

.news-archive-hero-content {
    position: relative;
    z-index: 4;
    width: 60%;
    margin-left: 40%;
    padding: 28px 5% 28px 3%;
    box-sizing: border-box;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: right;
    transform: translateX(-100px);
}

/* =========================================================
   TITLE
   ========================================================= */

.news-archive-hero-title {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-family: raminb, ramin, Tahoma, sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.5;
    text-align: right;
}

/* =========================================================
   SUBTITLE
   ========================================================= */

.news-archive-hero-subtitle {
    margin: 8px 0 0;
    color: #ffffff;
    opacity: 0.94;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.9;
    max-width: 750px;
    width: 100%;
    text-align: right;
    transform: translateX(115px);
}

/* =========================================================
   FILTER TABS
   ========================================================= */

.aryana_archive_filter_box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    margin: 20px auto 40px;
    direction: rtl;
}

/* مخفی کردن Radio Button */

.aryana_archive_filter_box input[type="radio"] {

    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* دکمه‌های فیلتر */

.aryana_archive_filter_box label {

    display: inline-block;
    border: 0;
    outline: none;
    padding: 9px 22px;
    border-radius: 12px;
    background: #fff6eb;
    color: #666666;
    font-family: "ramin";
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

/* هاور */

.aryana_archive_filter_box label:hover {

    background: #ff9400;
    color: #ffffff;
    transform: translateY(-2px);
}

/* فیلتر فعال */

#filter-all:checked+label,
#filter-news:checked+label,
#filter-articles:checked+label {

    background: #ff9400;
    color: #ffffff;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .aryana_latest {
        padding: 45px 18px 40px;
    }

    .aryana_latest_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .aryana_content_image_wrapper {
        height: 200px;
    }

    .news-archive-hero {
        min-height: 180px;
        padding: 0 6%;
        margin-bottom: 30px;
    }

    .news-archive-hero-image {
        width: 38%;
    }

    .news-archive-hero-content {
        width: 62%;
        margin-left: 38%;
        padding: 22px 3%;
    }

    .news-archive-hero-title {
        font-size: 29px;
    }

    .news-archive-hero-subtitle {
        font-size: 15px;
    }

    .aryana_archive_filter_box {

        margin-bottom: 28px;
    }

    .news-archive-blog-button {
        margin-top: 10px;
        padding: 7px 18px;
        font-size: 14px;
    }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .aryana_latest {
        padding: 35px 15px 80px;
    }

    .aryana_latest_heading {
        gap: 12px;
        margin-bottom: 25px;
    }

    .aryana_latest_heading h2 {
        font-size: 23px;
    }

    .aryana_latest_line {
        width: 35px;
    }

    .aryana_latest_grid {
        grid-template-columns: 1fr;
        width: 95%;
        margin: 0 auto;
        row-gap: 38px;
    }

    .aryana_content_image_wrapper {
        height: 210px;
    }

    .aryana_content_card {
        width: 95%;
        justify-self: center;
        border-radius: 24px;
    }

    .aryana_content_body {
        padding: 16px 17px 18px;
    }

    .aryana_content_title {
        font-size: 17px;
    }

    .aryana_content_excerpt {
        font-size: 13.5px;
    }

    .news-archive-hero-image {
        width: 42%;
    }

    .news-archive-hero {
        min-height: 160px;
        margin-bottom: 35px;
        padding: 20px 18px;
        align-items: center;
    }


    .news-archive-hero-content {
        width: 58%;
        max-width: 58%;
        margin-right: 2%;
        margin-left: 0;
        padding: 15px 0 15px 5px;
        transform: none;
    }

    .news-archive-hero-title {
        width: 100%;
        font-size: 25px;
        line-height: 1.6;
        text-align: center;
    }

    .news-archive-hero-subtitle {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.8;
        text-align: right;
        transform: none;
    }

    .aryana_archive_filter_box {
        justify-content: center;
        gap: 14px;
        margin-top: 20px;
        margin-bottom: 33px;
        flex-wrap: wrap;
    }

    .aryana_archive_filter_box label {
        padding: 14px 18px;
        font-size: 14px;
    }

    .news-archive-blog-button {
        align-self: center;
        margin-top: 15px;
        margin-right: -17px;
        padding: 6px 15px;
        gap: 7px;
        font-size: 13px;
        border-radius: 10px;
    }

    .news-archive-blog-arrow svg {
        width: 16px;
        height: 16px;
    }

}

/* =========================================================
   PURE CSS FILTER
   بدون JavaScript
   ========================================================= */

/* مخفی کردن کارت‌های خارج از صفحه فعلی */
.aryana_latest_grid .aryana_content_card.is-hidden {
    display: none !important;
}

html,
body {
    overflow-x: hidden;
}

/* =========================================================
   ARIYANA - ARCHIVE PAGINATION
   ========================================================= */

.aryana-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 42px auto 10px;
    direction: rtl;
}

/* دکمه‌های صفحه‌بندی */

.aryana-pagination button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #f0e5d9;
    border-radius: 11px;
    background: #ffffff;
    color: #666666;
    font-family: ramin, Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* هاور */

.aryana-pagination button:hover:not(:disabled) {
    background: #fff3e3;
    color: #ff9400;
    border-color: #ffcf91;
    transform: translateY(-1px);
}

/* صفحه فعال */

.aryana-pagination button.is-active {
    background: #ff9400;
    color: #ffffff;
    border-color: #ff9400;
    cursor: default;
}

/* دکمه غیرفعال */

.aryana-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* فوکوس صفحه‌کلید */

.aryana-pagination button:focus-visible {
    outline: 2px solid #ff9400;
    outline-offset: 3px;
}

/* نمایشگر موبایل */

@media (max-width: 600px) {
    .aryana-pagination {
        gap: 6px;
        margin-top: 32px;
    }

    .aryana-pagination button {
        min-width: 38px;
        height: 38px;
        padding: 0 9px;
        font-size: 13px;
        border-radius: 9px;
    }
}