/* =========================================================
   ESTG TRAINING PROGRAMS — DISCOVERY PAGE
========================================================= */

:root {
    --tp-gold: #e5a900;
    --tp-gold-bright: #f2bb16;
    --tp-gold-dark: #9b6900;
    --tp-ink: #101114;
    --tp-ink-soft: #25282e;
    --tp-copy: #3f434b;
    --tp-muted: #686d76;
    --tp-line: #dedfe2;
    --tp-soft: #f7f7f5;
    --tp-white: #ffffff;
    --tp-success: #16834a;
    --tp-radius-lg: 22px;
    --tp-radius-md: 15px;
    --tp-shadow: 0 18px 50px rgba(16, 24, 40, .08);
}

.tp-page,
.tp-page * {
    box-sizing: border-box;
}

.tp-page {
    overflow: hidden;
    background: #fbfcfd;
    color: var(--tp-ink);
    font-family: Inter, sans-serif;
}

/*
   Typography is deliberately scoped and explicit. This prevents global
   academy styles from applying pale blue or gradient text to this page.
*/

.tp-page h1,
.tp-page h2,
.tp-page h3,
.tp-page h4,
.tp-page h5,
.tp-page h6 {
    background: none !important;
    color: var(--tp-ink) !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--tp-ink) !important;
    opacity: 1 !important;
    text-shadow: none;
}

.tp-page p,
.tp-page li,
.tp-page small {
    opacity: 1;
}

.tp-page a {
    -webkit-text-fill-color: currentColor;
}

.tp-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.tp-section {
    padding: 92px 0;
}

.tp-eyebrow,
.tp-section-heading > span,
.tp-standard-copy > span,
.tp-help span {
    color: var(--tp-gold-dark) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Hero */

.tp-hero {
    position: relative;
    background:
        radial-gradient(circle at 78% 15%, rgba(232, 169, 0, .18), transparent 29%),
        linear-gradient(120deg, #4394df 0%, #f8f8f6 60%, #6fa8e9 100%);
    border-bottom: 1px solid var(--tp-line);
    padding: 88px 0 78px;
}

.tp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image: linear-gradient(#dfe3e8 1px, transparent 1px), linear-gradient(90deg, #dfe3e8 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to right, #000, transparent 70%);
}

.tp-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: center;
    gap: 70px;
}

.tp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.tp-hero h1 {
    max-width: 760px;
    margin: 18px 0 22px;
    font-size: clamp(42px, 5.6vw, 72px);
    line-height: 1.03;
    letter-spacing: -.045em;
    color: #0b0c0f !important;
    -webkit-text-fill-color: #0b0c0f !important;
}

.tp-hero-copy > p {
    max-width: 680px;
    color: var(--tp-copy);
    font-size: 18px;
    line-height: 1.75;
}

.tp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.tp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tp-button:hover {
    transform: translateY(-2px);
}

.tp-button-primary {
    background: var(--tp-gold);
    color: #17120a;
    box-shadow: 0 10px 24px rgba(232, 169, 0, .22);
}

.tp-button-primary,
.tp-button-primary i {
    color: #151005 !important;
    -webkit-text-fill-color: #151005 !important;
}

.tp-button-secondary {
    border-color: #d0d5dd;
    background: rgba(255, 255, 255, .7);
    color: var(--tp-ink);
}

.tp-button-secondary,
.tp-button-secondary i {
    color: var(--tp-ink) !important;
    -webkit-text-fill-color: var(--tp-ink) !important;
}

.tp-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 34px;
    color: var(--tp-copy);
    font-size: 12px;
    font-weight: 700;
}

.tp-hero-proof i {
    margin-right: 6px;
    color: var(--tp-success);
}

.tp-hero-panel {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: var(--tp-radius-lg);
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--tp-shadow);
    backdrop-filter: blur(14px);
}

.tp-panel-label {
    display: block;
    margin-bottom: 18px;
    color: var(--tp-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tp-panel-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--tp-line);
}

.tp-panel-step:last-child {
    border: 0;
}

.tp-panel-step b {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff5d9;
    color: var(--tp-gold-dark);
    font-size: 12px;
}

.tp-panel-step strong,
.tp-panel-step small {
    display: block;
}

.tp-panel-step strong {
    color: var(--tp-ink);
}

.tp-panel-step small {
    margin-top: 5px;
    color: var(--tp-muted);
    line-height: 1.45;
}

/* Trust strip */

