/* =========================================================
   SiliBot Programs for Schools
   Hands-on Learning page styling
   ========================================================= */


/* ---------------------------------------------------------
   Main page wrapper
   Keeps the content centered and gives the page breathing room.
   --------------------------------------------------------- */
.programs-page {
    width: 100%;
    overflow: hidden;
    background: #f7faff;
    color: #172033;
}


/* ---------------------------------------------------------
   Hero section
   Creates the main introduction area for Programs for Schools.
   --------------------------------------------------------- */
.programs-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 30px 70px;
    text-align: center;
}


/* Small label above the main heading. */
.programs-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #2563eb;
}


/* Main page heading. */
.programs-hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
}


/* Hero introduction text. */
.programs-hero p {
    max-width: 760px;
    margin: 24px auto 0;
    font-size: 18px;
    line-height: 1.8;
    color: #5b6475;
}


/* ---------------------------------------------------------
   Program level section
   Provides the main structure for each learning level.
   --------------------------------------------------------- */
.program-level {
    max-width: 1200px;
    margin: 0 auto;
    padding: 75px 30px;
}


/* Adds separation between the two program levels. */
.advanced-level {
    border-top: 1px solid #dfe7f2;
}


/* ---------------------------------------------------------
   Program level heading
   Displays the section number, level and class range.
   --------------------------------------------------------- */
.program-level-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 42px;
}


/* Large section number. */
.level-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 16px;
    background: #e8f0ff;
    color: #2563eb;
    font-size: 18px;
    font-weight: 800;
}


/* Small level title. */
.level-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #2563eb;
}


/* Class range heading. */
.program-level-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -1px;
}


/* ---------------------------------------------------------
   Program cards grid
   Creates a responsive layout for the individual programs.
   --------------------------------------------------------- */
.program-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}


/* Advanced section uses four cards across large screens. */
.advanced-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* ---------------------------------------------------------
   Individual program card
   Creates the premium technology/education card appearance.
   --------------------------------------------------------- */
.program-card {
    position: relative;
    padding: 32px;
    min-height: 310px;
    border: 1px solid #e0e7f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(26, 52, 93, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}


/* Card hover effect for desktop visitors. */
.program-card:hover {
    transform: translateY(-7px);
    border-color: #b9cdf5;
    box-shadow: 0 20px 45px rgba(26, 52, 93, 0.12);
}


/* ---------------------------------------------------------
   Program icon
   Gives every program a recognizable visual starting point.
   --------------------------------------------------------- */
.program-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 28px;
    border-radius: 17px;
    background: #eef4ff;
    font-size: 27px;
}


/* Program title. */
.program-card h3 {
    margin: 0 0 14px;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 750;
    color: #172033;
}


/* Program description. */
.program-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: #667085;
}


/* ---------------------------------------------------------
   Program link
   Creates the visual action at the bottom of each card.
   --------------------------------------------------------- */
.program-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    transition: gap 0.2s ease;
}


/* Moves the arrow slightly when the visitor hovers. */
.program-link:hover {
    gap: 13px;
}


/* Arrow styling. */
.program-link span {
    font-size: 18px;
    line-height: 1;
}


/* ---------------------------------------------------------
   Call-to-action section
   Gives schools a clear next step after viewing the programs.
   --------------------------------------------------------- */
.programs-cta {
    max-width: 1140px;
    margin: 45px auto 90px;
    padding: 65px 40px;
    border-radius: 30px;
    background: #eaf2ff;
    text-align: center;
}


/* CTA heading. */
.programs-cta h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1px;
}


/* CTA description. */
.programs-cta p {
    max-width: 680px;
    margin: 18px auto 30px;
    font-size: 16px;
    line-height: 1.75;
    color: #5b6475;
}


/* CTA button. */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* CTA button hover effect. */
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}


/* CTA arrow. */
.cta-button span {
    font-size: 18px;
}


/* ---------------------------------------------------------
   Tablet layout
   Reduces the Advanced section from four cards to two.
   --------------------------------------------------------- */
@media (max-width: 950px) {

    .advanced-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ---------------------------------------------------------
   Mobile layout
   Converts all program grids to one column.
   --------------------------------------------------------- */
@media (max-width: 650px) {

    /* Reduce hero spacing on small screens. */
    .programs-hero {
        padding: 65px 20px 50px;
    }


    /* Reduce hero paragraph size on small screens. */
    .programs-hero p {
        font-size: 16px;
    }


    /* Reduce section padding on small screens. */
    .program-level {
        padding: 55px 20px;
    }


    /* Stack section heading elements naturally. */
    .program-level-heading {
        gap: 16px;
        margin-bottom: 30px;
    }


    /* Reduce number box size. */
    .level-number {
        width: 48px;
        height: 48px;
        border-radius: 13px;
        font-size: 15px;
    }


    /* Make all program cards single-column. */
    .program-grid,
    .advanced-grid {
        grid-template-columns: 1fr;
    }


    /* Reduce card padding on mobile. */
    .program-card {
        min-height: auto;
        padding: 26px;
    }


    /* Reduce CTA spacing on mobile. */
    .programs-cta {
        margin: 30px 20px 60px;
        padding: 45px 25px;
        border-radius: 24px;
    }

}