/* SITUAÇÕES FREQUENTES CAROUSEL - EXACT REFERENCE MATCHING DESIGN */

.practice-section {
    position: relative;
    width: 100%;
    background: #F8FAFC;
    padding: 100px 0 120px 0;
}

.practice-container {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
}

.carousel-gold-line {
    width: 48px;
    height: 3px;
    background: #07B8A6;
    margin-bottom: 20px;
}

.carousel-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 24px;
}

.carousel-header-left h2 {
    font-size: 40px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.carousel-header-left p {
    font-size: 16px;
    color: #64748B;
    max-width: 620px;
    line-height: 1.6;
}

/* NAVIGATION ARROW BUTTONS IN REFERENCE STYLE */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.carousel-nav-btn.next {
    background: #07B8A6;
    border-color: #07B8A6;
    color: #FFFFFF;
}

.carousel-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7, 184, 166, 0.25);
}

/* CAROUSEL VIEWPORT & TRACK */
.carousel-viewport {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 4px 60px 4px;
    -webkit-overflow-scrolling: touch;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 32px;
}

/* CASE CARD WITH FLOATING OVERLAY BOX */
.case-card {
    flex: 0 0 calc((100% - 64px) / 3);
    width: calc((100% - 64px) / 3);
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
}

.case-image-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.case-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover .case-image-wrapper img {
    transform: scale(1.05);
}

/* FLOATING WHITE BOX OVERLAY (STRICT UNIFORM HEIGHT STANDARD) */
.case-floating-box {
    position: relative;
    margin: -90px 24px 0 24px;
    background: #FFFFFF;
    padding: 28px 24px;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    z-index: 5;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid #F1F5F9;
    min-height: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.case-card:hover .case-floating-box {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(7, 184, 166, 0.16);
    border-color: rgba(7, 184, 166, 0.3);
}

.case-floating-box h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.3;
    margin-bottom: 12px;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-floating-box p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RESPONSIVE DESIGN - TABLET & MOBILE ADAPTATION */
@media (max-width: 1024px) {
    .case-card {
        flex: 0 0 calc((100% - 32px) / 2);
        width: calc((100% - 32px) / 2);
    }
    .case-image-wrapper {
        height: 350px;
    }
    .carousel-header-left h2 {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .practice-section {
        padding: 60px 0 70px 0;
    }
    .practice-container {
        padding: 0 16px;
    }
    .carousel-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 28px;
    }
    .carousel-header-left h2 {
        font-size: 26px;
        line-height: 1.2;
    }
    .carousel-header-left p {
        font-size: 14.5px;
    }
    .carousel-controls {
        align-self: flex-start;
    }
    .carousel-track {
        gap: 16px;
    }
    .case-card {
        flex: 0 0 88%;
        width: 88%;
    }
    .case-image-wrapper {
        height: 270px;
    }
    .case-floating-box {
        margin: -50px 8px 0 8px;
        padding: 16px 14px;
        height: auto;
        min-height: 180px;
    }
    .case-floating-box h3 {
        font-size: 16.5px;
        min-height: auto;
        margin-bottom: 6px;
    }
    .case-floating-box p {
        font-size: 13px;
        line-height: 1.45;
        -webkit-line-clamp: 3;
    }
}
