/* =========================================================
   STUDENTS PAGE — modern UI
   Brand colors reused from the rest of the site:
   purple #423f9e / #5b57d1, ink #14142b
========================================================= */

:root {
    --st-purple: #5b57d1;
    --st-purple-deep: #423f9e;
    --st-ink: #14142b;
    --st-muted: #6a6a7a;
    --st-bg: #ffffff;
    --st-bg-alt: #f7f7fb;
    --st-border: #ecebf5;
    --st-radius: 18px;
    --st-shadow: 0 10px 30px rgba(20, 20, 43, 0.08);
    --st-shadow-hover: 0 20px 45px rgba(66, 63, 158, 0.18);
}

.students-section {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--st-bg);
}

/* ===== Hero ===== */

.students-hero {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 72px 6vw 48px;
}

.students-eyebrow {
    display: inline-block;
    color: var(--st-purple);
    background: rgba(91, 87, 209, 0.1);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.students-heading {
    color: var(--st-ink);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.students-sub {
    color: var(--st-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== Stats strip ===== */

.students-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--st-border);
    max-width: 1100px;
    margin: 0 auto 80px;
    border-radius: var(--st-radius);
    overflow: hidden;
    box-shadow: var(--st-shadow);
}

.stat {
    background: #ffffff;
    text-align: center;
    padding: 32px 16px;
}

.stat-number {
    display: block;
    color: var(--st-purple-deep);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--st-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== Generic block heading ===== */

.students-block {
    max-width: 1160px;
    margin: 0 auto;
    padding: 64px 6vw;
    text-align: center;
}

.students-block.alt {
    background: var(--st-bg-alt);
    max-width: none;
    border-radius: 28px;
    margin: 0 6vw 0;
    width: auto;
}

.block-heading {
    color: var(--st-ink);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.block-sub {
    color: var(--st-muted);
    font-size: 1rem;
    margin-bottom: 44px;
}

/* ===== Resource cards ===== */

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.resource-card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 28px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--st-shadow-hover);
    border-color: transparent;
}

.resource-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.resource-card h3 {
    color: var(--st-ink);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.resource-card p {
    color: var(--st-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ===== Club pills ===== */

.club-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.club-pill {
    background: #ffffff;
    color: var(--st-purple-deep);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: var(--st-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.club-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--st-shadow-hover);
}

/* ===== Testimonials ===== */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 28px;
    box-shadow: var(--st-shadow);
}

.testimonial-card p {
    color: var(--st-ink);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.testimonial-card footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card footer img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card footer strong {
    display: block;
    color: var(--st-ink);
    font-size: 0.9rem;
}

.testimonial-card footer span {
    color: var(--st-muted);
    font-size: 0.8rem;
}

/* ===== Portal CTA ===== */

.students-cta {
    max-width: 1100px;
    margin: 40px auto 80px;
    background: linear-gradient(120deg, var(--st-purple-deep), var(--st-purple) 70%, #8886e0);
    border-radius: 28px;
    padding: 52px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    box-shadow: var(--st-shadow-hover);
}

.cta-text h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    max-width: 420px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: #ffffff;
    color: var(--st-purple-deep);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 13px 28px;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 13px 28px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Responsive ===== */

@media (max-width: 980px) {
    .students-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .resource-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .students-cta {
        justify-content: center;
        text-align: center;
    }
    .cta-text p {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .students-heading {
        font-size: 2.1rem;
    }
    .students-stats {
        grid-template-columns: 1fr;
    }
    .resource-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .students-block.alt {
        margin: 0 4vw;
        padding: 48px 5vw;
    }
}