/* ================================================================
   1. Design settings
   ================================================================ */

:root {
    --color-navy: #081a3c;
    --color-blue: #1d428a;
    --color-dark-green: #204857;
    --color-light-blue: #6bbff3;
    --color-orange: #ff9b05;
    --color-orange-text: #ff9800;
    --color-orange-secondary: #e37721;
    --color-mint-green: #78d3ad;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-text: #1e1e1e;
    --color-field: #f0f2f6;
    --color-card-background: #f5f7fb;

    --font-heading: "Hanken Grotesk", Arial, Helvetica, sans-serif;
    --font-body: "Open Sans", Arial, Helvetica, sans-serif;

    --content-width: 1046px;
    --page-padding: 24px;
    --section-space: 64px;

    --radius-small: 8px;
    --radius-medium: 16px;
    --shadow-card: 0 4px 12px rgb(0 0 0 / 16%);
}

/* ================================================================
   2. Base elements
   ================================================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
}

h1,
h2,
h3,
p,
blockquote {
    margin-top: 0;
}

blockquote {
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
}

h1,
h2,
h3 {
    color: var(--color-black);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.08;
}

h1 {
    font-size: 44px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 20px;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

/* ================================================================
   3. Accessibility
   ================================================================ */

.skip-link {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 100;
    padding: 12px 16px;
    color: var(--color-white);
    background: var(--color-navy);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--color-light-blue);
    outline-offset: 4px;
}

/* ================================================================
   4. Shared layout
   ================================================================ */

.container {
    width: min(calc(100% - (2 * var(--page-padding))), var(--content-width));
    margin-right: auto;
    margin-left: auto;
}

.section,
.paper-section {
    position: relative;
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

/* ---------- Column Layouts ---------- */

.two-columns,
.column-grid {
    display: grid;
    gap: 40px;
}

ul.column-grid {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

.column-item--centered {
    justify-self: center;
}

/* ---------- Section Headings ---------- */

.section-title {
    margin-bottom: 20px;
    font-size: 60px;
    font-weight: 900;
    line-height: 1;
}

.section-heading--with-icon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: start;
    gap: 58px;
    margin-bottom: 50px;
}

.section-heading p {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.5;
}

.section-heading .button {
    margin-top: 20px;
}

.section-heading__icon {
    display: flex;
    width: 112px;
    height: 118px;
    align-items: flex-start;
    justify-content: flex-start;
}

.section-heading__icon img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

/* ================================================================
   5. Shared styles
   ================================================================ */

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 16px 28px;
    border: 0;
    border-radius: 999px;
    color: var(--color-navy);
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease;
}

.button--primary {
    background: var(--color-orange);
}

.button--primary:hover,
.button--primary:focus-visible {
    color: var(--color-white);
    background: var(--color-navy);
}

.button__arrow {
    width: 26px;
    height: 15px;
    background: url("../images/icons/dash-arrow-dark-blue.svg") center / contain no-repeat;
    transition: transform 180ms ease;
}

.button:hover .button__arrow,
.button:focus-visible .button__arrow {
    background-image: url("../images/icons/arrow-white.svg");
    transform: translateX(6px);
}

/* ---------- Forms ---------- */

.form-card {
    display: grid;
    gap: 0;
    padding: 32px 28px 36px;
    border-radius: 20px;
    color: var(--color-white);
    background: var(--color-navy);
    box-shadow: var(--shadow-card);
}

.form-card h2 {
    margin-bottom: 0;
    color: inherit;
    font-size: 24px;
    line-height: 1.1;
}

.form-card h2 + .form-card__name-fields {
    margin-top: 24px;
}

.form-card__name-fields {
    display: grid;
    gap: 16px;
}

.form-card__name-fields + .form-field,
.form-card > .form-field + .form-field {
    margin-top: 20px;
}

.form-card > .form-field + .button {
    margin-top: 24px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.form-field input,
.form-field select {
    width: 100%;
    height: 42px;
    min-height: 0;
    padding: 0 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-small);
    color: #515151;
    background: var(--color-field);
    font-size: 18px;
}

/* ---------- Feature Lists ---------- */

.feature-list {
    display: grid;
    gap: 24px;
    padding-left: 22px;
}

.feature-list--checks {
    padding-left: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    list-style: none;
}

.feature-list--checks li {
    position: relative;
    padding-left: 48px;
}

.feature-list--checks li::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 36px;
    height: 26px;
    background: url("../images/icons/check-mark.svg") center / contain no-repeat;
}

.feature-list--dots li::marker {
    color: var(--color-orange-secondary);
}

/* ---------- Paper Sections ---------- */

.paper-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-repeat: repeat;
}

