
/* =====================================================
   NEXUS COLLEGE — NEBOSH EXAM CALENDAR
   File: public/css/nebosh-calendar.css
===================================================== */

:root {
    --nec-navy: #102c4d;
    --nec-navy-dark: #071d35;
    --nec-blue: #087dc1;
    --nec-blue-light: #eaf6fc;
    --nec-text: #4d5b6b;
    --nec-border: #e1e8ef;
    --nec-white: #ffffff;
    --nec-background: #f7f9fc;
}

.nec-content-section,
.nec-hero,
.nec-breadcrumb {
    font-family: 'Poppins', sans-serif;
}

.nec-content-section *,
.nec-hero *,
.nec-breadcrumb * {
    box-sizing: border-box;
}

/* =====================================================
   HERO
===================================================== */

.nec-hero {
    background: linear-gradient(
        115deg,
        #071d35 0%,
        #102c4d 65%,
        #087dc1 100%
    );
    padding: 75px 0 80px;
    position: relative;
    overflow: hidden;
}

.nec-hero::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    right: -100px;
    top: -180px;
    pointer-events: none;
}

.nec-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.nec-eyebrow {
    display: inline-block;
    color: #81d7ff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.nec-hero h1 {
    color: var(--nec-white);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
}

.nec-hero p {
    max-width: 650px;
    color: #d9e8f4;
    font-size: 15px;
    line-height: 1.9;
    margin: 0;
}

/* =====================================================
   BREADCRUMB
===================================================== */

.nec-breadcrumb {
    background: #f0f5f9;
    border-bottom: 1px solid var(--nec-border);
    padding: 17px 0;
}

.nec-breadcrumb .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.nec-breadcrumb a {
    color: var(--nec-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.nec-breadcrumb a:hover {
    color: var(--nec-navy);
}

.nec-breadcrumb i {
    color: #8392a3;
    font-size: 11px;
}

.nec-breadcrumb span {
    color: var(--nec-text);
    font-size: 13px;
}

/* =====================================================
   MAIN CONTENT
===================================================== */

.nec-content-section {
    background: var(--nec-white);
    padding: 75px 0 90px;
    color: var(--nec-text);
}

.nec-content-section .row > * {
    min-width: 0;
}

/* =====================================================
   SIDEBAR
===================================================== */

.nec-side-sticky {
    position: sticky;
    top: 25px;
}

.nec-nav {
    padding: 24px 15px;
    border: 1px solid var(--nec-border);
    background: #f9fbfd;
    border-radius: 12px;
    margin-bottom: 25px;
}

.nec-nav h2 {
    color: var(--nec-navy);
    font-size: 17px;
    font-weight: 700;
    padding: 0 10px 17px;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--nec-border);
}

.nec-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #3d5066;
    text-decoration: none;
    padding: 13px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    transition: all 0.2s ease;
}

.nec-nav a i {
    font-size: 11px;
    flex-shrink: 0;
    color: var(--nec-blue);
}

.nec-nav a:hover,
.nec-nav a:focus-visible {
    background: var(--nec-blue-light);
    color: var(--nec-blue);
    padding-left: 16px;
}

/* =====================================================
   HELP CARD
===================================================== */

.nec-help {
    background: linear-gradient(
        145deg,
        #eaf6fc,
        #f4f9fd
    );
    border: 1px solid #d6eaf6;
    padding: 27px 22px;
    border-radius: 12px;
}

.nec-help-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 53px;
    height: 53px;
    border-radius: 12px;
    background: #d1ebfb;
    color: var(--nec-blue);
    font-size: 26px;
    margin-bottom: 19px;
}

.nec-help h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--nec-navy);
    margin-bottom: 12px;
}

.nec-help p {
    font-size: 12px;
    line-height: 1.9;
    color: var(--nec-text);
    margin-bottom: 21px;
}

.nec-help a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--nec-navy);
    color: white;
    padding: 12px 19px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s ease;
}

.nec-help a:hover {
    background: var(--nec-blue);
    color: white;
}

/* =====================================================
   INTRODUCTION
===================================================== */

.nec-intro {
    margin-bottom: 40px;
}

.nec-section-label {
    display: inline-block;
    color: var(--nec-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 13px;
}

.nec-intro h2 {
    color: var(--nec-navy);
    font-weight: 700;
    font-size: clamp(24px, 2.5vw, 31px);
    line-height: 1.45;
    margin-bottom: 17px;
}

.nec-intro > p {
    font-size: 14px;
    line-height: 2;
    color: var(--nec-text);
    margin-bottom: 26px;
}

/* =====================================================
   SEARCH + FILTER
===================================================== */

.nec-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px;
    background: var(--nec-background);
    border: 1px solid var(--nec-border);
    border-radius: 10px;
}

.nec-search {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    background: white;
    border: 1px solid var(--nec-border);
    border-radius: 7px;
    padding: 0 15px;
}

.nec-search i {
    font-size: 16px;
    color: var(--nec-blue);
}

.nec-search input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    height: 44px;
    font-size: 12px;
    color: var(--nec-navy);
}

.nec-search input::placeholder {
    color: #8a98a8;
}

.nec-search:focus-within {
    border-color: var(--nec-blue);
    box-shadow: 0 0 0 3px rgba(8, 125, 193, 0.09);
}

