/* =========================================================
   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;
}


/* -----------------------------
   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_image_wrapper: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: #e87513;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}


/* تگ اخبار کمی متفاوت */

.aryana_content_tag.aryananews_tag {
    background: #fff0df;
    color: #e87513;
}


/* -----------------------------
   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: #f28c28;
}

/* -----------------------------
   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;
}


/* -----------------------------
   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;
    }

}


/* -----------------------------
   Mobile
   ----------------------------- */

@media (max-width: 600px) {

    .aryana_latest {
        padding: 35px 15px 30px;
    }

    .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;
        gap: 24px;
    }

    .aryana_content_image_wrapper {
        height: 210px;
    }

    .aryana_content_body {
        padding: 16px 17px 18px;
    }

    .aryana_content_title {
        font-size: 17px;
    }

    .aryana_content_excerpt {
        font-size: 13.5px;
    }

}

/* =========================================================
   NEWS & ARTICLES ARCHIVE HERO
   ========================================================= */

.news-archive-hero {
    position: relative;
    width: 100vw;
    min-height: 250px;
    margin-right: calc(50% - 50vw);
    margin-bottom: 42px;

    padding: 28px 8%;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(110deg,
            #ff1760 0%,
            #ff4b45 30%,
            #ff6f00 60%,
            #ff9800 100%);
}


/* -----------------------------
   تصویر سمت چپ
   ----------------------------- */

.news-archive-hero-image {
    position: absolute;

    left: 0;
    top: 0;

    width: 58%;
    height: 100%;

    overflow: hidden;

    z-index: 1;

    -webkit-mask-image:
        linear-gradient(to right,
            #000 0%,
            #000 48%,
            rgba(0, 0, 0, 0.8) 62%,
            rgba(0, 0, 0, 0) 100%);

    mask-image:
        linear-gradient(to right,
            #000 0%,
            #000 48%,
            rgba(0, 0, 0, 0.8) 62%,
            rgba(0, 0, 0, 0) 100%);
}


.news-archive-hero-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* -----------------------------
   محتوای سمت راست
   ----------------------------- */

.news-archive-hero-content {
    position: relative;

    z-index: 2;

    width: 52%;
    margin-right: 0;
    margin-left: auto;

    direction: rtl;
    text-align: right;
}


/* -----------------------------
   عنوان
   ----------------------------- */

.news-archive-hero-title {
    margin: 0;
    padding: 0;

    color: #ffffff;

    font-family: raminb, ramin, Tahoma, sans-serif;

    font-size: 36px;
    font-weight: 700;

    line-height: 1.6;
}


/* -----------------------------
   زیرعنوان
   ----------------------------- */

.news-archive-hero-subtitle {
    margin: 12px 0 0;

    color: #ffffff;

    opacity: 0.94;

    font-size: 17px;
    font-weight: 400;

    line-height: 1.9;

    max-width: 650px;
}


/* =========================================================
   FILTER TABS
   ========================================================= */

.aryana_archive_filter_box {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    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: 25px;

    background: #f3f3f3;

    color: #444;

    font-family: inherit;

    font-size: 14px;

    font-weight: 500;

    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: #fff0df;

    color: #e87513;

    transform: translateY(-1px);

}


/* فیلتر فعال */

#filter-all:checked+label,
#filter-news:checked+label,
#filter-articles:checked+label {

    background: #ff9400;

    color: #ffffff;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .news-archive-hero {
        min-height: 230px;

        padding: 28px 6%;

        margin-bottom: 35px;
    }

    .news-archive-hero-image {
        width: 60%;
    }

    .news-archive-hero-content {
        width: 58%;
    }

    .news-archive-hero-title {
        font-size: 31px;
    }

    .news-archive-hero-subtitle {
        font-size: 15px;
    }

    .aryana_archive_filter_box {

        margin-bottom: 28px;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .news-archive-hero {
        min-height: 220px;
        margin-bottom: 30px;

        padding: 30px 22px;

        align-items: flex-end;
    }


    .news-archive-hero-image {
        width: 100%;
        height: 100%;

        opacity: 0.65;

        -webkit-mask-image:
            linear-gradient(to right,
                #000 0%,
                #000 35%,
                rgba(0, 0, 0, 0.4) 65%,
                rgba(0, 0, 0, 0) 100%);

        mask-image:
            linear-gradient(to right,
                #000 0%,
                #000 35%,
                rgba(0, 0, 0, 0.4) 65%,
                rgba(0, 0, 0, 0) 100%);
    }


    .news-archive-hero-content {
        width: 72%;

        margin-left: 0;
        margin-right: auto;
    }


    .news-archive-hero-title {
        font-size: 27px;
        line-height: 1.6;
    }


    .news-archive-hero-subtitle {
        margin-top: 8px;

        font-size: 13.5px;
        line-height: 1.9;
    }


    .aryana_archive_filter_box {

        justify-content: center;

        gap: 8px;

        margin-bottom: 25px;

        flex-wrap: wrap;

    }


    .aryana_archive_filter_box label {

        padding: 8px 17px;

        font-size: 13px;

    }

}

/* =========================================================
   PURE CSS FILTER
   بدون JavaScript
   ========================================================= */

/* وقتی «اخبار مدرسه» انتخاب شده */
.aryana_latest_inner:has(#filter-news:checked) .article-card {
    display: none;
}

/* وقتی «مقالات» انتخاب شده */
.aryana_latest_inner:has(#filter-articles:checked) .news-card {
    display: none;
}

.news-archive-hero {
    margin-top: -30px !important;
}

html,
body {
    overflow-x: hidden;
}