/* ================================================================
   Testimonials Component — Full Section Styles
   Covers: Achievements Gallery · Reviews · Google Reviews · FAQ
   ================================================================ */


/* ─────────────────────────────────────────
   1. ACHIEVEMENTS — Infinite Scroll Gallery
   ───────────────────────────────────────── */
.achievements-section {
    overflow: hidden;
    padding-bottom: 0;
}

.achievements-section .section-desc {
    max-width: 560px;
    margin: 0 auto 40px;
    color: var(--gray-600, #6b7280);
}

/* Outer wrapper clips the overflowing track */
.achievements-track-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 8px 0;
    /* Fade edges so scroll feels seamless */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* The moving row */
.achievements-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

/* Row 1 scrolls left */
.track-left {
    animation: scrollLeft 30s linear infinite;
}

/* Row 2 scrolls right */
.track-right {
    animation: scrollRight 30s linear infinite;
}

/* Pause on hover */
.achievements-track-wrapper:hover .achievements-track {
    animation-play-state: paused;
}

/* Individual achievement rectangle */
.ach-item {
    flex-shrink: 0;
    width: 160px; /* 4:3 aspect ratio matching the image frames */
    height: 120px;
    border-radius: 12px; /* rounded rectangle corners */
    overflow: hidden;
    border: 2px solid rgba(var(--primary-rgb, 233,106,117), 0.15);
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ach-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.ach-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill the rectangle frame edge-to-edge */
    padding: 0; /* remove padding to match the image ratio perfectly */
}

/* Keyframes */
@keyframes scrollLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}


/* ─────────────────────────────────────────
   2. PATIENT REVIEWS — Card Grid
   ───────────────────────────────────────── */
.testimonial-section-ten .testimonial-item-ten {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-section-ten .testimonial-item-ten:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.testimonial-section-ten .testimonials-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-section-ten .testimonial-content {
    flex: 1;
    margin: 12px 0 20px;
}

.testimonial-section-ten .testimonial-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100, #f3f4f6);
}

.testimonial-section-ten .testimonial-author-img img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border: 2px solid var(--secondary-hover, #e96a75);
}

.testimonial-section-ten .author-name {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 15px;
}


/* ─────────────────────────────────────────
   3. GOOGLE REVIEWS BADGE & EMBEDDED MAP
   ───────────────────────────────────────── */
.google-reviews-section {
    padding: 40px 0 60px;
}

.google-reviews-card {
    background: linear-gradient(135deg, #fff 0%, #fdf4f5 100%);
    border-radius: 20px;
    box-shadow: 0 6px 40px rgba(0,0,0,0.09);
    border: 1px solid rgba(var(--primary-rgb, 233,106,117), 0.15);
    overflow: hidden;
}

.google-reviews-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
}

/* Brand block */
.gr-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    gap: 12px;
    text-align: center;
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

.gr-google-logo {
    width: 52px;
    height: 52px;
}

.gr-score-number {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: var(--gray-900, #111827);
}

.gr-stars-row {
    color: #FBBC05;
    font-size: 18px;
    display: flex;
    gap: 2px;
    justify-content: center;
}

.gr-label {
    font-size: 12px;
    color: var(--gray-500, #9ca3af);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gr-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Vertical divider */
.gr-divider {
    width: 1px;
    background: var(--gray-200, #e5e7eb);
    align-self: stretch;
}

/* Details block */
.gr-details {
    flex: 1 1 0% !important;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0 !important;
}

.gr-count {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--gray-900, #111827);
}

.gr-sub {
    color: var(--gray-500, #9ca3af);
    font-size: 14px;
    margin-bottom: 0;
}

/* Embedded Google Map Wrapper */
.gr-map-wrapper {
    flex: 1 1 0% !important;
    padding: 16px;
    min-width: 0 !important;
    display: flex;
    align-items: stretch;
}

.gr-map-iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 12px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(110, 61, 104, 0.05);
}

/* Responsive stacking */
@media (max-width: 991.98px) {
    .google-reviews-inner {
        flex-direction: column;
    }
    .gr-divider {
        width: 100%;
        height: 1px;
    }
    .gr-brand,
    .gr-details,
    .gr-map-wrapper {
        padding: 24px;
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: unset !important;
    }
    .gr-map-wrapper {
        min-height: 260px;
    }
}


/* ─────────────────────────────────────────
   4. FAQ ACCORDION
   ───────────────────────────────────────── */
.faq-section {
    background: linear-gradient(135deg, #fdf4f5 0%, #fff 60%);
}

.faq-header-block {
    position: sticky;
    top: 90px;
}

.faq-header-block .section-title {
    margin-top: 8px;
}

.faq-header-block p {
    color: var(--gray-500, #9ca3af);
    margin: 16px 0 0;
}

.kimaya-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border: 1px solid var(--gray-200, #e5e7eb) !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}

.faq-item .accordion-button {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900, #111827);
    background: #fff;
    border-radius: 14px !important;
    padding: 20px 24px;
}

.faq-item .accordion-button:not(.collapsed) {
    color: var(--secondary-hover, #e96a75);
    background: rgba(var(--primary-rgb, 233,106,117), 0.05);
    box-shadow: none;
}

.faq-item .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e96a75'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.faq-item .accordion-body {
    font-size: 15px;
    color: var(--gray-600, #6b7280);
    line-height: 1.7;
    padding: 0 24px 20px;
    background: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .faq-header-block {
        position: static;
        margin-bottom: 12px !important;
    }

    .faq-section .row.g-5 {
        --bs-row-gap: 20px !important;
    }
}

/* Spacing optimization for Patient Stories section containing only the scrolling track */
#stories-section.testimonial-section-ten {
    padding-bottom: 10px !important;
}

#stories-section.testimonial-section-ten .achievements-track-wrapper {
    margin-bottom: 0 !important;
}
