body {
    font-family: Arial, sans-serif;
}

.box-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 55px;
    margin: 100px;
}

.box-item {
    display: flex;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    overflow: hidden;
}

.box-item img {
    width: 35%;
    object-fit: cover;
}

.box-text-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}

.box-text-container h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.box-text-container p {
    margin: 0 0 20px;
    font-size: 16px;
    color: #555;
}

.box-text-container button {
    align-self: start;
    padding: 10px 20px;
    background-color: #ccc;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.box-text-container button:hover {
    background-color: #bbb;
}

@media (max-width: 1536px) {
    .box-grid-container {
        margin: 80px;
    }
    .box-text-container h2 {
        font-size: 22px;
    }
    .box-text-container p {
        font-size: 15px;
    }
}

@media (max-width: 1280px) {
    .box-grid-container {
        margin-top: 8em;
    }
    .box-text-container h2 {
        font-size: 1.2em;
    }
    .box-text-container p {
        font-size: 0.8em;
    }
    .box-item img {
        width: 40%;
    }
}

@media (max-width: 1100px) {
    .box-item {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    .box-item img {
        width: 80%;
        max-width: 300px; /* Set a maximum width for the image */
    }
    .box-text-container {
        width: 100%;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .box-grid-container {
        grid-template-columns: 1fr;
    }
    .box-text-container h2 {
        font-size: 1.1em;
    }
    .box-text-container p {
        font-size: 0.75em;
    }
    .box-item img {
        width: 60%;
        max-width: 250px; /* Set a maximum width for the image */
    }
}

@media (max-width: 640px) {
    .box-grid-container {
        padding: 0px;
    }
    .box-text-container h2 {
        font-size: 1em;
        text-align: center;
    }
    .box-text-container p {
        font-size: 0.5em;
        text-align: center;
    }
    .box-item img {
        width: 60%;
        max-width: 200px; /* Set a maximum width for the image */
    }
    .buttons{
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .box-item {
        flex-direction: column;
        align-items: center;
        padding: 5%;
    }
    .box-item img {
        width: 100%;
        max-width: 200px; /* Set a maximum width for the image */
    }
    .box-text-container {
        width: 100%;
        padding: 5px;
    }
}

@media (max-width: 430px) {
    .box-text-container h2 {
        font-size: 0.9em;
    }
    .box-text-container p {
        font-size: 0.6em;
    }
    .box-text-container button {
        padding: 8px 16px;
        font-size: 0.8em;
    }
    .box-item img {
        width: 100%;
        max-width: 150px; /* Set a maximum width for the image */
    }
}