/* ==========================================================================
   PCOS Ferticure Clinic — Testimonials & Patient Experiences Styling (PF-202)
   ========================================================================== */

.page-testimonials {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    font-family: var(--font-body, "Plus Jakarta Sans", system-ui, -apple-system, sans-serif);
    color: var(--ink, #38232e);
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: 24px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12.5px;
    color: var(--muted, #6f5863);
}

.breadcrumb-list a {
    color: var(--pink, #a83d70);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* Hero Section */
.testimonials-hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 32px 20px 40px;
    background: radial-gradient(circle at 50% 20%, #faeef3 0%, #fffbf8 70%);
    border: 1px solid #f2e4eb;
    border-radius: var(--radius-lg, 24px);
    box-shadow: 0 4px 20px rgba(92, 53, 70, 0.04);
}

.testimonials-hero .eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pink, #a83d70);
    margin-bottom: 12px;
}

.testimonials-hero .hero-title {
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    color: var(--plum, #5c3546);
    line-height: 1.15;
    margin: 0 0 16px;
    font-weight: 600;
}

.testimonials-hero .hero-intro {
    font-size: 15.5px;
    line-height: 1.68;
    color: #4f3b46;
    max-width: 760px;
    margin: 0 auto 28px;
}

.testimonials-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid #ebdbe2;
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--plum, #5c3546);
    box-shadow: 0 2px 6px rgba(92, 53, 70, 0.03);
}

.trust-badge svg {
    color: var(--pink, #a83d70);
    flex-shrink: 0;
}

/* Sections */
.testimonials-section {
    margin-bottom: 60px;
}

.testimonials-section .section-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 36px;
}

.testimonials-section .section-heading .eyebrow {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pink, #a83d70);
    margin-bottom: 8px;
}

.testimonials-section .section-heading h2 {
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--plum, #5c3546);
    margin: 0 0 10px;
}

.testimonials-section .section-heading p {
    font-size: 14.5px;
    color: var(--muted, #6f5863);
    line-height: 1.6;
    margin: 0;
}

/* Card Grids */
/* Card Masonry Layout */
.testimonials-masonry {
    columns: 3 340px;
    column-gap: 24px;
}

@media (max-width: 900px) {
    .testimonials-masonry {
        columns: 2 280px;
        column-gap: 18px;
    }
}

@media (max-width: 580px) {
    .testimonials-masonry {
        columns: 1;
    }
}

/* Individual Cards */
.testimonial-card {
    break-inside: avoid;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1.5px solid #ebdbe2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(92, 53, 70, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(92, 53, 70, 0.12);
    border-color: var(--pink, #a83d70);
}

.testimonial-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #ffffff;
    border-bottom: 1px solid #f6edf1;
}

.testimonial-card-top .stars {
    color: #e59819;
    font-size: 14px;
    letter-spacing: 2px;
}

.verified-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--plum, #5c3546);
    background: #f7edf1;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.testimonial-image-wrap {
    position: relative;
    background: #ffffff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.testimonial-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #f0e6eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease;
}

.testimonial-card:hover .testimonial-img {
    transform: scale(1.015);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(92, 53, 70, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(1.5px);
}

.testimonial-image-wrap:hover .card-overlay {
    opacity: 1;
}

.btn-enlarge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--plum, #5c3546);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.testimonial-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #fdfafb;
    border-top: 1px solid #f4e9ee;
}

.card-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pink, #a83d70);
}

.btn-view-lightbox {
    background: transparent;
    border: none;
    color: var(--plum, #5c3546);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.btn-view-lightbox:hover {
    color: var(--pink, #a83d70);
}

.testimonials-disclaimer {
    text-align: center;
    max-width: 820px;
    margin: 36px auto 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted, #6f5863);
}

/* Lightbox Modal */
.testimonial-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.testimonial-lightbox.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 16, 23, 0.82);
    backdrop-filter: blur(6px);
}

.lightbox-dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: min(94vw, 1100px);
    max-height: 92vh;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: lightboxFadeIn 0.25s ease-out;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1px solid #ebdbe2;
    background: #fdfafb;
}

.lightbox-counter {
    font-size: 13px;
    font-weight: 700;
    color: var(--pink, #a83d70);
}

.lightbox-title {
    font-family: var(--font-heading, serif);
    font-size: 1.15rem;
    color: var(--plum, #5c3546);
    font-weight: 600;
}

.lightbox-btn-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--plum, #5c3546);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.lightbox-btn-close:hover {
    background: #f4e7ec;
    color: var(--pink, #a83d70);
}

.lightbox-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f6f0f3;
    overflow: auto;
    max-height: calc(92vh - 60px);
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(88vh - 100px);
    overflow: hidden;
}

.lightbox-active-img {
    max-width: 100%;
    max-height: calc(85vh - 100px);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.lightbox-nav-btn {
    background: #ffffff;
    border: 1px solid #ebdbe2;
    color: var(--plum, #5c3546);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.lightbox-nav-btn:hover {
    background: var(--pink, #a83d70);
    color: #ffffff;
    border-color: var(--pink, #a83d70);
    transform: scale(1.06);
}

.lightbox-nav-btn.prev {
    margin-right: 14px;
}

.lightbox-nav-btn.next {
    margin-left: 14px;
}

/* Consultation Options in Testimonials */
.page-testimonials .consult-options-section {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #ebdbe2;
}

/* Responsive */
@media (max-width: 900px) {
    .featured-grid,
    .more-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .page-testimonials {
        padding: 16px 14px 60px;
    }

    .testimonials-hero {
        padding: 24px 16px 28px;
        margin-bottom: 36px;
    }

    .featured-grid,
    .more-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonial-image-wrap {
        padding: 12px;
        min-height: 180px;
    }

    .lightbox-body {
        padding: 10px 8px;
    }

    .lightbox-nav-btn {
        width: 38px;
        height: 38px;
    }

    .lightbox-nav-btn.prev {
        margin-right: 6px;
    }

    .lightbox-nav-btn.next {
        margin-left: 6px;
    }
}

