
:root {
    --green: #078b39;
    --green-dark: #05632b;
    --lime: #a6e22e;
    --blue: #0f63e6;
    --purple: #6532d9;
    --orange: #f26b21;
    --text: #091528;
    --muted: #3e4a5f;
    --card: #ffffff;
    --shadow: 0 16px 40px rgba(15, 35, 75, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7fbf8;
    color: var(--text);
}

.students-page {
    max-width: 1780px;
    margin: 0 auto;
    padding: 14px;
}

.student-hero {
  position: relative;
  min-height: 430px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 38% 62%;
  background: #030a46 url("../images/student-hero-bg.png?v=3") center right / contain no-repeat;
  box-shadow: var(--shadow);
}

.student-hero__content {
    position: relative;
    z-index: 3;
    padding: 44px 48px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 255, 235, .94);
    color: var(--green-dark);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.student-hero h1 {
    font-size: clamp(42px, 4.3vw, 76px);
    line-height: .98;
    margin: 0 0 30px;
    letter-spacing: -1.5px;
}

.student-hero h1 span {
    color: var(--lime);
}

.student-hero p {
    font-size: clamp(18px, 1.6vw, 26px);
    line-height: 1.35;
    max-width: 520px;
    margin: 0 0 30px;
    color: rgba(255,255,255,.94);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.students-page .hero-actions .btn {
  font-size: 15px;
}

.students-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.students-page .btn:hover {
    transform: translateY(-2px);
}

.students-page .btn-primary {
    background: linear-gradient(180deg, #0fb84f, var(--green));
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 150, 60, .26);
}

.students-page .btn-outline {
    color: #fff;
    border: 2px solid rgba(255,255,255,.75);
    background: rgba(255,255,255,.08);
}

.students-page .btn-blue {
    background: var(--blue);
    color: #fff;
    min-height: 48px;
}

.student-hero__art {
    position: relative;
    min-height: 430px;
}

.hero-stat {
    position: absolute;
    right: 14%;
    color: #fff;
    border-radius: 16px;
    padding: 18px 22px;
    backdrop-filter: blur(6px);
    background: rgba(34, 51, 125, .78);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.hero-stat strong {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.hero-stat span {
    display: block;
    font-size: 16px;
    opacity: .92;
}

.hero-stat--level {
    top: 54px;
    width: 275px;
}

.hero-stat--points {
    top: 188px;
    width: 205px;
}

.hero-stat--goal {
    top: 298px;
    width: 225px;
}

.mini-progress,
.xp-bar {
    height: 12px;
    background: rgba(255,255,255,.35);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.mini-progress i,
.xp-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8de031, #23b7ff);
}

.student-features {
    position: relative;
    z-index: 5;
    margin: -10px 34px 22px;
    background: #fff;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.student-feature {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 18px;
    align-items: center;
    padding: 34px 26px;
    min-height: 160px;
    border-right: 1px solid #e6e8ee;
}

.student-feature:last-child {
    border-right: 0;
}

.feature-icon {
    width: 115px;
    height: 115px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.feature-icon--practice { background-image: url("../images/icon-practice.png?v=2"); }
.feature-icon--rewards { background-image: url("../images/icon-rewards.png?v=2"); }
.feature-icon--progress { background-image: url("../images/icon-progress.png?v=2"); }
.feature-icon--compete { background-image: url("../images/icon-compete.png?v=2"); }

.student-feature h3 {
    margin: 0 0 10px;
    font-size: 25px;
}

.student-feature:nth-child(1) h3 { color: var(--blue); }
.student-feature:nth-child(2) h3 { color: var(--purple); }
.student-feature:nth-child(3) h3 { color: var(--green); }
.student-feature:nth-child(4) h3 { color: var(--orange); }

.student-feature p {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.45;
}

.student-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 34px 28px;
}

.student-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}

.student-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.student-card--level {
    background-image: url("../images/card-level-up.png?v=2");
    color: #fff;
}

.student-card--level::before {
    background: linear-gradient(90deg, rgba(42, 20, 120, .95), rgba(42, 20, 120, .55) 46%, rgba(42, 20, 120, .08));
}

.student-card--goal {
    background-image: url("../images/card-daily-goal.png?v=2");
}

.student-card--goal::before {
    background: linear-gradient(90deg, rgba(249, 255, 245, .96), rgba(249, 255, 245, .86) 46%, rgba(249, 255, 245, .1));
}

.student-card--encourage {
    background-image: url("../images/card-youve-got-this.png?v=2");
}

.student-card--encourage::before {
    background: linear-gradient(90deg, rgba(240, 248, 255, .96), rgba(240, 248, 255, .86) 46%, rgba(240, 248, 255, .1));
}

.student-card__content {
  position: relative;
  z-index: 2;
  padding: 30px;
  max-width: 58%;
}

.student-card h2 {
    margin: 0 0 14px;
    font-size: 23px;
}

.student-card p {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.45;
}

.student-card--goal h2 {
    color: var(--green);
}

.student-card--encourage h2 {
    color: #0b54cf;
}

.xp-bar {
    width: 240px;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(255,255,255,.25);
    margin-bottom: 16px;
}

.student-card--goal .xp-bar {
    background: #dce8ef;
}

.goal-pill {
    display: inline-flex;
    padding: 9px 28px;
    background: linear-gradient(180deg, #14b850, #078b39);
    color: #fff;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
}

@media (max-width: 1150px) {
    .student-hero {
        grid-template-columns: 1fr;
        background:
            linear-gradient(90deg, rgba(5, 12, 35, .92), rgba(5, 12, 35, .5)),
            url("../images/student-hero-bg.png") center / cover no-repeat;
    }

    .student-hero__art {
        display: none;
    }

    .student-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .student-feature:nth-child(2) {
        border-right: 0;
    }

    .student-cards {
        grid-template-columns: 1fr;
    }

    .student-card__content {
        max-width: 62%;
    }
}

@media (max-width: 700px) {
    .students-page {
        padding: 8px;
    }

    .student-hero {
        min-height: auto;
    }

    .student-hero__content {
        padding: 34px 24px;
    }

    .student-features {
        margin: 16px 0;
        grid-template-columns: 1fr;
    }

    .student-feature {
        grid-template-columns: 84px 1fr;
        border-right: 0;
        border-bottom: 1px solid #e6e8ee;
        padding: 22px;
    }

    .feature-icon {
        width: 72px;
        height: 72px;
    }

    .student-cards {
        padding: 0 0 20px;
    }

    .student-card {
        min-height: 280px;
    }

    .student-card__content {
        padding: 28px;
        max-width: 74%;
    }
}
