/* Call to Action Section */
#call-to-action {
    display: flex;
    max-width: 104rem; /* Equivalent to max-w-6xl */
    width: 100%;
    margin: 6rem auto 0; /* Center horizontally with a top margin */
    padding-top: 2rem;
    justify-content: center;
    align-items: center;
}

.contact-us-section {
    display: flex;
    height: auto;
    max-width: 104rem; /* Equivalent to max-w-6xl */
    width: 100%;
    margin: 8rem auto 0;
    justify-content: center;
    align-items: center;
}

/* Default two-column layout */
.contact-us-container {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 104rem;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(122, 132, 120, 0.2);
    border: 0.21px solid #2ecc71;
    padding: 3rem;
}

/* Full-width layout only for sections that should span 100% */
.contact-us-section.full-width .contact-us-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ensure text spans full width and is justified */
.contact-us-section.full-width .contact-us-text {
    width: 100%;
    padding: 2rem 5%;
    text-align: justify;
    text-justify: inter-word; /* Prevent excessive spacing */
}

/* Ensure images are hidden for full-width sections */
.contact-us-section.full-width .contact-us-image {
    display: none;
}


.contact-us-text {
    width: 50%; /* Equivalent to w-1/2 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 5%;
}

.contact-us-text h1 {
    font-size: 4rem; /* Equivalent to text-4xl */
    font-weight: bold;
    color: #2ecc71; /* Equivalent to text-dark-gray */
    margin: 1.5rem 0;
}

.contact-us-text h2 {
    font-size: 4rem; /* Equivalent to text-4xl */
    font-weight: bold;
    color: #2ecc71; /* Equivalent to text-dark-gray */
    margin: 1.5rem 0;
}

.contact-us-text p {
    font-size: 2.25rem; /* Equivalent to text-lg */
    color: #4a4a4a; /* Equivalent to text-gray-700 */
    margin-bottom: 4rem; /* Equivalent to mb-8 */
}

.contact-us-text button {
    padding: 0.75rem 1.5rem; /* Equivalent to py-3 px-8 */
    background-color: #2ecc71; /* Equivalent to bg-blue-600 */
    color: white;
    font-weight: 600;
    border-radius: 0.5rem; /* Equivalent to rounded-lg */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Equivalent to shadow-md */
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    font-size: 1.75rem;
    text-align: center;
}

.contact-us-text button:hover {
    background-color: #1dd84e;
}

.contact-us-image {
    width: 50%; /* Equivalent to w-1/2 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0; /* Equivalent to mt-0 */
}

.contact-us-image img {
    width: 80%; /* Full width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
}

/* Medium devices (larger tablets/small laptops) */
@media (max-width: 1080px) {
    .contact-us-container {
        padding: 0 3rem;
    }

    .contact-us-text h1 {
        font-size: 3rem; /* Equivalent to text-3xl */
    }
    .contact-us-text h2 {
        font-size: 2.5rem; /* Equivalent to text-3xl */
    }

    .contact-us-text p {
        font-size: 1.25rem; /* Equivalent to text-base */
    }
}

/* Small devices (tablets) */
@media (max-width: 810px) {
    .contact-us-container {
        flex-direction: column;
        align-items: center;
        justify-content: normal;
        padding: 0 1.5rem;
    }

    .contact-us-text {
        order: 2;
        width: 100%; /* Full width */
        padding: 2rem 2rem;
        height: 100%;
        justify-content: center;
    }

    .contact-us-image {
        order: 1;
        width: 80%;
    }
}

/* Extra small devices (phones) */
@media (max-width: 576px) {
    .contact-us-container {
        padding-top: 1rem;
    }

    .contact-us-text {
        padding: 2rem 0.5rem;
    }

    .contact-us-text h1 {
        font-size: 2rem;
    }

    .contact-us-text h2 {
        font-size: 1.75rem;
    }

    .contact-us-text p {
        font-size: 1.25rem;
    }
}
