/* =========================================================
   HAHU YOUTH TECHNOLOGY
   LEARNING PATHWAY
   ========================================================= */

.pathway-hero,
.pathway-overview,
.pathway-phase,
.pathway-future {

    width:
        min(
            1180px,
            calc(100% - 36px)
        );

    margin:
        0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.pathway-hero {

    padding:
        58px 0 52px;

    text-align: center;
}

.pathway-hero-inner {

    max-width: 800px;

    margin:
        0 auto;
}

.pathway-hero h1 {

    margin:
        0 0 14px;

    color:
        var(--navy);

    font-size:
        clamp(
            2.3rem,
            4.5vw,
            4rem
        );

    line-height:
        1;

    letter-spacing:
        -.04em;
}

.pathway-hero h1 span {

    color:
        var(--purple);
}

.pathway-hero p {

    max-width: 680px;

    margin:
        0 auto 20px;

    color:
        #617685;

    line-height:
        1.65;
}

.pathway-hero-actions {

    display:
        flex;

    flex-wrap:
        wrap;

    justify-content:
        center;

    gap:
        9px;
}

.pathway-primary-button,
.pathway-secondary-button {

    min-height:
        43px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        9px 15px;

    border-radius:
        11px;

    font-size:
        .80rem;

    font-weight:
        850;
}

.pathway-primary-button {

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--purple)
        );

    color:
        #ffffff;
}

.pathway-secondary-button {

    border:
        1px solid
        #cad9e4;

    background:
        #ffffff;

    color:
        var(--navy);
}


/* =========================================================
   OVERVIEW
   ========================================================= */

.pathway-overview {

    padding:
        54px 0;

    border-top:
        1px solid
        #e3e9ef;
}

.journey-strip {

    max-width:
        900px;

    margin:
        26px auto 0;

    display:
        grid;

    grid-template-columns:
        1fr auto 1fr auto 1fr auto 1fr;

    align-items:
        center;

    gap:
        10px;
}

.journey-stage {

    min-width:
        0;

    padding:
        17px 10px;

    text-align:
        center;

    border:
        1px solid
        var(--border);

    border-radius:
        15px;

    background:
        #ffffff;
}

.journey-stage span {

    display:
        block;

    color:
        var(--purple);

    font-size:
        .62rem;

    font-weight:
        900;
}

.journey-stage strong {

    display:
        block;

    margin:
        3px 0;

    color:
        var(--navy);
}

.journey-stage small {

    color:
        #788996;
}

.journey-arrow {

    color:
        #9aabb7;

    font-weight:
        900;
}


/* =========================================================
   PHASE
   ========================================================= */

.pathway-phase {

    padding:
        58px 0;
}

.phase-one {

    border-top:
        1px solid
        #e3e9ef;
}

.phase-two {

    border-bottom:
        1px solid
        #e3e9ef;
}

.phase-heading {

    max-width:
        780px;

    margin-bottom:
        27px;

    display:
        flex;

    gap:
        17px;

    align-items:
        flex-start;
}

.phase-heading-number {

    width:
        52px;

    height:
        52px;

    flex:
        0 0 52px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        15px;

    background:
        var(--navy);

    color:
        #ffffff;

    font-weight:
        900;
}

.phase-two
.phase-heading-number {

    background:
        var(--purple);
}

.phase-kicker {

    display:
        block;

    margin-bottom:
        3px;

    color:
        var(--blue);

    font-size:
        .66rem;

    font-weight:
        900;

    letter-spacing:
        .10em;
}

.phase-heading h2 {

    margin:
        0 0 6px;

    color:
        var(--navy);

    font-size:
        clamp(
            1.8rem,
            3vw,
            2.5rem
        );
}

.phase-heading p {

    margin:
        0;

    color:
        #657886;
}


/* =========================================================
   MODULE GRID
   ========================================================= */

.module-grid {

    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        14px;
}

.module-card {

    position:
        relative;

    min-width:
        0;

    padding:
        20px;

    border:
        1px solid
        var(--border);

    border-radius:
        17px;

    background:
        #ffffff;

    box-shadow:
        0 6px 16px
        rgba(42,63,83,.05);
}

.module-number {

    position:
        absolute;

    top:
        14px;

    right:
        15px;

    color:
        rgba(23,61,98,.25);

    font-size:
        .63rem;

    font-weight:
        900;
}

.module-icon {

    width:
        45px;

    height:
        45px;

    display:
        grid;

    place-items:
        center;

    margin-bottom:
        11px;

    border-radius:
        13px;

    background:
        #edf6ff;

    font-size:
        1.25rem;
}

.phase-two
.module-icon {

    background:
        #f4efff;
}

.module-card h3 {

    margin:
        0 0 5px;

    color:
        var(--navy);

    font-size:
        1rem;
}

.module-card p {

    margin:
        0;

    color:
        #6c7e8a;

    font-size:
        .78rem;

    line-height:
        1.55;
}


/* =========================================================
   CAPSTONE
   ========================================================= */

