/* =========================================================
   CODNESTA PROGRAMS PAGE
   Page-specific styles only

   The hero is controlled by:
   sections/hero.css
========================================================= */


/* =========================================================
   PAGE FOUNDATION
========================================================= */

.program-page {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    color: var(--color-text, #263946);
}

.program-page *,
.program-page *::before,
.program-page *::after {
    box-sizing: border-box;
}

.program-page img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   HERO CUSTOM ADJUSTMENT

   The full hero design comes from hero.css.
========================================================= */

.page-hero--programs .page-hero__background-word {
    font-size: clamp(4rem, 15vw, 11rem);
    letter-spacing: 0.045em;
}


/* =========================================================
   PROGRAM SECTIONS
========================================================= */

.program-section {
    position: relative;
    padding: 6.5rem 0;
    background: #ffffff;
}

.program-section--soft {
    background: #f5f8fa;
}

.program-section[id] {
    scroll-margin-top: 6rem;
}


/* =========================================================
   SHARED HEADINGS
========================================================= */

.program-heading {
    max-width: 760px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.program-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    margin-bottom: 1rem;

    color: var(--color-gold, #f4b400);

    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.program-eyebrow::before {
    content: "";

    width: 26px;
    height: 3px;
    flex-shrink: 0;

    border-radius: 999px;
    background: currentColor;
}

.program-title {
    margin: 0;

    color: var(--color-navy, #0a3857);

    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.program-title span {
    display: block;
    color: var(--color-gold, #f4b400);
}

.program-title--small {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.program-description {
    max-width: 700px;
    margin: 1.25rem auto 0;

    color: var(--color-text-secondary, #667580);

    font-size: 1rem;
    line-height: 1.8;
}

.program-content .program-title {
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.program-content .program-description {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.program-content
.program-description
+ .program-description {
    margin-top: 1rem;
}


/* =========================================================
   PROGRAM INTRODUCTION
========================================================= */

.program-intro {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(340px, 0.85fr);

    align-items: start;
    gap: clamp(3rem, 7vw, 6rem);
}

.program-intro__content {
    max-width: 680px;
}

.program-intro__principles {
    display: grid;
    gap: 1.15rem;
}

.program-principle {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1rem;

    padding: 1.4rem;

    border: 1px solid #dce5ea;
    border-radius: 1rem;

    background: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 56, 87, 0.06);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.program-principle:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 180, 0, 0.65);
    box-shadow: 0 16px 38px rgba(10, 56, 87, 0.11);
}

.program-principle__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border: 3px solid var(--color-gold, #f4b400);
    border-radius: 50%;

    background: var(--color-navy, #0a3857);
    color: #ffffff;

    font-size: 0.85rem;
    font-weight: 900;
}

.program-principle__title {
    margin: 0 0 0.45rem;

    color: var(--color-navy, #0a3857);

    font-size: 1.05rem;
    font-weight: 800;
}

.program-principle__description {
    margin: 0;

    color: var(--color-text-secondary, #667580);

    font-size: 0.92rem;
    line-height: 1.65;
}


/* =========================================================
   TWO-COLUMN LAYOUT
========================================================= */

.program-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.program-content {
    max-width: 600px;
}


/* =========================================================
   IMAGE AREA
========================================================= */

.program-image {
    position: relative;

    min-height: 430px;
    overflow: hidden;

    border-radius: 1.5rem;
    background: #eaf0f4;
    box-shadow: 0 18px 45px rgba(10, 56, 87, 0.12);
}

.program-image img {
    width: 100%;
    height: 100%;
    min-height: 430px;

    object-fit: cover;
}

.program-image::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(6, 43, 69, 0.14),
            transparent 42%
        );
}


/* =========================================================
   LISTS
========================================================= */

.program-list {
    display: grid;
    gap: 0.9rem;

    margin: 1.75rem 0 0;
    padding: 0;

    list-style: none;
}

.program-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;

    color: var(--color-text, #263946);

    font-size: 0.96rem;
    line-height: 1.65;
}

.program-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 26px;
    height: 26px;
    margin-top: 1px;

    border-radius: 50%;

    background: #fff6d9;
    color: var(--color-navy, #0a3857);

    font-size: 0.74rem;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.program-list li:hover
.program-list__icon {
    transform: scale(1.08);
    background: var(--color-gold, #f4b400);
}


/* =========================================================
   ACTIONS
========================================================= */

.program-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;

    margin-top: 2rem;
}

.program-actions--center {
    justify-content: center;
}


/* =========================================================
   GRID SYSTEM
========================================================= */

.program-grid {
    display: grid;
    gap: 1.5rem;
}

.program-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* =========================================================
   PROGRAM CARDS
========================================================= */

.program-card {
    position: relative;
    display: flex;
    flex-direction: column;

    min-height: 285px;
    padding: 2rem;
    overflow: hidden;

    border: 1px solid #dce5ea;
    border-radius: 1.1rem;

    background: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 56, 87, 0.07);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-7px);
    border-color: rgba(244, 180, 0, 0.7);
    box-shadow: 0 18px 45px rgba(10, 56, 87, 0.12);
}

.program-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    margin-bottom: 1.4rem;

    border-radius: 1rem;

    background: #fff6d9;
    color: var(--color-navy, #0a3857);

    font-size: 1.35rem;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}

.program-card:hover
.program-card__icon {
    transform: translateY(-4px) rotate(-3deg);
    background: var(--color-navy, #0a3857);
    color: var(--color-gold, #f4b400);
}

.program-card__title {
    margin: 0 0 0.8rem;

    color: var(--color-navy, #0a3857);

    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.35;
}

.program-card__description {
    margin: 0;

    color: var(--color-text-secondary, #667580);

    font-size: 0.94rem;
    line-height: 1.75;
}


/* =========================================================
   BADGES
========================================================= */

.program-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;

    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;

    border-radius: 999px;

    background: #ffffff;
    color: var(--color-navy, #0a3857);
    box-shadow: inset 0 0 0 1px rgba(10, 56, 87, 0.12);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}


/* =========================================================
   CERTIFIED DEVELOPER PROGRAM
========================================================= */

#certified-developer {
    position: relative;
    overflow: hidden;
}

#certified-developer::before {
    content: "";

    position: absolute;
    top: -130px;
    left: -120px;

    width: 320px;
    height: 320px;

    border: 55px solid rgba(10, 56, 87, 0.035);
    border-radius: 50%;

    pointer-events: none;
}

#certified-developer .container {
    position: relative;
    z-index: 2;
}

#certified-developer
.program-grid--three
.program-card {
    min-height: 340px;
    padding: 2.25rem 2rem;
}


/* =========================================================
   DEVELOPMENT TRACKS
========================================================= */

.program-tracks {
    margin-top: 5.5rem;
    padding-top: 5rem;

    border-top: 1px solid #dce5ea;
}

.program-tracks .program-heading {
    margin-bottom: 3rem;
}

.program-card--track {
    min-height: 230px;
    justify-content: center;
    box-shadow: none;
}

.program-card--track::before {
    content: "</>";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    margin-bottom: 1.2rem;

    border-radius: 0.8rem;

    background: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 56, 87, 0.07);
    color: var(--color-navy, #0a3857);

    font-size: 0.8rem;
    font-weight: 900;
}

.program-card--track:hover {
    box-shadow: 0 18px 45px rgba(10, 56, 87, 0.12);
}


/* =========================================================
   WORKSHOP GALLERY
========================================================= */

.program-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.program-gallery-card {
    overflow: hidden;

    border: 1px solid #dce5ea;
    border-radius: 1.2rem;

    background: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 56, 87, 0.07);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.program-gallery-card:hover {
    transform: translateY(-7px);
    border-color: rgba(244, 180, 0, 0.7);
    box-shadow: 0 18px 45px rgba(10, 56, 87, 0.12);
}

.program-gallery-card__image {
    height: 240px;
    overflow: hidden;
}

.program-gallery-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.program-gallery-card:hover
.program-gallery-card__image img {
    transform: scale(1.05);
}

.program-gallery-card__content {
    padding: 1.7rem;
}

.program-gallery-card__title {
    margin: 0.9rem 0 0.75rem;

    color: var(--color-navy, #0a3857);

    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
}

.program-gallery-card__description {
    margin: 0;

    color: var(--color-text-secondary, #667580);

    font-size: 0.94rem;
    line-height: 1.7;
}


/* =========================================================
   PARTICIPATION STEPS
========================================================= */

.program-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    max-width: 1050px;
    margin: 0 auto;
}

.program-step {
    min-width: 180px;
    max-width: 210px;

    text-align: center;
}

.program-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;
    margin-bottom: 1rem;

    border: 4px solid var(--color-gold, #f4b400);
    border-radius: 50%;

    background: var(--color-navy, #0a3857);
    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 900;

    box-shadow: 0 9px 22px rgba(10, 56, 87, 0.16);
}

.program-step__title {
    margin: 0 0 0.55rem;

    color: var(--color-navy, #0a3857);

    font-size: 1rem;
    font-weight: 800;
}

.program-step__description {
    margin: 0;

    color: var(--color-text-secondary, #667580);

    font-size: 0.88rem;
    line-height: 1.6;
}

.program-step__line {
    width: 70px;
    height: 3px;
    flex-shrink: 0;

    margin: 33px 0.3rem 0;

    border-radius: 999px;
    background: var(--color-gold, #f4b400);
}


/* =========================================================
   FINAL CTA
========================================================= */

.program-cta {
    position: relative;
    max-width: 1050px;

    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 5rem) clamp(1.5rem, 5vw, 3.5rem);
    overflow: hidden;

    border-radius: 1.75rem;

    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(244, 180, 0, 0.22),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #062b45,
            var(--color-navy, #0a3857)
        );

    text-align: center;
    box-shadow: 0 25px 65px rgba(10, 56, 87, 0.15);
}

.program-cta::before {
    content: "";

    position: absolute;
    top: -110px;
    right: -90px;

    width: 270px;
    height: 270px;

    border: 50px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.program-cta > * {
    position: relative;
    z-index: 2;
}

.program-cta .program-eyebrow {
    justify-content: center;
}

.program-cta__title {
    max-width: 760px;
    margin: 0 auto;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.program-cta__description {
    max-width: 680px;
    margin: 1.3rem auto 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 1rem;
    line-height: 1.8;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.program-page a:focus-visible {
    outline: 3px solid var(--color-gold, #f4b400);
    outline-offset: 4px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .program-section {
        padding: 5.5rem 0;
    }

    .program-intro {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .program-intro__content {
        max-width: 760px;
    }

    .program-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-tracks {
        margin-top: 4.5rem;
        padding-top: 4rem;
    }
}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 850px) {

    .program-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .program-content {
        max-width: none;
    }

    .program-grid--three {
        grid-template-columns: 1fr;
    }

    .program-image,
    .program-image img {
        min-height: 370px;
    }

    #bootcamps .program-image {
        order: 2;
    }

    #bootcamps .program-content {
        order: 1;
    }

    .program-steps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1rem;
    }

    .program-step {
        min-width: 0;
        max-width: none;
    }

    .program-step__line {
        display: none;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .page-hero--programs .page-hero__background-word {
        font-size: clamp(3rem, 18vw, 5.5rem);
        letter-spacing: 0.02em;
    }

    .program-section {
        padding: 4.3rem 0;
    }

    .program-heading {
        margin-bottom: 2.5rem;
    }

    .program-title {
        font-size: clamp(1.9rem, 10vw, 2.7rem);
    }

    .program-grid--four,
    .program-gallery {
        grid-template-columns: 1fr;
    }

    .program-card,
    #certified-developer
    .program-grid--three
    .program-card,
    .program-card--track {
        min-height: auto;
    }

    .program-card {
        padding: 1.7rem 1.4rem;
    }

    .program-image,
    .program-image img {
        min-height: 300px;
    }

    .program-gallery-card__image {
        height: 220px;
    }

    .program-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .program-actions .button,
    .program-actions .button--secondary-dark {
        width: 100%;
        justify-content: center;
    }

    .program-tracks {
        margin-top: 3.5rem;
        padding-top: 3.25rem;
    }

    .program-steps {
        grid-template-columns: 1fr;
    }

    .program-cta {
        border-radius: 1.1rem;
    }
}