/* ==========================================================================
   EBOOKS SECTION (TABLET SLIDER MOCKUP)
   ========================================================================== */

.ebooks-viewport-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
    overflow: hidden;
}

/* --- Moldura Central Fixa (Mockup Tablet) --- */
.ebook-frame-fixed {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 280px; 
    height: 380px;
    border: 12px solid var(--color-primary); 
    border-radius: 24px;
    z-index: 10;
    pointer-events: none; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    background: transparent;
}

/* Detalhe do botão do tablet */
.ebook-frame-fixed::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #333;
    border-radius: 50%;
}

/* --- Slider de Capas --- */
.ebooks-slider {
    display: flex;
    align-items: center;
    gap: 100px; 
    overflow-x: scroll;
    scroll-snap-type: x proximity; /* Permite que o JS mova o scroll livremente nos botões */
    width: 100%;
    padding: 0 !important; /* Remova o padding lateral para não quebrar o cálculo do centro */
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.ebooks-slider::-webkit-scrollbar { 
    display: none; 
}

.ebook-item {
    flex: 0 0 240px; 
    scroll-snap-align: center;
    transition: transform 0.5s ease;
}

/* --- Botões de Navegação --- */
.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 10px;
    transition: color 0.3s;
    z-index: 15;
}

.nav-btn:hover { color: var(--color-primary); }

.nav-btn svg {
    width: 40px;
    height: 40px;
}
/* ==========================================================================
   TESTIMONIALS (CAROUSEL & FEEDBACK CARDS)
   ========================================================================== */

.testimonials {
    background-color: var(--color-background);
    padding: 100px 48px;
}

.carousel-container {
    position: relative;
    max-width: 1000px; 
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.testimonials-grid {
    display: flex;
    overflow: hidden;
    gap: 40px;
    padding: 20px 48px;
}

.testimonial-card {
    background: var(--color-secondary-surface);
    border: 1px solid var(--color-accent-light);
    border-radius: 12px;
    padding: 48px;
    width: calc(33.333% - 27px);
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow-wrap: break-word;
}

.testimonial-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.testimonial-quote {
    font-size: 60px;
    color: var(--color-primary);
    font-family: serif;
    line-height: 1;
    margin-bottom: -20px;
    opacity: 0.2;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-primary);
    font-weight: 400;
    margin-bottom: 32px;
}

/* --- Autor e Controles --- */
.author-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-primary);
}

.author-role {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-button {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-button.prev { left: 0px; }
.carousel-button.next { right: 0px; }
.carousel-button:hover { opacity: 0.8; }

/* ==========================================================================
   RESPONSIVO: TESTIMONIALS (Mobile)
   ========================================================================== */

@media (max-width: 768px) {
    .testimonials {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .carousel-container {
        padding: 0 12px; 
    }

    .testimonials-grid {
        padding: 0;
        gap: 16px;
    }

    .testimonial-card {
        padding: 24px;
        min-width: 85vw
    }

    .testimonial-text {
        font-size: 16px;
        text-align: left;
    }

    .meeting-section {
        padding: 60px 24px !important;
    }

    .meeting-form input, 
    .meeting-form textarea, 
    .form-select {
        padding: 14px 20px; /* Inputs levemente menores para mobile */
    }
}