/* ==================== 3. Основні секції ==================== */
/* Секція "Відгуки" */
.reviews-section {
    padding: 80px 0;
    text-align: center;
    background-color: #000;
    color: #fff;
}

.reviews-section .section-title {
    margin-bottom: 40px;
    font-size: 2em;
    color: #fff;
}

.reviews-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 15px;
}

@media (min-width: 992px) {
    .reviews-content-wrapper {
        gap: 60px;
    }
}

.reviews-rating-block {
    flex: 1;
    max-width: 400px;
    padding: 20px;
    text-align: center;
}

.rating-box {
    padding: 20px;
}

.rating-box h3 {
    font-family: 'Tektur', sans-serif;
    font-weight: 900;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.rating-score {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5em;
    color: #f67828;
    margin-bottom: 5px;
}

.rating-score .total-rating {
    font-size: 1.2em;
    color: gold;
}

.rating-box p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 15px;
}

.google-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid #f67828;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    gap: 10px;
}

.google-review-btn:hover {
    background-color: #f67828;
}

/* Новий підхід для каруселі: керування через JS */
.reviews-carousel-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden; /* Важливо для приховування зайвих карток */
}

.reviews-container {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}
        
/* Картка займає 100% ширини батьківського контейнера */
.reviews-container .review-card {
    flex-shrink: 0;
    width: 100%;
    margin-right: 20px; /* Відступ між картками */
}

/* Прибираємо margin-right з останньої картки, щоб не було зайвого простору */
.reviews-container .review-card:last-child {
    margin-right: 0;
}

.review-card {
    background-color: #222;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-avatar {
    position: relative;
    width: 50px;
    height: 50px;
}

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

.google-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #fff;
    color: #4285F4;
    border-radius: 50%;
    padding: 2px;
    font-size: 0.8rem;
}

.review-author {
    display: flex;
    flex-direction: column;
}

.review-author h4 {
    margin: 0;
    font-family: 'Tektur', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
}

.review-author p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8em;
    color: #aaa;
    margin: 0;
}

.review-rating-stars {
    color: gold;
    font-size: 0.50rem;
    margin-bottom: 10px;
}

/* Оновлений клас для коректного перенесення тексту */
.review-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    color: #ccc;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow-y: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}
