/* testi Section */
.tersrt {
    background-color: #2727274D;
    overflow: hidden;
    margin-top: 80px;
}

.testimonialSection {
    width: 90%;
    margin: 0 auto;
    padding: 60px 0;
}

.testiHeader {
    text-align: start;
    margin-bottom: 40px;
}

.testiHeader p {
    font-size: 14px;
    color: #fff;
    font-weight: 300;
    width: 50%;
}

.testiSmall {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.testiSmall p {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}



.testiTitle {
    font-size: 36px;
    color: #fff;
    font-weight: 700;
    margin-top: 12px;
}

.testiTitle span {
    color: #F1A70A;
}

.testiCarousel .owl-stage {
    display: flex;
    align-items: center;
}

.testiCard {
    width: 820px;
    height: 280px;
    /* FIXED HEIGHT */
    background: #ffffff;
    padding: 40px 55px;
    border-radius: 20px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0.4;
    transform: scale(0.85);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .testiCarousel .owl-item.center .testiCard {
        transform: scale(1);
    }
}

.testiCarousel .owl-item {
    display: flex;
    justify-content: center;
}

.testiCarousel .owl-item.center .testiCard {
    opacity: 1;
    transform: scale(1);
}

.testiText {
    font-size: 16px;
    line-height: 26px;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* Number of lines */
    -webkit-box-orient: vertical;
}

.testiName {
    font-size: 18px;
    font-weight: 700;
    color: #0C2340;
    margin-top: 18px;
}

.testiStars {
    font-size: 18px;
    color: #FFB400;
    letter-spacing: 3px;
    margin-top: 8px;
}

.testiCarousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.testiCarousel .owl-dot span {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 6px;
    transition: 0.3s;
}

.testiCarousel .owl-dot.active span {
    width: 28px;
    border-radius: 20px;
    background: #0C2340;
}

.testiViewMoreWrapper {
    text-align: center;
    margin-top: 35px;
}

.testiViewMoreBtn {
    background: #09203f;
    padding: 14px 38px;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.testiViewMoreBtn:hover {
    background: #ff5c24;
}

@media (max-width: 1200px) {
    .testiCard {
        padding: 35px 45px;
    }
}

@media (max-width: 992px) {
    .testiCard {
        padding: 30px;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .testiCard {
        padding: 25px;
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .testiTitle {
        font-size: 28px;
    }
}

@media (max-width: 1024px) {
    .testiCard {
        width: 90%;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .testiCard {
        width: 100%;
        height: auto;
        transform: scale(1);
        opacity: 1;
    }

    .testiText {
        -webkit-line-clamp: 6;
    }
}


.bw-section-wrapper {
    width: 100%;
    padding: 30px 40px;
    background: #012B45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 80px;
}

.bw-section-wrapper h1 {
    color: #ffff;
    font-size: clamp(24px, 28px, 30px);
    font-weight: 700;
    width: 50%;

}



@media (max-width: 992px) {
    .bw-card-wrapper {
        position: relative;
        width: 100%;
        margin-top: 20px;
        transform: none;
        top: 0;
        right: 0;
    }

    .bw-orange-box {
        display: none;
    }
}

.both_ddb {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}


/* page */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

/* ================= CARD ================= */
.review-card {
    height: 260px;
    /* fixed equal height */
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover {
    transform: translateY(-4px);
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    text-align: center;

    /* truncate */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;

    /* handle long text/no spaces */
    word-break: break-word;
    overflow-wrap: anywhere;
}

.review-author {
    margin-top: 12px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.stars {
    margin-top: 8px;
    color: #ff9800;
    font-size: 18px;
    text-align: center;
}

/* ================= MODAL ================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 999;
}

.modal-content {
    background: #fff;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    /* limit height */
    padding: 32px;
    border-radius: 18px;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    overflow-y: auto;
    /* scroll if long */
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
}

/* popup text */
#modalReviewText {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;

    word-break: break-word;
    overflow-wrap: anywhere;
}

#modalAuthor {
    font-weight: bold;
    font-size: 15px;
}

#modalStars {
    margin-top: 12px;
    font-size: 20px;
    color: #ff9800;
}

/* optional scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}