/* Advanced Testimonials for Elementor - Styles */

/* ============================================
   BASE STYLES
   ============================================ */

.ate-testimonials-wrapper {
    position: relative;
}

.ate-testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding-bottom: 5px !important;
    padding-top: 5px !important;
}

/* Equal Height Slides */
.ate-equal-height .swiper-wrapper {
    align-items: stretch;
}

.ate-equal-height .swiper-slide {
    height: auto;
    display: flex;
}

.ate-equal-height .ate-testimonial-item {
    height: 100%;
    width: 100%;
}

/* Testimonial Item */
.ate-testimonial-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
}


/* ============================================
   CLASSIC LAYOUT STYLES
   ============================================ */

/* Image Position Layouts */
.ate-layout-classic.ate-image-position-top .ate-testimonial-item {
    flex-direction: column;
}

.ate-layout-classic.ate-image-position-left .ate-testimonial-item {
    flex-direction: row;
    align-items: flex-start;
}

.ate-layout-classic.ate-image-position-right .ate-testimonial-item {
    flex-direction: row-reverse;
    align-items: flex-start;
}

.ate-layout-classic.ate-image-position-left .ate-testimonial-image,
.ate-layout-classic.ate-image-position-right .ate-testimonial-image {
    flex-shrink: 0;
}

.ate-layout-classic.ate-image-position-left .ate-testimonial-content-wrapper {
    margin-left: 20px;
}

.ate-layout-classic.ate-image-position-right .ate-testimonial-content-wrapper {
    margin-right: 20px;
}

/* Image */
.ate-testimonial-image {
    text-align: center;
}

.ate-testimonial-image img {
    display: inline-block;
    object-fit: cover;
    max-width: 100%;
}

.ate-layout-classic.ate-image-position-left .ate-testimonial-image img,
.ate-layout-classic.ate-image-position-right .ate-testimonial-image img {
    margin: 0;
}

/* Content Wrapper */
.ate-testimonial-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Rating */
.ate-testimonial-rating {
    display: flex;
    gap: 4px;
}

.ate-testimonial-rating i {
    display: inline-block;
}

/* Name */
.ate-testimonial-name {
    font-weight: 600;
    line-height: 1.4;
}

/* Title */
.ate-testimonial-title {
    font-size: 14px;
    line-height: 1.4;
}

/* Content */
.ate-testimonial-content {
    line-height: 1.6;
    position: relative;
}

.ate-testimonial-content p {
    margin: 0 0 10px;
}

.ate-testimonial-content p:last-child {
    margin-bottom: 0;
}

/* Read More / Read Less Functionality */
.ate-testimonial-content.ate-truncated {
    overflow: hidden;
}

.ate-testimonial-content .ate-truncated-text {
    display: inline;
}

.ate-testimonial-content .ate-full-text {
    display: none;
}

.ate-testimonial-content.ate-expanded .ate-truncated-text {
    display: none;
}

.ate-testimonial-content.ate-expanded .ate-full-text {
    display: block;
}

.ate-read-more-wrapper {
    display: block;
    margin-top: 8px;
}

.ate-read-more-btn {
    display: inline-block;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    user-select: none;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    outline: none;
}

.ate-read-more-btn:hover {
    text-decoration: underline;
}

.ate-read-more-btn:focus {
    outline: none;
}

/* ============================================
   MODERN LAYOUT STYLES
   ============================================ */

/* Modern Layout Container */
.ate-layout-modern .ate-testimonial-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Modern Header - Image + Name/Title */
.ate-modern-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ate-modern-header .ate-testimonial-image {
    flex-shrink: 0;
    margin-bottom: 0;
}

