@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* ==================================================
   BASIC SETUP
================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;

    color:white;

    font-family:"Poppins", sans-serif;

    overflow-x:hidden;

    background:
        radial-gradient(
            ellipse at top left,
            rgba(139,92,246,.25),
            transparent 45%
        ),
        radial-gradient(
            ellipse at top right,
            rgba(0,212,255,.18),
            transparent 40%
        ),
        radial-gradient(
            ellipse at bottom center,
            rgba(255,79,216,.15),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #050816,
            #0a1024,
            #050816
        );

    background-attachment:fixed;
}

/* ==================================================
   HERO
================================================== */

.testimonials-hero{
    text-align:center;

    padding:90px 20px 60px;
}

.testimonials-hero h1{
    max-width:900px;

    margin:0 auto 20px;

    font-size:clamp(2.5rem, 7vw, 4.5rem);

    line-height:1.1;

    color:#fff7df;

    text-shadow:
        0 4px 0 #604023,
        0 8px 20px rgba(0,0,0,.35);
}

.testimonials-hero p{
    max-width:800px;

    margin:0 auto;

    padding:22px 28px;

    color:#2e261e;

    font-size:1.1rem;
    line-height:1.8;

    background:#fff4cc;

    border:2px solid rgba(90,60,30,.25);
    border-radius:12px;

    box-shadow:
        0 12px 25px rgba(0,0,0,.25);

    transform:rotate(-1deg);
}

/* ==================================================
   BACK HOME BUTTON
================================================== */

.back-home{
    display:inline-block;

    margin-top:35px;

    padding:14px 28px;

    color:#ffffff;

    font-weight:700;
    text-decoration:none;

    background:
        linear-gradient(
            90deg,
            #00a8cc,
            #7652c7,
            #d942a1
        );

    border:2px solid rgba(255,255,255,.35);
    border-radius:999px;

    box-shadow:
        0 8px 20px rgba(0,0,0,.25);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.back-home:hover{
    transform:translateY(-3px);

    box-shadow:
        0 12px 25px rgba(0,0,0,.35);
}

/* ==================================================
   SECTION TITLES
================================================== */

.section-title{
    width:fit-content;
    max-width:calc(100% - 40px);

    margin:80px auto 25px;

    padding:14px 30px;

    color:white;

    font-size:clamp(1.8rem, 5vw, 2.6rem);
    text-align:center;

    background:
        linear-gradient(
            135deg,
            rgba(0,212,255,.85),
            rgba(139,92,246,.85),
            rgba(255,79,216,.85)
        );

    border:2px dashed rgba(255,255,255,.65);
    border-radius:12px;

    box-shadow:
        0 0 25px rgba(139,92,246,.40),
        0 12px 25px rgba(0,0,0,.35);

    transform:rotate(-1deg);
}

/* ==================================================
   REVIEW GRID
================================================== */

.review-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap:45px;

    width:min(1200px, 92%);

    margin:0 auto;

    padding:35px 0 60px;
}

/* ==================================================
   REVIEW CARDS
================================================== */

