/* ====================================
   HOME CAROUSEL - DESKTOP
   ==================================== */

/* Same height contract as banner dividido: desktop min/max 954px */
section.carousel-home-section {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin-bottom: 0 !important;
    max-height: 954px;
    min-height: 954px;
}

/* Carousel container */
.carousel-home-section > .carousel {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    height: 100%;
    max-height: 954px;
    min-height: 954px;
}

/* Carousel inner wrapper */
.carousel-home-section > .carousel .carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    height: 100%;
    max-height: 954px;
    min-height: 954px;
}

/* Individual carousel item (slide) */
.carousel-home-section > .carousel .carousel-item {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 100%;
    max-height: 954px;
    min-height: 954px;
    width: 100%;
    flex: 0 0 100%;
    position: relative;
    display: none !important;
    box-sizing: border-box;
}

.carousel-home-section > .carousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(6, 30, 55, 0.5);
    pointer-events: none;
    z-index: 1;
}

/* Active slide: column flex so the content wrapper can fill height and center copy */
.carousel-home-section > .carousel .carousel-item.active {
    display: flex !important;
    flex-direction: column;
}

.carousel-home-section > .carousel .carousel-item .carousel-content-wrapper {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Text container - holds all text and buttons */
.carousel-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1920px;
    width: 100%;
}

/* Small title (primeiro texto) */
.carousel-title-small {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(22px, 3vw, 40px);
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: #ffffff;
    margin: 0;
}

/* Large title (segundo texto) */
.carousel-title-large {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(36px, 6vw, 80px);
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: #ffffff;
    width: 1139px;
    max-width: 100%;
    margin: clamp(8px, 1.5vh, 16px) auto 0;
}

/* Buttons container */
.carousel-buttons-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: clamp(24px, 4vh, 47px);
}

/* Button base styles */
.carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 250px;
    height: 48px;
    border-radius: 15px;
    padding: 15px 88px;
    background: #0A3C70;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.carousel-btn:hover {
    background: #083054;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 60, 112, 0.4);
}

.carousel-btn:active {
    transform: translateY(0);
}

.carousel-home-section > .carousel .carousel-btn-secondary img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    section.carousel-home-section {
        max-height: 954px;
        min-height: 520px;
    }

    .carousel-home-section > .carousel,
    .carousel-home-section > .carousel .carousel-inner {
        max-height: 954px;
        min-height: 520px;
    }

    .carousel-home-section > .carousel .carousel-item {
        height: 100%;
        max-height: 954px;
        min-height: 520px;
    }

    .carousel-home-section > .carousel .carousel-item.active {
        display: flex !important;
        flex-direction: column;
    }

    .carousel-home-section > .carousel .carousel-content-wrapper {
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        padding: 0 25px;
        min-height: 100%;
    }

    .carousel-home-section > .carousel .carousel-text-container {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        padding: 0;
    }

    .carousel-home-section > .carousel .carousel-title-small {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 12px;
        line-height: 100%;
        letter-spacing: 0;
        text-align: center;
        padding-top: 0;
    }

    .carousel-home-section > .carousel .carousel-title-large {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 24px;
        line-height: 100%;
        letter-spacing: 0;
        text-align: center;
        width: 100%;
    }

    .carousel-home-section > .carousel .carousel-buttons-container {
        position: relative;
        top: auto;
        left: auto;
        width: 310px;
        max-width: 100%;
        height: auto;
        min-height: 40px;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        margin-top: 32px;
        justify-content: center;
    }

    .carousel-home-section > .carousel .carousel-btn {
        width: auto;
        flex: 1;
        height: 40px;
        padding: 0 16px;
        border-radius: 10px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-title-small {
        font-size: 32px;
    }

    .carousel-title-large {
        font-size: 60px;
        width: 100%;
        max-width: 900px;
    }

    .carousel-home-section > .carousel .carousel-item .carousel-content-wrapper {
        padding-left: 40px;
        padding-right: 40px;
    }
}
