/* =============================================================
   Student Journey Widget — Frontend Stylesheet
   /wp-content/plugins/student-journey-widget/assets/student-journey.css
   ============================================================= */

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

/* ── Section wrapper ──────────────────────────────────────── */
.sj-section {
    font-family: 'Nunito', sans-serif;
    background: #f7f5f2;
    padding: 72px 24px 88px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Eyebrow / label ──────────────────────────────────────── */
.sj-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #e8380d;
    margin-bottom: 10px;
    font-family: 'Nunito', sans-serif;
}

/* ── Headings ─────────────────────────────────────────────── */
.sj-heading {
    font-family: 'Nunito', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.15;
}

.sj-subheading {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: #999;
    font-weight: 500;
    margin: 0 0 56px;
}

/* ── Timeline track ───────────────────────────────────────── */
.sj-track {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 1140px;
    margin: 0 auto;
}

/* Red connecting line */
.sj-line {
    position: absolute;
    top: 94px;
    left: 7%;
    right: 7%;
    height: 3px;
    background: linear-gradient(to right, #e8380d, #f56939);
    border-radius: 2px;
    z-index: 1;
    pointer-events: none;
}

/* ── Single step ──────────────────────────────────────────── */
.sj-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ── Icon card ────────────────────────────────────────────── */
.sj-icon-wrap {
    width: 112px;
    height: 112px;
    border-radius: 22px;
    background: linear-gradient(145deg, #f56939 0%, #e8380d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(232, 56, 13, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

/* Inner gloss overlay */
.sj-icon-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 28% 28%, rgba(255,255,255,0.22) 0%, transparent 65%);
    pointer-events: none;
}

.sj-icon-wrap:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(232, 56, 13, 0.38);
}

/* Featured (highlighted) step */
.sj-icon-wrap.sj-featured {
    width: 128px;
    height: 128px;
    border-radius: 26px;
    box-shadow: 0 12px 36px rgba(232, 56, 13, 0.42);
}

/* Icon itself (Font Awesome) */
.sj-icon-wrap i,
.sj-icon-wrap svg {
    color: #fff !important;
    fill: none;
    font-size: 34px;
    stroke: #fff;
    stroke-width: 1.8;
    line-height: 1;
    z-index: 1;
}

.sj-icon-wrap.sj-featured i,
.sj-icon-wrap.sj-featured svg {
    font-size: 42px;
}

/* Step number badge */
.sj-badge {
    position: absolute;
    top: -11px;
    right: -11px;
    background: #fff;
    color: #e8380d;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 800;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e8380d;
    z-index: 4;
    line-height: 1;
}

/* ── Dot connector ────────────────────────────────────────── */
.sj-dot {
    width: 14px;
    height: 14px;
    background: #e8380d;
    border-radius: 50%;
    border: 3px solid #f7f5f2;
    margin: 14px 0;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.sj-dot.sj-dot-lg {
    width: 18px;
    height: 18px;
}

/* ── Info card ────────────────────────────────────────────── */
.sj-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 12px 18px;
    width: 92%;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    text-align: center;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Featured card gets accent border */
.sj-card.sj-card-featured {
    border: 2px solid #e8380d;
}

/* Optional label */
.sj-optional {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #e8380d;
    margin: 0 0 4px;
}

/* Card title */
.sj-card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 6px;
}

/* Card description */
.sj-card-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    color: #999;
    line-height: 1.55;
    margin: 0;
    font-weight: 500;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablet: hide the horizontal line, stack horizontally in 2 rows */
@media (max-width: 1024px) {
    .sj-heading   { font-size: 30px; }
    .sj-icon-wrap { width: 90px; height: 90px; }
    .sj-icon-wrap.sj-featured { width: 104px; height: 104px; }
    .sj-line { top: 77px; }
}

/* Mobile: full vertical stack */
@media (max-width: 767px) {
    .sj-line     { display: none; }
    .sj-heading  { font-size: 26px; }
    .sj-subheading { font-size: 13px; margin-bottom: 36px; }

    .sj-track {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .sj-step {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        max-width: 440px;
        gap: 16px;
        text-align: left;
    }

    .sj-icon-wrap,
    .sj-icon-wrap.sj-featured {
        width: 72px;
        height: 72px;
        border-radius: 16px;
        flex-shrink: 0;
    }

    .sj-icon-wrap i,
    .sj-icon-wrap.sj-featured i { font-size: 26px !important; }

    .sj-dot { display: none; }

    .sj-card {
        width: 100%;
        text-align: left;
        align-items: flex-start;
        min-height: unset;
        padding: 12px 14px;
    }
}