.ate-modern-header .ate-testimonial-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.ate-modern-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ate-layout-modern .ate-modern-header .ate-testimonial-name {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.ate-layout-modern .ate-modern-header .ate-testimonial-title {
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
}

/* Modern Content - Quote Icon + Text */
.ate-modern-content {
    position: relative;
}

.ate-quote-icon {
    color: #e0e0e0;
    margin-bottom: 15px;
    line-height: 1;
}

.ate-quote-icon svg {
    width: 40px;
    height: auto;
    display: block;
}

/* Support for custom quote icons */
.ate-quote-icon i,
.ate-quote-icon svg:not([width]) {
    font-size: 40px;
    width: auto;
    height: auto;
}

.ate-quote-icon img {
    width: 40px;
    height: auto;
    display: block;
    object-fit: contain;
}

.ate-layout-modern .ate-modern-content .ate-testimonial-content {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Modern Rating - Label + Stars + Value */
.ate-modern-rating {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-top: 15px;
}

.ate-rating-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ate-layout-modern .ate-modern-rating .ate-testimonial-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
}

.ate-rating-value {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

/* Modern Layout - Force Bottom Navigation */
.ate-layout-modern .ate-navigation-bottom {
    margin-top: 30px;
}

/* Override image spacing for modern layout */
.ate-layout-modern .ate-testimonial-image {
    margin-bottom: 0;
}

/* Modern Layout Card Styling */
.ate-layout-modern .ate-testimonial-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}


/* Star Rating in Modern Layout */
.ate-layout-modern .ate-testimonial-rating i {
    font-size: 16px;
    color: #FFB800;
}

/* Modern Layout - Navigation Arrows Styling */
.ate-layout-modern .ate-navigation-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 20px;
    margin-top: 30px;
}

.ate-layout-modern .ate-arrows-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Pagination Counter */
.ate-pagination-counter {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1;
    margin: 0 15px;
}

.ate-pagination-counter .ate-current-slide,
.ate-pagination-counter .ate-total-slides {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.ate-pagination-counter .ate-counter-separator {
    font-size: inherit;
    font-weight: normal;
    opacity: 0.6;
}

/* Pagination Counter for Classic Layout Bottom Position */
.ate-layout-classic.ate-arrows-bottom .ate-pagination-counter {
    margin: 0 15px;
}

.ate-layout-classic.ate-arrows-bottom .ate-arrows-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ate-layout-modern .ate-swiper-button-prev,
.ate-layout-modern .ate-swiper-button-next {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ate-layout-modern .ate-swiper-button-prev:hover,
.ate-layout-modern .ate-swiper-button-next:hover {
    background: #e0e0e0;
}

/* Modern Layout - Pagination Dots */
.ate-layout-modern .swiper-pagination {
    position: relative;
    margin-top: 0;
}

.ate-layout-modern .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d0d0d0;
    opacity: 1;
}

.ate-layout-modern .swiper-pagination-bullet-active {
    background: #333;
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   NAVIGATION STYLES (SHARED)
   ============================================ */

/* Navigation Arrows - Default (Sides) Position */
.ate-swiper-button-prev,
.ate-swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    line-height: 1;
}

.ate-swiper-button-prev i,
.ate-swiper-button-next i,
.ate-swiper-button-prev svg,
.ate-swiper-button-next svg {
    line-height: 1;
}

/* SVG Icon sizing and coloring for custom icons */
.ate-swiper-button-prev svg,
.ate-swiper-button-next svg, .ate-swiper-button-prev svg path, .ate-swiper-button-next svg path {
    width: 1em;
    height: 1em;
    fill: currentColor;
	stroke: currentColor;
}

.ate-swiper-button-prev img,
.ate-swiper-button-next img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Arrow Position - Sides (default) */
.ate-arrows-sides .ate-swiper-button-prev {
    left: 2px;
}

.ate-arrows-sides .ate-swiper-button-next {
    right: 2px;
}

/* Arrow Position - Bottom */
.ate-arrows-bottom .ate-swiper-button-prev,
.ate-arrows-bottom .ate-swiper-button-next {
    position: relative;
    top: auto;
    transform: none;
}

.ate-arrows-bottom .ate-swiper-button-next{
	order: 3;
}

.ate-arrows-bottom .ate-navigation-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.ate-arrows-bottom .ate-arrows-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ate-arrows-bottom .swiper-pagination {
    position: relative;
    margin-top: 0;
}

/* Arrow Hover States */
.ate-swiper-button-prev:hover,
.ate-swiper-button-next:hover {
    opacity: 0.7;
}

.ate-swiper-button-prev.swiper-button-disabled,
.ate-swiper-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* Fallback if icons don't load */
.ate-swiper-button-prev:not(:has(i)):not(:has(img)):not(:has(svg)):before {
    content: '‹';
    font-size: 1.5em;
    font-weight: bold;
}

.ate-swiper-button-next:not(:has(i)):not(:has(img)):not(:has(svg)):before {
    content: '›';
    font-size: 1.5em;
    font-weight: bold;
}

/* Pagination */
.swiper-pagination {
    position: relative;
    margin-top: 30px;
    text-align: center;
}

/* Dots Position - Outside (default) */
.ate-dots-outside .swiper-pagination {
    position: relative;
    margin-top: 30px;
}

/* Dots Position - Inside */
.ate-dots-inside .swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin-top: 0;
    z-index: 10;
}

