/*
 * A program page in the look of the new home page (MILESTONES #24; template-parts/program/page.php). Skin "program" of
 * the app layout (Amerlink_Genesis_App_Layout::SKIN_SINGULAR), loaded after site-tokens.css and site-components.css,
 * so after the Divi copies too: the selectors start with #main-content.prd-page to win over their element rules
 * (p and headings padding, link colours). The university logos and the call to action at the bottom keep their own
 * sheets (pricing-logos.css, pricing-cta.css); only what the Divi copies change in them is set back here.
 */

#main-content.prd-page {
    --prd-ink: var(--amg-navy, #01216a);
    --prd-text: #33446a;
    --prd-muted: #4b5c80;
    --prd-blue: #0a72f5;
    --prd-line: #e3ebf6;
    background: #f5f9fe;
}

#main-content.prd-page .prd-inner {
    width: min(100% - 64px, 1510px);
    margin-inline: auto;
}

#main-content.prd-page p,
#main-content.prd-page h1,
#main-content.prd-page h2,
#main-content.prd-page h3 {
    padding-bottom: 0;
}

/* ---------- Hero: continues the navy header bar; breadcrumb, label, name, the program's title, what it includes. */

#main-content.prd-page .prd-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 2.6vw, 48px) 0 clamp(96px, 7.4vw, 140px);
    background:
        radial-gradient(circle at 80% 46%, rgba(8, 174, 243, .2) 0, rgba(8, 174, 243, 0) 34%),
        var(--amg-band, linear-gradient(100deg, #01216a 0%, #002a54 58%, #001a40 100%));
    color: #fff;
}

#main-content.prd-page .prd-hero::after {
    position: absolute;
    right: -6%;
    bottom: -60%;
    width: 58%;
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

#main-content.prd-page .prd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: clamp(26px, 2.4vw, 44px);
    color: #b9d3f0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

#main-content.prd-page .prd-breadcrumb a {
    color: #d5e6f5;
    text-decoration: none;
}

#main-content.prd-page .prd-breadcrumb a:hover,
#main-content.prd-page .prd-breadcrumb a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

#main-content.prd-page .prd-breadcrumb [aria-current] {
    color: #fff;
}

#main-content.prd-page .prd-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    align-items: center;
    gap: 40px;
}

#main-content.prd-page .prd-eyebrow {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 700;
    letter-spacing: .19em;
    line-height: 1.4;
    text-transform: uppercase;
}

#main-content.prd-page .prd-eyebrow::after {
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 14px;
    border-radius: 2px;
    background: var(--amh-pink);
    content: '';
}

#main-content.prd-page .prd-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(38px, 4vw, 72px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.04;
}

#main-content.prd-page .prd-title span {
    color: #7cc4f8;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    #main-content.prd-page .prd-title span {
        background: linear-gradient(180deg, #9ad5ff 0%, #6cbcf7 60%, #58b0f2 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

#main-content.prd-page .prd-subtitle {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(16px, 1.25vw, 22px);
    line-height: 1.45;
}

#main-content.prd-page .prd-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-content.prd-page .prd-includes li,
#main-content.prd-page .prd-includes-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px 16px 9px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

#main-content.prd-page .prd-check {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: #08aef3;
}

#main-content.prd-page .prd-hero-art {
    position: relative;
    display: grid;
    width: min(100%, 340px);
    aspect-ratio: 1;
    justify-self: center;
    place-items: center;
}

#main-content.prd-page .prd-hero-art-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 58%, rgba(255, 255, 255, .14) 58.5% 66%, rgba(255, 255, 255, 0) 66.5%);
    box-shadow: 0 30px 60px rgba(0, 10, 40, .35);
}

#main-content.prd-page .prd-hero-image {
    position: relative;
    width: 52%;
    height: auto;
    max-height: 56%;
    object-fit: contain;
}

/* ---------- Body: the description in a card, the price card beside it (sticky). */

#main-content.prd-page .prd-body {
    position: relative;
    z-index: 1;
    padding-bottom: clamp(56px, 5vw, 96px);
    background: linear-gradient(180deg, #f5f9fe 0%, #eef5fd 100%);
}

#main-content.prd-page .prd-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: start;
    gap: clamp(28px, 3vw, 60px);
}

