
.circle-card-section {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 0;

    background-color: var(--dust-gray);
    transition: background-color 0.7s ease;
}

.circle-card-section:hover {
    background-color: var(--silver);
}

.card h2 {
    line-height: 1.3;
    font-size: var(--font-heading);
}

.card article {
    margin-top: 30px;
}

.card p {
    margin-bottom: 15px;
    font-size: var(--font-body-large);
}

.circle-container {
    height: 700px;
    width: 700px;
    border-radius: 50%;
}

.card {
    background: #f8f5ef;
    padding: 30px 40px 20px;
    width: 540px;

    /* Move the card over the image */
    margin-left: -220px;

    /* Make sure it's above the image */
    position: relative;
    z-index: 2;
}

.card-right {
    margin-left: 0;
    margin-right: -200px;
}

@media (max-width: 1100px) {
    .card {
        width: 450px;

    }

    .circle-container {
        height: 600px;
        width: 600px;
    }
}

@media (max-width: 768px) {
    .circle-card-section {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        padding: 40px 0;
    }

    .circle-card-section-right {
        flex-direction: column-reverse;
    }

    .circle-container {
        margin: 0;
        height: min(400px, calc(100vw - 2rem));
        width: min(400px, calc(100vw - 2rem));
        transform: translateX(-20%);
    }

    .card {
        box-sizing: border-box;
        width: min(75%, calc(100% - 2rem));
        margin: 0;
        margin-top: -200px;

        padding: 25px 30px;
    }

    .circle-container-right {
        margin: 0;
        transform: translateX(20%);
    }

    .card h2 {
        line-height: 1.1;
    }

    .card-article {
        line-height: 1.1;
    }
}