/* هدر گالری */
.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.heading {
    font-size: 36px;
    color: #1a472a;
    display: block;
    margin-bottom: 15px;
}

.heading .mx {
    color: #dd4b39;
}

.gallery-description {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* گرید گالری */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* کارت گالری */
.gallery-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 71, 42, 0.1);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 71, 42, 0.15);
    border-color: rgba(26, 71, 42, 0.3);
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* بخش تصویر با گوشه‌های گرد */
.gallery-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    margin: 15px;
    margin-bottom: 0;
    border-radius: 16px;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 16px;
}

.gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.05);
}

/* اورلی روی تصویر */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 71, 42, 0.85);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 32px;
    color: white;
}

.gallery-overlay span {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* بخش اطلاعات */
.gallery-info {
    padding: 20px;
    text-align: center;
}

.gallery-info h6 {
    font-size: 18px;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 10px;
}

.gallery-info p {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* آمار تصاویر */
.gallery-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    color: #1a472a;
    font-weight: 500;
}

.gallery-stats i {
    font-size: 12px;
}

/* صفحه‌بندی */
.pagination-wrapper {
    text-align: center;
    margin-top: 30px;
}

.pagination {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.pagination .page-link {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination .page-link:hover {
    background: #1a472a;
    color: white;
    border-color: #1a472a;
    transform: translateY(-2px);
}

.pagination .active .page-link {
    background: #1a472a;
    color: white;
    border-color: #1a472a;
}

/* ریسپانسیو برای سه ستونه */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .heading {
        font-size: 28px;
    }
    
    .gallery-description {
        font-size: 14px;
        padding: 0 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-image-wrapper {
        height: 200px;
        margin: 12px;
    }
    
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}
