﻿
/* =========================================================
   ARTICLE PAGE
   ========================================================= */
.article-page {
    width: 100%;
    max-width: 100%;
    padding: 0 20px 40px;
    box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.article-header-banner {
    width: 100%;
    max-width: 1311px;
    margin: 7px auto 30px;
    padding: 28px 35px;
    border-radius: 22px;
    background: linear-gradient( 135deg, #2563eb, #4f46e5 );
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .25);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}


    .article-header-banner::before {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        background: rgba(255, 255, 255, .12);
        border-radius: 50%;
        left: -80px;
        top: -90px;
    }


.article-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}


.article-header-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    backdrop-filter: blur(10px);
}


.article-header-content h1 {
    color: white;
    font-size: 32px;
}


.article-header-content p {
    color: rgba(255, 255, 255, .85);
    font-size: 16px;
    line-height: 2;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.category-box {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px 10px;
}


.category-btn {
    font-size: 13px;
    padding: 7px 16px;
    transition: all .25s ease;
}


    .category-btn:hover {
        transform: translateY(-2px);
    }


/* =========================================================
   ARTICLE LIST
   ========================================================= */

.article-list {
    width: 100%;
    max-width: 1180px;
    margin-left: auto !important;
    margin-right: auto !important;
    row-gap: 28px !important;
}


/* =========================================================
   ARTICLE COLUMN
   ========================================================= */

.article-column {
    display: flex;
    margin-top: 30px;
}


/* =========================================================
   ARTICLE CARD
   ========================================================= */

.article-card {
    width: 100%;
    max-width: 315px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    border: none !important;
    border-radius: 18px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .08) !important;
    transition: transform .3s ease, box-shadow .3s ease;
}


    /* Hover */

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 32px rgba(0, 0, 0, .13) !important;
    }


/* =========================================================
   ARTICLE IMAGE
   ========================================================= */

.article-image {
    width: 100%;
    height: 155px;
    display: block;
    object-fit: cover;
    border: none;
    border-radius: 0 !important;
}


/* =========================================================
   CARD BODY
   ========================================================= */

.article-card .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: right;
}


/* =========================================================
   CATEGORY BADGE
   ========================================================= */

.category-badge {
    width: fit-content;
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 8px;
    border-radius: 20px;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   TITLE
   ========================================================= */

.article-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    margin: 0 0 8px;
    min-height: 57px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.article-description {
    font-size: 13px;
    line-height: 1.8;
    color: black;
    margin: 0 0 12px;
    min-height: 47px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   META
   ========================================================= */

.article-meta {
    font-size: 12px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 12px;
}


    .article-meta div {
        margin-bottom: 4px !important;
    }


    .article-meta i {
        margin-left: 4px;
    }


/* =========================================================
   BUTTON
   ========================================================= */

.article-button {
    width: 100%;
    margin-top: auto;
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 10px;
    text-align: center;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.article-pagination {
    width: 100%;
    padding-bottom: 20px;
}


    .article-pagination .page-link {
        min-width: 40px;
        text-align: center;
    }


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .article-page {
        padding-left: 35px;
        padding-right: 35px;
    }


    .article-list {
        max-width: 1160px;
    }


    .article-card {
        max-width: 310px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199px) {

    .article-page {
        padding-left: 25px;
        padding-right: 25px;
    }


    .article-list {
        max-width: 760px;
        row-gap: 24px !important;
    }


    .article-card {
        max-width: 310px;
    }


    .article-image {
        height: 150px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .article-page {
        padding-left: 15px;
        padding-right: 15px;
    }


    .article-header-banner {
        padding: 20px;
        border-radius: 18px;
        margin-bottom: 22px;
    }


    .article-header-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }


    .article-header-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 28px;
        border-radius: 17px;
    }


    .article-header-content h1 {
        font-size: 25px;
        margin-bottom: 8px !important;
    }


    .article-header-content p {
        font-size: 13px;
        line-height: 1.9;
    }


    .category-box {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 20px !important;
    }


    .category-btn {
        font-size: 12px;
        padding: 6px 13px;
    }


    .article-list {
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        row-gap: 20px !important;
    }


    .article-column {
        width: 100%;
    }


    .article-card {
        width: 100%;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 16px !important;
    }


    .article-image {
        height: 150px;
    }


    .article-card .card-body {
        padding: 14px;
    }


    .article-title {
        font-size: 16px;
        line-height: 1.7;
        min-height: 54px;
    }


    .article-description {
        font-size: 12px;
        line-height: 1.8;
        min-height: 43px;
    }


    .article-meta {
        font-size: 11px;
    }


    .article-button {
        font-size: 12px;
        padding: 7px 10px;
        border-radius: 9px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .article-page {
        padding-left: 10px;
        padding-right: 10px;
    }


    .article-header-banner {
        padding: 17px;
        border-radius: 16px;
    }


    .article-header-content h1 {
        font-size: 22px;
    }


    .article-header-content p {
        font-size: 12px;
    }


    .article-list {
        row-gap: 18px !important;
    }


    .article-card {
        max-width: 100%;
        border-radius: 15px !important;
    }


    .article-image {
        height: 135px;
    }


    .article-card .card-body {
        padding: 13px;
    }


    .article-title {
        font-size: 15px;
        min-height: 51px;
    }


    .article-description {
        font-size: 12px;
        min-height: 42px;
    }
}

```
/* =========================================================
   CARD SPACING OVERRIDE
   افقی کمتر / عمودی بیشتر
   ========================================================= */
.article-list {
    --bs-gutter-x: 0.55rem !important;
    --bs-gutter-y: 0 !important;
    row-gap: 42px !important;
}

.article-column {
    margin-top: 0 !important;
}

@media (min-width: 1200px) {
    .article-list {
        --bs-gutter-x: 0.4rem !important;
        row-gap: 48px !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .article-list {
        --bs-gutter-x: 0.55rem !important;
        row-gap: 40px !important;
    }
}

@media (max-width: 767px) {
    .article-list {
        --bs-gutter-x: 0 !important;
        row-gap: 30px !important;
    }
}

@media (max-width: 420px) {
    .article-list {
        --bs-gutter-x: 0 !important;
        row-gap: 27px !important;
    }
}