#main-content.prd-page .prd-article {
    min-width: 0;
    margin-top: -54px;
    padding: clamp(28px, 3vw, 56px);
    border: 1px solid var(--prd-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(1, 33, 106, .08);
    color: var(--prd-text);
}

/* The program's own HTML (post_content), in the new typography. */
#main-content.prd-page .prd-prose {
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.7;
}

#main-content.prd-page .prd-prose p {
    margin: 0 0 1.05em;
    color: var(--prd-text);
    font-size: inherit;
    line-height: inherit;
}

#main-content.prd-page .prd-prose .program-small-title {
    margin: 0 0 22px;
    padding: 0;
    color: var(--prd-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.5;
    text-transform: uppercase;
}

#main-content.prd-page .prd-prose h2,
#main-content.prd-page .prd-prose h3:not(.program-small-title),
#main-content.prd-page .prd-prose h4,
#main-content.prd-page .prd-prose h5,
#main-content.prd-page .prd-prose h6 {
    margin: 1.6em 0 .8em;
    padding: 0;
    color: var(--amh-navy);
    font-size: clamp(20px, 1.5vw, 26px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.25;
}

#main-content.prd-page .prd-prose a {
    color: var(--prd-blue);
    font-weight: 600;
}

#main-content.prd-page .prd-prose a:hover {
    color: var(--amh-pink);
}

#main-content.prd-page .prd-prose ul {
    display: grid;
    gap: 12px;
    margin: 0 0 1.6em;
    padding: clamp(18px, 1.6vw, 28px);
    border-radius: 14px;
    background: #f1f7fe;
    list-style: none;
}

#main-content.prd-page .prd-prose li {
    position: relative;
    margin: 0;
    padding: 0 0 0 34px;
    color: var(--prd-text);
    line-height: 1.5;
    list-style: none;
}

#main-content.prd-page .prd-prose li::before {
    position: absolute;
    top: .15em;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--prd-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.8 10.3 2.8 2.8 5.6-5.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
    content: '';
}

/* The old layout's boxes inside the content: no columns, floats or widths of their own. */
#main-content.prd-page .prd-prose .sub-features-list-container,
#main-content.prd-page .prd-prose .sub-features-list-container-inner {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    float: none;
}

#main-content.prd-page .prd-prose .sub-features-list-container-inner-empowering-talent {
    display: block;
    margin: 1.6em 0;
    padding: clamp(20px, 1.8vw, 30px);
    border-left: 4px solid var(--amh-pink);
    border-radius: 0 14px 14px 0;
    background: #fff5fa;
}

#main-content.prd-page .prd-prose .sub-features-list-container-inner-empowering-talent > p:first-child {
    color: var(--amh-navy);
    font-size: 1.05em;
}

#main-content.prd-page .prd-prose img {
    max-width: 100%;
    height: auto;
}

/* The program's illustration is in the hero already. */
#main-content.prd-page .prd-article-has-art .sub-icon-image-container {
    display: none;
}

#main-content.prd-page .prd-buy {
    position: sticky;
    top: calc(24px + var(--wp-admin--admin-bar--height, 0px) + var(--amh-stuck-space, 0px));
    margin-top: -54px;
}

#main-content.prd-page .prd-buy-card {
    padding: clamp(24px, 2vw, 34px);
    border: 1px solid var(--prd-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 54px rgba(1, 33, 106, .14);
}

#main-content.prd-page .prd-buy-label {
    margin: 0 0 6px;
    color: var(--prd-muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

#main-content.prd-page .prd-buy-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin: 0 0 20px;
    color: var(--amh-navy);
    line-height: 1.05;
}

#main-content.prd-page .prd-buy-price strong {
    font-size: clamp(42px, 3.3vw, 58px);
    font-weight: 800;
    letter-spacing: -.04em;
}

#main-content.prd-page .prd-buy-price span {
    font-size: 19px;
    font-weight: 700;
}

#main-content.prd-page .prd-variants {
    display: grid;
    gap: 2px;
    margin: 0 0 22px;
    padding: 8px;
    border-radius: 12px;
    background: #eef5fd;
    list-style: none;
}

#main-content.prd-page .prd-variants li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-content.prd-page .prd-variant {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--amh-navy);
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
}

