.congoods_section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
    max-width: 1200px;
    margin: auto;
    margin-top: 100px;
    background-color: #003368;
    width: 100%;
    max-width: none;

}

.congoods_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    justify-content: center;
}

.congoods_cards{
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: 280px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.texts_s {
    padding: 40px;
}

.texts_s h2 {
    font-size: 52px;
    color: white;
}

.texts_s p {
    font-size: 19px;
    color: white;
}

.congoods_cards img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}



.overlay-congoods{
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%; 
    color: white;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    padding-bottom: 20px; 
    margin: 0px;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.4s ease;
}

.congoods_cards:hover .overlay-congoods {
    background-color: rgba(0, 0, 0, 0); 
}

.overlay-congoods img {
    width: 70px;
    height: 70px;
    margin-bottom: 5px;
}

.congoods_cards h3 {
    margin: 5px 0 0;
    font-size: 26px;
}


.congoods_cards{
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-in-out;
}

.congoods_cards.visible {
    opacity: 1;
    transform: translateX(0);
}


@media (min-width: 1201px) {
    .congoods_container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .congoods_container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .congoods_container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .congoods_container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .congoods_cards {
        width: 375px;
        max-width: 90%;
        margin: 0 auto;
        height: 250px;
    }

    .overlay-congoods img {
        width: 50px;
        height: 50px;
    }

    .congoods_cards h3 {
        font-size: 20px;
    }

    .texts_s h2 {
        font-size: 32px;
    }

    .texts_s p {
        font-size: 16px;
    }
}
