.gre-container .gre-blue-frame {
    padding: 10px 70px 120px;
    position: absolute;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1;
}

.gre-container .gre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 50px 50px 10px 0px;
}

.gre-container .gre-title {
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    font-family: 'ExtendaTTF';
    font-weight: 100;
    font-size: 64px;
}

.gre-container .gre-navigation {
    display: flex;
    gap: 15px;
}

.gre-container .gre-nav-btn {
    background: rgba(255, 255, 255, 0);
    border: 2px solid rgba(255, 255, 255, 0);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 75px;
    line-height: 1;
}

.gre-container .gre-nav-btn:hover {
    background: rgba(255, 255, 255, 0);
    border-color: rgba(255, 255, 255, 0);
    transform: translateY(-2px);
    color: #D1CC51;
}

.gre-container .gre-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: rgba(255, 255, 255, 0);
    border: none;
}

/* Container do slider que se estende para fora do quadro azul */
.gre-container .gre-slider-wrapper {
    justify-items: center;
    background-color: #1B199F;
    border-radius: 25px;
}

.gre-container .gre-slider-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin-top: 0px;
    top: 130px;
    height: 530px;
}

/* Aumentar altura do container quando scroll desabilitado */
.gre-container.scroll-disabled .gre-slider-container {
    height: auto;
    min-height: 530px;
    padding-bottom: 50px;
}

.gre-container .gre-slider {
    display: flex;
    gap: 35px;
    transition: transform 0.3s ease;
    width: fit-content;
    padding: 0 50px;
}

.gre-container .gre-card {
    background: white;
    border-radius: 20px;
    padding: 50px 30px 30px;
    box-shadow: 5px 7px 5px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 350px;
    flex-shrink: 0;
    top: 65px;
    overflow: visible;
}

.gre-container .gre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

/* Classe para card expandido */
.gre-container .gre-card.expanded {
    height: auto;
    max-height: 600px;
    overflow: visible;
}

/* Card expandido sem scroll - sem limite de altura */
.gre-container .gre-card.expanded:has(.gre-text-container.no-scroll) {
    max-height: none;
}

/* Card com altura automática quando scroll desabilitado */
.gre-container.scroll-disabled .gre-card {
    min-height: auto;
    height: auto;
}

