.prisec_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;

}

.prisec_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    justify-content: center;
}

.prisec_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;
}

.prisec_cards img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}



.overlay-prisec {
    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;
}

.prisec_cards:hover .overlay-prisec {
    background-color: rgba(0, 0, 0, 0);
}

.overlay-prisec img {
    width: 70px;
    height: 70px;
    margin-bottom: 5px;
}

.prisec_cards h3 {
    margin: 5px 0 0;
    font-size: 26px;
}


.prisec_cards {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-in-out;
}

.prisec_cards.visible {
    opacity: 1;
    transform: translateX(0);
}

@media (min-width: 1201px) {
    .prisec_container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .prisec_container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .prisec_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .prisec_cards {
        width: 100%;
        max-width: 90%;
        height: auto;
        margin: auto;
    }

    .prisec_cards h3 {
        font-size: 22px;
    }

    .overlay-prisec img {
        width: 55px;
        height: 55px;
    }

    .texts_s h2 {
        font-size: 38px;
    }

    .texts_s p {
        font-size: 17px;
    }
}

@media (max-width: 600px) {
    .prisec_container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .prisec_cards {
        width: 375px;
        max-width: 95%;
        height: 250px;
        margin: auto;
    }

    .prisec_cards h3 {
        font-size: 20px;
    }

    .overlay-prisec img {
        width: 45px;
        height: 45px;
    }

    .texts_s h2 {
        font-size: 30px;
    }

    .texts_s p {
        font-size: 16px;
    }
}
