@font-face {
    font-family: 'PoppinsRegular';
    src: url(fonts/Poppins-Regular.ttf);
}

@font-face {
    font-family: 'PoppinsBold';
    src: url(fonts/Poppins-Bold.ttf);
}

body {
    background-color: #F3EDC8;
    margin: 0;
    padding: 0;
    font-family: 'PoppinsRegular', sans-serif;
}

.container {
    margin: auto;
    width: 80%;
    max-width: 1200px;
}

.top {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.img {
    width: 100%;
    height: auto;
}

.title {
    position: absolute;
    bottom: 0;
    width: 80%;
    padding: 10px;
    text-align: center;
    background-color: #BF3131;
    font-size: 17px;
    color: white;
    border-radius: 25px 25px 0px 0px;
    font-family: 'PoppinsRegular', sans-serif;
}


.content {
    background-color: #BF3131;
    padding: 3%;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 0px 0px 25px 25px;
}

.box {
    position: relative;
    width: 45%; /* changed from 90% */
    margin: 2.5%; /* changed from 5% */
    background-color: #F3EDC8;
    display: inline-block;
    border-radius: 25px;
    font-family: 'PoppinsRegular', sans-serif;
}

.dot {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    height: 60px;
    width: 60px;
    background-color: #BF3131;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.text {
    padding-left: 60px;
    font-size: 22px;
}

.contact {
    margin: 20px auto;
    width: 60%;
    background-color: #EAD196;
    color: black;
    font-size: 30px;
    border-radius: 25px;
    font-family: 'PoppinsBold', sans-serif;
    padding: 10px;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .box {
        width: 90%; /* changed from 100% */
        margin: 5% auto; /* changed from 10px 0 */
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .title {
        font-size: 12px;
    }

    .box {
        width: 90%; /* changed from 100% */
        margin: 5% auto; /* changed from 10px 0 */
        font-size: 16px;
    }

    .dot {
        height: 30px;
        width: 30px;
        font-size: 14px;
    }

    .text {
        padding-left: 45px;
        font-size: 14px;
    }

    .contact {
        font-size: 16px;
    }
}
