
/* ==================================================
   NOVA EDUSPACE — VOICES FROM THE UNIVERSE
   Responsive testimonial carousel
================================================== */

.review-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 0;
    margin: 0;
    padding: clamp(50px, 6vw, 90px) clamp(16px, 3vw, 36px) 70px;
    overflow: hidden;
    box-sizing: border-box;
    color: #f7fbff;
    background:
        radial-gradient(ellipse at 12% 25%, rgba(0, 190, 255, .12), transparent 40%),
        radial-gradient(ellipse at 85% 70%, rgba(92, 73, 255, .12), transparent 42%),
        linear-gradient(145deg, #061321, #081a30 55%, #071326);
    font-family: "Outfit", "Inter", sans-serif;
}

.review-section *,
.review-section *::before,
.review-section *::after {
    box-sizing: border-box;
}

.review-section::before,
.review-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(36, 210, 255, .09);
    border-radius: 50%;
    pointer-events: none;
}

.review-section::before {
    top: 30px;
    left: -220px;
    box-shadow:
        0 0 0 35px rgba(36, 210, 255, .025),
        0 0 0 75px rgba(36, 210, 255, .018);
}

.review-section::after {
    right: -220px;
    bottom: -100px;
    box-shadow:
        0 0 0 35px rgba(100, 90, 255, .025),
        0 0 0 75px rgba(100, 90, 255, .018);
}

/* ---------- Main container ---------- */

.review-section > .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    height: auto;
    margin: 0 auto;
}

/* ---------- Heading ---------- */

.review-section .section-heading {
    width: 100%;
    max-width: 900px;
    margin: 0 auto clamp(28px, 4vw, 48px);
    text-align: center;
}

.review-section .section-heading .subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 11px 18px;
    border: 1px solid rgba(36, 207, 255, .28);
    border-radius: 50px;
    background: rgba(10, 190, 240, .08);
    color: #55e6ff;
    font-size: clamp(10px, 1vw, 13px);
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.review-section .section-heading h2 {
    margin: 0 0 18px;
    color: #f8fbff;
    font-size: clamp(34px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: clamp(-2px, -.12vw, -.5px);
    overflow-wrap: break-word;
}

.review-section .section-heading p {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    color: #b9c9dc;
    font-size: clamp(14px, 1.35vw, 18px);
    line-height: 1.8;
}

/* ---------- Carousel ---------- */

.review-section .reviewSwiper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1240px;
    height: auto !important;
    min-height: 0;
    margin: 0 auto;
    padding: 12px 4px 76px;
    overflow: visible;
}

.review-section .reviewSwiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.review-section .reviewSwiper .swiper-slide {
    display: flex;
    align-self: stretch;
    height: auto;
    min-width: 0;
    min-height: 0;
}

/* ---------- Testimonial cards ---------- */

.review-section .review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 350px;
    margin: 0;
    padding: clamp(22px, 2.3vw, 32px);
    overflow-wrap: anywhere;
    border: 1px solid rgba(130, 205, 255, .18);
    border-radius: 24px;
    background: linear-gradient(
        145deg,
        rgba(18, 43, 69, .98),
        rgba(8, 24, 43, .98)
    );
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.review-section .review-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    width: 68px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg, #18d9ff, #6378ff);
}

.review-section .review-card:hover {
    border-color: rgba(42, 218, 255, .5);
    box-shadow:
        0 24px 55px rgba(0, 0, 0, .3),
        0 0 25px rgba(0, 190, 255, .08);
    transform: translateY(-3px);
}

.review-section .review-card .rating {
    margin: 0 0 18px;
    color: #ffd166;
    font-size: 21px;
    line-height: 1.4;
    letter-spacing: 3px;
}

.review-section .review-card h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(20px, 1.8vw, 25px);
    font-weight: 700;
    line-height: 1.35;
}

.review-section .review-card > p {
    margin: 0 0 26px;
    color: #c3d2e4;
    font-size: clamp(14px, 1.15vw, 16px);
    line-height: 1.8;
}

/* ---------- Reviewer information ---------- */

.review-section .review-user {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(160, 205, 255, .12);
}

