/* =========================================
   STUDENT REVIEWS SECTION (student-review.css)
========================================= */
html {                      
    scroll-behavior: smooth;
}                           

.reviews-section,
.reviews-section * {
    box-sizing: border-box;
}

.reviews-section {
    max-width: 1200px;
    width: 100%;
    margin: 64px auto;
    padding: 0 20px;
}

.reviews-header {
    text-align: center;
    margin-bottom: 36px;
}

.reviews-title {
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    font-weight: 800;
    color: #285b40; /* Deep Green */
    margin: 0 0 10px;
    line-height: 1.2;
}

.reviews-desc {
    color: #4a5568;
    font-size: clamp(0.92rem, 1.15vw, 1rem);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Slider Track Wrapper */
.reviews-slider-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 8px 0 18px;
}

.reviews-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 24px;
    will-change: transform;
}

/* Individual Review Card Style */
.review-card {
    flex: 0 0 calc((100% - 48px) / 3); /* Desktop: 3 equal cards */
    background: #ffffff;
    border: 1px solid rgba(40, 91, 64, 0.16);
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 4px 18px rgba(23, 53, 45, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(23, 53, 45, 0.08);
    border-color: rgba(164, 122, 34, 0.4);
}

.review-stars {
    color: #a47a22; /* Gold Stars */
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: flex;
    gap: 3px;
}

.review-text {
    color: #17352d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 22px;
}

/* Student Profile Info */
.student-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.student-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background-color: #285b40;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #a47a22;
    margin: 0 0 2px;
    line-height: 1.25;
}

.student-trade {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

/* Single-Row Pagination Numbers (Auto-scrolls on small screens) */
.reviews-pagination {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 4px 6px 8px;
    max-width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.reviews-pagination::-webkit-scrollbar {
    display: none;
}

.page-num {
    flex: 0 0 auto;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #17352d;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-num:hover {
    border-color: #285b40;
    background: #f1f5f9;
}

.page-num.active {
    background: #285b40;
    color: #ffffff;
    border-color: #285b40;
}

.page-num:focus-visible {
    outline: 2px solid #a47a22;
    outline-offset: 2px;
}

/* Center numbers when all fit comfortably on wider screens */
@media (min-width: 680px) {
    .reviews-pagination {
        justify-content: center;
    }
}

/* =========================================
   TABLET RESPONSIVE (<= 992px -> 2 Cards)
========================================= */
@media (max-width: 992px) {
    .review-card {
        flex: 0 0 calc((100% - 24px) / 2);
        padding: 22px 20px;
    }
}

/* =========================================
   MOBILE RESPONSIVE (<= 600px -> 1 Card)
========================================= */
@media (max-width: 600px) {
    .reviews-section {
        margin: 44px auto;
        padding: 0 14px;
    }

    .reviews-header {
        margin-bottom: 24px;
    }

    .reviews-desc {
        font-size: 0.88rem;
    }

    .reviews-track {
        gap: 16px;
    }

    .review-card {
        flex: 0 0 100%;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .review-text {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .page-num {
        width: 34px;
        height: 34px;
        font-size: 0.84rem;
    }
}