.bmc-section {
    padding: 82px 0;
    border-top: none;
}

.bmc-section.bmc-bg-blue,
.bmc-page .bmc-section.bmc-bg-blue {
    background: var(--bmc-blue-light, #f4f8fc);
}

.bmc-edu-pill {
    display: inline-block;
    background: rgba(48, 189, 155, 0.1);
    color: #2d8f76;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
    border: 1px solid rgba(48, 189, 155, 0.15);
}

.bmc-testimonials-section h2 {
    font-size: clamp(1.85rem, 3.8vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #353642;
    max-width: 720px;
    margin: 0 auto;
}

.bmc-testimonials-carousel-wrap {
    display: block;
}

.bmc-testimonials-nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.bmc-testimonials-track-wrap {
    overflow: hidden;
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.bmc-testimonials-track-wrap.is-dragging {
    cursor: grabbing;
}

.bmc-testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.bmc-testimonials-track.no-transition {
    transition: none;
}

.bmc-testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 300px;
    background: #fff;
    border: 1px solid #e8e8e4;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 8px 28px rgba(53, 54, 66, 0.05);
    position: relative;
}

.bmc-testimonial-google-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    cursor: help;
    z-index: 1;
}

.bmc-testimonial-google-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

.bmc-testimonial-google-badge::after {
    content: 'Google verified';
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #353642;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(53, 54, 66, 0.18);
}

.bmc-testimonial-google-badge:hover::after,
.bmc-testimonial-google-badge:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bmc-testimonial-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.bmc-testimonial-top--no-photo {
    gap: 0;
    min-height: 72px;
    align-items: center;
}

.bmc-testimonial-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    border: 3px solid #f4f8fc;
}

.bmc-testimonial-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bmc-testimonial-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #353642;
    margin: 0;
    line-height: 1.15;
}

.bmc-testimonial-uni {
    font-size: 0.85rem;
    font-weight: 600;
    color: #30bd9b;
    margin: 0;
    line-height: 1.2;
}

.bmc-testimonial-quote {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #6b6b75;
    margin: 0 0 12px;
    flex: 1;
}

.bmc-testimonial-quote.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bmc-testimonial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.bmc-testimonial-btn {
    border: 1px solid #e0e0dc;
    background: #fff;
    color: #353642;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.bmc-testimonial-btn.primary {
    background: #353642;
    border-color: #353642;
    color: #fff;
}

.bmc-testimonial-btn:hover {
    background: #f4f8fc;
    border-color: #30bd9b;
}

.bmc-testimonial-btn.primary:hover {
    background: #2a2b35;
    border-color: #2a2b35;
}

.bmc-testimonials-nav:hover:not(:disabled) {
    background: #f4f8fc;
    transform: scale(1.05);
}

.bmc-testimonials-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.bmc-review-modal-uni:empty {
    display: none;
}

.bmc-testimonials-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e8e8e4;
    background: #fff;
    color: #353642;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(53, 54, 66, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.bmc-testimonials-nav-icon {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

.bmc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(53, 54, 66, 0.72);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bmc-modal-overlay.is-open {
    display: flex;
}

.bmc-modal-panel {
    background: #fff;
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.bmc-modal-panel.video-panel {
    max-width: 900px;
    background: #000;
    overflow: hidden;
}

.bmc-modal-panel.review-panel {
    padding: 32px 28px 28px;
    max-width: 640px;
}

.bmc-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #353642;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
}

.bmc-modal-video {
    width: 100%;
    display: block;
    max-height: 80vh;
}

.bmc-modal-panel.review-panel .bmc-review-modal-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #353642;
    margin: 0 0 4px;
    padding: 0;
    line-height: 1.25;
}

.bmc-modal-panel.review-panel .bmc-review-modal-uni {
    font-size: 0.85rem;
    font-weight: 600;
    color: #30bd9b;
    margin: 0 0 12px;
    padding: 0;
    line-height: 1.35;
}

.bmc-modal-panel.review-panel .bmc-review-modal-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6b6b75;
    margin: 0;
    padding: 0;
}

.bmc-review-modal-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #353642;
    margin: 0 0 4px;
    padding: 0;
    line-height: 1.25;
}

.bmc-review-modal-uni {
    font-size: 0.85rem;
    font-weight: 600;
    color: #30bd9b;
    margin: 0 0 12px;
    padding: 0;
    line-height: 1.35;
}

.bmc-review-modal-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6b6b75;
    margin: 0;
    padding: 0;
}

@media (max-width: 1199px) {
    .bmc-testimonial-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .bmc-section {
        padding: 56px 0;
    }

    .bmc-testimonial-card {
        flex: 0 0 100%;
        min-width: 280px;
    }
}
