/* Elizeh Testimonial Block Styles */
.elizeh-testimonial-wrapper {
    padding: 1rem 0;
    min-height: 400px;

}

.elizeh-testimonial-block {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fef6f7 0%, #fff5f7 100%);
    border-radius: 40px;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(238, 80, 96, 0.1);
    border: 2px solid rgba(238, 80, 96, 0.15);
    position: relative;
    overflow: hidden;
}

.elizeh-section-heading {
    margin-bottom: 3rem;
    position: relative;
}

.elizeh-heading-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
}

.elizeh-heading-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, rgba(238, 80, 96, 0.3), rgba(238, 80, 96, 1), rgba(238, 80, 96, 0.3));
    border-radius: 3px;
}

.elizeh-heading-title .elizeh-text-primary {
    color: #ee5060 !important;
    position: relative;
}

.elizeh-heading-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.elizeh-testimonial-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 400px;
    box-sizing: border-box;
    direction: ltr; /* Force LTR for carousel mechanism */
}

.elizeh-testimonial-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    padding: 0 1rem;
    display: flex;
    flex-direction: row;
}

.elizeh-testimonial-item {
    padding: 2rem;
    transition: all 0.5s ease;
    flex: 0 0 100%;
    box-sizing: border-box;
}

.elizeh-testimonial-item[style*="opacity: 0"] {
    visibility: hidden;
    pointer-events: none;
}

/* RTL specific fixes */
.rtl .elizeh-testimonial-quote,
.rtl .elizeh-testimonial-footer,
.rtl .elizeh-testimonial-author,
.rtl .elizeh-testimonial-meta {
    direction: rtl;
    text-align: right;
}

.elizeh-testimonial-content {
    position: relative;
    background: #ffffff;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(69, 67, 96, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(238, 80, 96, 0.1);
}


.elizeh-testimonial-content:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(238, 80, 96, 0.05), transparent, rgba(238, 80, 96, 0.05));
    border-radius: 27px;
    z-index: -1;
}

.elizeh-testimonial-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(69, 67, 96, 0.15);
    border-color: rgba(238, 80, 96, 0.3);
}

.elizeh-testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    padding: 0.5rem 1.5rem;
    text-align: justify;
    background-color: #ffffff;
    border-radius: 15px;
}

.elizeh-testimonial-quote::before,
.elizeh-testimonial-quote::after {
    content: '\201C';
    font-size: 3.5rem;
    color: rgba(238, 80, 96, 0.15);
    position: absolute;
    line-height: 1;
    font-family: serif;
}

.elizeh-testimonial-quote::before {
    right: -0.5rem;
    top: -1.5rem;
}

.elizeh-testimonial-quote::after {
    content: '\201D';
    left: -0.5rem;
    bottom: -3rem;
}

.elizeh-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    background-color: rgba(238, 80, 96, 0.05);
    padding: 1rem;
    border-radius: 15px;
}

.elizeh-testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #ee5060;
    box-shadow: 0 0 15px rgba(238, 80, 96, 0.3);
    position: relative;
}

.elizeh-testimonial-image:after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px dashed rgba(238, 80, 96, 0.5);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.elizeh-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elizeh-testimonial-meta {
    flex-grow: 1;
}

.elizeh-testimonial-author {
    display: flex;
    flex-direction: column;
}

.elizeh-testimonial-author strong {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: #333;
    font-weight: 700;
}

.elizeh-testimonial-info {
    font-size: 0.9rem;
    opacity: 0.8;
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(238, 80, 96, 0.1);
    border-radius: 10px;
    color: #ee5060;
}

.elizeh-testimonial-rating {
    margin-top: 0.5rem;
    color: #ffb400;
}

/* Elizeh Testimonial Navigation Styles */
.elizeh-testimonial-nav {
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(145deg, #ee5060, #d03c4b);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
    box-shadow: 0 5px 15px rgba(238, 80, 96, 0.3);
    z-index: 10;
    margin: 0 10px;
    flex-shrink: 0;
    position: relative;
}

/* Fix for button positioning on mobile */
.elizeh-testimonial-navigation-mobile {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
    width: 100%;
}

.elizeh-testimonial-nav:hover {
    opacity: 1;
    background: linear-gradient(145deg, #d03c4b, #ee5060);
    transform: scale(1.1);
}

.elizeh-testimonial-nav i {
    font-size: 18px;
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .elizeh-heading-title {
        font-size: 2rem;
    }

    .elizeh-testimonial-carousel {
        flex-direction: column;
    }

    .elizeh-testimonial-slider {
        order: 1;
        width: 100%;
    }

    /* Hide navigation buttons on mobile */
    .elizeh-testimonial-nav {
        display: none !important;
    }

    .elizeh-testimonial-navigation-mobile {
        display: none !important;
    }

    .elizeh-testimonial-quote {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .elizeh-testimonial-image {
        width: 60px;
        height: 60px;
    }

    .elizeh-testimonial-content {
        padding: 1.5rem;
    }

    .elizeh-testimonial-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .elizeh-testimonial-meta {
        margin-top: 1rem;
    }
}