.paper-section::before,
.paper-section::after {
    content: "";
    position: absolute;
    left: var(--paper-edge-left, -20px);
    z-index: 1;
    width: var(--paper-edge-width, calc(100% + 40px));
    height: 32px;
    background: url("../images/backgrounds/paper-edge-strip.png") center / 100% 100% no-repeat;
    pointer-events: none;
}

.paper-section::before {
    top: var(--paper-edge-top-inset, 0);
    transform: translateY(-50%) rotate(var(--paper-edge-top-rotation, 0deg));
}

.paper-section::after {
    bottom: var(--paper-edge-bottom-inset, 0);
    transform: translateY(50%) rotate(var(--paper-edge-bottom-rotation, 0deg)) scaleY(-1);
}

.paper-section > .container {
    position: relative;
    z-index: 2;
}

.paper-section--blue {
    color: var(--color-white);
    background-color: var(--color-blue);
    background-image: url("../images/backgrounds/paper-background.png");
    background-size: cover;
    background-blend-mode: multiply;
}

.paper-section--blue h2 {
    color: inherit;
}

.paper-section--grid {
    background-color: var(--color-white);
    background-image: url("../images/backgrounds/paper-grid-background.png");
    background-size: 1200px auto;
}

.paper-section__curve {
    position: absolute;
    z-index: 3;
    right: -80px;
    bottom: -56px;
    width: 487px;
    height: 174px;
    pointer-events: none;
}

/* ================================================================
   6. Page sections
   ================================================================ */

/* ---------- Site Header ---------- */

.site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    height: 128px;
    color: var(--color-white);
}

