.reviews {
    padding: 2rem 0;
}

.reviews .title {
    font-family: 'Freehand', cursive;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 400;
    color: rgb(44, 44, 159);
    margin-bottom: 2rem;
}

.reviews .center-container {
    border: 3px solid rgb(44, 44, 159);
    border-radius: 10px;
    padding: 1rem;
}

.tab-buttons-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 1rem;
    position: relative;
    margin-bottom: 1rem;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #fff;
    color: rgb(44, 44, 159);
    padding: .5rem 0;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    width: 66%;
    margin: auto;
    /* background-color: rgb(44, 44, 159); */
    /* border: 1px solid red; */
}

.lines-container {
    position: relative;
    height: inherit;
}

.thin-line,
.bold-line {
    position: absolute;
}

.underline .thin-line {
    inset: 0;
    margin: auto;
    height: 1px;
    width: 100%;
    background-color: rgb(44, 44, 159);
}

.underline .bold-line {
    height: inherit;
    width: 50%;
    background-color: rgb(44, 44, 159);
    z-index: 1;
    border-radius: 5px;
}

.tab-button.active {
    background-color: rgb(44, 44, 159);
    color: #fff;
}

.profile-pic {
    background-color: rgb(44, 44, 159);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    width: 45px;
    border-radius: 50%;
}

.tab-button.active .profile-pic {
    background-color: #fff;
    color: rgb(44, 44, 159);
}

.profile-pic h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.customer-name h4 {
    font-weight: 700;
}

.reviews-header {
    width: 80%;
    max-width: 600px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 .5rem;
    margin-bottom: 2rem;
}

.review-title p {
    color: rgb(44, 44, 159);
    font-weight: 700;
    font-size: .95rem;
}

.ratings {
    display: flex;
    gap: 8px;
}

.rating-star {
    height: 23px;
    width: 23px;
    background-color: gray;
    clip-path: polygon(
            50% 0%, 61% 35%,
            98% 35%, 68% 57%,
            79% 91%, 50% 70%,
            21% 91%, 32% 57%,
            2% 35%, 39% 35%
    );
}

.rating-star.selected {
    background-color: orange;
}

.review-text {
    color: rgb(44, 44, 159);
    font-size: .95rem;
    width: 80%;
    max-width: 700px;
    margin: auto;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.customer-reviews {
    display: none;
}

.customer-reviews.active {
    display: block;
}

/****************** Media queries *****************/

@media (min-width: 768px) {
    .tab-button {
        flex-direction: row;
    }

    .reviews .center-container {
        min-height: 300px;
    }
}

@media (min-width: 992px) {
    .reviews-header {
        justify-content: unset;
        flex-direction: row;
    }

    .ratings {
        margin-left: auto;
    }
}