/* Benefits Section */
.benefits {
    background-color: var(--dark-color);
    padding: 100px 0 70px 0;
    overflow: hidden; /* Evita overflow horizontal */
    width: 100%;
    position: relative;
}

/* Adicionando uma borda com degradê sutil na parte inferior */
.benefits::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 20%, 
        rgba(34, 197, 94, 0.8) 50%, 
        var(--primary-color) 80%, 
        transparent 100%);
    opacity: 0.7;
    box-shadow: 0 0 8px 1px rgba(6, 88, 246, 0.3);
}

/* Efeito de fundo com gradiente animado */
.benefits::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 70% 20%, rgba(6, 88, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 30% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: gradientMove 15s ease infinite alternate;
}

.benefits .section-header {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.benefits .container {
    position: relative;
    z-index: 1;
}

.benefits-slider {
    margin-bottom: 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 40px 0;
    z-index: 1;
}

.benefits-grid {
    display: flex;
    gap: 30px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.benefit-card {
    background-color: var(--light-color);
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    height: 100%;
    min-height: 300px;
    width: 100%;
    flex: 1;
    margin: 0 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-card-content {
    padding: 40px 35px 50px 35px;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.benefit-card-content .content-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 8px;
}

.benefit-card-content .content-bottom {
    margin-top: 0;
    padding-bottom: 20px;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.benefit-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.glide__slide--active .benefit-card::after {
    opacity: 1;
}

.benefit-card .icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(6, 88, 246, 0.4), 0 0 0 8px rgba(6, 88, 246, 0.1);
    transition: all 0.3s ease;
    min-width: 65px;
    flex-shrink: 0;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.benefit-card .icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 80%);
    z-index: 1;
}

.benefit-card .icon i {
    font-size: 1.8rem;
    color: white;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    transform: translateZ(0);
    will-change: transform;
}

.glide__slide--active .benefit-card .icon {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(6, 88, 246, 0.5), 0 0 0 10px rgba(6, 88, 246, 0.15);
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #ffffff;
    position: relative;
    z-index: 2;
    padding: 8px 0 4px 0;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    min-height: 2.6em;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    padding: 4px 0;
    margin: 0;
    transition: all 0.3s ease;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    min-height: auto;
    margin-bottom: 10px;
}

.glide__slide--active .benefit-card h3 {
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.2);
}

.glide__slide--active .benefit-card p {
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.benefits-cta {
    text-align: center;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.benefits-cta .highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin: 30px auto;
    padding: 25px 35px;
    max-width: 90%;
    background: linear-gradient(135deg, rgba(6, 88, 246, 0.15) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(6, 88, 246, 0.15) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(2deg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    --light-x: 50%;
    --light-y: 50%;
    text-align: left;
}

.benefits-cta .highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            circle at var(--light-x) var(--light-y),
            rgba(255, 255, 255, 0.15) 0%,
            transparent 50%
        ),
        linear-gradient(90deg, 
            rgba(6, 88, 246, 0) 0%, 
            rgba(6, 88, 246, 0.1) 50%, 
            rgba(6, 88, 246, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    z-index: -1;
    transition: all 0.3s ease;
}

.benefits-cta .highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(6, 88, 246, 0.7) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(34, 197, 94, 0.7) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    animation: borderRotate 8s linear infinite;
}

.emoji-pulse {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    animation: emojiPulse 2s infinite;
}

@keyframes emojiPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

@keyframes borderRotate {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 0%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Glide Customization */
.glide__track {
    width: 100%;
    overflow: visible;
}

.glide__slides {
    width: 100%;
    padding: 0 5%;
    margin: 0;
    height: auto !important;
}

.glide__slide {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 0;
    height: auto !important;
}

.glide__slide--active {
    opacity: 1;
}

.glide__slide--active .benefit-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 88, 246, 0.2);
    transform: translateY(-5px);
}

.glide__arrows {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 2%;
    z-index: 10;
}

.glide__arrow {
    background: rgba(6, 88, 246, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: none;
    outline: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
    z-index: 2;
    box-shadow: none;
    overflow: hidden;
}

.glide__arrow::before {
    content: none;
}

.glide__arrow i {
    font-size: 1.2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.glide__arrow--left {
    margin-left: 0;
    padding-right: 2px;
}

.glide__arrow--right {
    margin-right: 0;
    padding-left: 2px;
}

/* Sobrescrever completamente os estilos padrão do Glide */
.benefits-slider .glide__arrow,
.benefits-slider .glide__arrow:hover,
.benefits-slider .glide__arrow:focus,
.benefits-slider .glide__arrow:active {
    background: rgba(6, 88, 246, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 8px !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    z-index: 2 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    text-transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    text-shadow: none !important;
    transition: none !important;
    line-height: 1 !important;
}

.benefits-slider .glide__arrow::before,
.benefits-slider .glide__arrow::after {
    content: none !important;
    display: none !important;
}

.benefits-slider .glide__arrow i {
    font-size: 1.2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
}

.benefits-slider .glide__arrow--left {
    left: 2% !important;
    padding-right: 2px;
}

.benefits-slider .glide__arrow--right {
    right: 2% !important;
    padding-left: 2px;
}

/* Remover estilos padrão do Glide */
.benefits-slider .glide__arrows {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 2%;
    z-index: 10;
}

/* Responsividade */
@media (max-width: 768px) {
    .benefits-grid {
        gap: 20px;
        height: auto !important;
    }
    
    .benefit-card {
        padding: 0;
        margin: 0 5px;
        min-height: 300px;
        height: auto !important;
        transform: none !important;
    }
    
    .benefit-card-content {
        padding: 30px 30px 40px 30px;
        height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .benefit-card .icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        margin-bottom: 20px;
        transform: none !important;
        flex-shrink: 0;
        border-radius: 50%;
        aspect-ratio: 1/1;
    }
    
    .benefit-card .icon i {
        font-size: 1.5rem;
    }
    
    .benefit-card h3 {
        font-size: 1.2rem;
        min-height: 2.6em;
        margin-bottom: 8px;
    }
    
    .benefit-card p {
        min-height: auto;
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .glide__slide--active .benefit-card,
    .glide__slide--active .benefit-card .icon,
    .glide__slide--active .benefit-card h3,
    .glide__slide--active .benefit-card p {
        transform: none !important;
        transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    }
    
    .glide__arrow {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .glide__slides {
        padding: 0 2%;
    }
    
    .glide__arrows {
        padding: 0 1%;
    }
    
    .benefits-slider .glide__arrow {
        width: 40px !important;
        height: 40px !important;
        border-radius: 6px !important;
    }
    
    .benefits-slider .glide__arrow i {
        font-size: 1rem;
    }
    
    .benefits-cta .highlight {
        font-size: 1.1rem;
        padding: 20px 25px;
        margin: 20px auto;
    }
    
    .emoji-pulse {
        font-size: 1.3rem;
        margin-right: 10px;
    }
    
    .glide__bullets {
        margin-top: 20px;
        padding-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .benefit-card-content {
        padding: 25px 20px 30px 20px;
        height: 260px;
    }
    
    .benefit-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .benefit-card p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .benefits-cta .highlight {
        font-size: 1rem;
        padding: 15px 20px;
        text-align: center;
        display: block;
    }
    
    .emoji-pulse {
        font-size: 1.2rem;
        margin-right: 8px;
        margin-bottom: 5px;
        display: block;
    }
    
    .benefit-card .icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
        margin-bottom: 15px;
    }
    
    .glide__bullets {
        margin-top: 15px;
        padding-bottom: 10px;
    }
}

/* Garantir que não haja animações que causem reposicionamento */
.glide__slide--active .benefit-card,
.glide__slide--active .benefit-card .icon,
.glide__slide--active .benefit-card h3,
.glide__slide--active .benefit-card p {
    transform: none !important;
    transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease, box-shadow 0.3s ease;
}