/* ==========================================================================
   FAERI Program Pages
   Loaded AFTER css/style.min.css and css/skin/skin-1.css.
   EVERY selector is scoped under .prog-page so nothing here can reach the
   shared header, nav, footer or any Bootstrap primitive (.container/.row).
   Palette: navy #040529 | deep navy #0a0d3d | red #d72323 | amber #fc9a1e
   ========================================================================== */

.prog-page {
    --pp-navy: #040529;
    --pp-navy-deep: #0a0d3d;
    --pp-red: #d72323;
    --pp-amber: #fc9a1e;
    --pp-ink: #22232e;
    --pp-muted: #5c5f72;
    --pp-line: #e4e6ef;
    --pp-surface: #ffffff;
    --pp-surface-alt: #f6f7fb;
    --pp-radius: 14px;
    --pp-shadow: 0 2px 4px rgba(4, 5, 41, .04), 0 10px 28px rgba(4, 5, 41, .07);
    --pp-shadow-hover: 0 4px 8px rgba(4, 5, 41, .06), 0 18px 40px rgba(4, 5, 41, .12);

    font-family: 'Muli', Arial, Helvetica, sans-serif;
    color: var(--pp-ink);
    background: var(--pp-surface);
}

.prog-page h2,
.prog-page h3 {
    font-family: 'Rajdhani', 'Muli', Arial, sans-serif;
    font-weight: 700;
    color: var(--pp-navy);
    margin: 0;
    line-height: 1.2;
}

.prog-page p {
    margin: 0 0 1.15em;
    line-height: 1.8;
    color: var(--pp-muted);
}

.prog-page p:last-child {
    margin-bottom: 0;
}

.prog-page a {
    color: var(--pp-red);
}

.prog-page img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------- sections */

.prog-page .prog-section {
    padding: 56px 0;
}

.prog-page .prog-section--alt {
    background: var(--pp-surface-alt);
}

.prog-page .prog-section__title {
    font-size: 28px;
    letter-spacing: .2px;
    margin-bottom: 8px;
}

.prog-page .prog-section__title--center {
    text-align: center;
    margin-bottom: 28px;
}

.prog-page .prog-section__icon {
    margin-right: 10px;
}

.prog-page .prog-section__intro {
    max-width: 72ch;
    margin: 12px 0 28px;
    font-size: 16px;
}

.prog-page .prog-section__outro {
    margin-top: 20px;
}

.prog-page .prog-section__title + .prog-cards,
.prog-page .prog-section__title + .prog-checklist,
.prog-page .prog-section__title + .prog-prose {
    margin-top: 28px;
}

/* ------------------------------------------------------------- hero band */

.prog-page .prog-hero {
    padding: 56px 0 8px;
}

.prog-page .prog-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.prog-page .prog-hero__media {
    position: relative;
    border-radius: var(--pp-radius);
    overflow: hidden;
    box-shadow: var(--pp-shadow);
    background: var(--pp-surface-alt);
}

.prog-page .prog-hero__media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--pp-red) 0%, var(--pp-amber) 100%);
}

.prog-page .prog-hero__media img {
    display: block;
    width: 100%;
}

.prog-page .prog-hero__eyebrow {
    font-family: 'Rajdhani', 'Muli', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--pp-amber);
    margin: 0 0 10px;
}

.prog-page .prog-hero__title {
    font-size: 32px;
    margin-bottom: 18px;
}

.prog-page .prog-hero__icon {
    margin-right: 8px;
}

.prog-page .prog-hero__lead {
    font-size: 16px;
    max-width: 72ch;
}

/* ----------------------------------------------------------------- cards */

.prog-page .prog-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.prog-page .prog-card {
    position: relative;
    background: var(--pp-surface);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    padding: 26px 24px 24px;
    box-shadow: var(--pp-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.prog-page .prog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pp-shadow-hover);
}

.prog-page .prog-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(215, 35, 35, .09);
    color: var(--pp-red);
    font-family: 'Rajdhani', 'Muli', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.prog-page .prog-card__title {
    font-size: 21px;
    margin-bottom: 14px;
}

.prog-page .prog-card__points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prog-page .prog-card__points li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--pp-muted);
}

.prog-page .prog-card__points li:last-child {
    margin-bottom: 0;
}

.prog-page .prog-card__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pp-amber);
}

/* ------------------------------------------------------------- checklist */

.prog-page .prog-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 32px;
}

.prog-page .prog-checklist li {
    position: relative;
    padding: 2px 0 2px 34px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--pp-ink);
}

.prog-page .prog-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(215, 35, 35, .1);
}

.prog-page .prog-checklist li::after {
    content: "";
    position: absolute;
    left: 7px;
    top: .6em;
    width: 5px;
    height: 10px;
    border-right: 2px solid var(--pp-red);
    border-bottom: 2px solid var(--pp-red);
    transform: rotate(45deg);
}

