/**
 * Yiontech Testimonial Widget Styles
 */

/* Base Styles */
.yiontech-testimonial-container {
    position: relative;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.yiontech-testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.yiontech-testimonial-content p {
    margin: 0;
}

.yiontech-testimonial-client {
    display: flex;
    align-items: center;
}

.yiontech-testimonial-image {
    margin-right: 15px;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    overflow: hidden;
}

.yiontech-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.yiontech-testimonial-info {
    flex-grow: 1;
}

.yiontech-testimonial-name {
    margin: 0 0 5px 0;
    font-weight: 700;
}

.yiontech-testimonial-role {
    margin: 0;
    font-size: 14px;
}

.yiontech-testimonial-company {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.yiontech-testimonial-rating {
    margin-bottom: 15px;
}

.yiontech-testimonial-rating i {
    margin-right: 2px;
}

/* Classic Style */
.yiontech-testimonial-classic .yiontech-testimonial-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.yiontech-testimonial-classic .yiontech-testimonial-content::before {
    content: '\201C';
    font-size: 80px;
    color: #f0f0f0;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
    z-index: 0;
}

.yiontech-testimonial-classic .yiontech-testimonial-content p {
    position: relative;
    z-index: 1;
}

.yiontech-testimonial-classic .yiontech-testimonial-rating {
    margin-bottom: 15px;
}

/* Card Style */
.yiontech-testimonial-card .yiontech-testimonial-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.yiontech-testimonial-card .yiontech-testimonial-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.yiontech-testimonial-card .yiontech-testimonial-content {
    margin-bottom: 25px;
}

.yiontech-testimonial-card .yiontech-testimonial-client {
    align-items: flex-start;
}

.yiontech-testimonial-card .yiontech-testimonial-image {
    margin-right: 20px;
}

/* Bubble Style */
.yiontech-testimonial-bubble .yiontech-testimonial-container {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 25px 30px;
    position: relative;
    margin-bottom: 25px;
    max-width: 600px;
    margin: 0 auto 25px;
}

.yiontech-testimonial-bubble .yiontech-testimonial-container::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: #f8f9fa transparent;
}

.yiontech-testimonial-bubble .yiontech-testimonial-client {
    padding-left: 20px;
    display: flex;
    align-items: center;
}

.yiontech-testimonial-bubble .yiontech-testimonial-rating {
    margin-bottom: 15px;
}

/* Minimal Style */
.yiontech-testimonial-minimal .yiontech-testimonial-container {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    max-width: 600px;
    margin: 0 auto;
}

.yiontech-testimonial-minimal .yiontech-testimonial-content {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
}

.yiontech-testimonial-minimal .yiontech-testimonial-client {
    align-items: center;
}

.yiontech-testimonial-minimal .yiontech-testimonial-name {
    font-size: 16px;
    margin-bottom: 2px;
}

.yiontech-testimonial-minimal .yiontech-testimonial-role {
    font-size: 14px;
    margin-bottom: 0;
}

/* Highlight Style */
.yiontech-testimonial-highlight .yiontech-testimonial-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.yiontech-testimonial-highlight .yiontech-testimonial-content {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.6;
}

.yiontech-testimonial-highlight {
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 700;
}

/* ==============================
   Clean Professional Style
   ============================== */
.yiontech-testimonial-clean .yiontech-testimonial-container {
    background-color: #fff;
    border-radius: 16px;
    padding: 40px 30px 30px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 60px auto 30px;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
}

.yiontech-testimonial-clean .yiontech-testimonial-container:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Quote content */
.yiontech-testimonial-clean .yiontech-testimonial-content {
    position: relative;
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* Border between content and footer */
}

/* Move quote icon to the right */
.yiontech-testimonial-clean .yiontech-testimonial-content::before {
    content: "“";
    position: absolute;
    top: -20px;
    right: -10px; /* Changed from left to right */
    font-size: 80px;
    color: rgba(0, 0, 0, 0.05);
    font-family: serif;
    z-index: 0;
}

.yiontech-testimonial-clean .yiontech-testimonial-content p {
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Client info section */
.yiontech-testimonial-clean .yiontech-testimonial-client {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Name, Role, Company */
.yiontech-testimonial-clean .yiontech-testimonial-name {
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    color: #064e3b; /* Dark green */
}

.yiontech-testimonial-clean .yiontech-testimonial-role {
    font-size: 14px;
    color: #666;
    margin: 2px 0 0;
}

.yiontech-testimonial-clean .yiontech-testimonial-company {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

/* Rating (Trustpilot green) */
.yiontech-testimonial-clean .yiontech-testimonial-rating {
    display: flex;
    gap: 2px;
}

.yiontech-testimonial-clean .yiontech-testimonial-rating i {
    color: #00b67a;
    font-size: 15px;
}

/* ==============================
   Image Shape Styles
   ============================== */

/* Rounded Image (Default) */
.yiontech-image-shape-rounded .yiontech-testimonial-image {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.yiontech-image-shape-rounded .yiontech-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Square Image */
.yiontech-image-shape-square .yiontech-testimonial-image {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 0;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.yiontech-image-shape-square .yiontech-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .yiontech-testimonial-clean .yiontech-testimonial-container {
        padding: 25px;
    }

    .yiontech-image-shape-rounded .yiontech-testimonial-image,
    .yiontech-image-shape-square .yiontech-testimonial-image {
        width: 60px;
        height: 60px;
    }

    .yiontech-testimonial-clean .yiontech-testimonial-content {
        font-size: 16px;
        padding-bottom: 15px;
    }

    .yiontech-testimonial-clean .yiontech-testimonial-client {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .yiontech-testimonial-clean .yiontech-testimonial-rating {
        margin-top: 10px;
    }
    
    /* Other styles responsive adjustments */
    .yiontech-testimonial-classic .yiontech-testimonial-container,
    .yiontech-testimonial-card .yiontech-testimonial-container,
    .yiontech-testimonial-bubble .yiontech-testimonial-container,
    .yiontech-testimonial-minimal .yiontech-testimonial-container,
    .yiontech-testimonial-highlight .yiontech-testimonial-container {
        padding: 20px;
    }
    
    .yiontech-testimonial-image {
        width: 50px;
        height: 50px;
    }
}