/**
 * Testimonials Block Styles
 */

/* Common styles for all layouts */
.testimonials-block {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    color: black !important;
}
.testimonials-block .container {
    overflow: hidden;
}
.testimonials-block__box {
    padding: 30px 20px;
}

.testimonials-block h2 {
    margin-bottom: 40px;
    text-align: center;
    font-size: 28px;
    color: #333;
}

/* Table Layout Styles */
.testimonials-block.layout-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    display: inline-table;
}

.testimonials-block.layout-table tr {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonials-block.layout-table tr:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.testimonials-block.layout-table td {
    padding: 20px;
    vertical-align: top;
}

.testimonials-block.layout-table td:first-child {
    width: 200px;
    border-right: 1px solid #eee;
    position: relative;
    z-index: 1;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Grid Layout Styles */
.testimonials-block.layout-grid .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.testimonials-block.layout-grid .testimonial-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.testimonials-block.layout-grid .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.testimonials-block.layout-grid .testimonial-content {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    position: relative;
    padding: 0 10px;
}

.testimonials-block.layout-grid .testimonial-content::before {
    content: '\201C';
    font-size: 40px;
    color: #e6e6e6;
    position: absolute;
    left: -10px;
    top: -20px;
}

.testimonials-block.layout-grid .testimonial-author {
    display: flex;
    margin-top: 15px;
}

.testimonials-block.layout-grid .author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.testimonials-block.layout-grid .author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.testimonials-block.layout-grid .author-info {
    flex-grow: 1;
}

.testimonials-block.layout-grid .author-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 3px;
}

.testimonials-block.layout-grid .author-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.testimonials-block.layout-grid .rating {
    color: #f8b500;
    font-size: 16px;
    margin-top: 5px;
}

/* Slider Layout Styles */
.testimonials-block.layout-slider {
    position: relative;
}

.testimonials-block.layout-slider .swiper-container {
    padding: 20px 5px 40px;
}

.testimonials-block.layout-slider .swiper-slide {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    padding: 25px;
    height: auto;
    transition: transform 0.3s ease;
}

.testimonials-block.layout-slider .swiper-slide-active {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.testimonials-block.layout-slider .testimonial-content {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 5px 15px;
}

.testimonials-block.layout-slider .testimonial-content::before {
    content: '\201C';
    font-size: 50px;
    color: #e6e6e6;
    position: absolute;
    left: -10px;
    top: -25px;
}

.testimonials-block.layout-slider .testimonial-author {
    display: flex;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.testimonials-block.layout-slider .author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex: 0 0 auto;
}

.testimonials-block.layout-slider .author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.testimonials-block.layout-slider .author-info {
    flex-grow: 1;
}

.testimonials-block.layout-slider .author-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 3px;
}

.testimonials-block.layout-slider .author-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.testimonials-block.layout-slider .author-details > div {
    position: relative;
}

.testimonials-block.layout-slider .author-details > div:not(:last-child)::after {
    content: '•';
    margin-left: 8px;
    color: #ccc;
}

.testimonials-block.layout-slider .rating {
    color: #f8b500;
    font-size: 16px;
    margin-top: 5px;
}

.testimonials-block.layout-slider .swiper-pagination {
    bottom: 0;
}

.testimonials-block.layout-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.testimonials-block.layout-slider .swiper-pagination-bullet-active {
    background: #666;
}

.testimonials-block.layout-slider .swiper-button-next,
.testimonials-block.layout-slider .swiper-button-prev {
    color: #666;
}

/* Common element styles for all layouts */
.testimonials-block .image {
    aspect-ratio: 1;
    flex: 0 0 auto;
    margin-bottom: 24px;
}
.testimonials-block .image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
    min-width: 140px;
    min-height: 140px;
    max-width: 200px;
    max-height: 200px;
}

.testimonials-block .name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.testimonials-block .data,
.testimonials-block .geo {
    font-size: 14px;
    color: #666;
}

.testimonials-block .rating {
    color: #f8b500;
    font-size: 16px;
}

.testimonials-block .testimonial {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    font-style: italic;
}

/* Responsive styles */
@media (max-width: 768px) {
    /* Table layout responsive */
    .testimonials-block.layout-table table,
    .testimonials-block.layout-table tbody,
    .testimonials-block.layout-table tr,
    .testimonials-block.layout-table td {
        display: block;
        width: 100%;
    }

    .testimonials-block.layout-table td:first-child {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        width: 100%;
    }
    .testimonials-block.layout-table .image img {
        width: 140px;
        height: 140px;
    }
    .testimonials-block.layout-table .image {
        float: none;

        width: fit-content;
        margin: 15px auto 25px;
    }

    .testimonials-block.layout-table .testimonial {
        margin-top: 15px;
    }

    /* Grid layout responsive */
    .testimonials-block.layout-grid .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-block__box {
        padding: 30px 15px;
    }
    .testimonials-block.layout-grid .testimonial-author,
    .testimonials-block.layout-slider .testimonial-author {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .testimonials-block.layout-grid .author-image,
    .testimonials-block.layout-slider .author-image {
        width: 100px;
        height: 100px;
    }
}

