.section-one {
    background: linear-gradient(180deg, #FDFFDA 16.94%, #380131 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-two {
    background-color: #FDFFDA;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-three {
    background-color: #FDFFDA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-three-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 13fr 7fr; /* 65% texto, 35% imagem */
    gap: 60px;
    align-items: center;
    box-sizing: border-box;
}

.section-three-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-three-text .text-large {
    width: auto;
    height: auto;
    color: #380131;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 52px;
}

.section-three-text .text-small {
    width: auto;
    height: auto;
    color: #380131;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.section-three-image {
    border-radius: 20px;
    border: 2px solid #FD4950;
    overflow: hidden;
    width: 400px;
    height: 500px;
}

.section-three-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Bootstrap Breakpoints - Sections */

/* Mobile pequeno (xs: < 576px) */
@media (max-width: 575px) {
    .section-three-content {
        padding: 60px 20px 0px 20px; /* 60px from nav, 0px from bottom (handled by JS) */
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: calc(100vh - 48.333px); /* Full viewport minus nav */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .section-three-text {
        gap: 20px;
    }
    
    .section-three-text .text-large {
        width: 100%;
        max-width: 100%;
        height: auto;
        font-size: 32px;
        line-height: 100%;
    }
    
    .section-three-text .text-small {
        width: 100%;
        max-width: 100%;
        height: auto;
        font-size: 16px;
        line-height: 100%;
    }
    
    .section-three-image {
        /* Size will be controlled by JavaScript dynamically */
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        margin: 0 auto;
        aspect-ratio: unset !important; /* Let JavaScript control */
    }
    
    .section-three-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
}

/* Mobile grande / Tablet pequeno (sm: ≥ 576px) */
@media (min-width: 576px) and (max-width: 767px) {
    .section-three-content {
        padding: 0 25px;
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .section-three-text {
        gap: 25px;
    }
    
    .section-three-text .text-large {
        width: 100%;
        max-width: 100%;
        height: auto;
        font-size: 32px;
    }
    
    .section-three-text .text-small {
        width: 100%;
        max-width: 100%;
        height: auto;
        font-size: 18px;
    }
    
    .section-three-image {
        /* Size will be controlled by JavaScript dynamically on mobile */
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        margin: 0 auto;
        aspect-ratio: unset !important;
    }
    
    .section-three-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
}

/* Tablet (md: ≥ 768px) */
@media (min-width: 768px) and (max-width: 991px) {
    .section-three-content {
        padding: 0 30px;
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-three-text .text-large {
        width: 100%;
        max-width: 100%;
        height: auto;
        font-size: 36px;
    }
    
    .section-three-text .text-small {
        width: 100%;
        max-width: 100%;
        height: auto;
        font-size: 18px;
    }
    
    .section-three-image {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 4/5;
        margin: 0 auto;
    }
}

/* Desktop pequeno (lg: ≥ 992px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .section-three-content {
        padding: 0 35px;
        gap: 50px;
    }
    
    .section-three-text .text-large {
        width: 100%;
        max-width: 789px;
        height: auto;
        font-size: 42px;
    }
    
    .section-three-text .text-small {
        width: 100%;
        max-width: 419px;
        height: auto;
    }
    
    .section-three-image {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 4/5;
    }
}

/* Desktop (xl: ≥ 1200px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .section-three-content {
        padding: 0 40px;
    }
    
    .section-three-text .text-large {
        width: 789px;
        height: auto;
    }
    
    .section-three-text .text-small {
        width: 419px;
        height: auto;
    }
    
    .section-three-image {
        width: 400px;
        height: 500px;
    }
}

/* Desktop grande (xxl: ≥ 1400px) */
@media (min-width: 1400px) {
    .section-three-content {
        padding: 0 calc((100vw - 1400px) / 2);
        max-width: none;
    }
}