.reviews-section {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background-color: #F8F5EE;
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

.reviews-container {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.reviews-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.reviews-title {
    color: #050409;
    text-align: center;
    font-family: "Playfair", serif;
    font-size: 48px;
    font-weight: 600;
    line-height: normal;
    margin: 0 0 10px 0;
    font-style: normal;
}

.reviews-dots {
    display: block;
}

.reviews-navigation-wrapper {
    width: 1440px;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.reviews-navigation {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.reviews-pagination {
    display: flex;
    height: 30px;
    justify-content: flex-start;
    align-items: center;
}

.reviews-current, .reviews-total {
    color: #050409;
    font-size: 24px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    line-height: 40.80px;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reviews-slash {
    color: #050409;
    font-size: 32px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    letter-spacing: 1.92px;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 12.23px;
    height: 37.95px;
    text-align: center;
}

.reviews-current {
    width: 20.39px;
    height: 40px;
}

.reviews-btn {
    width: 60px;
    height: 20px;
    border-radius: 2px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    outline: none;
}

.reviews-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.reviews-btn-left img {
    transform: rotate(180deg);
}

.reviews-btn:hover {
    opacity: 0.7;
}

.reviews-carousel {
    display: flex;
    gap: 12px;
    width: 1440px;
    max-width: 100%;
    margin-bottom: 80px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 0 20px 0; /* Align with container edges */
    box-sizing: border-box;
}

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

/* Review Card */
.review-card {
    flex: 0 0 350px;
    min-height: 564px;
    box-sizing: border-box;
    position: relative;
    border-radius: 12px;
    background-color: #FFFCF7;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-snap-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* Gradient border using pseudo-element */
.review-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px; /* border thickness */
    background: linear-gradient(90deg, #949DA0 0%, #848B8A 16%, #819696 27%, #99A1A0 37%, #888F8F 47%, #798B8F 57%, #8C979B 74%, #888D8E 89%, #A0A9AB 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-author-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-author-name {
    color: #050409;
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-stars {
    display: block;
    height: 18px;
    width: 18px;
}

.review-date {
    color: #050409;
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
}

.review-text {
    color: #050409;
    font-family: "Noto Sans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: #A0A9AB transparent;
}

.review-text::-webkit-scrollbar {
    width: 4px;
}
.review-text::-webkit-scrollbar-thumb {
    background-color: #A0A9AB;
    border-radius: 4px;
}

/* Footer Section */
.reviews-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    width: 100%;
}

.reviews-footer-text {
    color: #050409;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 54px;
    margin: 0 0 60px 0;
    width: 100%;
}

.reviews-footer .btn-primary {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 1480px) {
    .reviews-navigation-wrapper,
    .reviews-carousel {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .reviews-track {
        gap: 24px;
    }
    
    .reviews-title {
        font-size: 48px;
    }
    
    .reviews-footer-text {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .reviews-navigation-wrapper {
        justify-content: center;
        margin-bottom: 24px;
    }
    
    .review-card {
        flex: 0 0 280px;
    }
}