/* ---------------------------------------------------------------- prose */

.prog-page .prog-prose {
    max-width: 72ch;
    text-align: left;
}

.prog-page .prog-prose p {
    font-size: 16px;
    line-height: 1.85;
}

.prog-page .prog-prose ul,
.prog-page .prog-prose ol {
    margin: 0 0 1.15em;
    padding-left: 22px;
    color: var(--pp-muted);
    line-height: 1.8;
}

.prog-page .prog-prose li {
    margin-bottom: 8px;
}

/* ------------------------------------------------------------------- faq */

.prog-page .prog-faq__list {
    max-width: 860px;
    margin: 0 auto;
}

.prog-page .prog-faq__item {
    background: var(--pp-surface);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.prog-page .prog-faq__q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    font-family: 'Rajdhani', 'Muli', Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--pp-navy);
    line-height: 1.35;
}

.prog-page .prog-faq__q::-webkit-details-marker {
    display: none;
}

.prog-page .prog-faq__q::after {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 6px;
    border-right: 2px solid var(--pp-red);
    border-bottom: 2px solid var(--pp-red);
    transform: rotate(45deg);
    transition: transform .25s ease;
}

.prog-page .prog-faq__item[open] > .prog-faq__q::after {
    transform: rotate(-135deg);
}

.prog-page .prog-faq__q:focus-visible {
    outline: 2px solid var(--pp-amber);
    outline-offset: -2px;
}

.prog-page .prog-faq__a {
    padding: 0 22px 20px;
}

.prog-page .prog-faq__a p {
    font-size: 15.5px;
}

/* ------------------------------------------------------- related programs */

.prog-page .prog-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.prog-page .prog-related__group {
    background: var(--pp-surface);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    padding: 24px 22px;
    box-shadow: var(--pp-shadow);
}

.prog-page .prog-related__group-title {
    font-size: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--pp-red);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--pp-line);
}

.prog-page .prog-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prog-page .prog-related__item {
    margin-bottom: 4px;
}

.prog-page .prog-related__link {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 15.5px;
    color: var(--pp-ink);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.prog-page a.prog-related__link:hover,
.prog-page a.prog-related__link:focus {
    background: rgba(4, 5, 41, .05);
    color: var(--pp-navy);
    text-decoration: none;
}

.prog-page .prog-related__item.is-current .prog-related__link {
    background: rgba(215, 35, 35, .08);
    color: var(--pp-red);
    font-weight: 700;
    cursor: default;
}

/* ------------------------------------------------------------------- cta */

.prog-page .prog-cta {
    padding: 56px 0;
    background: linear-gradient(135deg, var(--pp-navy) 0%, var(--pp-navy-deep) 60%, #12173f 100%);
}

.prog-page .prog-cta__inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.prog-page .prog-cta__title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 12px;
}

.prog-page .prog-cta__text {
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    margin-bottom: 24px;
}

.prog-page .prog-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.prog-page .prog-btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 8px;
    font-family: 'Rajdhani', 'Muli', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.prog-page .prog-btn--primary {
    background: var(--pp-red);
    color: #fff;
    box-shadow: 0 8px 20px rgba(215, 35, 35, .3);
}

.prog-page .prog-btn--ghost {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
}

.prog-page .prog-btn:hover,
.prog-page .prog-btn:focus {
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.prog-page .prog-btn--ghost:hover,
.prog-page .prog-btn--ghost:focus {
    box-shadow: inset 0 0 0 2px var(--pp-amber);
}

/* ----------------------------------------------------------- breakpoints */

@media (min-width: 576px) {
    .prog-page .prog-cards {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .prog-page .prog-checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .prog-page .prog-related__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (min-width: 992px) {
    .prog-page .prog-section,
    .prog-page .prog-cta {
        padding: 76px 0;
    }
    .prog-page .prog-hero {
        padding: 76px 0 8px;
    }
    .prog-page .prog-hero__inner {
        flex-direction: row;
        align-items: center;
        gap: 46px;
    }
    .prog-page .prog-hero__media {
        flex: 0 0 45%;
        max-width: 45%;
    }
    .prog-page .prog-hero__body {
        flex: 1 1 auto;
    }
    .prog-page .prog-hero__title {
        font-size: 38px;
    }
    .prog-page .prog-section__title {
        font-size: 32px;
    }
    .prog-page .prog-cta__title {
        font-size: 34px;
    }
}

/* -------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
    .prog-page .prog-card,
    .prog-page .prog-btn,
    .prog-page .prog-related__link,
    .prog-page .prog-faq__q::after {
        transition: none;
    }
    .prog-page .prog-card:hover,
    .prog-page .prog-btn:hover,
    .prog-page .prog-btn:focus {
        transform: none;
    }
}
