@media (max-width: 991.98px) {

    .navbar-nav .nav-item:hover .underline-text::after,
    .navbar-nav .nav-item:hover .underline-dropdown-text::after {
        width: 0 !important;
    }

    .navbar-nav .nav-item:hover .underline-text,
    .navbar-nav .nav-item:hover .underline-dropdown-text {
        color: #000 !important;
    }
}

.navbar .container-fluid {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 5px;
    padding-bottom: 5px;
}

.navbar-nav .underline-text,
.navbar-nav .underline-dropdown-text {
    position: relative;
    padding-bottom: 0.5rem;
    color: #000;
    transition: color 0.3s ease;
}

.navbar-nav .underline-text::after,
.navbar-nav .underline-dropdown-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 3px;
    background-color: #005FA9;
    transition: width 0.3s ease;
}

.navbar-nav .nav-item:hover .underline-text,
.navbar-nav .nav-item:hover .underline-dropdown-text {
    color: #005FA9;
}

.navbar-nav .nav-item:hover .underline-text::after,
.navbar-nav .nav-item:hover .underline-dropdown-text::after {
    width: 100%;
}

.navbar-nav .underline-dropdown-text::after {
    bottom: -20px;
}

.navbar-nav .underline-text::after {
    bottom: -20px;
}

.navbar-nav .nav-link:focus {
    outline: none;
    box-shadow: none
}

.visually-hidden-focusable {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.visually-hidden-focusable:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    z-index: 9999;
}

.alert-banner {
    top: 72px;
    z-index: 1050;
    border-radius: 0;
}

.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

.dropdown-menu .dropdown-item {
    transition: color 0.3s ease, background-color 0.3s ease;
    color: #000;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    color: #005FA9;
    background-color: rgba(0, 95, 169, 0.1);
}

.hero-section {
    position: relative;
    background-image: url('../images/0_1qiutWnUTjX1RSDM.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    color: white;
}

.hero-section .btn-primary {
    background-color: #FFD100;
    border-color: #FFD100;
    color: #262626;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 1rem 2rem;
    width: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease-in-out;
}

.hero-section .btn-primary:hover,
.hero-section .btn-primary:focus {
    background-color: #E6BC00;
    border-color: #B89A00;
    color: #262626;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 64, 124, 0.9);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.actions {
    background-color: #FFFFFF;
    padding: 10px 20px;
}

.actions i {
    color: #005fa9;
}

.actions h5 {
    color: #262626;
    font-weight: 600;
}

.btn-primary {
    background-color: #005fa9;
    color: #ffffff;
    border: 2px solid #005fa9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease-in-out;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1e407c;
    color: #FFFFFF;
    border: 2px solid #1e407c;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.updates-section {
    padding: 40px;
}

.updates-section .card-body {
    max-height: 400px;
    overflow-y: auto;
}

.accordion-button i {
    line-height: 1;
    vertical-align: top;
    margin-top: 2px;
    margin-bottom: auto;
}

.status-card {
    background-color: #F2F2F4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-card h4 {
    color: #005FAE;
    margin-bottom: 15px;
}

.help-section {
    background-color: #005fa9;
    color: white;
    text-align: center;
    padding: 80px;
    margin: 0;
}

.help-section .btn-light {
    background-color: #005fa9;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    font-weight: 600;
    font-size: 1.5rem;
    padding: 1rem 2rem;
    width: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease-in-out;
}

.help-section .btn-light:hover {
    background-color: #1e407c;
    color: #FFFFFF;
    border: 2px solid #1e407c;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.arl-footer {
    background-color: #001E44;
    color: #E4E5E7;
    font-size: small;
    flex-shrink: 0;
    padding: 1rem;
}

.arl-footer a {
    color: #E4E5E7;
    font-weight: bold;
    text-decoration: none;
}

.arl-footer a:hover {
    text-decoration: underline;
}


html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #001E44;
}

main {
    flex: 1 0 auto;
}

/* Widget container */
#serviceStatusWidget {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1100;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    overflow: hidden;
    width: auto;
    min-width: 180px;
    transition: bottom 0.2s ease;
}

#serviceStatusHeader.collapsed {
    width: 140px;
    /* or whatever looks good */
}

/* Header button */
#serviceStatusHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(221, 221, 221, 0.6);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#serviceStatusHeader span.ms-2 {
    margin-right: 0.5rem; /* small spacing between text and chevron */
    flex: 1; /* lets text take remaining space */
}

/* Hover only */
#serviceStatusHeader:hover {
    filter: brightness(0.95);
}

/* Collapse body */
#serviceStatusBody {
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(221, 221, 221, 0.6);
}

/* Smooth collapse animation without padding jump */
#serviceStatusBody.collapse {
    transition: height 0.25s ease;
}

/* Chevron alignment */
#collapseIcon {
    margin-left: auto;
}

.pulse {
    animation: pulse 1.5s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
        filter: drop-shadow(0 0 4px currentColor);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    }
}

.header-up,
.header-maintenance,
.header-degraded,
.header-down,
.header-info,
.header-unknown {
    font-weight: 600;
    --header-focus-bg: rgba(255, 255, 255, 0.95); /* default fallback */
    --header-focus-outline: #6c757d;              /* default fallback */
}

.header-up {
    background-color: rgba(226, 227, 229, 0.8);
    color: #2b2f32;
    --header-focus-bg: rgba(206, 212, 218, 0.9);
    --header-focus-outline: #2b2f32;
}

.header-maintenance,
.header-degraded {
    background-color: rgba(255, 243, 205, 0.95);
    color: #664D03;
    --header-focus-bg: rgba(255, 243, 205, 1);
    --header-focus-outline: #664D03;
}

.header-down {
    background-color: rgba(248, 215, 218, 0.9);
    color: #58151C;
    --header-focus-bg: rgba(248, 215, 218, 1);
    --header-focus-outline: #58151C;
}

.header-info {
    background-color: rgba(207, 226, 255, 0.9);
    color: #052c65;
    --header-focus-bg: rgba(207, 226, 255, 1);
    --header-focus-outline: #052c65;
}

.header-unknown {
    background-color: rgba(226, 227, 229, 0.9);
    color: #2b2f32;
    --header-focus-bg: rgba(226, 227, 229, 1);
    --header-focus-outline: #2b2f32;
}

.status-secondary {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

/* Focus only when keyboard navigation is used */
#serviceStatusHeader:focus-visible {
    background-color: var(--header-focus-bg);
    outline: 2px solid var(--header-focus-outline);
    outline-offset: 2px;
}

/* Status body background colors per status */
.status-body-up { background-color: rgba(212, 237, 218, 0.2); }
.status-body-maintenance { background-color: rgba(255, 243, 205, 0.2); }
.status-body-degraded { background-color: rgba(255, 243, 205, 0.2); }
.status-body-down { background-color: rgba(248, 215, 218, 0.2); }
.status-body-info { background-color: rgba(209, 236, 241, 0.2); }
.status-body-unknown { background-color: rgba(233, 236, 239, 0.2); }

.announcement-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem; 
}

.announcement-card-title {
    font-size: 1.4rem;
    line-height: 1.3;
}

.announcement-banner.sticky-top {
    top: 0;
    z-index: 1050;
}

.navbar.sticky-top {
    z-index: 1040;
    transition: top 0.2s ease;
}

.partner-header {
    text-align: center;
    text-decoration: underline;
    margin-bottom: 1.5rem; /* same as mb-4 */
}

