/* Custom homepage reviews section */
.custom-reviews-section {
    clear: both;
    margin: 42px auto 35px auto;
    text-align: center;
    width: 100%;
}

.reviews-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 24px 0;
}

.reviews-heading span {
    height: 1px;
    background: #173f83;
    flex: 1;
}

.reviews-heading h3 {
    margin: 0;
    color: #173f83;
    font-size: 22px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .2px;
    white-space: nowrap;
}

.reviews-carousel {
    position: relative;
    padding: 0 50px;
}

.review-slide {
    display: none;
   grid-template-columns: repeat(5, minmax(0, 1fr));
   gap: 12px;
}

.review-slide.active {
    display: grid;
}

   .review-card {
    background: #fff;
 border: 1px solid #e4e4e4;
border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
    padding: 14px;
    min-height: 165px;
    text-align: left;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.review-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
}

.stars {
    color: #ffc400;
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 1;
    white-space: nowrap;
}

.date {
    font-size: 9px;
    color: #777;
    white-space: nowrap;
    display: block;
    text-align: right;
}

.review-card p {
    margin: 0 0 12px 0;
    font-size: 13px;
    line-height: 1.35;
    color: #111;
    flex-grow: 1;
}

.review-card strong {
    display: block;
    color: #173f83;
    font-size: 13px;
    margin-top: 6px;
}

.review-card small {
    display: block;
    color: #111;
    font-size: 12px;
    margin-top: 2px;
}

.review-arrow {
    position: absolute;
  top: 45%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #173f83;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    font-family: Arial, sans-serif;
}

.review-prev { left: 10px; }
.review-next { right: 10px; }

.review-dots {
    margin-top: 10px;
}

.review-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    margin: 0 5px;
    background: #c2c2c2;
    cursor: pointer;
    padding: 0;
}

.review-dots button.active {
    background: #173f83;
}

@media (max-width: 980px) {
    .review-slide {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-heading h3 {
        white-space: normal;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .review-slide {
        grid-template-columns: 1fr;
    }

    .reviews-carousel {
        padding: 0 20px;
    }

    .review-arrow {
        font-size: 28px;
    }
}
