:root {
    --marron: #892E1C;
    --screen-width: 1300px;
}

.ec_section {
    background-color: #F5F5F5;
    padding: 100px 20px;
}

.ec_section_container {
    max-width: var(--screen-width);
    margin: auto;
    display: flex;
    gap: 30px;
    align-items: center;
}

.ec_section_info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-basis: 60%;
    justify-content: center;
}

.ec_section_img {
    width: 425px;
    height: 444px;
    overflow: hidden;
}

.ec_section_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec_section_info h1 {
    color: #343340;
    font-family: "Urbanist";
    font-size: 32px;
    font-weight: 700;
}

.ec_section_info p {
    color: #343340;
    font-size: 16px;
    font-weight: 400;
}

.ec_section_grid {
    background-color: var(--marron);
    padding: 150px 20px 100px 20px;
}

.ec_section_grid_container {
    max-width: var(--screen-width);
    margin: auto;
    display: grid;
    justify-content: center;
    column-gap: 20px;
    row-gap: 100px;
    grid-template-columns: repeat(auto-fill, max(400px));
}

.ec_section_grid_item {
    position: relative;
}

.ec_section_grid_item h2 {
    color: #FFF;
    font-family: "Urbanist";
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.ec_section_grid_item p {
    color: #FFF;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
}

.ec_section_grid_item button {
    all: unset;
    width: fit-content;
    padding: 10px 30px;
    border-radius: 8px;
    border: 1px solid white;
    color: white;
}

.ec_section_grid_item button:hover {
    border: 1px solid white;
    background-color: white;
    color: var(--marron);
}

.ec_section_grid_item img {
    position: absolute;
    top: -55px;
}

@media screen and (max-width:800px) {
    .ec_section_container {
        flex-direction: column;
        align-items: center;
    }

    .ec_section_img {
        width: 325px;
        height: 344px;
    }

    .ec_section_info h1 {
        font-size: 22px;
    }
}

@media screen and (max-width:1200px) {
    .ec_section_grid_container {
        grid-template-columns: repeat(auto-fill, max(300px));
    }

    

}