.phase-capstone {

    margin-top:
        18px;

    padding:
        20px;

    display:
        grid;

    grid-template-columns:
        auto
        1fr
        auto;

    align-items:
        center;

    gap:
        17px;

    border:
        1px solid
        #cfdfeb;

    border-radius:
        17px;

    background:
        linear-gradient(
            135deg,
            #f5faff,
            #f4f8fb
        );
}

.phase-two-capstone {

    background:
        linear-gradient(
            135deg,
            #faf7ff,
            #f5f3ff
        );
}

.capstone-icon {

    width:
        50px;

    height:
        50px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        14px;

    background:
        #ffffff;

    font-size:
        1.4rem;
}

.phase-capstone span {

    color:
        var(--purple);

    font-size:
        .62rem;

    font-weight:
        900;

    letter-spacing:
        .08em;
}

.phase-capstone h3 {

    margin:
        2px 0 3px;

    color:
        var(--navy);
}

.phase-capstone p {

    margin:
        0;

    color:
        #687b88;

    font-size:
        .78rem;
}

.future-button {

    min-height:
        39px;

    padding:
        8px 12px;

    border:
        1px solid
        #d6e0e7;

    border-radius:
        10px;

    background:
        #eef2f5;

    color:
        #83919b;

    font-weight:
        800;

    cursor:
        not-allowed;
}


/* =========================================================
   CONNECTOR
   ========================================================= */

.phase-connector {

    width:
        min(
            700px,
            calc(100% - 36px)
        );

    margin:
        4px auto;

    padding:
        22px;

    text-align:
        center;
}

.phase-connector span {

    display:
        block;

    color:
        #7b8a96;

    font-size:
        .74rem;
}

.phase-connector strong {

    display:
        block;

    color:
        var(--navy);

    font-size:
        1.15rem;
}

.phase-connector div {

    margin-top:
        5px;

    color:
        var(--purple);

    font-size:
        1.5rem;
}


/* =========================================================
   FUTURE DEVELOPMENT NOTE
   ========================================================= */

.pathway-future {

    margin-top:
        52px;

    margin-bottom:
        55px;

    padding:
        27px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        28px;

    border:
        1px solid
        #dce5ec;

    border-radius:
        20px;

    background:
        #ffffff;
}

.pathway-future h2 {

    margin-bottom:
        6px;

    color:
        var(--navy);
}

.pathway-future p {

    max-width:
        720px;

    margin:
        0;

    color:
        #687b88;
}

.back-home-button {

    flex:
        0 0 auto;

    min-height:
        41px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        8px 13px;

    border-radius:
        10px;

    background:
        var(--navy);

    color:
        #ffffff;

    font-size:
        .75rem;

    font-weight:
        850;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .journey-strip {

        grid-template-columns:
            1fr;
    }

    .journey-arrow {

        transform:
            rotate(90deg);

        text-align:
            center;
    }

    .module-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }

    .phase-capstone {

        grid-template-columns:
            auto
            1fr;
    }

    .future-button {

        grid-column:
            1 / -1;
    }

    .pathway-future {

        flex-direction:
            column;

        align-items:
            flex-start;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .pathway-hero {

        padding:
            42px 0;
    }

    .pathway-hero h1 {

        font-size:
            2.45rem;
    }

    .pathway-hero-actions {

        flex-direction:
            column;
    }

    .pathway-primary-button,
    .pathway-secondary-button {

        width:
            100%;
    }

    .pathway-overview,
    .pathway-phase {

        padding:
            42px 0;
    }

    .phase-heading {

        flex-direction:
            column;
    }

    .module-grid {

        grid-template-columns:
            1fr;
    }

    .phase-capstone {

        grid-template-columns:
            1fr;
    }

    .pathway-future {

        width:
            calc(100% - 28px);

        padding:
            21px;
    }

}

/* =========================================================
   COMPACT DESKTOP PATHWAY HEADINGS
   ========================================================= */

@media (min-width: 901px) {

    /* Main hero heading — one line */
    .pathway-hero h1 {
        font-size: clamp(2.5rem, 4vw, 3.45rem);
        line-height: 1.05;
        white-space: nowrap;
        margin-bottom: 12px;
    }

    /* Allow Explore.Build.Create.Innovate on one line */
    .pathway-hero h1 span {
        display: inline;
    }

    /* Make hero slightly more compact */
    .pathway-hero {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .pathway-hero p {
        margin-bottom: 16px;
    }


    /* Learning Journey heading — one line */
    .pathway-overview .section-heading {
        max-width: 1050px;
        margin-left: auto;
        margin-right: auto;
    }

    .pathway-overview .section-heading h2 {
        font-size: clamp(1.8rem, 3vw, 2.55rem);
        line-height: 1.08;
        white-space: nowrap;
        margin-top: 5px;
        margin-bottom: 8px;
    }

    /* Reduce unnecessary vertical space */
    .pathway-overview {
        padding-top: 38px;
        padding-bottom: 42px;
    }

}


