/* Student Ambassador Program
   Headings: Cormorant Garamond
   Body: Manrope
*/

.ambassador-program-page {
    --ap-teal: #0f7773;
    --ap-teal-dark: #0a5350;
    --ap-ink: #202425;
    --ap-muted: #626a6a;
    --ap-line: #dce3e2;
    --ap-soft: #f3f7f6;
    --ap-cream: #faf8f3;
    --ap-white: #ffffff;
    color: var(--ap-ink);
    background: var(--ap-white);
    font-family: "Manrope", Arial, sans-serif;
    line-height: 1.75;
}

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

.ambassador-program-page h1,
.ambassador-program-page h2,
.ambassador-program-page h3 {
    margin-top: 0;
    color: inherit;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    line-height: 1.08;
}

.ambassador-program-page h1 {
    max-width: 850px;
    margin-bottom: 28px;
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    letter-spacing: -0.045em;
}

.ambassador-program-page h2 {
    margin-bottom: 24px;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    letter-spacing: -0.035em;
}

.ambassador-program-page h3 {
    margin-bottom: 14px;
    font-size: clamp(1.65rem, 2.5vw, 2.2rem);
}

.ambassador-program-page p {
    margin-top: 0;
}

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

.ap-narrow {
    width: min(780px, calc(100% - 48px));
}

.ap-section {
    padding: clamp(78px, 10vw, 140px) 0;
}

.ap-section--tinted {
    background: var(--ap-soft);
}

.ap-section--dark {
    color: var(--ap-white);
    background: var(--ap-teal-dark);
}

.ap-guide-section {
    padding: 0 0 clamp(78px, 10vw, 140px);
}