.swiper-pagination-bullet {
    border-radius: 50%;
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.swiper-pagination-bullet:hover {
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 767px) {
    /* Classic Layout Responsive */
    .ate-layout-classic.ate-image-position-left .ate-testimonial-item,
    .ate-layout-classic.ate-image-position-right .ate-testimonial-item {
        flex-direction: column;
    }

    .ate-layout-classic.ate-image-position-left .ate-testimonial-content-wrapper,
    .ate-layout-classic.ate-image-position-right .ate-testimonial-content-wrapper {
        margin-left: 0;
        margin-right: 0;
    }
    
    .ate-arrows-sides .ate-swiper-button-prev {
        left: 2px;
    }
    
    .ate-arrows-sides .ate-swiper-button-next {
        right: 2px;
    }

    .ate-arrows-bottom .ate-navigation-bottom {
        flex-direction: column;
        gap: 20px;
    }

    /* Modern Layout Responsive */
    .ate-modern-header {
        gap: 12px;
    }
    
    .ate-modern-header .ate-testimonial-image img {
        width: 50px;
        height: 50px;
    }
    
    .ate-layout-modern .ate-modern-header .ate-testimonial-name {
        font-size: 16px;
    }
    
    .ate-layout-modern .ate-modern-header .ate-testimonial-title {
        font-size: 13px;
    }
    
    .ate-quote-icon svg {
        width: 32px;
    }
    
    .ate-layout-modern .ate-modern-content .ate-testimonial-content {
        font-size: 14px;
    }
    
    .ate-layout-modern .ate-testimonial-item {
        padding: 20px;
    }

    .ate-modern-rating {
        flex-wrap: wrap;
        gap: 8px;
    }

    .ate-rating-label,
    .ate-rating-value {
        font-size: 13px;
    }
}

/* ============================================
   OPTIONAL: DARK MODE VARIANT
   ============================================ */

.ate-layout-modern.ate-modern-dark .ate-testimonial-item {
    background: #1a1a1a;
    color: #ffffff;
}

.ate-layout-modern.ate-modern-dark .ate-modern-header .ate-testimonial-name,
.ate-layout-modern.ate-modern-dark .ate-rating-label {
    color: #ffffff;
}

.ate-layout-modern.ate-modern-dark .ate-modern-header .ate-testimonial-title,
.ate-layout-modern.ate-modern-dark .ate-rating-value {
    color: #999;
}

.ate-layout-modern.ate-modern-dark .ate-modern-content .ate-testimonial-content {
    color: #e0e0e0;
}

.ate-layout-modern.ate-modern-dark .ate-quote-icon {
    color: #333;
}

.ate-layout-modern.ate-modern-dark .ate-modern-rating {
    border-top-color: #333;
}