
/* ================================================
   PIMS — NEBOSH ASSESSMENT DATE BOARD
   Independent layout, no sidebar or data tables
================================================ */

.pex-hero,
.pex-overview,
.pex-schedules,
.pex-closing,
.pex-source-footer {
    --pex-dark: #17252e;
    --pex-orange: #f58220;
    --pex-heading: #1d303a;
    --pex-muted: #697981;
    --pex-border: #e2e7e9;

    box-sizing: border-box;
}

.pex-hero *,
.pex-overview *,
.pex-schedules *,
.pex-closing *,
.pex-source-footer * {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ================================================
   HERO
================================================ */

.pex-hero {
    background: #17252e;
    color: white;
    overflow: hidden;
    position: relative;
    padding: 65px 0 90px;
}

.pex-hero::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    right: 8%;
    top: -190px;
}

.pex-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.pex-hero-copy {
    max-width: 740px;
    position: relative;
    z-index: 2;
}

.pex-breadcrumb {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #aab9c0;
    margin-bottom: 65px;
}

.pex-breadcrumb a {
    color: #dce5e9;
    text-decoration: none;
}

.pex-breadcrumb a:hover {
    color: var(--pex-orange);
}

.pex-eyebrow {
    font-size: 11px;
    color: var(--pex-orange);
    font-weight: 700;
    letter-spacing: 2px;
}

.pex-hero h1 {
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.8px;
    color: white;
    margin: 20px 0 22px;
}

.pex-hero h1 span {
    display: block;
    color: var(--pex-orange);
}

.pex-hero-copy > p {
    color: #becbd1;
    font-size: 15px;
    line-height: 1.95;
    max-width: 590px;
    margin-bottom: 30px;
}

.pex-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 15px 24px;
    background: var(--pex-orange);
    color: #19252c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3px;
    transition: .2s ease;
}

.pex-hero-button:hover {
    background: #ffc16f;
    color: #19252c;
    transform: translateY(-2px);
}

.pex-hero-decoration {
    flex: 1;
    min-width: 260px;
    text-align: right;
    opacity: .75;
}

.pex-big-year {
    font-size: clamp(100px, 14vw, 230px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.23);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -12px;
}

.pex-deco-line {
    width: 130px;
    height: 3px;
    background: var(--pex-orange);
    margin: 20px 0 20px auto;
}

.pex-deco-caption {
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.pex-deco-caption span {
    display: block;
    color: #98a9b1;
    font-size: 10px;
    margin-top: 8px;
}

/* ================================================
   OVERVIEW
================================================ */

.pex-overview {
    padding: 85px 0;
    background: #fff;
}

.pex-overview-heading {
    max-width: 680px;
    margin-bottom: 38px;
}

.pex-small-label {
    color: #bd761f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.pex-overview-heading h2 {
    color: var(--pex-heading);
    font-size: clamp(28px, 3.4vw, 43px);
    font-weight: 700;
    line-height: 1.25;
    margin: 13px 0 17px;
}

.pex-overview-heading h2 span {
    color: #f58220;
}

.pex-overview-heading p {
    color: var(--pex-muted);
    font-size: 14px;
    line-height: 1.9;
}

/* ================================================
   HORIZONTAL QUALIFICATION LINKS
================================================ */

.pex-qualification-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--pex-border);
    border-radius: 7px;
    overflow: hidden;
}

.pex-qual-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    min-height: 155px;
    padding: 24px 18px;
    color: var(--pex-heading);
    text-decoration: none;
    border-right: 1px solid var(--pex-border);
    position: relative;
    transition: .2s ease;
}

.pex-qual-link:last-child {
    border-right: none;
}

.pex-qual-link:hover {
    background: #fff5e7;
    color: var(--pex-heading);
}

.pex-link-number {
    color: #c6812c;
    font-size: 11px;
    font-weight: 700;
}

.pex-qual-link strong {
    font-size: 13px;
    line-height: 1.55;
    font-weight: 700;
    padding-right: 8px;
}

.pex-qual-link > i {
    position: absolute;
    right: 17px;
    top: 21px;
    font-size: 17px;
    color: #b8c1c5;
}

.pex-qual-link:hover > i {
    color: #b67829;
}

/* ================================================
   MAIN SECTIONS
================================================ */

.pex-section {
    padding: 78px 0 85px;
    background: #f7f9f9;
    scroll-margin-top: 20px;
}

.pex-section-alt {
    background: #fff;
}

.pex-section-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 35px;
}

.pex-section-number {
    font-size: 55px;
    font-weight: 700;
    color: #d5dfe2;
    letter-spacing: -3px;
    line-height: 1;
    flex-shrink: 0;
}

.pex-section-number span {
    font-size: 13px;
    letter-spacing: 0;
    color: #a3b1b7;
}

.pex-section-heading {
    flex: 1;
    max-width: 740px;
}

.pex-section-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
    color: #b77725;
    margin-bottom: 8px;
}

