/* Important Dates — milestone board matching the public challenge theme. */

.dates-canvas {
    position: relative;
    overflow: hidden;
    background: #f4f7fb;
}

.dates-canvas::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 360px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .35) 48%, #f4f7fb 100%),
        linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .94) 28%, rgba(255, 255, 255, .62) 46%, rgba(255, 255, 255, .16) 68%, transparent 84%),
        url("/images/public/home/impact.jpg") right 18% / cover no-repeat;
    pointer-events: none;
}

.dates {
    position: relative;
    z-index: 1;
    width: min(100% - 40px, var(--nic-container));
    margin: 0 auto;
    padding: 10px 0 40px;
}

/* ---------------------------------------------------------------- hero */
.dates-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    min-height: 0;
    padding-top: 0;
}

.dates-hero-copy { flex: 1 1 420px; max-width: 520px; min-width: 0; }

.dates-hero-aside {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 1 auto;
    margin-left: auto;
}

.dates-kicker {
    margin: 0 0 4px;
    color: #1a3d78;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dates-hero h1 {
    margin: 0;
    font-size: clamp(2.15rem, 3.4vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: .95;
}

.dates-hero h1 span { color: var(--nic-orange); }

.dates-lead {
    max-width: 500px;
    margin: 8px 0 0;
    color: #5c6b84;
    font-size: 13.5px;
    line-height: 1.45;
}

.dates-lead::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    margin-top: 8px;
    border-radius: 4px;
    background: var(--nic-orange);
}

.dates-sky {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    color: #16356e;
    font-size: 1.2rem;
    line-height: 1.02;
    transform: rotate(-6deg);
    transform-origin: left center;
}

.dates-prize {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 9px 16px 9px 10px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(244, 106, 10, .45), transparent 46%),
        linear-gradient(155deg, #16356e 0%, #0b1f5c 72%);
    color: #fff;
    box-shadow: 0 14px 28px -18px rgba(11, 31, 92, .85);
}

.dates-prize-seal {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--nic-orange);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .28);
    font-size: 15px;
}