.site-header__content {
    display: flex;
    width: calc(100% - 80px);
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-header__links {
    display: flex;
    width: 345px;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo img {
    width: 242px;
}

.site-header__links {
    padding: 11px 24px;
    border-radius: 999px;
    background: var(--color-navy);
}

.site-header__links a {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 5px;
    text-underline-position: from-font;
}

.site-header__links a:hover,
.site-header__links a:focus-visible {
    text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    height: 758px;
    color: var(--color-white);
    overflow: visible;
    padding: 0;
    background:
        linear-gradient(to right, rgb(0 0 0 / 65%) 19%, rgb(0 0 0 / 0%) 100%),
        url("../images/photos/hero-union-students.jpg") center / cover no-repeat;
}

.two-columns.hero__layout {
    width: min(100%, 1200px);
    height: 100%;
    padding-top: 326px;
    grid-template-columns: 77px 573px 15px 467px 68px;
    align-items: start;
    gap: 0;
}

.hero__content {
    grid-column: 2;
}

.hero .form-card {
    position: relative;
    z-index: 4;
    grid-column: 4;
    width: 467px;
    height: 385px;
    margin-top: 102px;
}

.form-card .button {
    width: 147px;
    min-height: 56px;
    justify-content: center;
    justify-self: start;
}

.hero h1 {
    max-width: 573px;
    margin-bottom: 20px;
    color: inherit;
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
}

.hero__heading-highlight {
    color: var(--color-orange-text);
}

.tuition-stat {
    display: inline-flex;
    max-width: 100%;
    min-height: 84px;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 24px 28px;
    border-radius: var(--radius-medium);
    background: var(--color-dark-green);
}

.tuition-stat strong {
    font-family: var(--font-heading);
    font-size: 45px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.tuition-stat span {
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

/* ---------- Blue Paper Two-Column Section ---------- */

.paper-section--blue {
    --paper-edge-left: -20px;
    --paper-edge-width: calc(100% + 37px);
    --paper-edge-top-inset: 3px;
    --paper-edge-bottom-inset: 3px;
    --paper-edge-top-rotation: 0deg;
    --paper-edge-bottom-rotation: 0deg;
}

.paper-section--blue .column-grid {
    align-items: start;
    gap: 40px;
}

.paper-section--blue .feature-list--checks {
    width: 100%;
    gap: 30px;
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.paper-section--blue .feature-list--checks li {
    padding-left: 56px;
}

.paper-section--blue .feature-list--checks li::before {
    top: 0;
    width: 36px;
    height: 29px;
}

.paper-section--blue .photo-w-paper-note > img {
    width: 100%;
    height: auto;
    aspect-ratio: 476 / 285;
    border-radius: 20px;
    object-position: var(--photo-position, center 25%);
}

.photo-w-paper-note {
    position: relative;
    padding-bottom: 100px;
}

.photo-w-paper-note > img,
.section-photo {
    width: 100%;
    border-radius: var(--radius-medium);
    object-fit: cover;
}

.paper-note {
    position: absolute;
    right: -20px;
    bottom: 23px;
    display: grid;
    width: 361px;
    height: 155px;
    grid-template-columns: 259px;
    align-content: center;
    justify-content: center;
    padding: 0;
    color: var(--color-black);
    text-align: left;
    isolation: isolate;
}

.paper-note::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 406px;
    height: 201px;
    background: url("../images/decorations/paper-tab.png") center / 100% 100% no-repeat;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.paper-note strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.paper-note {
    font-size: 16px;
    line-height: 1.42;
}

/* ---------- Tuition Comparison ---------- */

.tuition-comparison {
    position: relative;
    display: flex;
    width: 503px;
    height: 310px;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 30px;
    padding-left: 82px;
    padding-bottom: 61px;
}

.tuition-comparison__bar {
    position: relative;
    display: grid;
    width: 148px;
    align-content: center;
    justify-content: center;
    padding: 40px 20px;
    border-radius: 20px 20px 0 0;
    color: var(--color-white);
    text-align: center;
}

.tuition-comparison__bar strong {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.tuition-comparison__bar span {
    font-size: 16px;
    line-height: 1.35;
}

.tuition-comparison__bar--standard {
    height: 247px;
    background: var(--color-dark-green);
}

.tuition-comparison__bar--grant {
    height: 186px;
    background: var(--color-blue);
}

.tuition-comparison__line {
    position: absolute;
    right: 0;
    bottom: 60px;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 2px;
    background: url("../images/decorations/dash-line-black.svg") center / 100% 100% no-repeat;
}

.tuition-comparison__star {
    position: absolute;
    top: -18px;
    right: -16px;
    z-index: 3;
    width: 58px;
    height: 60px;
    transform: rotate(8deg);
}

.tuition-comparison__note {
    position: absolute;
    top: 150px;
    left: 52px;
    z-index: 4;
    display: grid;
    width: 224px;
    height: 97px;
    align-content: center;
    justify-content: center;
    justify-items: center;
    margin: 0;
    padding: 0 32px;
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    isolation: isolate;
}

.tuition-comparison__note::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: url("../images/decorations/paper-tab-trimmed.png") center / 100% 100% no-repeat;
}

/* ---------- Two-Column Sections ---------- */

.two-column-section .column-grid {
    align-items: center;
    gap: 40px;
}

.section-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.section-title--wave {
    padding-bottom: 20px;
}

.section-title--wave span {
    position: relative;
    display: inline-block;
}

.section-title--wave span::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 122px;
    height: 24px;
    background: url("../images/decorations/wave-underline.svg") center / contain no-repeat;
    transform: translateX(-50%);
    pointer-events: none;
}

.paper-section--grid.two-column-section--heading-above .column-grid {
    align-items: start;
    gap: 40px;
}

.paper-section--grid .section-content {
    font-size: 18px;
    line-height: 1.5;
}

.paper-section--grid .section-content p,
.paper-section--grid .feature-list--dots {
    margin-bottom: 20px;
}

.paper-section--grid .feature-list--dots {
    gap: 4px;
    padding-left: 32px;
}

.paper-section--grid .section-content .button {
    margin-top: 0;
}

.section-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 503 / 368;
    border-radius: 20px;
    object-position: var(--save-photo-position, center 30%);
}

/* ---------- Testimonial Cards ---------- */
/* Keep testimonial cards equal in height when they share a grid row. */
.testimonial-grid > li {
    display: flex;
}

.testimonial-card {
    position: relative;
    display: flex;
    min-height: 622px;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: var(--color-blue);
    box-shadow: 0 4px 10px 3px rgb(0 0 0 / 15%);
    /* Fill each grid item so side-by-side testimonial cards are equal height (w100 h100). */
    width: 100%;
    height: 100%;
}

.testimonial-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 503 / 340;
    object-fit: cover;
    object-position: var(--testimonial-photo-position, center 50%);
}

.testimonial-card__content {
    min-height: 282px;
    flex: 1;
    padding: 30px 40px;
    color: var(--color-white);
    background: var(--color-blue);
}

.testimonial-card blockquote {
    margin-bottom: 30px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.testimonial-card blockquote p,
.testimonial-card__person {
    margin-bottom: 0;
}

.testimonial-card__person {
    display: grid;
}

.testimonial-card__person strong {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.1;
}

.testimonial-card__person span {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

/* ---------- Program Cards ---------- */

.program-card {
    display: flex;
    width: 100%;
    min-height: 248px;
    flex-direction: column;
    padding: 24px 20px;
    border: 1px solid var(--color-blue);
    border-radius: 12px;
    color: var(--color-blue);
    background: var(--color-card-background);
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease;
}

.program-card:hover,
.program-card:focus-visible {
    color: var(--color-white);
    background: var(--color-navy);
}

.program-card h3 {
    margin-bottom: 4px;
    color: inherit;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.program-card > p {
    margin-bottom: 0;
    color: var(--color-navy);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.42;
}

.program-card:hover > p,
.program-card:focus-visible > p {
    color: inherit;
}

.credential-tags {
    display: flex;
    gap: 2px;
    margin-top: auto;
}

.credential-tag {
    padding: 7px 12px;
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
}

.credential-tag:first-child {
    border-radius: 999px 0 0 999px;
}

.credential-tag:last-child {
    border-radius: 0 999px 999px 0;
}

.credential-tag:only-child {
    border-radius: 999px;
}

.credential-tag--bachelors {
    background: var(--color-light-blue);
}

.credential-tag--masters {
    background: var(--color-mint-green);
}

.card-section + .card-section {
    padding-top: 0;
}

/* ---------- Two-Column Form Section ---------- */

.two-column-form-section {
    padding-top: 100px;
    padding-bottom: 125px;
}

.two-column-form-section::after {
    content: none;
}

.two-column-form-section > .column-grid {
    align-items: center;
}

.two-column-form-section .form-section-title {
    margin-bottom: 0;
    font-size: 85px;
    font-weight: 900;
    line-height: 1.1;
}

.two-column-form-section .form-section-title--zig-zag span {
    position: relative;
    display: inline-block;
}

.two-column-form-section .form-section-title--zig-zag span::after {
    content: "";
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 284px;
    height: 40px;
    background: url("../images/decorations/zig-zag-underline.svg") center / contain no-repeat;
    pointer-events: none;
}

.two-column-form-section .form-card {
    width: 468px;
    min-height: 309px;
}

/* ---------- Site Footer ---------- */

.site-footer {
    position: relative;
    min-height: 387px;
    padding-top: 100px;
    padding-bottom: 100px;
    color: var(--color-white);
    background: var(--color-blue);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -20px;
    z-index: 2;
    width: calc(100% + 40px);
    height: 32px;
    background: url("../images/backgrounds/paper-edge-strip.png") center / 100% 100% no-repeat;
    transform: translateY(-50%) scaleY(-1);
    pointer-events: none;
}

.site-footer__layout {
    display: grid;
    width: min(calc(100% - (2 * var(--page-padding))), 1042px);
    min-height: 177px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 40px;
}

.site-footer__information {
    display: grid;
    justify-items: start;
    gap: 24px;
}

.site-footer__logo {
    width: 242px;
}

.site-footer__home-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color 180ms ease;
}

.site-footer__arrow {
    width: 26px;
    height: 15px;
    background: url("../images/icons/dash-arrow-white.svg") center / contain no-repeat;
    transition: transform 180ms ease;
}

.site-footer__home-link:hover,
.site-footer__home-link:focus-visible {
    color: var(--color-orange);
}

.site-footer__home-link:hover .site-footer__arrow,
.site-footer__home-link:focus-visible .site-footer__arrow {
    background-image: url("../images/icons/dash-arrow-orange.svg");
    transform: translateX(3px);
}

.site-footer address {
    font-style: normal;
}

.site-footer__copyright {
    margin: 0;
}

.site-footer__social {
    justify-self: end;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-links a {
    display: grid;
    width: 44px;
    min-height: 44px;
    align-items: center;
    justify-items: center;
    border-radius: 5px;
}

.social-links img {
    width: 34px;
    height: 34px;
    transition: filter 180ms ease;
}

.social-links a:not(.social-links__x):hover img,
.social-links a:not(.social-links__x):focus-visible img {
    filter: brightness(0) saturate(100%) invert(62%) sepia(96%)
        saturate(1983%) hue-rotate(356deg) brightness(101%) contrast(106%);
}

.social-links__x {
    position: relative;
    background-color: transparent;
}

.social-links__x img {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
}

.social-links__x::before {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    background-color: var(--color-white);
    transition: background-color 180ms ease;
}

.social-links__x:hover,
.social-links__x:focus-visible {
    background-color: transparent;
}

.social-links__x:hover::before,
.social-links__x:focus-visible::before {
    background-color: var(--color-orange);
}

/* ================================================================
   7. Responsive rules
   ================================================================ */

@media (min-width: 640px) {
    :root {
        --section-space: 80px;
    }

    .two-columns {
        gap: 48px;
    }

    .section-heading__icon {
        width: 80px;
        height: 84px;
    }

    .paper-section::before,
    .paper-section::after,
    .site-footer::before {
        height: 44px;
    }

    .form-card__name-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (min-width: 768px) {
    :root {
        --section-space: 96px;
    }

    .two-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        gap: 64px;
    }

    .section-heading__icon {
        width: 96px;
        height: 101px;
    }

    .paper-section::before,
    .paper-section::after,
    .site-footer::before {
        height: 48px;
    }

}

/* Narrow desktop: preserve the hero columns without overflowing the viewport. */
@media (min-width: 1025px) and (max-width: 1200px) {
    .section-heading__icon {
        width: 112px;
        height: 118px;
    }

    .two-columns.hero__layout {
        width: 100%;
        grid-template-columns:
            40px minmax(0, 1fr) 15px minmax(400px, 467px) 40px;
    }

    .hero__content {
        min-width: 0;
    }

    .hero h1 {
        max-width: none;
        font-size: 68px;
        line-height: 1.05;
    }

    .hero .form-card {
        width: 100%;
        max-width: 467px;
        justify-self: end;
    }
}

/* Desktop: keep the 77px design margins and let main content expand. */
@media (min-width: 1025px) {
    main .container {
        width: calc(100% - 154px);
        max-width: none;
    }
}

/* Large desktop spacing and sizing adjustments. */
@media (min-width: 1201px) {
    :root {
        --section-space: 112px;
    }

    .two-columns {
        gap: 80px;
    }

    .section-heading__icon {
        width: 112px;
        height: 118px;
    }

    .paper-section::before,
    .paper-section::after,
    .site-footer::before {
        height: 56px;
    }

    .two-columns.hero__layout {
        width: 100%;
        grid-template-columns:
            77px minmax(573px, 1fr) 15px minmax(467px, 520px) 68px;
    }

    .hero h1 {
        max-width: none;
    }

    .hero .form-card {
        width: 100%;
        max-width: 520px;
        justify-self: end;
    }

    .program-card {
        width: 100%;
    }

    .two-column-form-section .form-card {
        width: 100%;
        max-width: 520px;
        justify-self: end;
    }

    .site-footer__layout {
        width: calc(100% - 158px);
        max-width: none;
        grid-template-columns: minmax(0, 1fr) auto;
        justify-content: space-between;
    }
}

@media (max-width: 1024px) {
    .hero {
        height: auto;
        min-height: 704px;
        padding-top: 192px;
        padding-bottom: 80px;
    }

    .two-columns.hero__layout {
        width: min(calc(100% - (2 * var(--page-padding))), var(--content-width));
        height: auto;
        padding-top: 0;
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero__content {
        grid-column: 1;
    }

    .hero .form-card {
        width: min(100%, 467px);
        height: auto;
        grid-column: 1;
        margin-top: 0;
    }

    .paper-section--blue {
        --paper-edge-left: -20px;
        --paper-edge-width: calc(100% + 40px);
    }

    .paper-section--blue .photo-w-paper-note {
        width: min(100%, 476px);
    }

    .section-photo {
        width: 100%;
        height: auto;
    }

    .testimonial-card > img {
        height: auto;
    }

    .section-heading--with-icon {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 48px;
    }

    .program-card {
        width: 100%;
    }

    .tuition-comparison {
        width: min(100%, 503px);
    }

    .paper-section__curve {
        right: 0;
        bottom: -50px;
        width: 243px;
        height: 157px;
    }
}

@media (max-width: 767px) {
    :root {
        --page-padding: 20px;
    }

    .site-header {
        position: absolute;
        height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
        background: transparent;
    }

    .site-header__content {
        width: calc(100% - (2 * var(--page-padding)));
        height: auto;
        align-items: center;
        flex-direction: column;
        gap: 16px;
    }

    .site-logo {
        align-self: flex-start;
    }

    .site-logo img {
        width: 165px;
    }

    .site-header__links {
        width: auto;
        min-height: 48px;
        align-items: center;
        align-self: flex-start;
        flex-direction: row;
        justify-content: center;
        gap: 16px;
        padding: 0 16px;
        border-radius: 999px;
    }

    .site-header__links a {
        display: inline-flex;
        min-height: 48px;
        align-items: center;
        padding-bottom: 4px;
        font-size: 14px;
        white-space: nowrap;
    }

    .hero {
        min-height: auto;
        padding-top: 176px;
        padding-bottom: 80px;
        background-position: 60% center;
    }

    .tuition-stat span {
        white-space: normal;
    }

    .section.two-column-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .section-title {
        font-size: 40px;
    }

    .two-column-form-section .form-section-title {
        font-size: 56px;
    }

    .two-column-form-section .form-card {
        width: 100%;
    }

    .tuition-comparison {
        height: 288px;
        gap: 6%;
        padding-left: 10%;
    }

    .tuition-comparison__bar {
        width: 29%;
        padding-right: 8px;
        padding-left: 8px;
    }

    .tuition-comparison__note {
        top: 136px;
        right: -80px;
        left: auto;
        width: 192px;
        height: 88px;
        padding-right: 16px;
        padding-left: 16px;
        font-size: 18px;
    }

    .paper-note {
        top: auto;
        right: 0;
        bottom: -96px;
        left: auto;
        width: min(361px, 90vw);
    }

    .tuition-comparison {
        gap: 12px;
    }

    .tuition-comparison__bar {
        width: 112px;
        padding: 12px;
    }

}

/* Tablet hero: retain the two-column layout. */
@media (min-width: 700px) and (max-width: 1024px) {
    .form-card h2 {
        font-size: 21px;
        line-height: 1.2;
    }

    .form-field input,
    .form-field select {
        height: 38px;
        padding: 0 10px;
        font-size: 16px;
    }

    .form-card .button {
        width: auto;
        min-height: 0;
        padding: 12px 24px;
        font-size: 18px;
        line-height: 1.2;
    }

    .hero {
        height: 720px;
        min-height: 720px;
        padding: 0;
        background-position: center, calc(50% + 40px) center;
    }

    .two-columns.hero__layout {
        width: calc(100% - 60px);
        height: 100%;
        padding-top: 230px;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
        align-items: start;
        gap: 24px;
    }

    .hero__content {
        grid-column: 1;
        margin-top: -40px;
    }

    .hero h1 {
        max-width: none;
        font-size: 56px;
        font-weight: 900;
    }

    .hero .form-card {
        width: 100%;
        max-width: 400px;
        min-height: 385px;
        grid-column: 2;
        justify-self: end;
        margin-top: 150px;
    }

    .tuition-stat {
        gap: 12px;
        padding: 20px;
    }

    .tuition-stat strong {
        font-size: 36px;
    }

    .tuition-stat span {
        font-size: 14px;
        white-space: normal;
    }

    .section-title {
        font-size: 42px;
        font-weight: 800;
        line-height: 1;
    }

    .testimonial-card blockquote {
        margin-bottom: 18px;
        font-size: 21px;
        line-height: 1.4;
    }
/* Keep side-by-side testimonial cards equal while removing the desktop minimum height use flex 1 */
    .testimonial-card {
        min-height: 0;
    }

    .testimonial-card__content {
        min-height: 0;
        /* flex: 0 0 auto; */
        flex: 1;
        padding: 20px 32px 25px;
    }

    .testimonial-card__person strong {
        font-size: 20px;
        font-weight: 800;
        line-height: 1.1;
    }

    .testimonial-card__person span {
        font-size: 18px;
        line-height: 1.5;
    }

    .two-column-form-section .form-section-title {
        font-size: 56px;
        font-weight: 900;
    }

    .two-column-form-section .form-card {
        width: 100%;
        min-width: 0;
    }

    .two-column-form-section .form-section-title--zig-zag span::after {
        width: 190px;
        height: 27px;
    }

    .paper-section--blue > .container,
    .section.two-column-section > .column-grid {
        width: calc(100% - 60px);
    }

    .paper-section--blue .column-grid,
    .section.two-column-section > .column-grid {
        align-items: start;
        gap: 24px;
    }

    .paper-section--blue .feature-list--checks {
        max-width: none;
        gap: 24px;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
    }

    .paper-section--blue .feature-list--checks li {
        padding-left: 44px;
    }

    .paper-section--blue .feature-list--checks li::before {
        width: 32px;
        height: 26px;
    }

    .paper-section--blue .photo-w-paper-note {
        width: 100%;
    }

    .paper-section--blue .photo-w-paper-note > img {
        width: 100%;
        height: auto;
    }

    .paper-section--blue .paper-note {
        top: auto;
        right: -10px;
        bottom: 30px;
        left: auto;
        width: 280px;
        height: 120px;
        grid-template-columns: 210px;
    }

    .paper-section--blue .paper-note::before {
        width: 315px;
        height: 155px;
    }

    .paper-section--blue .paper-note strong {
        font-size: 30px;
    }

    .paper-section--blue .paper-note span {
        font-size: 14px;
    }

    .tuition-comparison {
        width: 100%;
        height: 280px;
        gap: 16px;
        padding: 0 50px 50px 20px;
    }

    .tuition-comparison__bar {
        width: auto;
        flex: 1;
        padding: 20px 10px;
    }

    .tuition-comparison__bar--standard {
        height: 210px;
    }

    .tuition-comparison__bar--grant {
        height: 160px;
    }

    .tuition-comparison__bar strong {
        font-size: 30px;
    }

    .tuition-comparison__bar span {
        font-size: 14px;
    }

    .tuition-comparison__line {
        right: 0;
        bottom: 49px;
        left: 0;
        width: 100%;
    }

    .tuition-comparison__star {
        width: 48px;
        height: 50px;
    }

    .tuition-comparison__note {
        top: 120px;
        right: -70px;
        left: auto;
        width: 170px;
        height: 74px;
        padding: 0 20px;
        font-size: 18px;
    }
}

/* Wide tablets can use the desktop Hero's vertical position. */
@media (min-width: 831px) and (max-width: 1024px) {
    .hero {
        height: 758px;
        min-height: 758px;
    }

    .two-columns.hero__layout {
        padding-top: 326px;
    }

    .hero__content {
        margin-top: 0;
    }

    .hero .form-card {
        margin-top: 102px;
    }
}

/* Wider phones: keep the compact header links beside the logo. */
@media (min-width: 460px) and (max-width: 699px) {
    .site-header__content {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .site-logo {
        flex: 0 0 auto;
    }

    .site-logo img {
        width: 154px;
    }

    .site-header__links {
        width: auto;
        min-height: 48px;
        flex: 0 0 auto;
        align-self: center;
        gap: 16px;
        padding: 0 16px;
    }

    .site-header__links a {
        font-size: 14px;
    }

    .hero {
        padding-top: 128px;
    }
}

/* Compact tablets keep heading icons beside the text. */
@media (min-width: 700px) and (max-width: 767px) {
    .site-header {
        height: 128px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .site-header__content {
        width: calc(100% - 80px);
        height: 100%;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 24px;
    }

    .site-logo {
        align-self: center;
    }

    .site-header__links {
        align-self: center;
    }

    .site-logo img {
        width: 242px;
    }

    .hero {
        height: 720px;
        min-height: 720px;
    }

    .two-columns.hero__layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 340px);
    }

    .hero .form-card {
        max-width: 340px;
    }

    .section-heading--with-icon {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        column-gap: 16px;
        row-gap: 12px;
    }

    .section-heading__content {
        display: contents;
    }

    .section-heading .section-title {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
    }

    .section-heading p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .section-heading .button {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: start;
    }

    .section-heading__icon {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        margin-right: 0;
        width: 56px;
        height: 59px;
    }
}

/* Mobile sizing follows Empire State's existing component scale. */
@media (max-width: 699px) {
    /* Stack reusable column layouts at Empire State's phone breakpoint. */
    .column-grid--two,
    .column-grid--three {
        grid-template-columns: 1fr;
    }

    .site-logo img {
        width: 242px;
    }

    .site-header__content {
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
        gap: 16px;
    }

    .site-header__links {
        align-self: flex-start;
    }

    .site-header__links a {
        font-size: 16px;
    }

    .hero {
        padding-top: 176px;
    }

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

    .hero__content,
    .hero .form-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .hero .form-card {
        margin-bottom: -220px;
    }

    .hero h1 {
        max-width: 100%;
        margin-bottom: 10px;
        font-size: 48px;
        font-weight: 800;
        line-height: 0.88;
    }

    .tuition-stat {
        width: 100%;
        gap: 16px;
        padding: 20px;
    }

    .tuition-stat strong {
        font-size: 36px;
    }

    .tuition-stat span {
        font-size: 16px;
        white-space: nowrap;
    }

    .form-card .button {
        width: auto;
        min-height: 0;
        padding: 12px 24px;
        font-size: 18px;
        line-height: 1.2;
    }

    .paper-section--grid.two-column-section--heading-above,
    .two-column-form-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .paper-section--blue {
        padding: 180px 0 100px;
    }

    .section.two-column-section {
        padding: 64px 0 40px;
    }

    .card-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .section-title {
        min-height: 0;
        margin-bottom: 12px;
        font-size: 30px;
        font-weight: 800;
        line-height: 1;
    }

    .section-content p,
    .section-heading p {
        font-size: 16px;
        line-height: 1.5;
    }

    .section-content p {
        margin-bottom: 20px;
    }

    .section-content .button,
    .section-heading .button {
        min-height: 0;
        padding: 12px 24px;
        font-size: 18px;
        line-height: 1.2;
    }

    .paper-section--blue .feature-list--checks {
        gap: 24px;
        margin-bottom: 0;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.25;
    }

    .paper-section--blue .feature-list--checks li {
        padding-left: 42px;
    }

    .paper-section--blue .feature-list--checks li::before {
        width: 30px;
        height: 24px;
    }

    .paper-section--blue .photo-w-paper-note,
    .paper-section--blue .photo-w-paper-note > img {
        width: 100%;
    }

    .paper-section--blue .photo-w-paper-note {
        padding-bottom: 0;
    }

    .paper-section--blue .column-grid {
        gap: 32px;
    }

    .paper-section--blue .photo-w-paper-note > img {
        height: auto;
    }

    .paper-section--blue .paper-note {
        top: auto;
        right: -4px;
        bottom: -68px;
        left: auto;
        width: 280px;
        height: 120px;
        grid-template-columns: 210px;
    }

    .paper-section--blue .paper-note::before {
        width: 310px;
        height: 150px;
    }

    .paper-section--blue .paper-note strong {
        font-size: 20px;
        font-weight: 900;
        line-height: 1.5;
    }

    .paper-section--blue .paper-note span {
        font-size: 14px;
        line-height: 1.45;
    }

    .section.two-column-section > .column-grid {
        gap: 32px;
    }

    .tuition-comparison {
        width: 100%;
        max-width: 453px;
        height: 310px;
        justify-content: center;
        gap: 20px;
        margin-right: auto;
        margin-left: auto;
        padding: 20px 0 50px;
    }

    .tuition-comparison__bar {
        width: 112px;
        flex: 0 0 112px;
        padding: 20px 10px;
    }

    .tuition-comparison__bar--standard {
        height: 247px;
    }

    .tuition-comparison__bar--grant {
        height: 186px;
    }

    .tuition-comparison__bar strong {
        font-size: 21px;
        line-height: 1.1;
    }

    .tuition-comparison__bar span {
        font-size: 13px;
        line-height: 1.3;
    }

    .tuition-comparison__line {
        right: 0;
        bottom: 49px;
        left: 0;
        width: 100%;
        height: 2px;
    }

    .tuition-comparison__star {
        top: -18px;
        right: -14px;
        width: 54px;
        height: 54px;
    }

    .tuition-comparison__note {
        top: 130px;
        right: -66px;
        left: auto;
        width: 174px;
        height: 80px;
        padding: 0 18px;
        font-size: 20px;
    }

    .paper-section--grid.two-column-section--heading-above .column-grid {
        gap: 32px;
    }

    .paper-section--grid.two-column-section--heading-above .section-content {
        font-size: 16px;
        line-height: 1.5;
    }

    .section-photo {
        width: 100%;
        height: auto;
    }

    .section-heading--with-icon {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        column-gap: 16px;
        row-gap: 12px;
        margin-bottom: 32px;
    }

    .section-heading__content {
        display: contents;
    }

    .section-heading .section-title {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
    }

    .section-heading p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .section-heading .button {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: start;
    }

    .section-heading__icon {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        width: 56px;
        height: 59px;
    }

    .testimonial-grid,
    .program-grid {
        gap: 16px;
    }
/* Stacked testimonial cards follow their own content height. */
    .testimonial-grid > li {
        display: block;
    }
/* The card follows its own content height:auto */
    .testimonial-card {
        height: auto; 
        min-height: 0;
    }

    .testimonial-card > img {
        height: auto;
    }

    .testimonial-card__content {
        min-height: 0;
        flex: 0 0 auto;
        padding: 16px 24px 20px;
    }

    .testimonial-card blockquote {
        margin-bottom: 16px;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.35;
    }

    .testimonial-card__person strong {
        font-size: 18px;
        font-weight: 800;
        line-height: 1.1;
    }

    .testimonial-card__person span {
        font-size: 16px;
        line-height: 1.5;
    }

    .program-card {
        min-height: 174px;
        padding: 16px;
    }

    .program-card h3 {
        font-size: 20px;
        font-weight: 900;
        line-height: 1.1;
    }

    .program-card > p {
        font-size: 14px;
        line-height: 1.45;
    }

    .credential-tag {
        font-size: 14px;
    }

    .two-column-form-section > .column-grid {
        gap: 40px;
    }

    .two-column-form-section .form-section-title {
        font-size: 48px;
        line-height: 1.05;
    }

    .two-column-form-section .form-section-title--zig-zag span::after {
        width: 178px;
        height: 26px;
    }

    .paper-section__curve {
        right: -20px;
        bottom: -18px;
        width: 113px;
        height: 73px;
    }

    .site-footer {
        min-height: 0;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .site-footer__layout {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .site-footer__information {
        display: contents;
    }

    .site-footer__logo {
        order: 1;
        width: 242px;
    }

    .site-footer__social {
        order: 2;
        justify-self: auto;
    }

    .site-footer__home-link {
        order: 3;
    }

    .site-footer address {
        order: 4;
    }

    .site-footer__copyright {
        order: 5;
        font-size: 14px;
        line-height: 1.45;
    }

}

/* Use Empire State's smaller social artwork below the desktop breakpoint. */
@media (max-width: 1023px) {
    .social-links img {
        width: 26px;
        height: 26px;
    }

    .social-links__x img {
        width: 18px;
        height: 18px;
    }

    .social-links__x::before {
        width: 26px;
        height: 26px;
    }
}

/* Small phones: keep hero content within the available single column. */
@media (max-width: 400px) {
    .hero__content,
    .hero .form-card {
        min-width: 0;
        max-width: 100%;
    }

    .form-card h2 {
        font-size: 20px;
    }

    .form-field input,
    .form-field select {
        font-size: 16px;
    }

    .hero h1 {
        max-width: 100%;
        margin-bottom: 10px;
        font-size: 34px;
        font-weight: 800;
        line-height: 0.88;
    }

    .tuition-stat strong {
        font-size: 24px;
    }

    .tuition-stat {
        gap: 6px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .tuition-stat span {
        font-size: 14px;
        white-space: nowrap;
    }
}

/* WCAG reflow edge case: preserve the full tuition description at 320px. */
@media (max-width: 340px) {
    .tuition-stat span {
        line-height: 1.25;
        white-space: normal;
    }
}

/* Keep card spacing consistent with Empire State's small gap. */
@media (max-width: 1024px) {
    .card-section .column-grid {
        gap: 20px;
    }
}

/* ================================================================
   8. Reduced motion
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