#main-content.prd-page a.prd-variant:hover,
#main-content.prd-page a.prd-variant:focus-visible {
    background: #fff;
    color: var(--amh-pink);
}

#main-content.prd-page .prd-variant-current {
    background: #fff;
    box-shadow: inset 0 0 0 1px #cfe0f3;
}

#main-content.prd-page .prd-variant strong {
    font-weight: 800;
    white-space: nowrap;
}

#main-content.prd-page .amh-button.prd-buy-button {
    width: 100%;
}

#main-content.prd-page .amh-button.prd-buy-button span {
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: .7;
}

#main-content.prd-page .amh-button.prd-buy-secondary {
    width: 100%;
    margin-top: 12px;
    border-color: #cfe4fa;
    background: #eaf3fd;
    box-shadow: none;
    color: var(--prd-blue);
}

#main-content.prd-page .amh-button.prd-buy-secondary:hover,
#main-content.prd-page .amh-button.prd-buy-secondary:focus-visible {
    background: #dcecfc;
    color: #075fd0;
}

#main-content.prd-page .prd-buy-note {
    margin: 16px 0 0;
    color: var(--prd-muted);
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

/* The signed-in actions of [shortcode_show_program_and_pricing_actions] (Stripe / PayPal buttons, or the links to the
   visitor's programs), laid out in the card; their own "Read more" would lead to this page itself. */
#main-content.prd-page .prd-buy-actions .programs-and-pricing-acc-actions,
#main-content.prd-page .prd-buy-actions .programs-and-pricing-acc-actions-container,
#main-content.prd-page .prd-buy-actions .my-acc-actions,
#main-content.prd-page .prd-buy-actions .my-acc-actions-inner {
    display: flex;
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 0;
}

#main-content.prd-page .prd-buy-actions .read-more-sub-bt {
    display: none;
}

#main-content.prd-page .prd-buy-actions .my-button {
    position: static;
    width: 100%;
    margin: 0;
    text-align: center;
}

#main-content.prd-page .prd-buy-back {
    display: inline-flex;
    gap: 8px;
    margin: 18px 0 0 6px;
    color: var(--amh-navy);
    font-weight: 700;
    text-decoration: none;
}

#main-content.prd-page .prd-buy-back:hover,
#main-content.prd-page .prd-buy-back:focus-visible {
    color: var(--amh-pink);
}

/* ---------- Steps: the screenshots of the platform in browser frames, enlarged in a dialog. */

#main-content.prd-page .prd-steps {
    padding: clamp(56px, 5vw, 96px) 0;
    background: #fff;
}

#main-content.prd-page .prd-steps-eyebrow {
    margin: 0 0 14px;
    color: var(--amh-pink);
    font-size: clamp(13px, 1vw, 17px);
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

#main-content.prd-page .prd-steps-eyebrow::after {
    display: block;
    width: 44px;
    height: 4px;
    margin-top: 10px;
    border-radius: 2px;
    background: var(--amh-pink);
    content: '';
}

#main-content.prd-page .prd-steps-title {
    margin: 0 0 clamp(26px, 2.4vw, 44px);
    color: var(--amh-navy);
    font-size: clamp(30px, 2.8vw, 54px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
}

#main-content.prd-page .prd-steps-title span {
    color: var(--prd-blue);
}

#main-content.prd-page .prd-steps-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 1.8vw, 34px);
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-content.prd-page .prd-step {
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-content.prd-page .prd-step-shot {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 30px 0 0;
    overflow: hidden;
    border: 1px solid var(--prd-line);
    border-radius: 14px;
    background: #eef3fa;
    box-shadow: 0 16px 36px rgba(1, 33, 106, .1);
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
}

#main-content.prd-page .prd-step-shot:hover,
#main-content.prd-page .prd-step-shot:focus-visible {
    box-shadow: 0 24px 48px rgba(1, 33, 106, .18);
    transform: translateY(-4px);
}

#main-content.prd-page .prd-step-shot:focus-visible {
    outline: 2px solid #0381f8;
    outline-offset: 3px;
}

#main-content.prd-page .prd-browser {
    position: absolute;
    top: 11px;
    left: 14px;
    display: flex;
    gap: 6px;
}

