/* ==========================================================================
   AYP COURSE REVIEWS
   Premium Himalayan Editorial — "Mandala Flow"
   ========================================================================== */

.ayp-course-reviews {
    --review-forest: #173e33;
    --review-forest-soft: #31584d;
    --review-gold: #b78a35;
    --review-gold-soft: #d8bf8a;
    --review-cream: #f7f3e9;
    --review-paper: #fbfaf6;
    --review-ink-soft: #66746f;
    --review-line: rgba(23, 62, 51, 0.13);

    position: relative;
    overflow: hidden;
    padding: clamp(84px, 8vw, 132px) 20px clamp(92px, 9vw, 145px);
    background:
        radial-gradient(circle at 14% 20%, rgba(183, 138, 53, 0.08), transparent 26%),
        radial-gradient(circle at 88% 70%, rgba(49, 88, 77, 0.07), transparent 28%),
        linear-gradient(135deg, var(--review-cream) 0%, var(--review-paper) 48%, #f5f1e7 100%);
    color: var(--review-forest);
    isolation: isolate;
}

.ayp-course-reviews::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: -300px;
    top: 12%;
    border: 1px solid rgba(183, 138, 53, 0.14);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(183, 138, 53, 0.035),
        0 0 0 70px rgba(183, 138, 53, 0.025),
        0 0 0 110px rgba(183, 138, 53, 0.018);
    z-index: -1;
}

.ayp-course-reviews::after {
    content: "ॐ";
    position: absolute;
    right: -100px;
    bottom: -190px;
    width: 430px;
    height: 430px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(23, 62, 51, 0.08);
    border-radius: 50%;
    color: rgba(23, 62, 51, 0.06);
    font-family: "Noto Serif", Georgia, serif;
    font-size: 160px;
    z-index: -1;
}

.ayp-course-reviews__inner {
    width: min(1440px, 100%);
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   INTRO
   -------------------------------------------------------------------------- */

.ayp-course-reviews__intro {
    max-width: 930px;
    margin: 0 auto clamp(42px, 5vw, 64px);
    text-align: center;
}

.ayp-course-reviews__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--review-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.ayp-course-reviews__eyebrow-line {
    width: 52px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--review-gold));
}

.ayp-course-reviews__eyebrow-line:last-child {
    background: linear-gradient(90deg, var(--review-gold), transparent);
}

.ayp-course-reviews__intro h2 {
    margin: 0;
    color: var(--review-forest);
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-size: clamp(46px, 5.2vw, 78px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.95;
}

.ayp-course-reviews__subtitle {
    margin: 18px 0 0;
    color: var(--review-gold);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(23px, 2.1vw, 31px);
    font-style: italic;
    line-height: 1.2;
}

.ayp-course-reviews__description {
    max-width: 760px;
    margin: 20px auto 0;
    color: var(--review-ink-soft);
    font-size: 15px;
    line-height: 1.85;
}

/* --------------------------------------------------------------------------
   REVIEW STAGE
   -------------------------------------------------------------------------- */

.ayp-course-reviews__stage {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
}

.ayp-course-reviews__viewport {
    width: 100%;
    overflow: hidden;
    padding: 4px 0 12px;
}

.ayp-course-reviews__track {
    display: flex;
    align-items: stretch;
    gap: 18px;
    will-change: transform;
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ayp-review-card {
    position: relative;
    flex: 0 0 calc((100% - 54px) / 4);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 425px;
    padding: 28px 27px 23px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.92), rgba(247,243,233,0.72));
    border: 1px solid rgba(23, 62, 51, 0.12);
    border-radius: 24px 24px 24px 8px;
    box-shadow:
        0 18px 45px rgba(23, 62, 51, 0.055),
        0 2px 5px rgba(23, 62, 51, 0.035);
    transition:
        transform 350ms ease,
        box-shadow 350ms ease,
        border-color 350ms ease;
}

.ayp-review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(183, 138, 53, 0.30);
    box-shadow:
        0 25px 55px rgba(23, 62, 51, 0.09),
        0 3px 8px rgba(23, 62, 51, 0.045);
}

.ayp-review-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 27px;
    width: 44px;
    height: 2px;
    background: var(--review-gold);
}

.ayp-review-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 30px;
}

.ayp-review-card__platform {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    color: var(--review-forest);
}

.ayp-review-card__platform-mark {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border: 1px solid rgba(23, 62, 51, 0.18);
    border-radius: 50%;
    color: var(--review-gold);
    font-size: 10px;
    font-weight: 800;
}

.ayp-review-card__platform-logo {
    display: block;
    width: auto;
    max-width: 112px;
    max-height: 25px;
    object-fit: contain;
}

.ayp-review-card__platform-name {
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ayp-review-stars {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 2px;
    color: #c9c7bf;
}

.ayp-review-star {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
}

.ayp-review-star.is-filled {
    color: var(--review-gold);
}

.ayp-review-card__quote-mark {
    height: 35px;
    margin-top: 20px;
    color: var(--review-gold);
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: 0.8;
}

.ayp-review-card__text {
    margin: 0;
    color: #304c44;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 21px;
    line-height: 1.42;
}

.ayp-review-card__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid var(--review-line);
}

