/* ===========================================================
   REVIEW SECTION GLOBAL
   =========================================================== */
.review_section {
    width: 90%;
    margin: 50px auto;
    text-align: center;
}

/* Wrapper holds row + navigation buttons */
.review_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* allows positioning of arrows */
}

/* ===========================================================
   REVIEW ROW (scrollable container)
   =========================================================== */
.review_row {
    display: flex;
    gap: 20px;
    max-width: 100%;
    overflow: hidden; /* hide extra reviews beyond container */
}

/* ===========================================================
   REVIEW CARD
   =========================================================== */
.review_card {
    flex: 0 0 220px;          /* fixed width basis */
    max-width: 300px;
    height: 220px;            /* fixed height for uniform grid */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* text at top, author/link at bottom */
    gap: 10px;
    overflow: hidden;               /* hide overflow if text is too long */
}

/* ===========================================================
   REVIEW TEXT (limit to 5 lines)
   =========================================================== */
.review_text {
    font-size: 0.95em;
    line-height: 1.4;
    color: #444;

    display: -webkit-box;
    -webkit-line-clamp: 5;          /* limit to 5 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===========================================================
   REVIEW NAVIGATION BUTTONS
   =========================================================== */
.review-btn {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    padding: 10px;
    color: #333;
    transition: color 0.2s;
}
.review-btn:hover {
    color: #d84602; /* highlight on hover */
}

/* ===========================================================
   AUTHOR + PRODUCT LINK
   =========================================================== */
.review_author,
.review_product_link {
    margin-top: auto; /* pushes these down to bottom of card */
}
