/* Migration Banner and Modal Styles */

:root {
    --tn-green: #0b7a39;
    --tn-green-dark: #09602c;
}

/* Announcement BANNER (top-of-site) */
.announce-banner {
    display: none; /* shown via JS after modal is dismissed */
    color: #fff;
    position: relative;
    z-index: 9998;
}

    .announce-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('../images/Digitalisation.jpg');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        filter: contrast(1.05) saturate(1.05);
        z-index: -2;
    }

    .announce-banner::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(140% 140% at 35% 30%, rgba(0, 0, 0, .15), rgba(0, 0, 0, .75) 70%), linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .65));
        z-index: -1;
    }

.banner-inner {
    margin: 0 auto;
    padding: 14px 60px 14px 20px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}

.banner-kicker {
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    opacity: .95;
}

.banner-copy {
    margin: 4px 0 0;
    line-height: 1.35;
}

.banner-note {
    font-size: 12px;
    opacity: .9;
    margin-top: 2px;
}

.banner-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.banner-count {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
    font-size: 22px;
    color: #ffd54f;
}


.banner-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #636363;
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    transition: none;
    margin-right: 8px;
    cursor: not-allowed;
    opacity: 0.8;
}

    .banner-btn:hover {
        background: #636363;
        color: #fff;
        text-decoration: none;
        transform: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    }

.webinar-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e53e3e, #c53030);
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 8px 18px rgba(197, 48, 48, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .webinar-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 26px rgba(197, 48, 48, .45);
        color: #fff;
        text-decoration: none;
    }

.banner-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(3px);
    z-index: 1;
}

    .banner-close:hover {
        background: rgba(0, 0, 0, .55);
    }

/* Modal overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    padding: 24px;
}

.modal-content {
    position: relative;
    width: min(92vw, 880px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .12);
    isolation: isolate;
    background: #000;
    color: #fff;
}

    .modal-content::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('../images/Digitalisation.jpg');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        z-index: -2;
        filter: contrast(1.05) saturate(1.05);
    }

    .modal-content::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(120% 120% at 50% 40%, rgba(0, 0, 0, .20), rgba(0, 0, 0, .75) 70%), linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .65));
        z-index: -1;
    }

.modal-inner {
    padding: 40px 44px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.modal-title {
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: .2px;
    font-size: 28px;
    color: #fff;
}

.modal-desc {
    margin: 0 auto 12px;
    max-width: 68ch;
    color: #eaeaea;
    line-height: 1.5;
}

.modal-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #f1f1f1;
    opacity: .9;
}

.countdown-display {
    margin: 18px auto 12px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .5px;
    font-variant-numeric: tabular-nums;
    font-size: 40px;
    color: #ffd54f;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55), 0 0 18px rgba(255, 213, 79, .35);
    font-family: 'Courier New', Courier, monospace;
    min-width: 280px;
}

.cta-row {
    margin-top: 14px;
}

.visit-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: #636363;
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(11, 122, 57, .35);
    transform: translateY(0);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    border: 1px solid rgba(255, 255, 255, .15);
    margin-right: 12px;
}

    .visit-btn:hover {
        transform: none;
        box-shadow: 0 12px 26px rgba(11, 122, 57, .45);
        color: #fff;
        text-decoration: none;
        transform: none;
    }

    /*.visit-btn:active {
        transform: translateY(0);
    }
*/
.modal-webinar-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e53e3e, #c53030);
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(197, 48, 48, .35);
    transform: translateY(0);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    border: 1px solid rgba(255, 255, 255, .15);
}

    .modal-webinar-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(197, 48, 48, .45);
        filter: saturate(1.1);
        color: #fff;
        text-decoration: none;
    }

    .modal-webinar-btn:active {
        transform: translateY(0);
    }

.close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

    .close-btn:hover {
        background: rgba(0, 0, 0, .55);
    }

.modal-overlay.hidden {
    display: none !important;
}

.highlighted-od {
    color: #ffd54f;
    font-weight: 900;
}

/* Responsive adjustments */
@media (max-width: 560px) {
    .countdown-display {
        font-size: 28px;
    }

    .modal-inner {
        padding: 28px 22px;
    }

    .modal-title {
        font-size: 22px;
    }

    .banner-inner {
        grid-template-columns: 1fr;
        padding: 14px 40px 14px 20px;
    }

    .banner-right {
        justify-content: flex-start;
    }
}