.ayp-review-card__person {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.ayp-review-card__avatar {
    position: relative;
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(183, 138, 53, 0.34);
    border-radius: 50%;
    background: #e5dfcf;
}

.ayp-review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ayp-review-card__initials {
    color: var(--review-forest);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.ayp-review-card__identity {
    min-width: 0;
}

.ayp-review-card__identity strong {
    display: block;
    overflow: hidden;
    color: var(--review-forest);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ayp-review-card__country {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    color: var(--review-ink-soft);
    font-size: 11px;
}

.ayp-review-card__country span {
    font-size: 14px;
}

.ayp-review-card__date {
    flex: 0 0 auto;
    color: #87918d;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ayp-review-card__source {
    align-self: flex-start;
    margin-top: 13px;
    color: var(--review-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.ayp-review-card__source:hover {
    color: var(--review-forest);
}

/* --------------------------------------------------------------------------
   NAVIGATION ARROWS
   -------------------------------------------------------------------------- */

.ayp-course-reviews__arrow {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border: 1px solid rgba(183, 138, 53, 0.50);
    border-radius: 50%;
    background: rgba(251, 250, 246, 0.72);
    color: var(--review-forest);
    cursor: pointer;
    font-size: 22px;
    transition:
        background 220ms ease,
        color 220ms ease,
        transform 220ms ease,
        opacity 220ms ease;
}

.ayp-course-reviews__arrow:hover:not(:disabled) {
    background: var(--review-forest);
    color: #fff;
    transform: scale(1.05);
}

.ayp-course-reviews__arrow:disabled {
    cursor: default;
    opacity: 0.28;
}

.ayp-course-reviews__arrow:focus-visible,
.ayp-review-card__source:focus-visible {
    outline: 2px solid var(--review-gold);
    outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   DOTS
   -------------------------------------------------------------------------- */

.ayp-course-reviews__controls {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.ayp-course-reviews__dots {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 16px;
}

.ayp-course-reviews__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(23, 62, 51, 0.18);
    cursor: pointer;
    transition:
        width 220ms ease,
        border-radius 220ms ease,
        background 220ms ease;
}

.ayp-course-reviews__dot.is-active {
    width: 26px;
    border-radius: 8px;
    background: var(--review-gold);
}

/* --------------------------------------------------------------------------
   MANDALA FOOTER
   -------------------------------------------------------------------------- */

.ayp-course-reviews__footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 26px;
    max-width: 720px;
    margin: 50px auto 0;
}

.ayp-course-reviews__footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--review-line));
}

.ayp-course-reviews__footer-line:last-child {
    background: linear-gradient(90deg, var(--review-line), transparent);
}

.ayp-course-reviews__mandala {
    position: relative;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
}

.ayp-course-reviews__mandala-ring {
    position: absolute;
    inset: 6px;
    border: 1px solid var(--review-gold-soft);
    border-radius: 50%;
}

.ayp-course-reviews__mandala-ring::before,
.ayp-course-reviews__mandala-ring::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(183, 138, 53, 0.25);
    border-radius: 50%;
}

.ayp-course-reviews__mandala-symbol {
    color: var(--review-gold);
    font-family: Georgia, serif;
    font-size: 25px;
}

/* --------------------------------------------------------------------------
   CLOSING MESSAGE
   -------------------------------------------------------------------------- */

.ayp-course-reviews__closing {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px 14px;
    margin-top: 28px;
    text-align: center;
}

.ayp-course-reviews__closing-small {
    color: #7c8782;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.ayp-course-reviews__closing-main {
    color: var(--review-forest);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 24px;
    font-style: italic;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1180px) {
    .ayp-review-card {
        flex-basis: calc((100% - 36px) / 3);
    }
}

@media (max-width: 900px) {
    .ayp-course-reviews__stage {
        gap: 12px;
    }

    .ayp-review-card {
        flex-basis: calc((100% - 18px) / 2);
        min-height: 410px;
    }

    .ayp-course-reviews__arrow {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
}

@media (max-width: 680px) {
    .ayp-course-reviews {
        padding-right: 14px;
        padding-left: 14px;
    }

    .ayp-course-reviews__intro {
        margin-bottom: 34px;
    }

    .ayp-course-reviews__eyebrow {
        gap: 10px;
        font-size: 9px;
        letter-spacing: 0.2em;
    }

    .ayp-course-reviews__eyebrow-line {
        width: 30px;
    }

    .ayp-course-reviews__description {
        font-size: 14px;
        line-height: 1.75;
    }

    .ayp-course-reviews__stage {
        display: block;
        padding: 0 7px;
    }

    .ayp-course-reviews__viewport {
        padding-bottom: 10px;
    }

    .ayp-course-reviews__track {
        gap: 12px;
    }

    .ayp-review-card {
        flex-basis: 100%;
        min-height: 400px;
        padding: 24px 22px 21px;
        border-radius: 21px 21px 21px 7px;
    }

    .ayp-review-card__text {
        font-size: 20px;
    }

    .ayp-course-reviews__arrow {
        position: absolute;
        z-index: 3;
        top: 50%;
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        background: rgba(251, 250, 246, 0.95);
        box-shadow: 0 7px 20px rgba(23, 62, 51, 0.10);
    }

    .ayp-course-reviews__arrow--prev {
        left: -2px;
    }

    .ayp-course-reviews__arrow--next {
        right: -2px;
    }

    .ayp-course-reviews__controls {
        margin-top: 18px;
    }

    .ayp-course-reviews__footer {
        gap: 15px;
        margin-top: 38px;
    }

    .ayp-course-reviews__mandala {
        width: 54px;
        height: 54px;
    }

    .ayp-course-reviews__closing {
        margin-top: 22px;
    }

    .ayp-course-reviews__closing-main {
        font-size: 21px;
    }

    .ayp-course-reviews__closing-small {
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ayp-course-reviews__track,
    .ayp-review-card,
    .ayp-course-reviews__arrow,
    .ayp-course-reviews__dot {
        transition: none;
    }
}