.tp-trust-strip {
    background: var(--tp-ink);
    color: #fff;
}

.tp-trust-strip span {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.tp-trust-strip .tp-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.tp-trust-strip .tp-container > div {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.tp-trust-strip .tp-container > div:last-child {
    border: 0;
}

.tp-trust-strip strong {
    color: var(--tp-gold);
    font-size: 25px;
}

.tp-trust-strip span {
    font-size: 12px;
    font-weight: 700;
}

.tp-trust-strip i {
    color: var(--tp-gold);
}

/* Section headings and learning pathway */

.tp-section-heading {
    max-width: 740px;
    margin-bottom: 38px;
}

.tp-section-heading h2,
.tp-standard-copy h2,
.tp-help h2 {
    margin: 10px 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -.035em;
    color: var(--tp-ink) !important;
    -webkit-text-fill-color: var(--tp-ink) !important;
}

.tp-section-heading p,
.tp-standard-copy > p,
.tp-help p {
    color: var(--tp-muted);
    line-height: 1.7;
}

.tp-heading-split {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr .7fr;
    align-items: end;
    gap: 70px;
}

.tp-pathway {
    background: #fff;
}

.tp-pathway-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tp-path-card {
    position: relative;
    min-height: 265px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    border: 1px solid var(--tp-line);
    border-radius: var(--tp-radius-md);
    background: #fff;
}

.tp-path-card.is-first {
    border-color: #eaca75;
    background: #fffcf3;
}

.tp-path-card.is-growth {
    background: var(--tp-ink);
    color: #fff;
}

.tp-path-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #fff1c9;
    color: var(--tp-gold-dark);
    font-weight: 900;
}

.tp-path-card span {
    color: var(--tp-gold-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tp-path-card h3 {
    margin: 8px 0;
    font-size: 20px;
}

.tp-path-card.is-growth h3 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.tp-path-card p {
    margin: 0;
    color: var(--tp-muted);
    font-size: 13px;
    line-height: 1.6;
}

.tp-path-card.is-growth p {
    color: #cfd4dc;
}

.tp-path-arrow {
    position: absolute;
    z-index: 2;
    top: 26px;
    right: -24px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tp-gold);
    color: #fff;
}

/* Program cards */

.tp-programs {
    background: var(--tp-soft);
}

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

.tp-program-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 400px;
    border: 1px solid var(--tp-line);
    border-radius: var(--tp-radius-lg);
    background: #fff;
    box-shadow: 0 4px 18px rgba(16, 24, 40, .04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tp-program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tp-shadow);
}

.tp-program-image {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: linear-gradient(145deg, #151d2a, #344054);
}

.tp-program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.tp-program-card:hover img {
    transform: scale(1.045);
}

.tp-program-image > span {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--tp-gold);
    font-size: 54px;
}

.tp-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 14, 24, .72), transparent 58%);
}

.tp-program-image small {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tp-program-content {
    display: flex;
    flex-direction: column;
    padding: 26px;
}

.tp-program-status span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
}

.tp-program-status .is-available {
    background: #ecfdf3;
    color: var(--tp-success);
}

.tp-program-status .is-required {
    background: #fff6dc;
    color: var(--tp-gold-dark);
}

.tp-program-content h3 {
    margin: 14px 0 10px;
    font-size: 22px;
    line-height: 1.25;
}

.tp-program-content h3 a {
    color: var(--tp-ink) !important;
    -webkit-text-fill-color: var(--tp-ink) !important;
    text-decoration: none;
}

.tp-program-content > p {
    margin: 0 0 18px;
    color: var(--tp-muted);
    font-size: 13px;
    line-height: 1.65;
}

.tp-program-meta {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.tp-program-meta > div,
.tp-prerequisite {
    display: grid;
    grid-template-columns: 25px 1fr;
    gap: 9px;
}

.tp-program-meta i,
.tp-prerequisite > i {
    color: var(--tp-gold-dark);
}

.tp-program-meta small,
.tp-program-meta strong,
.tp-prerequisite small,
.tp-prerequisite strong {
    display: block;
}

.tp-program-meta small,
.tp-prerequisite small {
    color: var(--tp-muted);
    font-size: 9px;
    text-transform: uppercase;
}

.tp-program-meta strong,
.tp-prerequisite strong {
    margin-top: 2px;
    font-size: 11px;
}

.tp-prerequisite {
    margin-top: 12px;
    padding: 11px;
    border-radius: 9px;
    background: #fffbeb;
}

.tp-explore-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 19px;
    padding-top: 16px;
    border-top: 1px solid var(--tp-line);
    color: var(--tp-ink);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.tp-explore-link i {
    color: var(--tp-gold-dark);
    transition: transform .2s ease;
}

.tp-explore-link:hover i {
    transform: translateX(4px);
}

.tp-empty-state {
    grid-column: 1 / -1;
    padding: 60px;
    border: 1px solid var(--tp-line);
    border-radius: var(--tp-radius-lg);
    background: #fff;
    text-align: center;
}

/* Platform standard */

.tp-standard {
    background: #fff;
}

.tp-standard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 90px;
}

