/* Programs & Pricing page, "Our Programs" (template-parts/pricing/programs.php, docs/sections/programs/
   programs-our-programs-part1.png) and the parts the program groups share: small headings, blue accents, group
   headings (template-parts/pricing/group.php) and program cards (template-parts/pricing/program-card.php).
   Fonts, colours and buttons: home-hero.css (body .amerlink-genesis-home). */

.prc-programs,
.prc-section {
    --prc-ink: #01216a;
    --prc-text: #33446a;
    --prc-muted: #4b5c80;
    --prc-blue: #0a72f5;
    --prc-line: #e3ebf6;
    color: var(--prc-text);
}

.prc-programs {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 5vw, 96px) 0 clamp(56px, 5vw, 96px);
    background: linear-gradient(180deg, #f5f9fe 0%, #e7f1fd 9%, #eef6fe 26%, #f8fbfe 42%, #f8fbfe 82%, #edf4fc 100%);
}

/* The sections of the next groups (template-parts/pricing/section.php) continue the background of the one above. */
.prc-section {
    padding: 0 0 clamp(56px, 5vw, 96px);
    background: linear-gradient(180deg, #edf4fc 0%, #f2f8fe 100%);
}

/* A group section after another one: room above its small heading (the previous one ends at its own edge). */
.prc-section + .prc-section {
    padding-top: clamp(40px, 3.8vw, 72px);
}

.prc-programs-inner,
.prc-section-inner {
    display: flex;
    width: min(100% - 64px, 1510px);
    flex-direction: column;
    margin-inline: auto;
}

/* ---------- Shared by the groups: small headings, blue accents. */

.prc-eyebrow {
    margin: 0 0 clamp(12px, 1vw, 18px);
    color: var(--amh-pink);
    font-size: clamp(13px, 1vw, 17px);
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* The short pink line under the small heading of the section. */
.prc-eyebrow-bar::after {
    display: block;
    width: 44px;
    height: 4px;
    margin-top: clamp(8px, .7vw, 12px);
    border-radius: 2px;
    background: var(--amh-pink);
    content: '';
}

.prc-accent {
    color: var(--prc-blue);
}

/* ---------- Heading of the section, with the campus photo top right. */

.prc-programs-intro {
    position: relative;
    z-index: 1;
    width: min(100%, 62%);
}

.prc-programs-title,
.prc-group-title {
    margin: 0 0 clamp(12px, 1vw, 18px);
    color: var(--amh-navy);
    font-size: clamp(30px, 2.8vw, 54px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.prc-programs-description,
.prc-group-description {
    max-width: 900px;
    margin: 0;
    color: var(--prc-text);
    font-size: clamp(15px, 1.1vw, 20px);
    line-height: 1.6;
}

.prc-programs-media {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: min(36%, 720px);
    aspect-ratio: 536 / 430;
    /* Fades into the background on the left and at the bottom (the design's white swoosh is in the photo). */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%), linear-gradient(180deg, transparent 0, #000 7%, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 34%), linear-gradient(180deg, transparent 0, #000 7%, #000 78%, transparent 100%);
    mask-composite: intersect;
}

.prc-programs-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
}

/* "Your / Future. / Your Choice." in the sky, as in the design. */
.prc-programs-handwritten {
    position: absolute;
    top: 12%;
    right: 15%;
    margin: 0;
    color: #0c1d45;
    font-family: 'Segoe Print', 'Bradley Hand', cursive;
    font-size: clamp(22px, 1.9vw, 36px);
    font-style: italic;
    line-height: 1.22;
    transform: rotate(-12deg);
}

.prc-programs-handwritten::after {
    display: block;
    width: 70%;
    height: 3px;
    margin: 8px 0 0 auto;
    border-radius: 3px;
    background: var(--amh-pink);
    content: '';
    transform: rotate(-14deg);
}

/* ---------- A group: heading and cards. */

.prc-group {
    position: relative;
    z-index: 1;
    margin-top: clamp(44px, 4.2vw, 80px);
}

.prc-section .prc-group {
    margin-top: 0;
}

/* Without the photo beside it, the heading of a group section takes the whole width. */
.prc-section .prc-group-head {
    width: 100%;
}

.prc-group-head {
    width: min(100%, 62%);
    margin-bottom: clamp(22px, 1.8vw, 34px);
}

.prc-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 1.4vw, 26px);
}

.prc-cards-1 {
    grid-template-columns: minmax(0, 1fr);
}

/* ---------- A program card: photo on the left, the texts and the price with its button on the right. */

.prc-card {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-columns: clamp(170px, 35%, 280px) minmax(0, 1fr);
    gap: clamp(20px, 2vw, 36px);
    padding: clamp(12px, 1vw, 18px);
    border: 1px solid var(--prc-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(1, 33, 106, .08);
}

/* The old row anchor (rd{ID}-label): links to it land on the card, a little above it. */
.prc-card-anchor {
    position: absolute;
    top: -24px;
    left: 0;
}

/* The texts set the card's height; the photo fills its column (it does not stretch the card). */
.prc-card-media {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 9px;
    background: #e9f1fa;
}

.prc-card-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
}

.prc-card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(6px, .6vw, 12px) clamp(8px, 1vw, 18px) clamp(4px, .4vw, 8px) 0;
}

