/* 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(3, minmax(0, 1fr));
    gap: 18px;
}

.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: 220px;
    text-align: left;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.review-top {
    margin-bottom: 4px;
}

.stars {
    font-size: 55px;
    color: #f6b400;
    letter-spacing: 1px;
}

.date {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 14px;
}

.review-card p {
    margin: 0 0 14px 0;
    font-size: 18px;
    line-height: 1.55;
    color: #222;
    flex-grow: 1;
}

.review-card strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #173f83;
    margin-top: 8px;
}

.review-card small {
    display: block;
    font-size: 16px;
    color: #666;
    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;
    }
}
