.home-gallery-section,
.home-gallery-section a,
.home-gallery-card {
    font-family: "Cairo", sans-serif;
}

.home-gallery-section {
    padding: 72px 0 64px;
    background: #fff;
    overflow: hidden;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.home-gallery-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dce6f0;
    background: #fff;
    box-shadow: 0 10px 28px rgba(9, 30, 66, 0.07);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 94, 168, 0.35);
    box-shadow: 0 16px 36px rgba(9, 30, 66, 0.12);
    text-decoration: none;
}

.home-gallery-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #fafbfd 0%, #eef3f8 100%);
    overflow: hidden;
}

.home-gallery-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.home-gallery-card:hover .home-gallery-card-media img {
    transform: scale(1.05);
}

.home-gallery-card-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 30, 66, 0.45);
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.home-gallery-card-zoom i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0b5ea8;
    font-size: 1rem;
}

.home-gallery-card:hover .home-gallery-card-zoom {
    opacity: 1;
}

.home-gallery-more {
    margin-top: 36px;
}

@media (min-width: 576px) {
    .home-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .home-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 26px;
    }
}

@media (max-width: 767px) {
    .home-gallery-section {
        padding: 48px 0 44px;
    }

    .home-gallery-more {
        margin-top: 28px;
    }
}