.pex-section-heading h2 {
    font-size: clamp(24px, 2.8vw, 34px);
    color: var(--pex-heading);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}

.pex-section-heading p {
    color: var(--pex-muted);
    font-size: 13px;
    line-height: 1.9;
    max-width: 640px;
    margin: 0;
}

.pex-section-code {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #6e7c82;
    background: #e9eef0;
    padding: 10px 15px;
    border-radius: 4px;
}

/* ================================================
   DATE TICKET GRID
================================================ */

.pex-ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.pex-ticket {
    display: flex;
    align-items: stretch;
    background: white;
    border: 1px solid var(--pex-border);
    border-radius: 7px;
    overflow: hidden;
    min-width: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}

.pex-section-alt .pex-ticket {
    background: #fbfcfc;
}

.pex-ticket:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(25,45,55,.08);
}

.pex-ticket-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: #23353f;
    color: white;
    min-width: 105px;
    padding: 19px 14px;
    text-align: center;
    position: relative;
}

.pex-ticket-date::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--pex-orange);
}

.pex-ticket-month {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--pex-orange);
}

.pex-ticket-date strong {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
}

.pex-ticket-year {
    font-size: 11px;
    color: #c0cbd0;
}

.pex-ticket-body {
    flex: 1;
    min-width: 0;
    padding: 20px;
}

.pex-ticket-category {
    display: block;
    color: #b47728;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 7px;
}

.pex-ticket-body h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--pex-heading);
    margin: 0 0 13px;
}

.pex-ticket-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pex-ticket-meta > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #63747d;
    font-size: 11px;
    line-height: 1.6;
}

.pex-ticket-meta i {
    color: #ad761f;
    font-size: 13px;
}

.pex-result-info {
    font-weight: 600;
    color: #405861 !important;
}

.pex-result-info time {
    color: #1f343e;
}

/* ================================================
   END OF SECTION
================================================ */

.pex-section-end {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--pex-border);
}

.pex-section-end > span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #a2afb5;
}

.pex-section-end a {
    color: #b17523;
    font-size: 12px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.pex-section-end a i {
    margin-left: 7px;
}

.pex-section-end a:hover {
    color: var(--pex-heading);
}

/* ================================================
   BOTTOM CTA
================================================ */

.pex-closing {
    background: #dd6b0d;
    padding: 65px 0;
}

.pex-closing-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.pex-closing-inner > div {
    max-width: 750px;
}

.pex-closing-inner span {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.pex-closing-inner h2 {
    font-size: clamp(27px, 3.3vw, 42px);
    color: white;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 13px;
}

.pex-closing-inner p {
    font-size: 13px;
    line-height: 1.8;
    color: white;
    margin: 0;
}

.pex-closing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 23px;
    background: #1c303b;
    color: white;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    flex-shrink: 0;
}

.pex-closing-button:hover {
    background: #304753;
    color: white;
}

/* ================================================
   SOURCE FOOTER
================================================ */

.pex-source-footer {
    padding: 20px 0;
    background: #f1f4f5;
}

.pex-source-footer p {
    margin: 0;
    font-size: 14px;
    color: #78868d;
    line-height: 1.8;
    text-align: center;
}

.pex-source-footer a {
    color: #8d5a1c;
    font-weight: 600;
}

/* ================================================
   RESPONSIVE
================================================ */

@media (max-width: 1199px) {
    .pex-qualification-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pex-qual-link {
        border-bottom: 1px solid var(--pex-border);
    }
}

@media (max-width: 991px) {
    .pex-hero-decoration {
        display: none;
    }

    .pex-hero-copy {
        max-width: 100%;
    }

    .pex-ticket-grid {
        grid-template-columns: 1fr;
    }

    .pex-section-code {
        display: none;
    }
}

@media (max-width: 767px) {
    .pex-hero {
        padding: 45px 0 65px;
    }

    .pex-breadcrumb {
        margin-bottom: 40px;
    }

    .pex-hero h1 {
        font-size: 37px;
        letter-spacing: -1px;
    }

    .pex-overview {
        padding: 55px 0;
    }

    .pex-qualification-links {
        grid-template-columns: 1fr;
    }

    .pex-qual-link {
        min-height: auto;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 17px;
        border-right: none;
    }

    .pex-qual-link > i {
        position: static;
        margin-left: auto;
    }

    .pex-section {
        padding: 55px 0;
    }

    .pex-section-header {
        gap: 17px;
    }

    .pex-section-number {
        font-size: 38px;
    }

    .pex-section-number span {
        display: none;
    }

    .pex-ticket-body {
        padding: 17px 14px;
    }

    .pex-ticket-date {
        min-width: 82px;
        padding: 13px 9px;
    }

    .pex-ticket-date strong {
        font-size: 32px;
    }

    .pex-ticket-body h3 {
        font-size: 12px;
    }

    .pex-section-end > span {
        display: none;
    }

    .pex-section-end {
        justify-content: flex-end;
    }

    .pex-closing-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .pex-ticket,
    .pex-hero-button {
        transition: none;
    }
}