.dates-prize-label {
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dates-prize-amount {
    margin: 1px 0 0;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    white-space: nowrap;
}

.dates-prize-amount span { color: #ffb067; }

.dates-prize-note {
    margin: 4px 0 0;
    color: #ffd7b0;
    font-family: var(--nic-script);
    font-size: .95rem;
    line-height: 1;
}

.dates-pillars {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #1c407c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.65;
    text-align: right;
    text-transform: uppercase;
}

.dates-pillars li:last-child {
    margin-top: 2px;
    letter-spacing: .08em;
}

/* ---------------------------------------------------------------- milestone cards */
.dates-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.dates-track li { position: relative; min-width: 0; }

.dates-track li:not(:last-child)::after {
    content: "›";
    position: absolute;
    top: 46%;
    right: -18px;
    z-index: 2;
    color: #c5ceda;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-50%);
}

.dates-track article {
    height: 100%;
    padding: 16px 16px 18px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 34px -26px rgba(11, 31, 92, .55);
}

.dates-track .is-blue article { background: linear-gradient(180deg, #f7faff 0%, #fff 70%); }
.dates-track .is-peach article { background: linear-gradient(180deg, #fff8f3 0%, #fff 72%); }
.dates-track .is-mint article { background: linear-gradient(180deg, #f3fbf7 0%, #fff 72%); }

.dates-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dates-no {
    color: #2f6fd0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
}

.dates-track .is-peach .dates-no { color: #f06a12; }
.dates-track .is-mint .dates-no { color: #1b9a72; }

.dates-ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e7f0ff;
    color: #2f6fd0;
    font-size: 15px;
}

.dates-track .is-peach .dates-ico { background: #ffe8d4; color: #f06a12; }
.dates-track .is-mint .dates-ico { background: #e3f6ee; color: #1b9a72; }

.dates-track h2 {
    margin: 12px 0 0;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
}

.dates-when {
    margin: 4px 0 0;
    color: #2f6fd0;
    font-size: 13px;
    font-weight: 600;
}

.dates-track .is-peach .dates-when { color: #e25c0a; }
.dates-track .is-mint .dates-when { color: #1b9a72; }

.dates-cap {
    margin: 6px 0 0;
    color: #6d788c;
    font-size: 12.5px;
    line-height: 1.45;
}

/* ---------------------------------------------------------------- lower board */
.dates-split {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(280px, .78fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 22px;
}

.dates-schedule {
    padding: 20px 16px 12px;
    border: 1px solid #e7eef6;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 40px -30px rgba(11, 31, 92, .45);
}

.dates-schedule-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 12px;
    padding: 0 8px;
}

.dates-schedule h2 {
    flex: 0 0 auto;
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    white-space: nowrap;
}

.dates-schedule-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px 16px;
    text-align: right;
}

.dates-schedule-head p {
    margin: 0;
    color: #8b97ab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dates-rows {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dates-rows::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 21px;
    width: 2px;
    background: #e6edf5;
}

.dates-rows li {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(148px, 188px) 20px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    margin: 0 0 8px;
    padding: 8px 12px 8px 6px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #fff;
}

.dates-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b82e6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 0 0 4px #fff;
}

.dates-rows .is-orange .dates-dot { background: #f08a28; }

.dates-pill {
    display: inline-flex;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #245eae;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.dates-rows .is-orange .dates-pill { background: #fff0e4; color: #e25c0a; }

.dates-rows li > i {
    color: #5d6d88;
    font-size: 14px;
    text-align: center;
}

.dates-rows strong {
    display: block;
    color: var(--nic-navy);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

.dates-rows p {
    margin: 1px 0 0;
    color: #7b879c;
    font-size: 12px;
    line-height: 1.35;
}

/* ---------------------------------------------------------------- journey card */
.dates-journey {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px 24px 18px;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(115deg, rgba(255, 252, 248, .9) 0%, rgba(255, 252, 248, .72) 34%, rgba(255, 252, 248, .18) 58%, rgba(11, 31, 92, .05) 100%),
        url("/images/public/home/impact.jpg") 86% 46% / cover no-repeat;
    box-shadow: 0 18px 40px -28px rgba(11, 31, 92, .5);
}

.dates-cal {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #12356e;
    color: #fff;
    font-size: 15px;
}

.dates-journey h2 {
    max-width: 280px;
    margin: 0;
    font-size: clamp(1.55rem, 2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.12;
}

.dates-journey-lead {
    margin: 8px 0 18px;
    color: #3d4d6a;
    font-size: 14px;
    font-weight: 500;
}

.dates-journey ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dates-journey li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.dates-journey li > i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 15px;
}

.dates-journey .is-orange > i { background: #fff1e6; color: var(--nic-orange); }
.dates-journey .is-blue > i { background: #e7f0ff; color: #2f6fd0; }
.dates-journey .is-green > i { background: #e5f7ee; color: #1b9a72; }

.dates-journey strong {
    color: var(--nic-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.dates-register {
    align-self: flex-start;
    margin-top: 22px;
    padding: 11px 20px;
    box-shadow: 0 10px 18px -12px rgba(244, 106, 10, .95);
}

.dates-journey-script {
    align-self: flex-end;
    margin: auto 4px 6px 0;
    color: #fff;
    font-size: 1.45rem;
    text-align: right;
    text-shadow: 0 2px 12px rgba(11, 31, 92, .45);
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .dates-hero { align-items: flex-start; flex-wrap: wrap; }
    .dates-hero-aside { width: 100%; margin-left: 0; flex-wrap: wrap; }
    .dates-prize { order: -1; }
    .dates-split { grid-template-columns: 1fr; }
    .dates-journey { min-height: 460px; }
    .dates-rows li { grid-template-columns: 32px minmax(132px, 170px) 20px minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .dates-canvas::before {
        height: 480px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .9) 36%, #f4f7fb 72%),
            linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .82) 100%),
            url("/images/public/home/impact.jpg") right top / cover no-repeat;
    }
    .dates-track { grid-template-columns: 1fr 1fr; gap: 14px; }
    .dates-track li::after { display: none; }
    .dates-schedule-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .dates-schedule-meta { justify-content: flex-start; text-align: left; }
    .dates-pillars { display: none; }
    .dates-lead { max-width: none; }
}

@media (max-width: 680px) {
    .dates { width: min(100% - 24px, var(--nic-container)); padding-top: 18px; }
    .dates-hero { grid-template-columns: 1fr; }
    .dates-track { grid-template-columns: 1fr; }
    .dates-rows::before { left: 21px; }
    .dates-rows li {
        grid-template-columns: 32px minmax(0, 1fr);
        grid-template-areas:
            "dot pill"
            "dot copy";
    }
    .dates-dot { grid-area: dot; }
    .dates-pill { grid-area: pill; justify-self: start; white-space: normal; }
    .dates-rows li > i { display: none; }
    .dates-rows li > div { grid-area: copy; }
    .dates-journey { padding: 22px 18px 16px; }
    .dates-journey-script { font-size: 1.25rem; }
}
