.main-view{
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.title{
    text-align: center;
}

.section1 {
    margin: 50px auto;
    display: grid;
    width: 60%;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 10px;
}

.left-container,
.right-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.top-left, .bottom-left, .bottom-right, .top-right {
    background-color: transparent;
    border: 7px solid #57a864;
    padding: 20px 30px;
    color: black;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.top-left {
    border-radius: 15px 0 0 0;
}

.top-right {
    border-radius: 0 15px 0 0;
}

.bottom-left {
    border-radius: 0 0 0 15px;
}

.bottom-right {
    border-radius: 0 0 15px 0;
}

.section2{
    width: 100%;
    padding: 50px 20%;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    background-color: #cce6aa;
    gap: 30px;
}

.section2 p{
    text-align: justify;
    font-size: 1.2rem;
}

.section2 img{
    align-self: center;
    width: 45%;
    height: calc-size(100%, 80%);
}

.section3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 20vh;
    padding: 40px 10%;
    width: 60%;
    margin: 0 auto;
}

.contact-us-content h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.contact-us-content p {
    margin: 5px 0 0;
    color: #666;
}

.contact-btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: #57a864;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

@media (max-width: 1200px) {
    .section1, .section3 {
        width: 85%;
    }

    .section2 {
        padding: 50px 10%; /* Reduce the massive 20% side padding */
    }
}

/* Medium Screens (Tablets, up to 992px) */
@media (max-width: 992px) {
    .section2 {
        flex-direction: column; /* Stack image and text */
        text-align: center;
    }

    .section2 p {
        text-align: left; /* Keep text readable, but not justified */
    }

    .section2 img {
        width: 80%; /* Make image larger when stacked */
        order: -1;  /* Put image above text */
    }
}

/* Small Screens (Phones, up to 768px) */
@media (max-width: 850px) {
    .section1 {
        grid-template-columns: 1fr; /* Stack the 4 boxes vertically */
        width: 90%;
        gap: 20px;
    }

    /* Reset border-radii so they look like independent cards on mobile */
    .top-left, .top-right, .bottom-left, .bottom-right {
        border-radius: 15px;
        border-width: 4px; /* Slightly thinner borders for mobile */
    }

    .section3 {
        flex-direction: column; /* Stack the "Ready to work?" section */
        text-align: center;
        gap: 25px;
        width: 90%;
    }

    .contact-us-content h2 {
        font-size: 1.5rem;
    }

    .title {
        font-size: 2rem;
        margin-top: 20px;
    }
}