#main-content.prd-page .prd-browser i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c9d6e8;
}

#main-content.prd-page .prd-browser i:first-child {
    background: var(--amh-pink);
}

#main-content.prd-page .prd-step-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}

#main-content.prd-page .prd-step-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: var(--amh-pink);
    color: #fff;
    opacity: 0;
    transition: opacity .2s ease;
}

#main-content.prd-page .prd-step-zoom svg {
    width: 22px;
    height: 22px;
}

#main-content.prd-page .prd-step-shot:hover .prd-step-zoom,
#main-content.prd-page .prd-step-shot:focus-visible .prd-step-zoom {
    opacity: 1;
}

#main-content.prd-page .prd-step-caption {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 0;
    color: var(--amh-navy);
    font-size: clamp(16px, 1.15vw, 20px);
    font-weight: 700;
    line-height: 1.3;
}

#main-content.prd-page .prd-step-caption a {
    color: var(--amh-navy);
    text-decoration: none;
}

#main-content.prd-page .prd-step-caption a:hover,
#main-content.prd-page .prd-step-caption a:focus-visible {
    color: var(--amh-pink);
}

#main-content.prd-page .prd-step-no {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e3f0fc;
    color: var(--prd-blue);
    font-size: 15px;
    font-weight: 800;
}

#main-content.prd-page .prd-lightbox {
    width: min(94vw, 1500px);
    max-height: 92vh;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}

#main-content.prd-page .prd-lightbox::backdrop {
    background: rgba(0, 18, 46, .78);
}

#main-content.prd-page .prd-lightbox img {
    display: block;
    width: 100%;
    height: auto;
}

#main-content.prd-page .prd-lightbox-close {
    position: sticky;
    z-index: 1;
    top: 10px;
    float: right;
    width: 42px;
    height: 42px;
    margin: 10px 10px -52px 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--amh-navy);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Previous / next program. */

#main-content.prd-page .prd-more {
    padding: clamp(40px, 3.6vw, 64px) 0;
    background: linear-gradient(180deg, #f2f8fe 0%, #f2f8fe 100%);
}

#main-content.prd-page .prd-more-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

#main-content.prd-page .prd-more-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 28px;
    border: 1px solid var(--prd-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(1, 33, 106, .08);
    color: var(--amh-navy);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}

#main-content.prd-page .prd-more-link:hover,
#main-content.prd-page .prd-more-link:focus-visible {
    border-color: #a9cff5;
    transform: translateY(-3px);
}

#main-content.prd-page .prd-more-next {
    align-items: flex-end;
    text-align: right;
}

#main-content.prd-page .prd-more-dir {
    color: var(--amh-pink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#main-content.prd-page .prd-more-link strong {
    font-size: clamp(17px, 1.25vw, 22px);
    line-height: 1.3;
}

#main-content.prd-page .prd-more-price {
    color: var(--prd-muted);
    font-weight: 600;
}

/* ---------- The university logos and the call to action (their sheets were made for a page without the Divi copies). */

#main-content.prd-page .prc-logos h2,
#main-content.prd-page .prc-cta h2,
#main-content.prd-page .prc-logos p,
#main-content.prd-page .prc-cta p {
    padding-bottom: 0;
}

#main-content.prd-page .prc-logos ul,
#main-content.prd-page .prc-logos li {
    line-height: normal;
    list-style: none;
}

/* ---------- Narrower screens. */

@media (max-width: 1180px) {
    #main-content.prd-page .prd-body-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* The price card first, over the description. */
    #main-content.prd-page .prd-buy {
        position: static;
        order: -1;
        margin-top: -54px;
    }

    #main-content.prd-page .prd-article {
        margin-top: 0;
    }

    #main-content.prd-page .prd-steps-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    #main-content.prd-page .prd-inner {
        width: min(100% - 36px, 660px);
    }

    #main-content.prd-page .prd-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #main-content.prd-page .prd-hero-art {
        display: none;
    }

    #main-content.prd-page .prd-steps-list,
    #main-content.prd-page .prd-more-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #main-content.prd-page .prd-more-next {
        align-items: flex-start;
        text-align: left;
    }

    #main-content.prd-page .prd-more-empty {
        display: none;
    }
}
