/* --- VITRINE: FORMATO DE CAPA ALONGADA --- */

.item-img, 
.item-header {
    height: auto !important;
    /* Aumentamos de 1.4 para 1.5 para ficar mais vertical/comprida */
    aspect-ratio: 1 / 1.5 !important; 
    overflow: hidden !important;
    display: block !important;
    background-color: #f8f8f8; /* Fundo neutro caso a imagem seja menor */
}

.item-img img, 
.item-header img {
    width: 100% !important;
    height: 100% !important;
    /* Mudamos de 'cover' para 'contain' para mostrar a imagem INTEIRA */
    /* Se preferir que preencha tudo mesmo cortando um pouco, use 'cover' */
    object-fit: contain !important; 
    object-position: center !important;
}


/* Reduzir o tamanho da imagem de capa do ebook */
.item-single-img {
    max-width: 350px; /* Altere este valor para o tamanho que desejar */
    margin: 0 auto;   /* Centraliza a imagem no container */
}

.item-single-img img {
    width: 100%;      /* Faz a imagem ocupar 100% do limite de 350px */
    height: auto;     /* Mantém a proporção para não achatar */
    border-radius: 8px; /* Opcional: deixa as pontas arredondadas */
}



/* --- RESET E GRID DE AUTORES --- */
.authors-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    margin-top: 30px !important;
    align-items: stretch !important;
}

/* --- CARD DO AUTOR --- */
.author-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 12px !important;
    padding: 20px !important;
    text-align: center !important;
    height: 100% !important;
    transition: all 0.3s ease !important;
}

.author-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* --- FOTO DO AUTOR (Ajuste para ficar redondo) --- */
.author-avatar {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin: 0 auto 15px auto !important;
    border: 3px solid #009975 !important;
    display: block !important;
}

/* --- BIO E TEXTOS --- */
.author-name {
    font-size: 1.2rem !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 10px !important;
}

.author-bio {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-bottom: 20px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 60px !important;
}

/* --- BOTÃO --- */
.author-btn {
    background-color: #009975 !important;
    color: #fff !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-block !important;
    margin-top: auto !important;
}


/* --- PADRONIZAÇÃO DA SEÇÃO DE TESTEMUNHOS --- */

/* Garante que todos os slides do Swiper tenham a mesma altura */
.testimonialsSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 25px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 30px; /* Espaço para a paginação não colar */
}

/* Padroniza o Avatar do Cliente */
.testimonial-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #009975;
}

/* Ajusta o cabeçalho do depoimento (Nome e Título) */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

/* Estiliza as aspas para não quebrarem o layout */
.testimonial-quote {
    margin-left: auto;
    color: #009975;
    font-size: 1.5rem;
    opacity: 0.2;
}

/* Padroniza o corpo do texto */
.testimonial-body {
    flex-grow: 1; /* Faz o texto ocupar o espaço central */
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limita a 4 linhas para manter simetria */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Estrelas de avaliação sempre no final */
.testimonial-rating {
    color: #ffc107; /* Cor amarela padrão para estrelas */
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
}





/* --- Estilo Simplificado para Páginas Institucionais --- */

/* Centraliza e limita a largura do conteúdo principal */
body .page-narrow.ebooker-page {
    max-width: 850px !important; /* Ajuste este valor se quiser ainda mais estreito */
    margin: 40px auto !important;
    padding: 20px !important;
    line-height: 1.8 !important;
    font-size: 17px !important;
    color: #444 !important;
    word-wrap: break-word;
}

/* Ajusta o título principal para acompanhar a largura do texto */
body .page-title-box {
    max-width: 850px;
    margin: 0 auto 30px auto;
}

/* Espaçamento dos Títulos (H2, H3) e parágrafos */
.page-narrow.ebooker-page h2, 
.page-narrow.ebooker-page h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #000;
}

.page-narrow.ebooker-page p {
    margin-bottom: 1.5rem;
}

/* Imagens e vídeos responsivos */
.page-narrow.ebooker-page img, 
.page-narrow.ebooker-page iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}