/*-----------------------------------*\
  #testimonials.css
\*-----------------------------------*/

.testimonials {
    background: transparent;
    padding-block: var(--section-padding);
    width: 100%;
    overflow: hidden;
}

.testimonials .container {
    display: grid;
    gap: 30px;
}

@media (min-width: 992px) {
    .testimonials .container {
        grid-template-columns: 1fr;
        max-width: 900px;
        gap: 40px;
    }
}

@media (min-width: 1200px) {
    .testimonials .container {
        grid-template-columns: 1fr;
        max-width: 1000px;
    }
}

.testimonials .section-subtitle {
    grid-column: 1 / -1;
    text-align: center;
}

.testimonials .section-title {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 50px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: var(--radius-16);
    box-shadow: var(--shadow-md);
    position: relative;
    width: 100%;
    margin-inline: auto;
    transition: var(--transition-2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

@media (min-width: 768px) {
    .testimonial-card {
        flex-direction: column;
        /* Changed to column for consistency with new design */
        align-items: flex-start;
        /* Adjusted alignment */
        padding: 50px;
    }

    .testimonial-text {
        margin-bottom: 35px;
        /* Adjusted margin */
        flex: none;
        /* Removed flex property */
    }

    .testimonial-avatar {
        width: 80px;
        /* Adjusted size */
        height: 80px;
        /* Adjusted size */
        margin-inline: 0;
        /* Removed auto margin */
    }

    .testimonial-profile {
        flex-direction: row;
        /* Changed to row for consistency with new design */
        text-align: left;
        /* Adjusted alignment */
        min-width: auto;
        /* Removed min-width */
        border-left: none;
        /* Removed border */
        padding-left: 0;
        /* Removed padding */
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        /* Added border-top */
        padding-top: 30px;
        /* Added padding-top */
    }

    .testimonial-rating {
        justify-content: flex-start;
        /* Adjusted alignment */
    }
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    border-color: var(--desert-gold);
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 10rem;
    font-family: var(--ff-abril-fatface);
    color: var(--desert-gold);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-text {
    color: var(--jet);
    font-size: 2rem;
    line-height: 1.8;
    margin-bottom: 35px;
    font-style: italic;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--white-1);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.testimonial-info-title {
    color: var(--jet);
    font-size: var(--fs-5);
    font-weight: var(--fw-700);
}

.testimonial-info-meta {
    color: var(--battleship-gray);
    font-size: var(--fs-7);
    margin-top: 4px;
}

.testimonial-rating {
    display: flex;
    gap: 3px;
    color: #FFD700;
    margin-top: 8px;
    font-size: 1.6rem;
}

@media (max-width: 768px) {
    .testimonials .section-title {
        margin-bottom: 32px;
        font-size: clamp(1.9rem, 5vw, 2.4rem);
    }

    .testimonial-card {
        padding: 32px 24px;
    }

    .testimonial-text {
        font-size: 1.7rem;
        margin-bottom: 24px;
    }

    .testimonial-profile {
        gap: 16px;
        padding-top: 24px;
    }

    .testimonial-avatar {
        width: 64px;
        height: 64px;
    }

    .testimonial-info-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .testimonials .section-title {
        margin-bottom: 24px;
    }

    .testimonial-card {
        padding: 24px 18px;
    }

    .testimonial-card::before {
        font-size: 6rem;
        left: 12px;
        top: 8px;
    }

    .testimonial-text {
        font-size: 1.5rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .testimonial-profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 20px;
    }

    .testimonial-avatar {
        width: 56px;
        height: 56px;
    }

    .testimonial-info-title {
        font-size: 1.5rem;
    }

    .testimonial-info-meta {
        font-size: 1.2rem;
    }

    .testimonial-rating {
        font-size: 1.4rem;
    }
}