.ap-eyebrow,
.ap-kicker {
    margin-bottom: 18px;
    color: var(--ap-teal);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.ap-hero {
    position: relative;
    overflow: hidden;
    color: var(--ap-white);
    background: var(--ap-teal-dark);
}

.ap-hero__inner {
    position: relative;
    z-index: 1;
    min-height: 720px;
    padding-top: clamp(110px, 14vw, 190px);
    padding-bottom: clamp(90px, 11vw, 150px);
}

.ap-hero__content {
    position: relative;
    z-index: 1;
    width: 62%;
}

.ap-hero__media {
    position: absolute;
    top: 0;
    right: calc((100vw - 100%) / -2);
    bottom: 0;
    left: 68%;
    margin: 0;
    overflow: hidden;
}

.ap-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ap-hero .ap-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.ap-hero__lead {
    max-width: 720px;
    margin-bottom: 42px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.ap-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ap-actions--centered {
    justify-content: center;
}

.ap-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

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

.ap-button--primary {
    color: var(--ap-white);
    background: var(--ap-teal);
}

.ap-hero .ap-button--primary {
    color: var(--ap-teal-dark);
    background: var(--ap-white);
}

.ap-button--secondary {
    color: var(--ap-teal-dark);
    border-color: var(--ap-teal);
    background: transparent;
}

.ap-hero .ap-button--secondary {
    color: var(--ap-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.ap-button--disabled {
    color: #707777;
    border-color: #ccd3d2;
    background: #e7eceb;
    cursor: not-allowed;
}

.ap-button--disabled:hover {
    transform: none;
}

.ap-narrow > p:not(.ap-kicker),
.ap-heading > p:not(.ap-kicker) {
    color: var(--ap-muted);
    font-size: 1.05rem;
}

.ap-narrow > p:not(.ap-kicker) {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.ap-heading {
    max-width: 760px;
    margin-bottom: 54px;
}

.ap-heading--light > p:not(.ap-kicker) {
    color: rgba(255, 255, 255, 0.72);
}

.ap-section--dark .ap-kicker {
    color: #9ed9d5;
}

.ap-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.ap-flow-card {
    min-height: 360px;
    padding: 34px;
    border: 1px solid var(--ap-line);
    border-radius: 4px;
    background: var(--ap-white);
}

.ap-flow-card--featured {
    color: var(--ap-white);
    border-color: var(--ap-teal);
    background: var(--ap-teal);
}

.ap-label {
    display: block;
    margin-bottom: 46px;
    color: var(--ap-teal);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ap-flow-card--featured .ap-label {
    color: rgba(255, 255, 255, 0.74);
}

.ap-flow-card p {
    margin-bottom: 0;
    color: var(--ap-muted);
}

.ap-flow-card--featured p {
    color: rgba(255, 255, 255, 0.84);
}

.ap-note {
    max-width: 820px;
    margin: 42px auto 0;
    color: var(--ap-muted);
    text-align: center;
}

.ap-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--ap-line);
    border-bottom: 1px solid var(--ap-line);
}

.ap-timeline article {
    position: relative;
    padding: 34px 30px 40px;
}

.ap-timeline article + article {
    border-left: 1px solid var(--ap-line);
}

.ap-timeline span {
    display: block;
    margin-bottom: 48px;
    color: var(--ap-teal);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ap-timeline p {
    margin-bottom: 0;
    color: var(--ap-muted);
}

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

.ap-info-card {
    padding: clamp(34px, 5vw, 58px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ap-info-card ul {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ap-info-card li {
    position: relative;
    padding-left: 27px;
    color: rgba(255, 255, 255, 0.8);
}

.ap-info-card li::before {
    position: absolute;
    top: 0.1em;
    left: 0;
    color: #9ed9d5;
    content: "✓";
    font-weight: 700;
}

.ap-guidebook {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
    padding: clamp(40px, 7vw, 76px);
    border: 1px solid var(--ap-line);
    background: var(--ap-cream);
}

.ap-guidebook h2 {
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 4.5vw, 4rem);
}

.ap-guidebook p:not(.ap-kicker) {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--ap-muted);
}

.ap-host-ambassadors {
    background: var(--ap-soft);
}

.ap-host-ambassadors__intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 8vw, 100px);
    align-items: end;
    margin-bottom: 58px;
}

.ap-host-ambassadors__intro h2,
.ap-host-ambassadors__intro p {
    margin-bottom: 0;
}

.ap-host-ambassadors__intro > p {
    color: var(--ap-muted);
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.ap-ambassador-count {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 24px;
    border: 1px solid var(--ap-line);
    background: var(--ap-white);
}

.ap-ambassador-count article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    padding: clamp(30px, 5vw, 50px);
}

.ap-ambassador-count article + article {
    border-left: 1px solid var(--ap-line);
}

.ap-ambassador-count__number {
    color: var(--ap-teal);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(4rem, 7vw, 6.5rem);
    line-height: 0.8;
}

.ap-ambassador-count h3 {
    margin-bottom: 8px;
}

.ap-ambassador-count p,
.ap-host-duties p,
.ap-host-note p {
    margin-bottom: 0;
    color: var(--ap-muted);
}

.ap-host-duties {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 24px;
    border: 1px solid var(--ap-line);
    background: var(--ap-line);
}

.ap-host-duties article {
    padding: clamp(30px, 4vw, 44px);
    background: var(--ap-white);
}

.ap-host-duties .ap-label {
    margin-bottom: 36px;
}

.ap-host-note {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding: 28px 34px;
    color: var(--ap-white);
    background: var(--ap-teal-dark);
}

.ap-host-note strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.2;
}

.ap-host-note p {
    color: rgba(255, 255, 255, 0.78);
}

.ap-faq {
    border-top: 1px solid var(--ap-line);
}

.ap-faq details {
    border-bottom: 1px solid var(--ap-line);
}

.ap-faq summary {
    position: relative;
    padding: 27px 48px 27px 0;
    cursor: pointer;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 500;
    list-style: none;
}

.ap-faq summary::-webkit-details-marker {
    display: none;
}

.ap-faq summary::after {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 12px;
    height: 12px;
    border-right: 1px solid var(--ap-teal);
    border-bottom: 1px solid var(--ap-teal);
    content: "";
    transform: translateY(-70%) rotate(45deg);
    transition: transform 180ms ease;
}

.ap-faq details[open] summary::after {
    transform: translateY(-25%) rotate(225deg);
}

.ap-faq details > div {
    max-width: 680px;
    padding: 0 0 28px;
}

.ap-faq details > div p {
    margin-bottom: 0;
    color: var(--ap-muted);
}

.ap-final-cta {
    text-align: center;
    background: var(--ap-soft);
}

.ap-final-cta p:not(.ap-kicker) {
    color: var(--ap-muted);
}

.ap-final-cta .ap-actions {
    margin-top: 34px;
}

@media (max-width: 980px) {
    .ap-hero__content {
        width: 58%;
    }

    .ap-hero__media {
        left: 64%;
    }

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

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

    .ap-timeline article:nth-child(3) {
        border-top: 1px solid var(--ap-line);
        border-left: 0;
    }

    .ap-timeline article:nth-child(4) {
        border-top: 1px solid var(--ap-line);
    }

    .ap-host-duties {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ap-container,
    .ap-narrow {
        width: min(100% - 32px, 1180px);
    }

    .ap-hero__inner {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 0;
    }

    .ap-hero__content {
        width: 100%;
    }

    .ap-hero__media {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100vw;
        height: min(118vw, 560px);
        margin-top: 48px;
        margin-left: calc(50% - 50vw);
    }

    .ambassador-program-page h1 {
        font-size: clamp(3rem, 15vw, 4.7rem);
    }

    .ambassador-program-page h2 {
        font-size: clamp(2.4rem, 11vw, 3.6rem);
    }

    .ap-section {
        padding: 72px 0;
    }

    .ap-guide-section {
        padding: 0 0 72px;
    }

    .ap-flow {
        grid-template-columns: 1fr;
    }

    .ap-flow-card {
        min-height: 0;
    }

    .ap-columns,
    .ap-host-ambassadors__intro,
    .ap-ambassador-count,
    .ap-host-note,
    .ap-guidebook {
        grid-template-columns: 1fr;
    }

    .ap-ambassador-count article + article {
        border-top: 1px solid var(--ap-line);
        border-left: 0;
    }

    .ap-host-ambassadors__intro {
        gap: 24px;
        margin-bottom: 40px;
    }

    .ap-host-note {
        gap: 12px;
    }

    .ap-timeline {
        grid-template-columns: 1fr;
    }

    .ap-timeline article + article,
    .ap-timeline article:nth-child(3),
    .ap-timeline article:nth-child(4) {
        border-top: 1px solid var(--ap-line);
        border-left: 0;
    }

    .ap-timeline span {
        margin-bottom: 20px;
    }

    .ap-guidebook {
        gap: 28px;
    }

    .ap-guidebook .ap-button {
        width: 100%;
    }

    .ap-actions {
        flex-direction: column;
    }

    .ap-actions .ap-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap-button,
    .ap-faq summary::after {
        transition: none;
    }
}
