/* Root Container */
.servicos_container {
    margin-top: 100px;
    width: 100%;
    position: relative;
    font-family: 'Karla', sans-serif;
}

/* Carousel Base */
.carousel {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    background-color: #f9f9f957;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}


/* Slides (one visible at a time) */
.shape {
    min-width: 100%;
    height: 85vh;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.shape::before {
    content: ""; /* Required to render the pseudo-element */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #47391f58; /* Semi-transparent white layer */
    z-index: 1; /* Make sure it sits above background but below other content */
}

/* Slide Content */

.shape-text-box {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 30px;
    border-radius: 10px;
    max-width: 90%;
    margin: 0 auto;
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.shape-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    text-align: center;
    z-index: 2;
    width: 80%;
    max-width: 800px;
    padding: 20px;
}

.shape-content h2 {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #caae7e;
}

.shape-content p {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 40px;
    margin-top: 40px;
    text-align: justify;
}

/* Button */
.shape-content-button {
    width: 170px;
    height: 45px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    background-color: #b59c72;
    color: white;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, border 0.2s ease;
}

.shape-content-button:hover {
    background-color: #fff;
    color: #ac894b;
    box-shadow: 1px 2px 6px rgba(0,0,0,0.5);
}

/* Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 32px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 3;
    border-radius: 4px;
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s, background 0.3s;
}

.carousel-dots span.active {
    opacity: 1;
    background: #e2b567;
}

.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #e2b567;
    width: 0%;
    transition: width 30s linear;
    z-index: 4;
}

.carousel-dots span:focus {
    outline: 20px solid #e2b567;
    outline-offset: 2px;
}

.shape-text-box img{
    width: 100px;
    height: 100px;
}


@media (max-width: 480px) {
    .shape-content {
        padding: 10px;
        width: 90%;
    }

    .shape-content h2 {
        font-size: 22px;
    }

    .shape-content p {
        font-size: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .shape-content-button {
        width: 140px;
        height: 38px;
        font-size: 14px;
    }

    .shape-text-box img{
        width: 70px;
        height: 70px;
    }
}

/* Mobile: enable horizontal scrolling */
@media (max-width: 768px) {
    .shape-content h2 {
        font-size: 26px;
    }

    .shape-content p {
        font-size: 16px;
    }

    .shape-content button {
        font-size: 15px;
        width: 150px;
        height: 40px;
    }

    .carousel-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        display: flex;
    }

    .carousel-track > .shape {
        flex: 0 0 80%; /* or whatever width you want */
        scroll-snap-align: start;
        margin-right: 16px;
    }

    .carousel-arrow {
        display: none;
    }

    /* Hide arrows */
    .carousel-arrow {
        display: none;
    }

    .shape-text-box img{
        width: 70px;
        height: 70px;
    }

}