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

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


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

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

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

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


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

   The full hero design comes from hero.css.
   This only adjusts the long background word.
========================================================= */

.page-hero--opportunities .page-hero__background-word {
    font-size: clamp(3.4rem, 12vw, 9rem);
    letter-spacing: 0.025em;
}


/* =========================================================
   OPPORTUNITY SECTIONS
========================================================= */

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

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

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


/* =========================================================
   SECTION HEADINGS
========================================================= */

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

.opportunity-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;
}

.opportunity-eyebrow::before {
    content: "";
    width: 26px;
    height: 3px;
    flex-shrink: 0;
    border-radius: 999px;
    background: currentColor;
}

.opportunity-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;
}

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

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

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

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

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

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

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

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


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

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

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


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

.opportunity-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);
}

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

    object-fit: cover;
}

.opportunity-image::after {
    content: "";
    position: absolute;
    inset: 0;

    pointer-events: none;

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


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

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

    margin: 1.75rem 0 0;
    padding: 0;

    list-style: none;
}

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

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

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

.opportunity-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: #ffffff;
    color: var(--color-navy, #0a3857);
    box-shadow: 0 8px 22px rgba(10, 56, 87, 0.09);

    font-size: 0.74rem;

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

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


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

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

    margin-top: 2rem;
}

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


/* Optional dark-outline button */
.button--secondary-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;

    min-height: 52px;
    padding: 0.8rem 1.5rem;

    border: 2px solid var(--color-navy, #0a3857);
    border-radius: var(--radius-md, 0.65rem);

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

    font-weight: 800;
    text-decoration: none;

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

.button--secondary-dark:hover {
    transform: translateY(-3px);
    background: var(--color-navy, #0a3857);
    color: #ffffff;
}


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

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

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

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


/* =========================================================
   OPPORTUNITY CARDS
========================================================= */

.opportunity-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;
}

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

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

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

    border-radius: 1rem;

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

    font-size: 1.35rem;

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

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

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

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

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

.opportunity-card__description {
    margin: 0;

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

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


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

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

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

    border-radius: 999px;

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

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


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

#student-programs .opportunity-card {
    min-height: 300px;
}

#student-programs .opportunity-card__icon {
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(10, 56, 87, 0.09);
}


/* =========================================================
   CERTIFIED DEVELOPER LEVELS
========================================================= */

#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
.opportunity-grid--three
.opportunity-card {
    min-height: 340px;
    padding: 2.25rem 2rem;
}

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

.opportunity-tracks {
    margin-top: 5.5rem;
    padding-top: 5rem;
    border-top: 1px solid #dce5ea;
}

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

/* =========================================================
   TRACK CARDS
========================================================= */

.opportunity-card--track {
    min-height: 230px;
    padding: 0;
    overflow: hidden;
    justify-content: flex-start;
    box-shadow: none;
}

/* REMOVE OLD CODE ICON */
.opportunity-card--track::before {
    content: none !important;
    display: none !important;
}

/* =========================================================
   TRACK BANNER
========================================================= */

.opportunity-card__banner {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #eef3f6;
    flex-shrink: 0;
}

.opportunity-card__banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

/* =========================================================
   TRACK CONTENT
========================================================= */

.opportunity-card__content {
    padding: 1.3rem 1.4rem 1.5rem;
}

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

.opportunity-card--track:hover .opportunity-card__banner img {
    transform: scale(1.05);
}

/* =========================================================
   PROFESSIONAL GROWTH
========================================================= */

#professional-growth .opportunity-card {
    min-height: 290px;
}


/* =========================================================
   PARTNERSHIP PANEL
========================================================= */

.opportunity-partnership {
    padding: clamp(2rem, 5vw, 3.75rem);

    border-radius: 1.75rem;

    background: #f5f8fa;
}

#partnerships .opportunity-image,
#partnerships .opportunity-image img {
    min-height: 410px;
}


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

.opportunity-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);
}

.opportunity-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%;
}

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

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

.opportunity-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;
}

.opportunity-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
========================================================= */

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


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

@media (max-width: 1050px) {

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

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

    .opportunity-partnership {
        padding: 2.75rem;
    }

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


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

@media (max-width: 850px) {

    .opportunity-split,
    .opportunity-partnership {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

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

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

    #intern-in-advance .opportunity-image {
        order: 2;
    }

    #intern-in-advance .opportunity-content {
        order: 1;
    }

    #partnerships .opportunity-image,
    #partnerships .opportunity-image img {
        min-height: 350px;
    }
}


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

@media (max-width: 600px) {

    .page-hero--opportunities .page-hero__background-word {
        font-size: clamp(2.3rem, 12vw, 5rem);
        letter-spacing: 0;
    }

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

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

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

    .opportunity-grid--four {
        grid-template-columns: 1fr;
    }

    .opportunity-card,
    #student-programs .opportunity-card,
    #professional-growth .opportunity-card,
    #certified-developer
    .opportunity-grid--three
    .opportunity-card,
    .opportunity-card--track {
        min-height: auto;
    }

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

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

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

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

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

    .opportunity-partnership {
        padding: 1.6rem 1.3rem;
        border-radius: 1.1rem;
    }

    #partnerships .opportunity-image,
    #partnerships .opportunity-image img {
        min-height: 290px;
    }

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