/*Отзывы*/

#reviews {
    position: relative;
    width: 1410px;
    left: auto;
    top: auto;
    margin: 100px;
    margin-bottom: 0px;
}

#reviews-heading, #reviews-heading-1 {
    width: 449px;
    height: 100px;
    left: auto;
    top: auto;
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 500;
    font-size: 40px;
    line-height: 50px;
    text-align: center;
    color: #000000;
    margin: 0px 0px 0px 320px;
}

#reviews-label{
    display: none;
}

.reviews-decoration {
    position: relative;
    left: 425px;
    top: -34px;
    z-index: -1;
}


.reviews-filter {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 20px;
    width: 890px;
    height: 111px;
    left: 414px;
    top: 140px;
}

.main-filter {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    width: 402px;
    height: 52px;
    background: #F1F3FB;
    border-radius: 100px;
}

.filter-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px;
    gap: 30px;
    width: 394px;
    height: 44px;
}

.filter-button.school-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    width: 104px;
    height: 44px;
    border-radius: 50px;
    border: 0px;
    cursor: pointer;
}

.filter-button.it-courses-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    width: 125px;
    height: 44px;
    border-radius: 50px;
    border: 0px;
    cursor: pointer;
}

.filter-button.services-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    width: 105px;
    height: 44px;
    border-radius: 50px;
    border: 0px;
    cursor: pointer;
}

.sub-filter {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: center; /* Centers items horizontally */
    align-items: center; /* Centers items vertically */
    padding: 0px;
    width: auto;
    height: 39px;
    top: 72px;
    left: 50%; /* Move the container to the middle of the parent */
    transform: translateX(-50%); /* Adjust back by half of its own width */
    background: #FFFFFF;
    border-radius: 30px;
}

.sub-filter-button.social-science-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 242px;
    height: 39px;
    background: #FFFFFF;
    border-radius: 30px;
    border: 0px;
}

.sub-filter-button.history-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 176px;
    height: 39px;
    background: #6184D8;
    border-radius: 30px;
    border: 0px;
}

.sub-filter-button.computer-science-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 216px;
    height: 39px;
    border-radius: 30px;
    border: 0px;
}

.sub-filter-button.math-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 256px;
    height: 39px;
    border-radius: 30px;
    border: 0px;
}



#font-reviews-txt3 {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    margin: 0px;
}

#more-reviews-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    gap: 10px;
    position: absolute;
    width: 330px;
    height: 59px;
    left: 690px;
    top: 836px;
    background: #009B72;
    border-radius: 50px;
    border: 0px;
    cursor: pointer;
}

.filter-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    border-radius: 50px;
    border: 0;
    transition: background 0.3s, color 0.3s;
}

.filter-button.active {
    background: #6184D8;
    color: #ffffff;
}

.filter-button:not(.active) {
    color: #000103;
}

.sub-filter-button {
    display: inline-flex; /* Allows the button to fit its content */
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    border: 0;
    transition: background 0.3s, color 0.3s;
    padding: 10px 20px; /* Keep a minimum padding */
    white-space: nowrap; /* Prevents text from wrapping */
}

.sub-filter-button.active {
    background: #6184D8;
    color: #ffffff;
    cursor: pointer;
}

.sub-filter-button:not(.active) {
    background: transparent;
    color: #747474;
    cursor: pointer;
}



/* Контейнер для отзывов */
.reviews-display {
    left: 160px;
    top: -100px;
    width: 400px; /* Ширина контейнера, можно настроить */
    margin: 0 auto;
    position: relative;
}

.reviews-carousel {
    width: 100%;
    height: 600px; /* Высота для отображения трех отзывов частично */
    position: relative;
}

/* Общий стиль для отзывов */
.review {
    position: absolute;
    width: 500px;
    height: 260px;
    left: 50%;
    transform: translateX(-50%);
    transition: top 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    box-sizing: border-box;
}

/* Скрытые отзывы */
.review.hidden {
    display: none;
}

/* Предыдущий отзыв (сверху) */
.review.prev-back {
    top: 0;
    transform: translateX(-50%) scale(0.8);
    opacity: 0.5;
    z-index: 1;
    overflow: hidden;
}

/* Текущий отзыв (в центре) */
.review.front {
    overflow: auto;
    top: 100px; /* Центр по высоте */
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 2;
}

/* Следующий отзыв (снизу) */
.review.next-back {
    overflow: hidden;
    top: 200px;
    transform: translateX(-50%) scale(0.8);
    opacity: 0.5;
    z-index: 1;
}

/* Стили для содержимого отзыва */
.review-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
}

.review-info {
    text-align: center;
}

.review-info h4 {
    margin: 5px 0;
    font-size: 18px;
    color: #333;
}

.review-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* Стили для кнопок навигации */
.prev-review, .next-review {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
}

.prev-review {
    left: 565px;
    bottom: 500px;
}

.next-review {
    left: 1170px;
    bottom: 500px;
}

.prev-review:hover, .next-review:hover {
    background: #0056b3;
}

@media  (min-width: 441px) {

    #reviews-telegram {
    position: absolute;
    left: 580px;
    top: 750px;
    width: 558px;
    height: 150px;
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 50px;
    text-align: center;
    color: #1C1C1C;
    z-index: 1;
}
    
}