/* Avatar mais destacado conforme imagem modelo */
.gre-container .gre-avatar {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.gre-container .gre-avatar svg {
    color: #999;
    width: 36px;
    height: 36px;
}

.gre-container .gre-avatar img {
    /* width: 36px; */
    /* height: 36px; */
    /* color: #999; */
    /* border-radius: 50%;*/
}

.gre-container .gre-testimonial-content {
    flex: 1;
    margin-top: 35px;
    margin-bottom: 25px;
    position: relative;
}

/* Container do texto com altura fixa */
.gre-container .gre-text-container {
    position: relative;
    height: 160px;
    overflow: hidden;
    transition: height 0.3s ease;
}

/* Texto completo quando scroll desabilitado */
.gre-container.scroll-disabled .gre-text-container {
    height: auto;
    overflow: visible;
}

/* Container expandido com barra de rolagem */
.gre-container .gre-text-container.expanded {
    height: 200px; /* Altura expandida */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Container expandido SEM barra de rolagem - expande completamente */
.gre-container .gre-text-container.expanded.no-scroll {
    height: auto;
    max-height: none;
    overflow: visible;
}

/* Estilo da barra de rolagem */
.gre-container .gre-text-container.expanded::-webkit-scrollbar {
    width: 6px;
}

.gre-container .gre-text-container.expanded::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gre-container .gre-text-container.expanded::-webkit-scrollbar-thumb {
    background: #3b4cb8;
    border-radius: 3px;
}

.gre-container .gre-text-container.expanded::-webkit-scrollbar-thumb:hover {
    background: #2a3a9f;
}

/* Para Firefox */
.gre-container .gre-text-container.expanded {
    scrollbar-width: thin;
    scrollbar-color: #3b4cb8 #f1f1f1;
}

.gre-container .gre-text {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    font-style: normal;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Gradiente de fade para texto truncado */
.gre-container .gre-text-container:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

/* Remover gradiente quando scroll desabilitado */
.gre-container.scroll-disabled .gre-text-container::after {
    display: none;
}

/* Remover gradiente quando expandido sem scroll */
.gre-container .gre-text-container.expanded.no-scroll::after {
    display: none;
}

.gre-container .gre-more {
    color: #3b4cb8;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    text-align: center;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

/* Ocultar botão Leia mais quando scroll desabilitado */
.gre-container.scroll-disabled .gre-more {
    display: none;
}

.gre-container .gre-more:hover {
    color: #2a3a9f;
    text-decoration: underline;
}

.gre-container .gre-author-info {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    text-align: center;
}

.gre-container .gre-author {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.gre-container .gre-role {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.gre-container .gre-divider {
    display: none;
}

/* Indicadores de posição (opcional) */
.gre-container .gre-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    z-index: 2;
}

/* Indicadores mais abaixo quando scroll desabilitado */
.gre-container.scroll-disabled .gre-indicators {
    margin-top: 80px;
}

.gre-container .gre-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(59, 76, 184, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.gre-container .gre-indicator.active {
    background: rgba(59, 76, 184, 0.8);
}

/* Ocultar grid quando usar slider */
.gre-container .gre-testimonials-grid {
    display: none;
}

/* ===== MEDIA QUERIES OTIMIZADAS PARA MOBILE ===== */

/* Tablets grandes (1024px - 1200px) */
@media screen and (max-width: 1200px) {
    .gre-container .gre-blue-frame {
        padding: 10px 50px 100px;
        width: 95%;
    }
    
    .gre-container .gre-header {
        margin: 40px 40px 10px 0px;
    }
    
    .gre-container .gre-title {
        font-size: 56px;
    }
    
    .gre-container .gre-card {
        width: 320px;
    }
    
    .gre-container .gre-slider {
        gap: 30px;
        padding: 0 40px;
    }
    
    .gre-container .gre-slider-container {
        height: 520px;
        top: 120px;
    }
    
    /* Altura automática em tablets grandes quando scroll desabilitado */
    .gre-container.scroll-disabled .gre-slider-container {
        height: auto;
        min-height: 520px;
        padding-bottom: 50px;
    }
    
    .gre-container.scroll-disabled .gre-card {
        min-height: auto;
        height: auto;
    }
    
    .gre-container.scroll-disabled .gre-text-container {
        height: auto;
        overflow: visible;
    }
    
    .gre-container.scroll-disabled .gre-indicators {
        margin-top: 70px;
    }
}

/* Tablets (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .gre-container .gre-blue-frame {
        padding: 10px 40px 90px;
        width: 96%;
    }
    
    .gre-container .gre-title {
        font-size: 48px;
        letter-spacing: 1.5px;
    }
    
    .gre-container .gre-header {
        margin: 35px 30px 10px 0px;
    }
    
    .gre-container .gre-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 65px;
    }
    
    .gre-container .gre-card {
        width: 300px;
        padding: 45px 25px 25px;
        min-height: 400px;
    }
    
    .gre-container .gre-slider {
        gap: 25px;
        padding: 0 30px;
    }
    
    .gre-container .gre-slider-container {
        height: 510px;
        top: 110px;
    }
    
    .gre-container .gre-avatar {
        width: 75px;
        height: 75px;
        top: -32px;
    }
    
    .gre-container .gre-avatar svg {
        width: 32px;
        height: 32px;
    }
    
    /* Altura automática em tablets quando scroll desabilitado */
    .gre-container.scroll-disabled .gre-slider-container {
        height: auto;
        min-height: 510px;
        padding-bottom: 50px;
    }
    
    .gre-container.scroll-disabled .gre-card {
        min-height: auto;
        height: auto;
    }
    
    .gre-container.scroll-disabled .gre-text-container {
        height: auto;
        overflow: visible;
    }
    
    .gre-container.scroll-disabled .gre-indicators {
        margin-top: 60px;
    }
}

/* AJUSTES ESPECÍFICOS PARA MOBILE - 1 CARD POR VEZ */
@media screen and (max-width: 768px) {
    .gre-container .gre-blue-frame {
        padding: 40px 15px 60px;
        width: 100%;
    }

    /* TÍTULO MAIS DESTACADO E POSICIONADO MAIS ACIMA */
    .gre-container .gre-title {
        font-size: 32px;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .gre-container .gre-header {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        margin: 0;
        position: relative;
        z-index: 10;
    }
    
    /* SETAS DE NAVEGAÇÃO REPOSICIONADAS MAIS ACIMA */
    .gre-container .gre-navigation {
        gap: 20px;
        position: absolute;
        top: 35px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
    
    .gre-container .gre-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 50px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
    }
    
    .gre-container .gre-nav-btn:hover,
    .gre-container .gre-nav-btn:active {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: scale(1.1);
        color: #D1CC51;
    }

    /* SLIDER CONTAINER AJUSTADO PARA 1 CARD */
    .gre-container .gre-slider-container {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        height: 480px;
        top: 120px;
        overflow: hidden;
    }
    
    /* Altura automática no mobile quando scroll desabilitado */
    .gre-container.scroll-disabled .gre-slider-container {
        height: auto;
        min-height: 480px;
        padding-bottom: 40px;
    }
    
    .gre-container.scroll-disabled .gre-card {
        min-height: auto;
        height: auto;
    }
    
    .gre-container.scroll-disabled .gre-text-container {
        height: auto !important;
        overflow: visible !important;
    }
    
    .gre-container.scroll-disabled .gre-indicators {
        margin-top: 50px;
    }

    /* SLIDER CONFIGURADO PARA MOSTRAR 1 CARD POR VEZ */
    .gre-container .gre-slider {
        padding: 0 15px;
        gap: 55px;
        justify-content: center;
        align-items: center;
    }

    /* CARD ÚNICO CENTRALIZADO */
    .gre-container .gre-card {
        width: 320px;
        max-width: 90vw;
        padding: 40px 20px 20px;
        min-height: 380px;
        top: 40px;
        margin: 0 auto;
        flex-shrink: 0;
    }
    
    .gre-container .gre-avatar {
        width: 70px;
        height: 70px;
        top: -30px;
        border: 5px solid white;
    }
    
    .gre-container .gre-avatar svg {
        width: 30px;
        height: 30px;
    }

    .gre-container .gre-text-container {
        height: 120px;
    }

    .gre-container .gre-text-container.expanded {
        height: 180px;
    }
    
    .gre-container .gre-text {
        font-size: 15px;
        line-height: 1.5;
        padding: 0 8px;
    }
    
    .gre-container .gre-author {
        font-size: 16px;
    }
    
    .gre-container .gre-role {
        font-size: 13px;
    }
    
    .gre-container .gre-more {
        font-size: 13px;
        padding: 8px 12px;
        margin: 5px 0;
        border-radius: 4px;
        display: inline-block;
    }
    
    /* INDICADORES POSICIONADOS ABAIXO DO CARD */
    .gre-container .gre-indicators {
        margin-top: 30px;
        gap: 12px;
        position: relative;
        z-index: 5;
    }
    
    .gre-container .gre-indicator {
        width: 12px;
        height: 12px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gre-container .gre-indicator::after {
        content: '';
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(59, 76, 184, 0.3);
        transition: background 0.3s ease;
    }
    
    .gre-container .gre-indicator.active::after {
        background: rgba(59, 76, 184, 0.8);
    }
}

/* SMARTPHONES PEQUENOS - AJUSTES ADICIONAIS */
@media screen and (max-width: 480px) {
    .gre-container .gre-blue-frame {
        padding: 30px 10px 50px;
    }

    .gre-container .gre-title {
        font-size: 28px;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
    }
    
    .gre-container .gre-header {
        margin: 0;
    }
    
    .gre-container .gre-navigation {
        top: 35px;
        gap: 15px;
    }
    
    .gre-container .gre-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 45px;
	background: rgba(255, 255, 255, 0);
    	border: none;
    }

    .gre-container .gre-slider-container {
        max-width: 300px;
        height: 450px;
        top: 110px;
    }

    .gre-container .gre-card {
        width: 280px;
        padding: 35px 18px 18px;
        min-height: 350px;
        top: 35px;
    }
    
    .gre-container .gre-avatar {
        width: 65px;
        height: 65px;
        top: -28px;
        border: 4px solid white;
    }
    
    .gre-container .gre-avatar svg {
        width: 28px;
        height: 28px;
    }

    .gre-container .gre-text {
        font-size: 14px;
        line-height: 1.4;
        padding: 0 6px;
    }

    .gre-container .gre-text-container {
        height: 100px;
    }

    .gre-container .gre-text-container.expanded {
        height: 160px;
    }
    
    .gre-container .gre-author {
        font-size: 15px;
    }
    
    .gre-container .gre-role {
        font-size: 12px;
    }
    
    .gre-container .gre-more {
        font-size: 12px;
    }
    
    .gre-container .gre-indicators {
        margin-top: 25px;
        gap: 10px;
	display: none;
    }
}

/* SMARTPHONES MUITO PEQUENOS */
@media screen and (max-width: 320px) {
    .gre-container .gre-blue-frame {
        padding: 25px 8px 40px;
    }

    .gre-container .gre-title {
        font-size: 24px;
        letter-spacing: 0.3px;
        margin-bottom: 12px;
    }
    
    .gre-container .gre-header {
        margin: 12px 0 0 0;
    }
    
    .gre-container .gre-navigation {
        top: 85px;
        gap: 12px;
    }
    
    .gre-container .gre-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 40px;
    }

    .gre-container .gre-slider-container {
        max-width: 260px;
        height: 420px;
        top: 140px;
    }

    .gre-container .gre-card {
        width: 250px;
        padding: 30px 15px 15px;
        min-height: 320px;
        top: 30px;
    }
    
    .gre-container .gre-avatar {
        width: 60px;
        height: 60px;
        top: -25px;
        border: 3px solid white;
    }
    
    .gre-container .gre-avatar svg {
        width: 25px;
        height: 25px;
    }

    .gre-container .gre-text {
        font-size: 13px;
        line-height: 1.3;
        padding: 0 5px;
    }

    .gre-container .gre-text-container {
        height: 90px;
    }

    .gre-container .gre-text-container.expanded {
        height: 140px;
    }
    
    .gre-container .gre-author {
        font-size: 14px;
    }
    
    .gre-container .gre-role {
        font-size: 11px;
    }
    
    .gre-container .gre-more {
        font-size: 11px;
    }
    
    .gre-container .gre-indicators {
        margin-top: 20px;
        gap: 8px;
    }
    
    .gre-container .gre-indicator {
        min-width: 40px;
        min-height: 40px;
    }
    
    .gre-container .gre-indicator::after {
        width: 10px;
        height: 10px;
    }
}

/* ORIENTAÇÃO LANDSCAPE EM MOBILE */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .gre-container .gre-blue-frame {
        padding: 15px 10px 25px;
    }
    
    .gre-container .gre-header {
        margin: 10px 0 0 0;
    }
    
    .gre-container .gre-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .gre-container .gre-navigation {
        top: 60px;
        gap: 10px;
    }
    
    .gre-container .gre-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 35px;
    }
    
    .gre-container .gre-slider-container {
        height: 280px;
        top: 100px;
        max-width: 280px;
    }
    
    .gre-container .gre-card {
        width: 260px;
        padding: 25px 12px 12px;
        min-height: 240px;
        top: 20px;
    }
    
    .gre-container .gre-avatar {
        width: 50px;
        height: 50px;
        top: -20px;
    }
    
    .gre-container .gre-avatar svg {
        width: 22px;
        height: 22px;
    }
    
    .gre-container .gre-text-container {
        height: 70px;
    }
    
    .gre-container .gre-text-container.expanded {
        height: 100px;
    }
    
    .gre-container .gre-text {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .gre-container .gre-author {
        font-size: 13px;
    }
    
    .gre-container .gre-role {
        font-size: 10px;
    }
    
    .gre-container .gre-indicators {
        margin-top: 15px;
    }
}

/* OTIMIZAÇÕES PARA DISPOSITIVOS TOUCH */
@media (hover: none) and (pointer: coarse) {
    .gre-container .gre-nav-btn:hover {
        transform: none;
    }
    
    .gre-container .gre-nav-btn:active {
        transform: scale(0.95);
        color: #D1CC51;
    }
    
    .gre-container .gre-card:hover {
        transform: none;
    }
    
    .gre-container .gre-card:active {
        transform: translateY(-2px);
    }
    
    .gre-container .gre-more:hover {
        text-decoration: none;
    }
    
    .gre-container .gre-more:active {
        background-color: rgba(59, 76, 184, 0.1);
        color: #2a3a9f;
    }
}
