@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@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
}

.navbar.topbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}


.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/AdobeStock_1564912181_Preview.png');
    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: #F2F2F4;
}

main {
    flex: 1 0 auto;
}

/* ------------------------------------------------------------
 Environment Banner
------------------------------------------------------------ */
.env-banner {
    text-align: center;
    padding: 6px 0;
    font-size: 1rem;
    z-index: 2000;
    position: sticky;
    top:0;
}

body.has-env-banner nav.navbar {
    top: 36px;
    z-index: 1999;
}

/* ------------------------------------------------------------
 Error Page
------------------------------------------------------------ */
.error-page-container {
    min-height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    margin: 2rem;
}

.error-page-container h1,
.error-page-container p {
    margin-bottom: 1rem;
}

error-page-container > div > i {
    font-size: 4rem;
}

.error-page-container h1 {
    font-size: 2rem;
}

/* ------------------------------------------------------------
 Forgot Username
------------------------------------------------------------ */

.auth-card {
    max-width: 480px;
    margin: 60px auto;
    padding: 40px;
    background: #FFFFFF; /* White Out */
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.auth-logo {
    display: block;
    margin: 0 auto;
    height: 70px;
    width: auto;
    max-width: 100%;
}

.auth-title {
    font-weight: 600;
    font-size: 1.6rem;
    color:#262626; /* Old Coaly */
}

.auth-subtitle {
    color: #314D64; /* PA Slate */
    font-size: 1.2rem;
}

.auth-steptitle {
    font-size: 1.1rem;
    font-weight: 600;
}

.form-floating {
    font-size: 1rem;
}

.form-floating > label {
    font-size: 0.8rem;
    color: #6c757d;
}

.h-captcha {
    width: 100% !important;
}

.h-captcha-accessibility-message {
    font-size: 0.85rem;
}

.h-captcha-accessibility-message a {
    text-decoration: none;
    color: #005FA9; /* PA Link */
    transition: color 0.2s ease-in-out;
}
    .h-captcha-accessibility-message a:hover,
    .h-captcha-accessibility-message a:focus {
        text-decoration: underline;
    }

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-container {
    background-color: #ffffff;
    margin-bottom:20px;
}

.message-container .alert {
    padding: 0.5rem 1rem;
}

.alert-message {
    margin-top: 20px;
    background-color: #E6F7FF;
    color: #084298 !important;
    text-align: left;
    border-color: #cfe2ff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    padding: 1rem 1.25rem !important;
}

.alert-message-title {
    font-weight: 600;
    font-size: 1.2rem;
    text-align: left;
}

.alert-message-body {
    margin-bottom: 0.5rem;
    padding-right: 0.25rem; /* tiny breathing room */
}

.alert-message-footer {
    font-size: 0.85rem;
    color: #4f6375;
    text-align: center;
}

.alert-header-row {
    align-items: center !important; /* aligns the h2 and close button baseline-ish */
}

.alert-header-row .btn-close {
    margin-top: -2px; /* adjust between -2px and -4px as needed */
}

.modal-title {
    font-weight: 600;
    font-size: 1.5rem;
}

.bg-image {
    position: relative;
    background-image: url('/images/fs0jq9chpgqWma2MJ297.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100vh;
}

.bg-image::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* ------------------------------------------------------------
 Activate
------------------------------------------------------------ */

.arl-id-card {
    color: #262626; /* Old Coaly */
}

.activation-container {
    max-width: 500px;
    margin: 40px auto;
    font-family: sans-serif;
}

.activation-result {
    padding: 16px;
    border-radius: 6px;
    margin-top: 20px;
}

.success {
    background: #e6f7e6;
    border: 1px solid #7ccc7c;
    color: #2d662d;
}

.error {
    background: #fdeaea;
    border: 1px solid #e07c7c;
    color: #7a1f1f;
}