.novateplica-reviews-section {
    padding: clamp(40px, 5vw, 80px) 0;
    font-family: 'Manrope', var(--font-main, 'Inter'), sans-serif;
    overflow: hidden;
}

.novateplica-reviews-container {
    width: min(calc(100% - 32px), var(--container-width, 1540px));
    margin: 0 auto;
}

/* Header */
.novateplica-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.novateplica-reviews-title {
    color: #1f2937;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.novateplica-reviews-subtitle {
    color: #6b7280;
    font-size: clamp(15px, 2vw, 18px);
    margin: 0;
}

.novateplica-reviews-controls {
    display: flex;
    gap: 12px;
}

.novateplica-reviews-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1f2937;
    transition: all 0.3s ease;
    padding: 0;
}

.novateplica-reviews-btn:hover {
    border-color: #1f2937;
    background: #f9fafb;
}

.novateplica-reviews-btn svg {
    width: 20px;
    height: 20px;
}

/* Carousel */
.novateplica-reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
    gap: 20px;
}

.novateplica-reviews-carousel::-webkit-scrollbar {
    display: none;
}

/* Cards */
.novateplica-review-card {
    background: #ffffff;
    border-radius: 4px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(100% - 20px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@media (min-width: 768px) {
    .novateplica-review-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (min-width: 1024px) {
    .novateplica-review-card {
        flex: 0 0 calc(33.333% - 13.33px);
    }
}

/* Header inside card */
.novateplica-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.novateplica-review-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.novateplica-review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.novateplica-review-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eef8f0;
    color: var(--primary-color, #3bc54e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.novateplica-review-name {
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
}

.novateplica-review-city {
    color: #9ca3af;
    font-size: 13px;
    margin-top: 2px;
}

.novateplica-review-stars {
    display: flex;
    gap: 4px;
    color: var(--primary-color, #3bc54e);
}

.novateplica-review-stars svg {
    width: 18px;
    height: 18px;
}

.novateplica-review-stars svg.active {
    fill: currentColor;
}

/* Text */
.novateplica-review-text-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.novateplica-review-text {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novateplica-reviews-readmore {
    background: none;
    border: none;
    color: var(--primary-color, #3bc54e);
    font-weight: 600;
    font-size: 14px;
    padding: 0;
    margin-top: 12px;
    cursor: pointer;
    text-align: left;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.novateplica-reviews-readmore:hover {
    color: #2da13e;
    text-decoration: underline;
}

/* Tags */
.novateplica-review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.novateplica-review-tag {
    background: #eef8f0;
    color: var(--primary-color, #3bc54e);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

/* Pagination */
.novateplica-reviews-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
    /* Allow dots to wrap on mobile */
    padding: 0 10px;
}

.novateplica-reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .novateplica-reviews-pagination {
        gap: 12px;
    }

    .novateplica-reviews-dot {
        width: 10px;
        height: 10px;
    }
}

.novateplica-reviews-dot.active {
    background: var(--primary-color, #3bc54e);
}

/* Modal */
.novateplica-reviews-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.novateplica-reviews-modal.active {
    opacity: 1;
    visibility: visible;
}

.novateplica-reviews-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.novateplica-reviews-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.novateplica-reviews-modal.active .novateplica-reviews-modal-content {
    transform: translateY(0) scale(1);
}

.novateplica-reviews-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.novateplica-reviews-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.novateplica-reviews-modal-body {
    padding: clamp(24px, 5vw, 40px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.novateplica-reviews-modal-body .novateplica-review-header {
    margin-bottom: 24px;
    padding-right: 40px;
    /* Space for close button */
}

.novateplica-review-text-full {
    color: #334155;
    font-size: 16px;
    line-height: 1.7;
}

.novateplica-review-text-full p {
    margin-bottom: 16px;
}

.novateplica-review-text-full p:last-child {
    margin-bottom: 0;
}

/* Dark Mode */
[data-theme="dark"] .novateplica-reviews-title,
[data-theme="dark"] .novateplica-review-name {
    color: #f3f4f6;
}

[data-theme="dark"] .novateplica-reviews-subtitle,
[data-theme="dark"] .novateplica-review-city,
[data-theme="dark"] .novateplica-review-text,
[data-theme="dark"] .novateplica-review-text-full {
    color: #9ca3af;
}

[data-theme="dark"] .novateplica-review-card,
[data-theme="dark"] .novateplica-reviews-modal-content {
    background: #1e293b;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .novateplica-reviews-btn {
    background: #1e293b;
    border-color: #334155;
    color: #f3f4f6;
}

[data-theme="dark"] .novateplica-reviews-btn:hover {
    border-color: #f3f4f6;
    background: #334155;
}

[data-theme="dark"] .novateplica-review-tag,
[data-theme="dark"] .novateplica-review-avatar-placeholder {
    background: rgba(59, 197, 78, 0.15);
}

[data-theme="dark"] .novateplica-reviews-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .novateplica-reviews-modal-close {
    background: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .novateplica-reviews-modal-close:hover {
    background: #475569;
    color: #f8fafc;
}

[data-theme="dark"] .novateplica-reviews-dot {
    background: #334155;
}

[data-theme="dark"] .novateplica-reviews-dot.active {
    background: var(--primary-color, #3bc54e);
}