/* ==========================================================================
   Choose-programme page (resources/views/apply/route-offering.blade.php)
   - "Before you start" callout with a pulsing View requirements button
   - "Opening soon" list of closed formal programmes and their next period
   Contrast: navy #0B2238 on #FFF7E6 ~15:1; white on #1B6AAE ~5.6:1;
   #1B6AAE on white ~5.6:1; #5B4310 on #FCEFD2 ~8.6:1.
   ========================================================================== */

.apply-offering-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 32px;
    align-items: start;
    margin-bottom: 8px;
}

.apply-offering-intro > :first-child {
    margin-top: 0;
}

.apply-requirements-callout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
    max-width: 100%;
    padding: 16px 18px;
    border: 1px solid #F0D79E;
    border-radius: 12px;
    background: #FFF7E6;
    color: #0B2238;
}

.apply-requirements-callout[hidden] {
    display: none;
}

.apply-requirements-callout-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #0B2238;
}

.apply-requirements-callout-text strong {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5B4310;
}

.apply-requirements-callout-hint {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #8A2A1B;
}

.apply-requirements-cta {
    --cta-ring: rgba(27, 106, 174, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: #1B6AAE;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.apply-requirements-cta[hidden] {
    display: none;
}

.apply-requirements-cta .bx {
    font-size: 20px;
}

.apply-requirements-cta:hover {
    background: #155690;
}

.apply-requirements-cta:focus-visible {
    outline: 3px solid #0B2238;
    outline-offset: 3px;
}

.apply-requirements-cta.is-pulsing {
    animation: apply-requirements-pulse 1.8s ease-out infinite;
}

@keyframes apply-requirements-pulse {
    0% {
        box-shadow: 0 0 0 0 var(--cta-ring);
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(27, 106, 174, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(27, 106, 174, 0);
        transform: scale(1);
    }
}

/* ---- Opening soon ---- */
.apply-upcoming {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid #CFE2F5;
    border-left: 4px solid #1B6AAE;
    border-radius: 10px;
    background: #F2F8FE;
}

.apply-upcoming-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0B2238;
}

.apply-upcoming-title .bx {
    font-size: 20px;
    color: #1B6AAE;
}

.apply-upcoming-lead {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #3A4A5E;
}

.apply-upcoming-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.apply-upcoming-item {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
    gap: 8px 20px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #DCE6F1;
    border-radius: 8px;
    background: #fff;
}

.apply-upcoming-name strong {
    display: block;
    font-size: 15px;
    color: #0B2238;
}

.apply-upcoming-name span {
    font-size: 12.5px;
    color: #4F5D70;
}

.apply-upcoming-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #2B3A4E;
}

.apply-upcoming-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: #FCEFD2;
    color: #5B4310;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.apply-upcoming-link,
.apply-upcoming-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #1B6AAE;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.apply-upcoming-link:hover {
    color: #0B2238;
    text-decoration: underline;
}

.apply-upcoming-link:focus-visible {
    outline: 2px solid #1B6AAE;
    outline-offset: 3px;
    border-radius: 2px;
}

@media (max-width: 767.98px) {
    .apply-offering-head {
        grid-template-columns: 1fr;
    }

    .apply-requirements-callout {
        width: 100%;
    }

    .apply-upcoming-item {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .apply-requirements-cta.is-pulsing {
        animation: none;
        box-shadow: 0 0 0 4px rgba(27, 106, 174, 0.3);
    }
}
