.img-static {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center; /* Centers content horizontally */
    margin: 3rem;
}

.card-main {
    position: relative;
    overflow: hidden;
    flex: 1 1 22%; /* Slightly smaller width to create more space around images */
    max-width: 22%;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.img_design_1a {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card-main:hover .img_design_1a {
    transform: scale(1.1);
}

.fa-icon-2a {

    font-size: 2rem; /* Adjust size as needed */
    color: white;
    margin-bottom: 1rem; /* Space it slightly above title */
}

.overlay-sa{
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen to the left */
    width: 100%;
    height: 100%;
    background-color: rgba(6, 57, 112, 0.95)!important; /* Semi-transparent blue */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.8s ease; /* Slide in/out */
}

.card-main:hover .overlay-sa{
    left: 0; /* Slide in on hover */
    cursor: pointer;
}

.overlay-text {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    margin: 0 1rem;
    background-color: transparent;
}

.icon-1a { /* Optional specific icon style inside overlay */ }

.title-2a {
    font-size: 30px;
    font-weight: 600;

}

.body-1a {
    font-size: 20px;
    font-weight: 400;

}

/* Hide icon outside overlay */
.card-main > .fa-icon-2a {
    display: none;
}

/* Display icon within overlay */
.overlay-sa.fa-icon-2a {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .card-main {
        flex: 1 1 calc(50% - 1rem); /* 2 items per row */
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .card-main {
        flex: 1 1 100%; /* 1 item per row */
        max-width: 100%;
    }
}
