@import url("https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");

/* Custom CSS Variables */
:root {
    --primary-blue: #005a8b;
    --warning-yellow: #fdb913;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --dark-gray: #333333;
    --light-gray: #777777;
    --bs-yellow-rgb: 253, 185, 19;
    --medium-gray: #777777;
}

/* Custom Bootstrap Theme Colors */
.bg-primary {
    background-color: var(--primary-blue) !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #004670;
    border-color: #004670;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.bg-warning {
    background-color: var(--warning-yellow) !important;
}

/* Typography */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-gray);
    background-color: #f5f5f5;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Open Sans', sans-serif;
}

/* Contact bar text color */
.bg-warning span a,
.bg-warning span {
    color: var(--dark-gray);
    text-decoration: none;
}

.bg-warning span a:hover {
    text-decoration: underline;
}

.navbar-nav {
    padding-left: 15px;
}

/* Ensure navbar uses your brand colors */
.navbar.bg-primary {
    background-color: var(--primary-blue) !important;
}

/* Make the toggler visible on primary background */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .1rem rgba(255, 255, 255, .25);
}

header .nav-link {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.3s;
}

/* Badge sizing tweak for small icons */
.navbar .badge {
    font-size: 10px;
    padding: 0.25rem 0.4rem;
}

/* Mobile: ensure menu links are comfy to tap */
@media (max-width: 768px) {
    #mainNav .nav-link {
        padding: .75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    #mainNav .nav-link:last-child {
        border-bottom: none;
    }
}

/* portal injected elements */
.cdk-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 0px;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

/* Floating action button */
.fab-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 55px;
    height: 57px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fab-button:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .fab-button {
        margin-bottom: 50px;
    }
}

.illustration-img {
    position: absolute;
    top: -41px;
    right: 144px;
    width: 313px;
    height: 389px;
}

/* header */
/* Make header sticky */
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    /* above nav-section and content */
    background-color: var(--white);
}

/* Ensure both contact bar and navbar stay visible together */
header .bg-warning,
header .navbar {
    position: relative;
    z-index: 1031;
}

header .btn {
    --bs-btn-padding-y: 8px;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
}

header .btn.btn-outline-light {
    border-width: 2px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .bg-warning {
        display: none;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    padding: 44px 50px;
    position: relative;
    z-index: 9999;
    color: white;
    padding: 20px 0;
}

.footer a {
    color: white;
    text-decoration: none;
    margin: 0;
    white-space: nowrap;
}

.footer a:hover {
    color: var(--weatherit-yellow);
    text-decoration: underline;
}

.footer hr {
    height: 3px;
    background-color: var(--warning-yellow);
    border-color: var(--warning-yellow);
    opacity: 1;
}

/* Responsive footer links */
.footer-links {
    flex-wrap: wrap;
}

.footer-header {
    display: none;
}

.footer-header h3 {
    font-weight: 600;
}

@media (max-width: 767px) {
    .footer>.container-fluid.px-5 {
        padding-top: 52px;
    }

    .footer-header {
        display: block;
    }

    .footer-logo {
        display: none;
    }

    .footer-links {
        justify-content: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links a {
        display: block;
        width: 100%;
    }
}

a.content-link {
    color: #333333;
    text-decoration: none;
}

a.content-link:hover {
    text-decoration: underline;
}

/* --- Breadcrumbs --- */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 15px;
    padding-top: 15px;
}

.breadcrumb-item {
    font-family: var(--font-source-sans);
    font-size: 14px;
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--dark-gray);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--medium-gray);
    text-decoration: underline;
}

/* --- Sticky Tabs --- */
.sticky-tabs-wrapper {
    position: sticky;
    top: 128px;
    /* Adjust if your header is fixed */
    z-index: 1050;
    margin-bottom: 0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .sticky-tabs-wrapper {
        top: 89px;
    }
}

.sticky-tabs-wrapper .bg-primary {
    background-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Make sure the blue background extends full height */
.sticky-tabs-wrapper .bg-primary,
.nav-tabs {
    background-color: var(--primary-blue) !important;
}

/* Ensure sticky bar looks seamless across viewports */
.nav-tabs {
    margin-bottom: 0;
}

/* Tab styles */
.nav-tabs .nav-link:not(.active) .link-underline {
    display: none;
}

.nav-tabs .nav-link.active .link-underline {
    display: block;
}

.nav-tabs .nav-link {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 1rem;
        text-align: center;
    }

    .nav-tabs .nav-link span {
        font-size: 14px !important;
    }
}

.nav-tabs .nav-link span {
    display: inline-block !important;
    /* shrink to fit text */
    width: fit-content !important;
    text-align: center;
    margin: 0 auto;
    /* centers text + underline within button */
}

.nav-tabs .link-underline {
    display: inline-block;
    width: auto;
    margin-top: 0.5rem;
    height: 3px;
    background-color: #FDB913;
    border-radius: 2px;
    align-self: flex-start;
}


/* Remove any card edge showing through */
.sticky-tabs-wrapper .card,
.sticky-tabs-wrapper .bg-primary {
    border: none !important;
}

/* Optional: remove unwanted padding that may cause the gap */
.sticky-tabs-wrapper .container-fluid {
    padding: 0 !important;
}

.main-content {
    max-width: 1252px;
    margin: 0 auto;
}

/* Ensure no parent cancels sticky */
.main-content,
section,
.container-fluid {
    overflow: visible !important;
}

body:not(.authenticated) .mobile-menu {
    display: none !important;
}

.mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 5px;
    background-color: white;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.25);
    position: fixed;
    /* <-- change from sticky to fixed */
    bottom: 0;
    /* stick to bottom of viewport */
    left: 0;
    right: 0;
    z-index: 99999;
    /* above most elements */
}

.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.mobile-menu-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    border-radius: 300px;
}

.mobile-menu-icon-wrapper.active {
    background-color: #005a8b;
}

.mobile-menu-icon {
    width: 16px;
    height: 17px;
}

.mobile-menu-item span {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    body.authenticated {
        padding-bottom: 70px;
    }
}

#loginLink:not(.display),
#mobileNav:not(.display),
#mainNav:not(.display) {
    display: none !important;
}

ubind-modal-component,
.ubind-modal-component {
    z-index: 9999999;
    position: relative !important;
}