﻿

/* کل صفحه */
.project-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 15px;
    direction:rtl
}

/* تصویر بالا */
.hero {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

    .hero img {
        width: 100%;
        height: 420px;
        object-fit: contain;
        transition: 0.4s;
    }

        .hero img:hover {
            transform: scale(1.03);
        }

/* عنوان */
.title {
    margin-top: 25px;
    font-size: 28px;
    color: #003560;
    position: relative;
}

    .title::after {
        content: "";
        display: block;
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, #003560, #00bcd4);
        margin-top: 10px;
        border-radius: 10px;
    }

/* توضیحات */
.description {
    background: #fff;
    padding: 25px;
    margin-top: 20px;
    border-radius: 15px;
    line-height: 2;
    color: #444;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* بخش جدیدترین پروژه‌ها */
.latest-section {
    margin-top: 40px;
}

    .latest-section h2 {
        margin-bottom: 20px;
        color: #003560;
    }

/* کارت‌ها */
.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.3s;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    }

    .card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }

    .card span {
        display: block;
        padding: 12px;
        text-align: center;
        font-weight: bold;
        color: #333;
    }

/* ریسپانسیو */
@media(max-width:768px) {
    .projects {
        grid-template-columns: 1fr;
    }

    .hero img {
        height: 250px;
    }
}
