  /**
 * Project Testimonials Carousel Styles
 * Matches Greenshift testimonial carousel layout
 */

.project-testimonials {
    --pt-card-gap: 20px;
    --pt-text-color: #1a1a1a;
    --pt-accent-color: var(--theme-palette-color-1, #D22D1F);
    --pt-quote-color: #1a1a1a;
    --pt-author-color: var(--theme-palette-color-1, #D22D1F);
    
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    margin-right: -5vw;
}

/* Carousel Container */
.project-testimonials__carousel {
    position: relative;
    width: 100%;
}

/* Track - horizontal scroll container */
.project-testimonials__track {
    display: flex;
    gap: var(--pt-card-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.project-testimonials__track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Individual Slide */
.project-testimonials__slide {
    flex: 0 0 auto;
    width: calc((100% - (var(--pt-card-gap) * 2.8)) / 3.8);
    min-width: 280px;
    scroll-snap-align: start;
}

/* Card Styling - Transparent background */
.project-testimonials__card {
    background: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Image - Square aspect ratio */
.project-testimonials__image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 square aspect ratio */
    overflow: hidden;
    margin-bottom: 20px;
}

.project-testimonials__image a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-testimonials__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.project-testimonials__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Quote */
.project-testimonials__quote {
    color: var(--pt-quote-color);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
    font-weight: 400;
    flex: 1;
}

/* Author - Red color with position inline */
.project-testimonials__author {
    color: var(--pt-author-color);
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    display: block;
    margin-bottom: 8px;
}

.project-testimonials__position {
    color: var(--pt-author-color);
    font-weight: 400;
}

.project-testimonials__position::before {
    content: ", ";
}

/* Project/Company Title - Bold black */
.project-testimonials__project {
    margin-top: 4px;
}

.project-testimonials__project a,
.project-testimonials__project span {
    color: var(--pt-text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
}

.project-testimonials__project a:hover {
    color: var(--pt-accent-color);
}

/* Controls */
.project-testimonials__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 0 10px;
}

/* Pagination Dots */
.project-testimonials__pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-testimonials__pagination .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pt-accent-color);
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-testimonials__pagination .dot.active {
    opacity: 1;
    width: 28px;
    border-radius: 5px;
}

.project-testimonials__pagination .dot:hover {
    opacity: 0.8;
}

/* Navigation Buttons */
.project-testimonials__nav {
    display: flex;
    gap: 10px;
}

.project-testimonials__prev,
.project-testimonials__next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--pt-accent-color);
    background: transparent;
    color: var(--pt-accent-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-testimonials__prev:hover,
.project-testimonials__next:hover {
    background: var(--pt-accent-color);
    color: #fff;
}

.project-testimonials__prev:disabled,
.project-testimonials__next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.project-testimonials__prev svg,
.project-testimonials__next svg {
    width: 20px;
    height: 20px;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .project-testimonials__slide {
        width: calc((100% - (var(--pt-card-gap) * 2)) / 3);
    }
}

@media (max-width: 992px) {
    .project-testimonials__slide {
        width: calc((100% - var(--pt-card-gap)) / 2);
    }
    
    .project-testimonials__quote {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .project-testimonials__slide {
        width: calc(100% - 40px);
        min-width: unset;
    }
    
    .project-testimonials__quote {
        font-size: 15px;
    }
    
    .project-testimonials__controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .project-testimonials__pagination {
        order: 2;
    }
    
    .project-testimonials__nav {
        order: 1;
    }
}

@media (max-width: 480px) {
    .project-testimonials__slide {
        width: calc(100% - 20px);
    }
    
    .project-testimonials__prev,
    .project-testimonials__next {
        width: 40px;
        height: 40px;
    }
}

/* Editor Preview Styles */
.block-editor .project-testimonials__track {
    overflow-x: visible;
    flex-wrap: wrap;
}

.block-editor .project-testimonials__slide {
    flex: 0 0 calc(33.333% - 14px);
    min-width: unset;
}