.tp-standard-copy ul {
    display: grid;
    gap: 13px;
    padding: 0;
    margin: 27px 0 0;
    list-style: none;
}

.tp-standard-copy li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.tp-standard-copy li i {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ecfdf3;
    color: var(--tp-success);
    font-size: 10px;
}

.tp-standard-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 28px;
    border-radius: 28px;
    background: #f3f4f6;
}

.tp-standard-visual > div {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 23px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .07);
}

.tp-standard-visual > div:last-child {
    transform: translateY(25px);
    background: var(--tp-ink);
    color: #fff;
}

.tp-standard-visual > div:last-child strong {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.tp-standard-visual i {
    margin-bottom: auto;
    color: var(--tp-gold);
    font-size: 34px;
}

.tp-standard-visual strong,
.tp-standard-visual small {
    display: block;
}

.tp-standard-visual small {
    margin-top: 8px;
    color: var(--tp-muted);
    line-height: 1.5;
}

.tp-standard-visual > div:last-child small {
    color: #c8ced8;
}

/* FAQ */

.tp-faq {
    background: var(--tp-soft);
}

.tp-faq-grid {
    display: grid;
    grid-template-columns: .7fr 1fr;
    gap: 80px;
}

.tp-accordion {
    border-top: 1px solid #d0d5dd;
}

.tp-accordion details {
    border-bottom: 1px solid #d0d5dd;
}

.tp-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 4px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    color: var(--tp-ink);
    -webkit-text-fill-color: var(--tp-ink);
}

.tp-accordion summary::-webkit-details-marker {
    display: none;
}

.tp-accordion summary i {
    color: var(--tp-gold-dark);
    transition: transform .2s ease;
}

.tp-accordion details[open] summary i {
    transform: rotate(45deg);
}

.tp-accordion details p {
    margin: -7px 36px 22px 4px;
    color: var(--tp-muted);
    line-height: 1.7;
}

/* Closing call to action */

.tp-help {
    padding: 70px 0;
    background: var(--tp-ink);
    color: #fff;
}

.tp-help h2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.tp-help-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.tp-help h2 {
    max-width: 700px;
    margin-bottom: 8px;
}

.tp-help p {
    margin: 0;
    color: #c9ced7;
}

.tp-button-light {
    flex: 0 0 auto;
    background: #fff;
    color: var(--tp-ink);
}

.tp-button-light,
.tp-button-light i {
    color: var(--tp-ink) !important;
    -webkit-text-fill-color: var(--tp-ink) !important;
}

/* Responsive */

@media (max-width: 980px) {
    .tp-hero-grid,
    .tp-standard-grid,
    .tp-faq-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .tp-hero-panel {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 24px;
    }

    .tp-panel-label {
        grid-column: 1 / -1;
    }

    .tp-pathway-grid {
        grid-template-columns: 1fr;
    }

    .tp-path-card {
        min-height: 210px;
    }

    .tp-path-arrow {
        top: auto;
        right: 24px;
        bottom: -24px;
        transform: rotate(90deg);
    }

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

@media (max-width: 680px) {
    .tp-container {
        width: min(100% - 24px, 1180px);
    }

    .tp-section {
        padding: 64px 0;
    }

    .tp-hero {
        padding: 62px 0;
    }

    .tp-hero h1 {
        font-size: 39px;
    }

    .tp-hero-copy > p {
        font-size: 16px;
    }

    .tp-hero-panel,
    .tp-heading-split,
    .tp-standard-visual {
        grid-template-columns: 1fr;
    }

    .tp-standard-visual > div:last-child {
        transform: none;
    }

    .tp-trust-strip .tp-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .tp-trust-strip .tp-container > div {
        min-height: 74px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

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

    .tp-program-image {
        min-height: 245px;
    }

    .tp-help-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}