.testimonials-section {
    position: relative;
    padding: 160px 0;
    /* Increased from 100px for more elegance */
    background: #fff;
    overflow: hidden;
    text-align: center;
}

/* Dot Map Background */
.dot-map-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background: radial-gradient(circle, #ff5a5f 1px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black, transparent 70%);
}

.testimonials-container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-subtitle {
    color: #005cb9;
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.testimonials-title {
    font-size: clamp(32px, 5vw, 48px);
    color: #333;
    font-family: 'Tenor Sans', serif;
    margin-bottom: 30px;
}

.stars-container {
    color: #ffb400;
    /* More vibrant orange for higher premium feel */
    margin-bottom: 30px;
}

.testimonial-quote {
    letter-spacing: 0.5px;
    font-size: 22px;
    line-height: 1.8;
    color: #555;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.author-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 400;
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.author-title {
    color: #888;
    font-size: 14px;
    margin-top: -10px;
}

/* Testimonial Group Background */
.testimonial-group-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.testimonial-group-bg img {
    width: 80%;
    max-width: 1600px;
    height: auto;
    display: block;
    opacity: 1;
}

/* Specific reveal for centered group background to prevent transform override */
.testimonial-group-bg.reveal-up {
    transform: translateY(40px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial-group-bg.reveal-active {
    transform: translateY(0);
    opacity: 1;
}

/* Floating Bed Decor */
.testimonial-bed {
    position: absolute;
    bottom: 180px;
    left: 100px;
    width: 140px;
    z-index: 5;
    pointer-events: none;
}

.testimonial-bed img {
    width: 100%;
    animation: floatBed 5s ease-in-out infinite;
}

@keyframes floatBed {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .testimonial-bed {
        width: 180px;
        left: 40px;
    }
}

@media (max-width: 992px) {

    .testimonial-group-bg,
    .testimonial-bed {
        display: none;
    }

    .testimonials-section {
        padding: 80px 0;
    }
}