/* * Prefix: ects- (Epic Chef Testimonial Slider)
 * Ensures no conflicts with other theme styles.
 */

/* --- WRAPPERS --- */
.ects-main-wrapper {
    width: 100%;
    color: #333;
    box-sizing: border-box;
}

.ects-main-wrapper * {
    box-sizing: border-box;
}

.ects-inner-container {
    margin: 0 auto;
    position: relative;
}

/* --- HEADER & TYPOGRAPHY --- */
.ects-header-section {
    text-align: center;
    margin-bottom: 4rem;
}

.ects-main-title {
    font-family: 'Anton', sans-serif;
    font-size: 2.25rem;
    line-height: 1;
    text-transform: uppercase;
    color: #D93025; /* Red */
    margin: 0 0 0.5rem 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .ects-main-title {
        font-size: 3rem;
    }
}

.ects-title-underline {
    display: inline-block;
    position: relative;
}

.ects-title-underline::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #D93025;
    margin-top: 5px;
    opacity: 0.6;
    border-radius: 2px;
}

/* --- SLIDER VIEWPORT --- */
.ects-slider-viewport {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 5rem !important; /* Force space for nav arrows */
}

/* --- STAGGER EFFECT --- */
/* Target internal swiper classes but scope them to our wrapper */
@media (min-width: 1024px) {
    .ects-slider-viewport .swiper-wrapper {
        align-items: flex-start;
        padding-bottom: 0;
    }
    
    .ects-slider-viewport .swiper-slide:nth-child(even) {
        margin-top: 60px;
    }
}

/* --- CARD DESIGN --- */
.ects-testimonial-card {
    background-color: #FEEED4;
    padding: 1.5rem;
    border-radius: 0;
    height: 100%;
    gap: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.ects-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

/* --- AUTHOR BLOCK --- */
.ects-author-block {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.ects-author-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: block; /* Fix for some themes adding inline styles */
}

.ects-author-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ects-author-details .ects-author-name {
    font-family: 'Open Sauce Sans';
    font-size: 20px;
    font-weight: 600;
    text-transform: capitalize;
    color: #323132;
    margin-bottom: 0px;
}

.ects-author-details p.ects-author-role {
    font-family: 'Open Sauce Sans';
    font-weight: 400;
    font-size: 16px;
    margin: 0;
    padding-top: 3px;
    color: #404040;
}

.ects-brand-logo img {
    width: 100px;
    padding-top: 20%;
}

.ects-brand-logo span { 
    position: relative; 
}

.ects-brand-logo span::before {
    content: '˘'; 
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: #D93025;
}

/* --- QUOTE --- */
.ects-quote-text {
    color: #404040;
    line-height: 150%;
    font-size: 20px;
    font-family: 'Open Sauce Sans';
}

/* --- NAVIGATION --- */
.ects-nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.ects-nav-button {
    color: #4a4a4a;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.ects-nav-button:hover {
    background-color: #e5e5e5;
    color: #000;
}

/* SVG Size */
.ects-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Override Swiper Disabled State */
.ects-nav-button.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

.swiper.ects-partner-swiper.ects-slider-viewport.swiper-initialized.swiper-horizontal.swiper-backface-hidden {
    padding-bottom: 0 !important;
}

@media screen and (max-width:900px){
    .ects-author-details .ects-author-name{
        font-size: 18px;
    }
    .ects-author-details p.ects-author-role{
        font-size: 14px;
    }
    .ects-quote-text{
        font-size: 16px;
    }
    .ects-brand-logo img {
        width: 120px;
        padding-top: 12%;
    }
}

@media screen and (max-width:767px)
{
    .ects-brand-logo img {
        width: 100px;
    }
}