/* ==========================================================================
   ZepJob Modern Testimonial Redesign
   Shared Styles for all Frontend Testimonial Sections
   ========================================================================== */

.zep-testimonial-section {
    padding: 65px 0 75px 0;
    position: relative;
    background: #f8fafc;
}

.zep-testimonial-section .mn_heading {
    text-align: center;
    color: #1e293b;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 35px;
    position: relative;
    line-height: 1.3;
}

.zep-testimonial-section .mn_heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #3082c5;
    border-radius: 2px;
    margin: 14px auto 0 auto;
}

/* Item wrapper inside carousel */
.zep-testimonial-item {
    padding: 12px 6px;
    height: 100%;
    box-sizing: border-box;
}

/* Card Container */
.zep-testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 24px 24px 24px;
    box-shadow: 0 4px 20px rgba(48, 130, 197, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 290px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    position: relative;
    box-sizing: border-box;
    text-align: left;
}

/* Subtle Professional Hover Effect */
.zep-testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(48, 130, 197, 0.14);
    border-color: #3082c5;
}

/* Card Header: Quote Badge & Star Rating */
.zep-testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
}

.zep-quote-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(48, 130, 197, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3082c5;
    font-size: 16px;
    flex-shrink: 0;
}

.zep-testimonial-rating {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.zep-star-filled {
    color: #f59e0b;
    font-size: 14px;
}

.zep-star-empty {
    color: #e2e8f0;
    font-size: 14px;
}

/* Testimonial Review Body */
.zep-testimonial-body {
    flex-grow: 1;
    margin-bottom: 20px;
}

.zep-testimonial-text {
    color: #334155;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.zep-testimonial-text[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

/* Reviewer Info Footer */
.zep-testimonial-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: auto;
}

.zep-reviewer-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.zep-reviewer-role {
    font-size: 13px;
    color: #3082c5;
    font-weight: 600;
    display: block;
    line-height: 1.3;
}

.zep-reviewer-company {
    font-size: 12px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    line-height: 1.3;
}

/* Owl Carousel Stage & Equal-Height Alignment */
#customers-testimonials.owl-carousel {
    display: block;
    width: 100%;
    margin-top: 10px;
}

#customers-testimonials .owl-stage {
    display: flex !important;
    align-items: stretch !important;
}

#customers-testimonials .owl-item {
    display: flex !important;
    height: auto !important;
    opacity: 1 !important; /* Overrides legacy 0.2 opacity */
}

#customers-testimonials .owl-item .item,
#customers-testimonials .owl-item .zep-testimonial-item {
    width: 100%;
    height: 100%;
    opacity: 1 !important;
    padding: 10px 5px;
}

/* Dots Navigation */
#customers-testimonials.owl-carousel .owl-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 35px;
    width: 100%;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot {
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 0;
    background: #cbd5e1;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
    transform: none !important;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot.active span,
#customers-testimonials.owl-carousel .owl-dots .owl-dot:hover span {
    background: #3082c5;
    width: 26px;
    border-radius: 12px;
}

/* Progressive Fallback Grid if JS is unavailable */
#customers-testimonials:not(.owl-loaded) {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
#customers-testimonials:not(.owl-loaded) .zep-testimonial-item {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .zep-testimonial-section {
        padding: 50px 0;
    }
    .zep-testimonial-section .mn_heading {
        font-size: 28px;
        margin-bottom: 28px;
    }
    .zep-testimonial-card {
        padding: 22px 18px 20px 18px;
        min-height: 270px;
    }
    #customers-testimonials:not(.owl-loaded) .zep-testimonial-item {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .zep-testimonial-section {
        padding: 40px 0;
    }
    .zep-testimonial-section .mn_heading {
        font-size: 24px;
        margin-bottom: 22px;
    }
    .zep-testimonial-card {
        min-height: auto;
        padding: 20px 16px;
    }
    #customers-testimonials:not(.owl-loaded) .zep-testimonial-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