.prc-card-label {
    margin: 0 0 8px;
    color: var(--prc-blue);
    font-size: clamp(12px, .85vw, 15px);
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.3;
    text-transform: uppercase;
}

.prc-card-title {
    margin: 0 0 6px;
    color: var(--amh-navy);
    font-size: clamp(23px, 1.75vw, 33px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.prc-card-subtitle {
    margin: 0 0 clamp(12px, 1vw, 18px);
    color: #1c2f5e;
    font-size: clamp(15px, 1.08vw, 20px);
    font-weight: 600;
    line-height: 1.35;
}

.prc-card-description {
    margin: 0 0 clamp(14px, 1.1vw, 20px);
    color: var(--prc-muted);
    font-size: clamp(14px, .95vw, 17px);
    line-height: 1.55;
}

.prc-card-features {
    display: grid;
    gap: clamp(7px, .6vw, 11px);
    margin: 0 0 clamp(18px, 1.5vw, 28px);
    padding: 0;
    list-style: none;
}

.prc-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    color: var(--prc-text);
    font-size: clamp(14px, .95vw, 17px);
    line-height: 1.4;
}

.prc-card-check {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: .1em;
    fill: var(--prc-blue);
}

.prc-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    margin-top: auto;
}

.prc-card-price {
    margin: 0;
    color: var(--amh-navy);
    font-size: clamp(26px, 1.9vw, 36px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
}

/* Paid programs: the price beside the title (amount, unit, a second line that may link), the button alone below. A
   narrower photo leaves the title and the price room for one line. */
.prc-card-price-top {
    grid-template-columns: clamp(160px, 31%, 260px) minmax(0, 1fr);
    column-gap: clamp(18px, 1.6vw, 30px);
}

.prc-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 18px;
    margin-bottom: 6px;
}

.prc-card-head .prc-card-title {
    min-width: 0;
    margin: 0;
    font-size: clamp(22px, 1.45vw, 26px);
}

.prc-card-pricing {
    flex: 0 0 auto;
    max-width: 48%;
    text-align: right;
}

.prc-card-pricing .prc-card-price {
    font-size: clamp(28px, 2vw, 34px);
    white-space: nowrap;
}

.prc-card-price-unit {
    margin-left: 2px;
    font-size: .48em;
    letter-spacing: -.01em;
}

.prc-card-price-note {
    display: block;
    margin: 4px 0 0;
    color: var(--amh-navy);
    font-size: clamp(13px, .85vw, 15px);
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

a.prc-card-price-note:hover,
a.prc-card-price-note:focus-visible {
    color: var(--amh-pink);
    text-decoration: underline;
}

.prc-card-price-top .prc-card-footer {
    justify-content: flex-end;
}

/* A small line above the price ("Full Program"). */
.prc-card-price-label {
    margin: 0 0 2px;
    color: var(--prc-text);
    font-size: clamp(13px, .9vw, 16px);
    line-height: 1.3;
}

/* Variants beside the features (the Concierge stages); in a narrower card a row of them under the features. */
.prc-card-has-options .prc-card-body {
    container-type: inline-size;
}

.prc-card-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px clamp(14px, 1.2vw, 22px);
    margin-bottom: clamp(18px, 1.5vw, 28px);
}

.prc-card-details .prc-card-features {
    margin-bottom: 0;
}

.prc-card-options {
    display: grid;
    gap: 2px;
    min-width: 150px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #e9f2fd;
    list-style: none;
}

.prc-card-options li {
    margin: 0;
}

.prc-card-option {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: 6px 8px;
    border-radius: 7px;
    color: var(--amh-navy);
    font-size: clamp(14px, .9vw, 16px);
    line-height: 1.3;
    text-decoration: none;
}

.prc-card-option strong {
    font-weight: 800;
}

a.prc-card-option:hover,
a.prc-card-option:focus-visible {
    background: #fff;
    color: var(--amh-pink);
}

@container (max-width: 620px) {
    .prc-card-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .prc-card-options {
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: column;
        gap: 4px;
        min-width: 0;
        padding: 6px;
    }

    .prc-card-option {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 8px 6px;
        text-align: center;
    }
}

/* Too narrow for a row: one under another again. */
@container (max-width: 330px) {
    .prc-card-options {
        grid-auto-flow: row;
    }

    .prc-card-option {
        flex-direction: row;
        justify-content: space-between;
        padding: 6px 8px;
    }
}

.amh-button.prc-card-button {
    min-height: 50px;
    gap: 14px;
    padding: 11px clamp(18px, 1.5vw, 28px);
    font-size: clamp(15px, .95vw, 17px);
}

.amh-button.prc-card-button span {
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: .7;
}

