/* Simple Reviews Carousel (secondary reviews section) */

.sm-reviews-section {
    padding: 56px 0;
    position: relative;
    overflow: hidden;
    background: url("../../images/online-academy-course-bg.png") no-repeat center center;
    background-size: cover;
}

.sm-reviews-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.sm-reviews-section > * {
    position: relative;
    z-index: 1;
}

.sm-reviews-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.sm-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sm-reviews-actions {
    display: flex;
    gap: 10px;
}

.sm-reviews-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: #ffffff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.sm-reviews-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.sm-reviews-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sm-reviews-viewport {
    overflow: hidden;
}

.sm-reviews-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sm-reviews-track::-webkit-scrollbar {
    display: none;
}

.sm-review-card {
    flex: 0 0 auto;
    width: min(360px, calc(100vw - 64px));
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
    scroll-snap-align: start;
}

.sm-review-text {
    font-size: 13px;
    line-height: 1.65;
    color: #4b5563;
    margin: 0 0 12px;
}

.sm-review-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.sm-review-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sm-review-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-review-avatar img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border-radius: 999px;
    object-fit: cover;
}

.sm-review-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.sm-review-role {
    font-size: 12px;
    color: #64748b;
}

.sm-review-meta {
    text-align: right;
}

.sm-review-stars {
    font-size: 13px;
    letter-spacing: 1px;
    color: #f59e0b;
    line-height: 1;
}

.sm-review-badge {
    display: inline-flex;
    margin-top: 6px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sm-reviews-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

.sm-reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    cursor: pointer;
}

.sm-reviews-dot.active {
    background: #2563eb;
}

@media (max-width: 640px) {
    .sm-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .sm-reviews-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
