/* HERO CLASSIC (still in case it's used elsewhere) */
.hero {
    background: #950dd3;
    background-size: cover;
    color: #fff;
    padding: 100px 50px;
    display: flex;
    flex-direction: row;
    background-attachment: fixed;
    background-position: center bottom 100px;
    background-repeat: no-repeat;
    height: 40vh;
    align-items: center;
    justify-content: space-between;
}

@media only screen and (min-width: 900px) {
    .hero {
        padding: 100px 200px;
    }
}

.hero h2 {
    font-size: 42px;
    font-weight: 500;
}

.hero p {
    color: #fff;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(90deg, rgb(94, 0, 183) 0%, rgb(112, 0, 153) 100%);
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    size: 16px;
    margin-top: 20px;
    border-radius: 5px;
    transition: all 0.5s;
    cursor: pointer;
}

.hero-btn:hover {
    background: linear-gradient(90deg, rgb(112, 0, 153), rgb(60, 0, 82));
}

/* MODERN HERO SECTION */
.hero-modern {
    background: linear-gradient(180deg, #fff 0%, #f7f4ff 100%);
    padding: 140px 20px 110px;
    position: relative;
}

.hero-modern-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.hero-modern-left {
    max-width: 50%;
}

.hero-modern-left h1 {
    font-size: 48px;
    font-weight: 700;
    color: #2d0a59;
}

.hero-modern-left p {
    margin: 40px 0;
    font-size: 18px;
    color: #444;
}

.btn-register {
    background: #7000b7;
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-register:hover {
    background: #59008f;
}

.hero-modern-right {
    max-width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-modern-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

.hero-bottom-band {
    background-color: pink;
}

/* ANIMATION */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-title {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.fade-in-text {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.fade-in-cta {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.fade-in-image {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.8s;
    opacity: 0;
}



/* LEARN MORE */
.metrics-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 0 20px;
}

.metric {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16, 12, 56, 0.12);
    padding: 16px 18px;
    text-align: center;
}

.metric h3 {
    margin: 0;
    font-size: 28px;
    color: #3b0073;
}

.metric p {
    margin: 6px 0 0;
    color: #6b6e80;
}

.learn-more {
    background: #f9f7ff;
    color: #2d0a59;
    text-align: center;
    padding: 60px 20px 80px;
}

.learn-more h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.learn-more .hero-btn {
    background: linear-gradient(135deg, #7000b7, #4a007f);
    color: white;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.learn-more .hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 0, 115, 0.25);
}


/* BOXES */
.boxes {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-top: -60px;
}

.top-row,
.bottom-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 10px 20px 5px rgba(152, 0, 207, 0.12);
    margin: 15px 10px;
    width: 250px;
    text-align: center;
}

.box img {
    width: 30px;
}

.box h3 {
    font-size: 16px;
    margin: 6px 0;
    font-weight: 600;
}

.box p {
    font-size: 12px;
    margin: 6px 0;
}

.box-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.box-fade.visible {
    opacity: 1;
    transform: translateY(0);
}


/* WHY STUDYLOOM */
.testimonial {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: center;
}

.testimonial-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16, 12, 56, 0.12);
    padding: 24px;
}

.quote {
    font-size: 18px;
    line-height: 1.6;
    color: #2d0a59;
    margin: 0 0 10px;
}

.attribution {
    margin: 0;
    color: #6b6e80;
}

.testimonial-cta {
    background: linear-gradient(135deg, #5e00b7, #3b0073);
    color: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 14px 36px rgba(59, 0, 115, 0.28);
}

.testimonial-cta h3 {
    margin: 0 0 12px;
}

.testimonial-cta .hero-btn {
    background: white;
    color: #3b0073;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
}

.features {
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 38%),
                linear-gradient(120deg, #5e00b7 0%, #3b0073 100%);
    padding: 90px 20px;
    text-align: center;
    color: #fff;
    position: relative;
}

.features h2 {
    margin-bottom: 12px;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.features-subtitle {
    font-size: 18px;
    color: #e8dcff;
    margin-bottom: 40px;
}

.feature-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-item {
    width: 300px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.feature-img {
    width: 84px;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 16px;
}

.features p {
    font-size: 16px;
    color: #f6edff;
}

.divider {
    height: 20px;
    background: linear-gradient(90deg, rgb(94, 0, 183), rgb(112, 0, 153));
    width: 100vw;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* TIMELINE */
.timeline {
    background: linear-gradient(180deg, #f9f8ff 0%, #ffffff 100%);
    padding: 100px 20px;
    text-align: center;
}

.timeline h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.timeline-steps {
    display: flex;
    justify-content: space-around;
    /* Or space-evenly */
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1 1 200px;
    max-width: 300px;
    text-align: center;
}

.step .circle {
    width: 50px;
    height: 50px;
    background: #950dd3;
    color: white;
    font-size: 24px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA */
.cta-footer {
    background: linear-gradient(120deg, #3b0073, #5e00b7);
    color: white;
    text-align: center;
    padding: 60px 20px 40px;
}

.cta-footer h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.cta-footer .hero-btn {
    background: white;
    color: #700099;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.cta-footer .hero-btn:hover {
    background: #eee;
}

/* RESPONSIVE TWEAKS */
@media only screen and (max-width: 768px) {
    .hero-modern-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-modern-left,
    .hero-modern-right {
        max-width: 100%;
    }

    .hero-modern-left h1 {
        font-size: 36px;
    }

    .top-row,
    .bottom-row {
        flex-direction: column;
        align-items: center;
    }

    .timeline-steps {
        flex-direction: column;
        align-items: center;
    }

    .feature-container {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 90%;
    }

    .metrics-strip {
        margin-top: 0;
    }
}