.review-card{
    position:relative;

    padding:40px 30px 30px;

    color:#29251f;

    background:#fff9df;

    border:2px solid rgba(90,60,30,.18);
    border-radius:8px;

    box-shadow:
        0 15px 25px rgba(0,0,0,.28),
        inset 0 0 30px rgba(197,161,95,.10);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

/* Pushpin */

.review-card::before{
    content:"";

    position:absolute;

    top:-13px;
    left:50%;

    width:25px;
    height:25px;

    background:
        radial-gradient(
            circle at 35% 30%,
            #ffffff 0 7%,
            #ff6b6b 10%,
            #b61f35 70%
        );

    border-radius:50%;

    box-shadow:
        0 5px 8px rgba(0,0,0,.35);

    transform:translateX(-50%);
}

/* Small tape effect */

.review-card::after{
    content:"";

    position:absolute;

    top:-10px;
    right:20px;

    width:65px;
    height:20px;

    background:rgba(255,239,181,.72);

    box-shadow:
        0 2px 4px rgba(0,0,0,.12);

    transform:rotate(5deg);
}

.review-card:nth-child(odd){
    transform:rotate(-1.5deg);
}

.review-card:nth-child(even){
    transform:rotate(1.5deg);
}

.review-card:nth-child(3n){
    transform:rotate(.5deg);
}

.review-card:hover{
    transform:translateY(-8px) rotate(0deg) scale(1.02);

    box-shadow:
        0 22px 35px rgba(0,0,0,.35),
        inset 0 0 30px rgba(197,161,95,.10);
}

.review-card h3{
    margin-bottom:18px;

    color:#69439d;

    font-size:1.3rem;
    line-height:1.35;
}

.review-card p{
    font-size:1rem;
    line-height:1.75;
}

.reviewer{
    margin-top:22px;

    padding-top:16px;

    color:#574834;

    font-weight:700;

    border-top:2px dashed rgba(87,72,52,.28);
}

/* ==================================================
   DECORATIVE STARS
================================================== */

.testimonials-hero::before{
    content:"★";

    display:block;

    margin-bottom:16px;

    color:#ffd75a;

    font-size:3rem;

    text-shadow:
        0 4px 10px rgba(0,0,0,.30);

    animation:starFloat 3s ease-in-out infinite;
}

@keyframes starFloat{
    0%,
    100%{
        transform:translateY(0) rotate(-5deg);
    }

    50%{
        transform:translateY(-8px) rotate(5deg);
    }
}

/* ==================================================
   MOBILE
================================================== */

@media(max-width:700px){

    .testimonials-hero{
        padding:60px 18px 40px;
    }

    .testimonials-hero p{
        padding:20px;
        font-size:1rem;
    }

    .section-title{
        margin-top:55px;
        padding:12px 20px;
    }

    .review-grid{
        grid-template-columns:1fr;

        width:88%;

        gap:38px;
    }

    .review-card{
        padding:38px 24px 26px;
    }

    .review-card:nth-child(odd),
    .review-card:nth-child(even),
    .review-card:nth-child(3n){
        transform:rotate(0deg);
    }
}

/* ==================================================
   REVIEW DETAILS
================================================== */

.review-details{
    margin-top:8px;
    color:#7a6952;
    font-size:.85rem;
    font-weight:500;
}

/* ==================================================
   FINAL CALL TO ACTION
================================================== */

.reviews-cta{
    width:min(900px, 90%);

    margin:60px auto 100px;

    padding:45px 30px;

    color:#30261d;
    text-align:center;

    background:#fff4cc;

    border:3px dashed #7b5837;
    border-radius:16px;

    box-shadow:
        0 15px 30px rgba(0,0,0,.28);

    transform:rotate(-.5deg);
}

.reviews-cta h2{
    margin-bottom:15px;

    color:#69439d;

    font-size:clamp(1.8rem, 5vw, 2.7rem);
}

.reviews-cta p{
    max-width:700px;

    margin:0 auto 25px;

    line-height:1.7;
}

.enroll-link{
    display:inline-block;

    padding:14px 30px;

    color:white;
    font-weight:700;
    text-decoration:none;

    background:
        linear-gradient(
            90deg,
            #00a8cc,
            #7652c7,
            #d942a1
        );

    border-radius:999px;

    box-shadow:
        0 8px 20px rgba(0,0,0,.25);
}

/* ==================================================
   FOOTER
================================================== */

.testimonials-footer{
    padding:35px 20px;

    color:#fff7df;
    text-align:center;

    background:rgba(47,28,17,.65);
}

.testimonials-footer p{
    margin-bottom:10px;

    font-weight:700;
}

.testimonials-footer a{
    color:#fff4cc;
}

.outschool-reviews{
    max-width:800px;

    margin:60px auto;
    padding:40px 25px;

    text-align:center;

    background:rgba(17,24,39,.55);

    border:1px solid rgba(255,255,255,.10);
    border-radius:20px;

    backdrop-filter:blur(10px);
}

.outschool-reviews h2{
    margin-bottom:15px;

    font-size:2rem;
}

.outschool-reviews p{
    margin-bottom:25px;

    color:#d7ddf2;
    line-height:1.7;
}

.outschool-reviews-button{
    display:inline-block;

    padding:15px 28px;

    color:white;
    font-weight:700;
    text-decoration:none;

    background:linear-gradient(
        90deg,
        #00ff9d,
        #00d4ff
    );

    border-radius:999px;

    box-shadow:0 0 22px rgba(0,212,255,.40);

    transition:.3s ease;
}

.outschool-reviews-button:hover{
    transform:translateY(-4px);

    box-shadow:0 0 38px rgba(0,255,157,.60);
}