﻿.reviews-section {
    max-width: 1260px;
    margin: 60px auto;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ✅ ensures content starts from top */
    align-items: stretch;
}

/* Header */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

    .reviews-header h2 {
        font-size: 40px;
        font-weight: 600;
        color: #0a1623;
    }

        .reviews-header h2 span {
            color: #67c8ff;
        }

.write-btn {
    background-color: transparent;
    border: 1px solid #0a1623;
    color: #0a1623;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

    .write-btn:hover {
        background-color: #67c8ff;
        color: #fff;
    }

/* --- Horizontal Scroll Container --- */
.reviews-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; /* 👈 makes scroll buttery smooth */
    gap: 5px;
    padding: 10px 5px;
    cursor: grab;
    align-items: flex-start; /* ✅ keeps all cards aligned to top */
}

    .reviews-container:active {
        cursor: grabbing;
    }

    /* Hide scrollbar */
    .reviews-container::-webkit-scrollbar {
        display: none;
    }

.reviews-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Review Card */
.review-card {
    flex: 0 0 300px;
    background-color: #00244a;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 450px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

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

    .review-card p {
        font-size: 16px;
        color: #ffff;
        line-height: 1.5;
        margin: 0;
        text-align: justify;
    }

.review-footer {
    margin-top: auto; /* ✅ pushes footer to bottom */
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

    .review-footer h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #f7f7f7;
    }

    .review-footer span {
        font-size: 14px;
        color: #b0b8c1;
    }

/* Navigation Buttons */
.navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.nav-btn {
    background-color: #fff;
    color: #0a1623;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

    .nav-btn:hover {
        background-color: #ecc362;
        color: #fff;
    }

    /* Optional overlay arrows */
    .nav-btn.left {
        position: absolute;
        top: 50%;
        left: -70px;
        transform: translateY(-50%);
    }

    .nav-btn.right {
        position: absolute;
        top: 50%;
        right: -70px;
        transform: translateY(-50%);
    }

.stars {
    color: gold;
    margin-bottom: 10px;
}