/* Smaller laptops: the heading beside the photo gets more room (the photo is narrower). */
@media (max-width: 1366px) {
    .prc-programs-intro,
    .prc-group-head {
        width: min(100%, 66%);
    }

    .prc-programs-media {
        width: 34%;
    }
}

/* Tablets: the cards one under another (each keeps its photo on the left), the note out (it would cover the heading). */
@media (max-width: 1180px) {
    .prc-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .prc-programs-handwritten {
        display: none;
    }
}

/* Narrow tablets and phones: the campus as a band between the heading and the group, the note on it again. */
@media (max-width: 900px) {
    .prc-programs-intro,
    .prc-group-head {
        width: 100%;
    }

    .prc-programs-media {
        position: relative;
        width: auto;
        max-height: 380px;
        margin: clamp(18px, 4vw, 30px) -32px 0;
        aspect-ratio: 16 / 9;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 76%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 76%, transparent 100%);
    }

    .prc-programs-photo {
        object-position: 50% 42%;
    }

    .prc-programs-handwritten {
        display: block;
        top: 16%;
        right: 6%;
        font-size: clamp(18px, 3.6vw, 26px);
    }

    .prc-group {
        margin-top: 6px;
    }
}

@media (max-width: 780px) {
    .prc-programs-inner,
    .prc-section-inner {
        width: min(100% - 36px, 660px);
    }

    .prc-programs-media {
        margin-inline: -18px;
    }
}

/* Phones: the photo of a card as a band over its texts. */
@media (max-width: 700px) {
    .prc-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 12px;
    }

    .prc-card-media {
        height: clamp(220px, 62vw, 320px);
    }

    .prc-card-photo {
        object-position: 50% 22%;
    }

    .prc-card-body {
        padding: 0 8px 8px;
    }

    /* The price under the title, on the left. */
    .prc-card-head {
        flex-direction: column;
    }

    .prc-card-pricing {
        max-width: none;
        text-align: left;
    }

    .prc-card-price-top .prc-card-footer {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .prc-programs-handwritten {
        right: 7%;
        font-size: 16px;
    }

    .prc-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .amh-button.prc-card-button {
        width: 100%;
    }
}

/* ---------- A strip of features (template-parts/pricing/features.php): icon in a circle, title and text, divided by
 * lines, on a white card. */

.prc-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: clamp(14px, 1.1vw, 20px) clamp(10px, 1.4vw, 28px);
    border: 1px solid var(--prc-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(1, 33, 106, .08);
    list-style: none;
}

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

.prc-feature {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: clamp(12px, 1.3vw, 24px);
    margin: 0;
    padding: 4px clamp(14px, 2vw, 40px);
}

.prc-feature + .prc-feature::before {
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 0;
    width: 1px;
    background: #d9e5f3;
    content: '';
}

.prc-feature-icon {
    display: grid;
    width: clamp(54px, 3.9vw, 74px);
    height: clamp(54px, 3.9vw, 74px);
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e9f1fa;
    color: var(--amh-navy);
}

.prc-feature-icon svg {
    width: 52%;
    height: 52%;
}

.prc-feature-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.prc-feature-title {
    color: var(--amh-navy);
    font-size: clamp(15px, 1.02vw, 19px);
    font-weight: 700;
    line-height: 1.3;
}

.prc-feature-text {
    color: var(--prc-muted);
    font-size: clamp(13px, .9vw, 16px);
    line-height: 1.4;
}

.prc-features-4 .prc-feature {
    padding-inline: clamp(12px, 1.3vw, 26px);
}

/* A strip after a group of cards. */
.prc-group + .prc-features {
    margin-top: clamp(16px, 1.4vw, 26px);
}

/* The trust strip: two lines of the same size, the second in blue. */
.prc-features-trust .prc-feature-copy {
    gap: 0;
}

.prc-features-trust .prc-feature-title,
.prc-features-trust .prc-feature-text {
    font-size: clamp(15px, 1.05vw, 19px);
    line-height: 1.35;
}

.prc-features-trust .prc-feature-text {
    color: #1f4fae;
}

/* Tablets: four features in two rows. */
@media (max-width: 1080px) {
    .prc-features-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 8px;
    }

    .prc-features-4 .prc-feature:nth-child(odd)::before {
        display: none;
    }

    .prc-features-4 .prc-feature:nth-child(n + 3) {
        padding-top: 12px;
        border-top: 1px solid #d9e5f3;
    }
}

/* Phones: one feature per row. */
@media (max-width: 700px) {
    .prc-features,
    .prc-features-4 {
        grid-template-columns: minmax(0, 1fr);
        padding: 4px 16px;
    }

    .prc-feature {
        padding: 14px 2px;
    }

    .prc-feature + .prc-feature::before {
        display: none;
    }

    .prc-feature + .prc-feature,
    .prc-features-4 .prc-feature:nth-child(n + 3) {
        padding-top: 14px;
        border-top: 1px solid #d9e5f3;
    }
}
