/* Student Zone — shared (homepage + student-zone page) */

.sz-page {
    font-family: var(--font-body, "DM Sans", sans-serif);
    background: linear-gradient(180deg, var(--surface, #f6f8fc) 0%, #fff 100%);
    padding: 48px 20px 72px;
    min-height: calc(100vh - 180px);
}

.sz-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.sz-hero {
    text-align: center;
    margin-bottom: 40px;
}

.sz-hero .eyebrow {
    display: inline-block;
    font-family: var(--font-display, "Instrument Sans", sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent, #d61f26);
    margin-bottom: 12px;
}

.sz-hero h1 {
    font-family: var(--font-display, "Instrument Sans", sans-serif);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--bluePrimary, #0c1b4d);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.sz-hero p {
    font-size: 16px;
    color: var(--muted, #5c677a);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.sz-section {
    margin-bottom: 32px;
}

.sz-section-title {
    font-family: var(--font-display, "Instrument Sans", sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted, #5c677a);
    margin-bottom: 14px;
    padding-left: 4px;
}

.sz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.sz-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line, #e6eaf2);
    border-radius: 12px;
    padding: 18px 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(12, 27, 77, 0.05));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--card-accent, var(--accent, #d61f26));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sz-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 12px 30px rgba(12, 27, 77, 0.1));
    border-color: #d5dceb;
}

.sz-card:hover::before {
    opacity: 1;
}

.sz-card:hover .sz-card-arrow {
    transform: translateX(4px);
    color: var(--bluePrimary, #0c1b4d);
}

.sz-card-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--card-accent, var(--accent, #d61f26));
    background: var(--icon-bg, rgba(214, 31, 38, 0.1));
}

.sz-card-icon svg {
    width: 21px;
    height: 21px;
}

.sz-card-body {
    flex: 1;
    min-width: 0;
}

.sz-card-body h3 {
    font-family: var(--font-display, "Instrument Sans", sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink, #152038);
    margin-bottom: 5px;
    line-height: 1.3;
}

.sz-card-body p {
    font-size: 13px;
    color: var(--muted, #5c677a);
    line-height: 1.45;
    margin: 0;
}

.sz-card-arrow {
    flex-shrink: 0;
    font-size: 18px;
    color: #9aa3b5;
    align-self: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.sz-card--download {
    --card-accent: #d61f26;
    --icon-bg: rgba(214, 31, 38, 0.1);
}

.sz-card--verify {
    --card-accent: #0c1b4d;
    --icon-bg: rgba(12, 27, 77, 0.08);
}

.sz-card--exam {
    --card-accent: #15803d;
    --icon-bg: rgba(21, 128, 61, 0.1);
}

.sz-note {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: #7a8499;
    background: #fff;
    border: 1px dashed #d8deea;
    border-radius: 10px;
    padding: 14px 18px;
}

.sz-note a {
    color: var(--bluePrimary, #0c1b4d);
    font-weight: 600;
    text-decoration: none;
}

/* Themed full student-zone page */
.sz-page--themed {
    background: linear-gradient(180deg, #f3f6fb 0%, #ffffff 55%);
    padding: 56px 20px 72px;
}

.student-zone-page .sz-hero {
    display: none;
}

.sz-help {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 26px;
    background: #fff;
    border: 1px solid var(--line, #e6eaf2);
    border-radius: 14px;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(12, 27, 77, 0.05));
}

.sz-help h3 {
    font-family: var(--font-display, "Instrument Sans", sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink, #152038);
    margin-bottom: 6px;
}

.sz-help p {
    font-size: 14px;
    color: var(--muted, #5c677a);
    line-height: 1.55;
    margin: 0;
}

.sz-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 792px) {
    .sz-help {
        flex-direction: column;
        align-items: flex-start;
    }

    .sz-help-actions {
        width: 100%;
    }

    .sz-help-actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 640px) {
    .sz-help-actions {
        flex-direction: column;
    }

    .sz-help-actions .btn {
        width: 100%;
    }
}

/* Homepage section */
.student-container.sz-home {
    padding: 80px var(--gutter, 64px);
    background:
        linear-gradient(180deg, #f3f6fb 0%, #f8fafc 100%);
}

.student-container.sz-home .container {
    max-width: var(--container, 1160px);
    margin: 0 auto;
}

.sz-home-sub {
    text-align: center;
    font-size: 16px;
    color: var(--muted, #5c677a);
    margin: 0 auto;
    max-width: 520px;
    line-height: 1.55;
}

.student-container.sz-home .sz-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.sz-home-footer {
    text-align: center;
    margin-top: 32px;
}

.sz-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display, "Instrument Sans", sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--bluePrimary, #0c1b4d);
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 8px 20px rgba(12, 27, 77, 0.2);
}

.sz-view-all:hover {
    transform: translateY(-2px);
    background: var(--blueDeep, #071233);
}

@media (max-width: 992px) {
    .student-container.sz-home {
        padding: 64px 24px;
    }

    .student-container.sz-home .sz-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sz-page {
        padding: 32px 16px 56px;
    }

    .sz-grid,
    .student-container.sz-home .sz-grid {
        grid-template-columns: 1fr;
    }

    .student-container.sz-home {
        padding: 48px 16px;
    }
}
