/* Main container styles */
.section-cta {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 68px 0;
}

/* Flexbox for image and text */
.section-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.section-container .side {
    flex: 1;
}

.image-content {
    display: flex;
    justify-content: right;
}


/* Left Side - Background Image */
.image-item {
    position: relative;
    left: 30px;
    min-width: 740px;
    min-height: 631px;
    background-size: auto;
    background-repeat: no-repeat;
}

.image-item img {
    background-position: center;
    background-size: contain;
}

.cta-container {
    max-width: 600px;
}

.cta-container h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-container p {
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 0.4px;
}

.cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 40px;
    border: 1px solid var(--brown-color);
    color: var(--brown-color);
    text-decoration: none;
    border-radius: 6px;
}


.light-yellow-cta .cta-button {
    border: 1px solid var(--yellow-color);
    color: var(--brown-color);
    background: rgba(249, 185, 57, 0.1);
}

.section-cta .arrow-read-more {
    display: inline-block;
    margin-top: 40px;
    font-weight: 700;
}

.section-cta .arrow-read-more img {
    transform: rotate(270deg);
}

/* Adjust for Tablet: Stack image above text */
@media (max-width: 1200px) {
    .section-container {
        flex-direction: column; /* Stack elements */
        align-items: center; /* Center them */
        overflow: hidden;
    }

    .side.image-content {
        order: -1; /* Moves image to the top */
    }

    .side.text-content {
        order: 1; /* Moves text below */
    }

    .image-item {
        left: 0;
    }

    .cta-container {
        width: 100%;
        padding-top: 40px;
    }

    .section-readMore table,
    .section-readMore tr,
    .section-readMore tr td {
        height: auto !important;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .side.image-content {
        width: auto; /* Full width for mobile */
    }

    .side.text-content {
        width: 100%;
    }

    .image-item {
        width: 100%;
        height: auto;
        min-height: 300px; /* Ensures the image has enough height */
        background-size: cover;
        background-position: center;
    }

    .cta-container {
        padding: 40px 20px 0 20px;
    }
}
