/* Nice Homes Realtors — Client Testimonials page (hero: nhr-page-hero.css) */

.testimonials-section {
    padding-top: 0;
}

.nhr-testimonials-section {
    padding-top: 48px;
}

.nhr-testimonials-intro {
    max-width: 760px;
    margin: 0 auto 48px;
    padding-top: 24px;
    text-align: center;
}
.nhr-testimonials-intro p {
    line-height: 1.75;
    margin-bottom: 0;
}

/* Filters */
.testimonial-filters,
.nhr-testimonial-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.testimonial-filter-btn,
.nhr-testimonial-filters .filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid #e8e8e8;
    background: #fff;
    color: var(--title-color, #141414);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.22s ease;
}
.testimonial-filter-btn:hover,
.nhr-testimonial-filters .filter-btn:hover {
    border-color: var(--theme-color, #c62828);
    color: var(--theme-color, #c62828);
}
.testimonial-filter-btn.active,
.nhr-testimonial-filters .filter-btn.active {
    background: var(--theme-color, #c62828);
    border-color: var(--theme-color, #c62828);
    color: #fff;
}

/* Featured */
.featured-testimonial,
.nhr-testimonial-featured {
    margin-bottom: 48px;
    padding: 40px 44px;
    border-radius: 22px;
    background: linear-gradient(135deg, #faf8f6 0%, #fff 100%);
    border: 1px solid #eee;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}
.featured-testimonial__inner {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.featured-testimonial .featured-testimonial__quote-mark {
    font-size: 56px;
    line-height: 1;
    color: var(--theme-color, #c62828);
    opacity: 0.22;
    margin-bottom: 12px;
}
.featured-testimonial__quote-mark i {
    font-size: 48px;
}
.featured-testimonial .testimonial-title,
.nhr-testimonial-featured .nhr-testimonial-title {
    font-size: 24px;
    margin-bottom: 16px;
    line-height: 1.35;
}
.featured-testimonial .testimonial-text,
.featured-testimonial .testimonial-text p,
.nhr-testimonial-featured .testimonial-text,
.nhr-testimonial-featured .testimonial-text p {
    font-size: 18px;
    line-height: 1.85;
    margin-bottom: 0;
    color: #141414;
    opacity: 1;
    font-weight: 400;
}
.featured-testimonial__client {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #f0f0f0;
}
.featured-testimonial__client .testimonial-avatar {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
    font-size: 28px;
}
.featured-testimonial__client .testimonial-badge {
    margin-top: 14px;
}

/* Grid */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Card */
.testimonial-card,
.nhr-testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 28px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}
.testimonial-card:hover,
.nhr-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}
.testimonial-card__quote-mark {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(198, 40, 40, 0.08);
    color: var(--theme-color, #c62828);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.85;
}
.testimonial-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-right: 36px;
}
.testimonial-card__identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.testimonial-avatar,
.nhr-testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.testimonial-avatar img,
.nhr-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-avatar--initials,
.nhr-testimonial-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c62828, #8b1c1c);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
}
.testimonial-card__name,
.nhr-testimonial-name {
    display: block;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    color: var(--title-color);
    line-height: 1.3;
}
.testimonial-card__designation,
.testimonial-card__location {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--body-color, #666);
}
.testimonial-badge,
.nhr-testimonial-badge {
    display: inline-block;
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(198, 40, 40, 0.1);
    color: var(--theme-color, #c62828);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.testimonial-rating,
.nhr-testimonial-stars {
    color: #e8a317;
    margin-bottom: 12px;
    font-size: 14px;
}
.testimonial-title,
.nhr-testimonial-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.45;
    color: var(--title-color);
}
.testimonial-text,
.nhr-testimonial-text {
    flex: 1;
    margin: 0 0 18px;
}
.testimonial-text p,
.nhr-testimonial-text p {
    line-height: 1.8;
    margin-bottom: 0;
    color: var(--body-color, #555);
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.testimonial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: var(--body-color, #777);
}
.testimonial-meta__item {
    display: inline-flex;
    align-items: center;
}
.testimonial-meta__source {
    opacity: 0.85;
}

/* Empty state */
.testimonial-empty-state,
.nhr-testimonials-empty {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 52px 28px;
    border-radius: 22px;
    background: #fafafa;
    border: 1px solid #eee;
}
.nhr-testimonials-empty .nhr-testimonials-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* CTA */
.nhr-testimonials-cta {
    padding: 44px 36px;
    border-radius: 22px;
    background: linear-gradient(135deg, #141414 0%, #3a2222 50%, #1a1a1a 100%);
    color: #fff;
    text-align: center;
}
.nhr-testimonials-cta .sec-title {
    color: #fff;
    margin-bottom: 12px;
}
.nhr-testimonials-cta p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.75;
}
.nhr-testimonials-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Feedback */
.nhr-testimonials-feedback {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: 8px;
}
.nhr-testimonials-feedback p {
    line-height: 1.75;
    margin-bottom: 8px;
}
.nhr-testimonials-feedback-note {
    font-size: 14px;
    color: var(--body-color, #666);
    margin-bottom: 20px;
}

@media (max-width: 1199px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .featured-testimonial__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .featured-testimonial__client {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 20px;
    }
    .featured-testimonial__client .testimonial-avatar {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .featured-testimonial,
    .nhr-testimonial-featured {
        padding: 28px 22px;
    }
    .featured-testimonial .testimonial-text p,
    .nhr-testimonial-featured .nhr-testimonial-text p {
        font-size: 16px;
    }
    .featured-testimonial__client {
        flex-direction: column;
        text-align: center;
    }
    .testimonial-card__header {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
    }
    .testimonial-badge {
        align-self: flex-start;
    }
    .nhr-testimonials-empty .nhr-testimonials-actions .th-btn,
    .nhr-testimonials-cta-actions .th-btn {
        width: 100%;
        justify-content: center;
    }
}
