/* ==========================================================
   MedicalCert — Mini Review Carousel
   Add to: Appearance > Additional CSS  OR  theme style.css
   ========================================================== */

.mc-reviews-carousel {
    padding: 40px 0 32px;
    max-width: 560px;
    margin: 0 auto;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* Header */
.mc-rc-header {
    text-align: center;
    margin-bottom: 24px;
}

.mc-rc-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #00B67A;
    border: 1.5px solid #00B67A;
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 12px;
}

.mc-rc-heading {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0F2747 !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
}

.mc-rc-sub {
    font-size: 13px;
    color: #5B6675;
    margin: 0;
}

/* Track */
.mc-rc-track-outer {
    overflow: hidden;
}

.mc-rc-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Card */
.mc-rc-card {
    flex: 0 0 100%;
    background: #ffffff;
    border: 1px solid #E6EEF7;
    border-radius: 14px;
    padding: 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.mc-rc-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mc-rc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.mc-rc-meta {
    min-width: 0;
}

.mc-rc-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0F2747 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.mc-rc-date {
    font-size: 12px !important;
    color: #8A9BB0 !important;
    margin: 0 !important;
}

.mc-rc-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
    line-height: 1;
}

.mc-rc-review-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0F2747 !important;
    margin: 0 0 8px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.mc-rc-review-body {
    font-size: 13px !important;
    color: #5B6675 !important;
    line-height: 1.65 !important;
    margin: 0 0 16px !important;
    flex: 1;
    text-align: left !important;
}

.mc-rc-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #8A9BB0;
    margin-top: auto;
}

/* Mobile swipe dots — auto-generated by JS, hidden on desktop */
.mc-rc-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.mc-rc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D1DDE8;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mc-rc-dot--active {
    background: #2BB3C0;
    transform: scale(1.25);
}

@media (min-width: 1024px) {
    .mc-rc-dots {
        display: none;
    }
}

/* Footer link */
.mc-rc-footer {
    text-align: center;
    margin-top: 18px;
}

.mc-rc-tp-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #5B6675;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mc-rc-tp-link:hover {
    color: #00B67A;
    text-decoration: underline;
}

/* ==========================================================
   Responsive — on wider pages show 2 cards side by side
   ========================================================== */
@media (min-width: 720px) {
    .mc-reviews-carousel {
        max-width: 100%;
    }

    .mc-rc-track {
        /* JS will override transform; CSS handles card sizing */
    }

    .mc-rc-card {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (min-width: 1024px) {
    .mc-rc-card {
        flex: 0 0 calc(33.333% - 11px);
    }

    /* On desktop all 3 show at once — hide controls */
    .mc-reviews-carousel.mc-rc-all-visible .mc-rc-controls {
        display: none;
    }
}
