/* ========================================================================== 
   Opzio Testimonial Widget
   ========================================================================== */

.opzio-testimonial-section .opzio-testimonial-box {
    background: var(--e-global-color-white);
    width: 100%;
    padding: 40px 43px 40px 35px;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

.opzio-testimonial-section .opzio-testimonial-box .user-content {
    padding-left: 20px;
}

.opzio-testimonial-section .opzio-testimonial-box .user-name {
    font-size: 18px;
    line-height: 18px;
    font-weight: 600;
    font-family: var(--e-global-heading-font);
    color: var(--e-global-color-primary);
    margin-bottom: 6px;
}

.opzio-testimonial-section .opzio-testimonial-box .designation {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--e-global-color-text);
    font-family: var(--e-global-body-font);
    display: block;
}

.opzio-testimonial-section .opzio-testimonial-box .content {
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
    color: var(--e-global-color-primary);
    font-family: var(--e-global-body-font);
    margin-bottom: 22px;
}

/* Rating stars */
.opzio-testimonial-section .opzio-testimonial-box ul {
    line-height: 0;
}

.opzio-testimonial-section .opzio-testimonial-box ul li {
    display: inline-block;
    margin-right: -2px;
}

.opzio-testimonial-section .opzio-testimonial-box ul li i {
    color: var(--e-global-color-yellow);
    font-size: 16px;
    line-height: 12px;
}

/* Carousel navigation */
.opzio-testimonial-section .owl-carousel .owl-nav {
    position: absolute;
    top: 95px;
    left: 0;
    right: 0;
    width: 100%;
}

.opzio-testimonial-section .owl-carousel .owl-nav button {
    outline: none;
}

.opzio-testimonial-section .owl-carousel .owl-nav .owl-prev {
    left: -25px;
    position: absolute;
}

.opzio-testimonial-section .owl-carousel .owl-nav .owl-next {
    right: -25px;
    position: absolute;
}

.opzio-testimonial-section .owl-carousel .owl-nav .owl-prev span,
.opzio-testimonial-section .owl-carousel .owl-nav .owl-next span {
    font-size: 50px;
}

/* Carousel dots */
.opzio-testimonial-section .owl-carousel .owl-dots {
    display: block !important;
    margin-top: 40px;
    line-height: 0;
    text-align: center;
}

.opzio-testimonial-section .owl-carousel .owl-dots button:hover {
    background-color: transparent !important;
}

.opzio-testimonial-section .owl-carousel .owl-dots .owl-dot span {
    background: #d6d6d6;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    transition: all 0.3s ease-in-out;
    display: block;
    border-radius: 100px;
}

.opzio-testimonial-section .owl-carousel .owl-dots .owl-dot:hover span,
.opzio-testimonial-section .owl-carousel .owl-dots .owl-dot.active span {
    background: var(--e-global-color-yellow);
}

.opzio-testimonial-section .owl-carousel .owl-dots .owl-dot.active span {
    position: relative;
    display: block;
    border-radius: 100px;
}

.opzio-testimonial-section .owl-carousel .owl-dots .owl-dot:focus,
.opzio-testimonial-section .owl-carousel .owl-dots button:focus {
    outline: none;
    background-color: transparent;
}

/* Style 3 author layout */
.opzio-testimonial-style3 .testimonial-auther-section {
    display: flex;
    align-items: center;
}

.opzio-testimonial-style3 .quote-icon-2 {
    position: absolute;
    right: 30px;
    bottom: 30px;
}

/* ========================================================================== 
   Advanced Carousel: Edge Peek + Smooth Mask Fade

   Used when the widget has:
   - .opzio-testimonial-edge-peek
   - .opzio-testimonial-edge-fade

   The fade is handled with CSS mask on .owl-stage-outer.
   This avoids extra overlay blocks and keeps the fade matched to any background.
   ========================================================================== */

.opzio-testimonial-section.opzio-testimonial-edge-peek {
    position: relative;
    overflow: hidden;
}

.opzio-testimonial-section.opzio-testimonial-edge-peek .owl-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Mask fade is applied only to the slide area, not to the dots or full section. */
.opzio-testimonial-section.opzio-testimonial-edge-peek .owl-stage-outer {
    overflow: hidden !important;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 9%,
        #000 91%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 9%,
        #000 91%,
        transparent 100%
    );
}

/* Keep all Owl items visible; the mask handles the edge fade. */
.opzio-testimonial-section.opzio-testimonial-edge-peek .owl-item,
.opzio-testimonial-section.opzio-testimonial-edge-peek .owl-item.active {
    opacity: 1 !important;
    display: flex;
    transition: none;
}

/* Equal-height cards inside the carousel. */
.opzio-testimonial-section.opzio-testimonial-edge-peek .owl-stage {
    display: flex;
    align-items: stretch;
}

.opzio-testimonial-section.opzio-testimonial-edge-peek .owl-item .item {
    width: 100%;
    display: flex;
}

.opzio-testimonial-section.opzio-testimonial-edge-peek .opzio-testimonial-box {
    width: 100%;
    height: 100%;
}

/* Style 3 card height for the testimonial carousel layout. */
.opzio-testimonial-style3.opzio-testimonial-edge-peek .opzio-testimonial-box {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Disable previous pseudo-element fade methods if old CSS remains cached. */
.opzio-testimonial-section.opzio-testimonial-edge-fade::before,
.opzio-testimonial-section.opzio-testimonial-edge-fade::after,
.opzio-testimonial-section.opzio-testimonial-edge-fade .owl-carousel::before,
.opzio-testimonial-section.opzio-testimonial-edge-fade .owl-carousel::after,
.opzio-testimonial-section.opzio-testimonial-edge-fade .owl-stage-outer::before,
.opzio-testimonial-section.opzio-testimonial-edge-fade .owl-stage-outer::after,
.elementor-widget-opzio-testimonial::before,
.elementor-widget-opzio-testimonial::after {
    content: none !important;
}

/* Dots stay outside the mask fade. */
.opzio-testimonial-section.opzio-testimonial-edge-peek .owl-dots {
    position: relative;
    z-index: 10;
}

/* ========================================================================== 
   Responsive
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .opzio-testimonial-style3.opzio-testimonial-edge-peek .opzio-testimonial-box {
        min-height: 240px;
    }
    .opzio-testimonial-section.opzio-testimonial-edge-peek .owl-stage-outer {
        -webkit-mask-image:none;
        mask-image: none;
    }
}

@media screen and (max-width: 767px) {
    .opzio-testimonial-section .owl-carousel .owl-dots {
        margin-top: 30px;
    }

    .opzio-testimonial-style3.opzio-testimonial-edge-peek .opzio-testimonial-box {
        min-height: auto;
    }

}