.review-section .review-user .avatar {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(64, 222, 255, .45);
    border-radius: 50%;
    background: linear-gradient(135deg, #0aaed4, #5558f5);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.review-section .review-user .info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.review-section .review-user .info h4 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.review-section .review-user .info span {
    color: #55dfff;
    font-size: 13px;
    line-height: 1.5;
}

.review-section .review-user .info small {
    color: #9db2ca;
    font-size: 12px;
    line-height: 1.5;
}

/* ==================================================
   ARROWS — FAR LEFT AND RIGHT
================================================== */

.review-section .reviewSwiper .swiper-button-prev,
.review-section .reviewSwiper .swiper-button-next {
    position: absolute;
    top: 50%;
    bottom: auto;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(61, 215, 255, .30);
    border-radius: 50%;
    background: rgba(12, 39, 65, .94);
    color: #4bdfff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .22);
    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

/* Move the left arrow outside the carousel edges */
.review-section .reviewSwiper .swiper-button-prev {
    left: -85px;
    right: auto;
}

/* Move the right arrow outside the carousel edges */
.review-section .reviewSwiper .swiper-button-next {
    right: -85px;
    left: auto;
}

.review-section .reviewSwiper .swiper-button-prev::after,
.review-section .reviewSwiper .swiper-button-next::after {
    font-size: 19px;
    font-weight: 800;
}

.review-section .reviewSwiper .swiper-button-prev:hover,
.review-section .reviewSwiper .swiper-button-next:hover {
    border-color: rgba(61, 215, 255, .7);
    background: #11bde9;
    color: #041321;
}

/* ---------- Pagination ---------- */

.review-section .reviewSwiper .swiper-pagination {
    position: absolute;
    bottom: 22px;
    left: 0;
    width: 100%;
}

.review-section .reviewSwiper .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: #71859d;
    opacity: .8;
}

.review-section .reviewSwiper .swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 8px;
    background: #28d9ff;
    opacity: 1;
}

/* ---------- Smaller desktop screens ---------- */

@media (max-width: 1500px) {
    .review-section .reviewSwiper .swiper-button-prev {
        left: 8px;
    }

    .review-section .reviewSwiper .swiper-button-next {
        right: 8px;
    }
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
    .review-section {
        padding: 64px 20px;
    }

    .review-section .section-heading {
        margin-bottom: 30px;
    }

    .review-section .review-card {
        min-height: 330px;
        padding: 25px;
    }

    .review-section .reviewSwiper .swiper-button-prev,
    .review-section .reviewSwiper .swiper-button-next {
        width: 46px;
        height: 46px;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
    .review-section {
        padding: 48px 14px 54px;
    }

    .review-section .section-heading .subtitle {
        padding: 10px 13px;
        letter-spacing: 1px;
    }

    .review-section .section-heading h2 {
        font-size: clamp(32px, 9vw, 44px);
        letter-spacing: -1px;
    }

    .review-section .section-heading p {
        font-size: 14px;
        line-height: 1.75;
    }

    .review-section .reviewSwiper {
        padding: 8px 2px 72px;
        overflow: hidden;
    }

    .review-section .review-card {
        min-height: 0;
        padding: 25px 21px;
        border-radius: 20px;
    }

    .review-section .review-card h3 {
        font-size: 22px;
    }

    .review-section .review-card > p {
        font-size: 14px;
    }

    /* Center arrows below the card on mobile */
    .review-section .reviewSwiper .swiper-button-prev,
    .review-section .reviewSwiper .swiper-button-next {
        top: auto;
        bottom: 0;
        width: 40px;
        height: 40px;
        transform: none;
    }

    .review-section .reviewSwiper .swiper-button-prev {
        left: calc(50% - 48px);
        right: auto;
    }

    .review-section .reviewSwiper .swiper-button-next {
        right: calc(50% - 48px);
        left: auto;
    }

    .review-section .reviewSwiper .swiper-button-prev::after,
    .review-section .reviewSwiper .swiper-button-next::after {
        font-size: 15px;
    }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    .review-section .review-card,
    .review-section .reviewSwiper .swiper-button-prev,
    .review-section .reviewSwiper .swiper-button-next {
        transition: none;
    }
}
