.section1 {
    background-color: #e4e2e5;
    height: 250px;
}
.section2{
    margin: -160px auto 40px;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn_wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
    position: relative;
}

.btn_wrap a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.3;
    width: 100%;
    font-weight: 600;
    gap: 10px;
    justify-content: center;
    color: #434544;
}

.btn_wrap a img {
    width: auto;
    height: auto;
    object-fit: cover;
}

.btn_wrap a .text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 600;
    font-size: 22px;
    padding: 10px;
    border-radius: 10px;
    z-index: 10;
}


.btn_wrap a div {
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.btn_wrap a img {
    width: 100%;
    object-fit: cover;
}


@media (min-width: 768px) and (max-width: 1200px) {
    .section2 {
        margin: -150px auto 40px;
        text-align: center;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .btn_wrap {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
        width: 100%;
    }
   .btn_wrap a .text-overlay {
       font-size: 25px;
       line-height: 1.3;
       padding: 5px;
   }
    

}

@media screen and (max-width: 767px) {
    .section2 {
        margin: -200px auto 40px;
        text-align: center;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .btn_wrap {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
        width: 100%;
    }
   .btn_wrap a .text-overlay {
       font-size: 16px;
       line-height: 1.3;
       padding: 5px;
   }
}