.nec-toolbar select {
    width: 175px;
    flex-shrink: 0;
    height: 46px;
    padding: 0 12px;
    background: white;
    border: 1px solid var(--nec-border);
    border-radius: 7px;
    color: var(--nec-navy);
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.nec-toolbar select:focus {
    border-color: var(--nec-blue);
}

/* =====================================================
   EXAMINATION SECTIONS
===================================================== */

.nec-assessment {
    margin-bottom: 48px;
    scroll-margin-top: 30px;
}

.nec-assessment-heading {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 22px;
}

.nec-assessment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    width: 52px;
    height: 52px;
    border-radius: 11px;
    background: #e5f3fc;
    color: var(--nec-blue);
    font-size: 24px;
}

.nec-icon-clipboard-check {
    background: #e6f6ec;
    color: #238653;
}

.nec-icon-leaf {
    background: #e6f5e9;
    color: #299044;
}

.nec-icon-fire {
    background: #fff0e1;
    color: #e66d1a;
}

.nec-icon-tools {
    background: #f0eafe;
    color: #7551bf;
}

.nec-assessment-heading h2 {
    color: var(--nec-navy);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 7px;
}

.nec-assessment-heading p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--nec-text);
    margin: 0;
}

/* =====================================================
   TABLE DESIGN
===================================================== */

.nec-table-wrap {
    border: 1px solid var(--nec-border);
    border-radius: 10px;
    overflow-x: auto;
    background: white;
    box-shadow: 0 5px 25px rgba(16, 44, 77, 0.035);
}

.nec-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
    margin: 0;
    font-size: 12px;
}

.nec-table thead {
    background: var(--nec-navy);
}

.nec-table thead th {
    background: var(--nec-navy);
    color: white;
    padding: 15px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
}

.nec-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #eaf0f5;
    color: #4b5969;
    line-height: 1.65;
    vertical-align: middle;
}

.nec-table tbody td strong {
    font-weight: 600;
    color: #253b52;
}

.nec-table tbody tr:nth-child(even) {
    background: #f5f9fc;
}

.nec-table tbody tr:hover {
    background: #eaf6fc;
}

.nec-table tbody tr:last-child td {
    border-bottom: none;
}

.nec-date-row[hidden],
.nec-empty[hidden] {
    display: none !important;
}

.nec-empty {
    text-align: center;
    color: #7b8795;
    font-size: 13px;
    padding: 25px 15px;
    margin: 0;
}

/* =====================================================
   EXAM NOTE
===================================================== */

.nec-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0 0;
    padding: 13px 16px;
    background: #f1f8fd;
    border-left: 3px solid var(--nec-blue);
    color: #536678;
    font-size: 12px;
    line-height: 1.8;
    border-radius: 0 6px 6px 0;
}

.nec-note i {
    color: var(--nec-blue);
    font-size: 15px;
    flex-shrink: 0;
}

/* =====================================================
   DISCLAIMER
===================================================== */

.nec-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 25px;
    background: #eef7fd;
    border: 1px solid #d6eaf6;
    border-radius: 10px;
    margin-top: 10px;
}

.nec-disclaimer > i {
    color: var(--nec-blue);
    font-size: 24px;
    line-height: 1;
    margin-top: 3px;
}

.nec-disclaimer strong {
    display: block;
    color: var(--nec-navy);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 9px;
}

.nec-disclaimer p {
    color: var(--nec-text);
    font-size: 12px;
    line-height: 1.9;
    margin-bottom: 0;
}

.nec-disclaimer a {
    color: var(--nec-blue);
    font-weight: 600;
    text-decoration: none;
}

.nec-disclaimer a:hover {
    text-decoration: underline;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991.98px) {

    .nec-content-section {
        padding: 55px 0 70px;
    }

    .nec-side-sticky {
        position: static;
    }

    .nec-nav {
        margin-bottom: 20px;
    }

    .nec-help {
        margin-bottom: 15px;
    }

    .nec-assessment {
        scroll-margin-top: 20px;
    }

}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767.98px) {

    .nec-hero {
        padding: 55px 0 60px;
    }

    .nec-hero h1 {
        font-size: 31px;
    }

    .nec-hero p {
        font-size: 13px;
        line-height: 1.8;
    }

    .nec-content-section {
        padding: 40px 0 60px;
    }

    .nec-intro h2 {
        font-size: 24px;
    }

    .nec-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .nec-search,
    .nec-toolbar select {
        width: 100%;
    }

    .nec-assessment {
        margin-bottom: 35px;
    }

    .nec-assessment-heading {
        gap: 12px;
    }

    .nec-assessment-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 21px;
    }

    .nec-assessment-heading h2 {
        font-size: 18px;
    }

    .nec-table {
        min-width: 570px;
    }

    .nec-table thead th,
    .nec-table tbody td {
        padding: 12px 13px;
        font-size: 11px;
    }

    .nec-disclaimer {
        padding: 20px 16px;
        gap: 12px;
    }

}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .nec-hero h1 {
        font-size: 27px;
    }

    .nec-eyebrow {
        font-size: 10px;
    }

    .nec-intro h2 {
        font-size: 22px;
    }

    .nec-assessment-heading h2 {
        font-size: 17px;
    }

    .nec-assessment-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 19px;
    }

    .nec-breadcrumb {
        padding: 13px 0;
    }

}

/* =====================================================
   ACCESSIBILITY
===================================================== */

.nec-content-section a:focus-visible,
.nec-breadcrumb a:focus-visible,
.nec-toolbar select:focus-visible {
    outline: 2px solid var(--nec-blue);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .nec-content-section *,
    .nec-breadcrumb * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

}
