﻿


/* ===================================================
   استایل گالری تصاویر کوچک پیش از فوتر
   =================================================== */

.gallery-card {
    position: relative;
    width: 100%;
    max-width: 250px;
    height: 300px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

    .gallery-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(11, 45, 82, 0.15);
        border-color: #155E9C;
    }

/* تصویر با خروجی ابعاد متناسب */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit:fill;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

/* کاور روی تصویر در حالت Hover */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 45, 82, 0.85) 0%, rgba(11, 45, 82, 0) 100%);
    padding: 20px 10px 10px 10px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
}

/* استایل صفحه‌بندی مینی */
.pagination-sm .page-link {
    font-size: 0.8rem;
    color: #155E9C;
    border-radius: 6px;
    margin: 0 2px;
    padding: 4px 10px;
}

.pagination-sm .page-item.active .page-link {
    background-color: #155E9C;
    border-color: #155E9C;
    color: #fff;
}
