﻿/* =========================
   FONT
========================= */
@font-face {
    font-family: "IRANSansWeb";
    src: url('../Fonts/IRANSansWeb(FaNum).ttf');
    font-weight: normal;
    font-style: normal;
}

/* =========================
   ARTICLE SECTION
========================= */
.article-section {
    padding: 60px 15px;
    background: linear-gradient(135deg, #f5f9ff, #eef2ff);
    font-family: "IRANSansWeb", sans-serif;
}

/* Container */
.article-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Card */
.article-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

    .article-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    }

/* Image */
.article-image {
    height: 220px;
    overflow: hidden;
}

    .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.article-card:hover .article-image img {
    transform: scale(1.08);
}

/* Content */
.article-content {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Title */
.article-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.6;
    margin: 0;
}

/* Short Description */
.article-short-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    margin: 0;
}


/* =========================
   ARTICLE SECTION (BASE)
========================= */
.article-section {
    margin-top: 80px;
    padding: 60px 15px;
    background: linear-gradient(135deg, #f5f9ff, #eef2ff);
    font-family: "IRANSansWeb", sans-serif;
}

/* =========================
   RESPONSIVE – TABLET & MOBILE
========================= */
@media (max-width: 768px) {

    /* فاصله سکشن از بالا (کدی که قبلاً دادم) */
    .article-section {
        margin-top: 40px;
        padding: 40px 12px;
    }

    /* کدهای خودت – بدون تغییر */
    .article-image {
        height: 200px;
    }

    .article-title {
        font-size: 18px;
    }
}

/* =========================
   RESPONSIVE – SMALL MOBILE
========================= */
@media (max-width: 480px) {

    /* کدهای خودت – بدون تغییر */
    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 17px;
    }
}
