.text-pink {
    color: #eb1364;
}
.text-blue {
    color: #0167ba;
}

.bg-blue {
    background-color: #0167ba;
}
.bg-pink {
    background-color: #eb1364;
}
.btn-primary{
    background-color: #0167ba;
    border-color: #0167ba;
}

.bg-gradient-primary {
    background-image: linear-gradient(155deg, #0167ba 0%, #eb1364 50%, #0167ba 100%);
}

.text-gradient {
    background: radial-gradient(circle at 70%, #0167ba 10%, #eb1364 30%);
    background-size: 400% 400%;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    animation: textGradientAnimation 5s ease-in-out infinite;
    -webkit-animation: textGradientAnimation 5s ease-in-out infinite;
}

.bg-wecare {
    background-color: #1c294a;
}

.bg-tasty {
    background-color: #82dce8;
}
.bg-horizons {
    background-color: #3a7a58;
}
.bg-swansea {
    background-color: #fff;
}
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZ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zcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Ensure nav is horizontal and items are centered */
.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.5rem; /* Even spacing between items, adjust as needed */
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    list-style: none !important;
    min-height: 48px; /* Match button height */
}

/* Remove extra margin from nav-item if using gap */
.nav-item {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* NavLink styles (already present, but ensure no extra vertical spacing) */
.nav-link {
    color: #434064 !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    transition: color 0.2s;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    font-size: 1.5rem; /* Adjust to match your design */
    line-height: 1 !important;
    height: 48px; /* Match button height */
}

/* Button in navbar (adjust selector if needed) */
.navbar-btn, .btn-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    font-size: 1rem !important;
    padding: 0 1.25rem !important;
    margin-left: 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

/* Active and hover states for nav-link */
.nav-link.active, .nav-link.active:focus, .nav-link.active:hover {
    color: #080713 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

.nav-link:hover, .nav-link:focus {
    color: #6354ff !important;
    text-decoration: none;
    opacity: 1 !important;
}

/* Footer links */
footer .nav-link {
    color: #fff !important; /* Use your original footer link color */
    font-size: 1rem !important; /* Match original footer font size */
    font-weight: 500 !important;
    opacity: 1 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
    display: block !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

    footer .nav-link:hover,
    footer .nav-link:focus {
        color: #fff !important; /* Optional: highlight on hover */
        text-decoration: underline !important;
    }

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: #0167ba;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 0.25rem 0;
    transition: top 0.2s;
}

.skip-to-main:focus {
    top: 0;
    color: white;
    outline: 3px solid #eb1364;
    outline-offset: 2px;
}

/* Focus styles for cards with stretched links (Resources page) */
.card:has(.stretched-link:focus) {
    outline: 3px solid #0167ba;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(1, 103, 186, 0.2) !important;
}

.stretched-link:focus {
    outline: none;
}

/* Focus styles for card overlay links (Explore page) */
.card-over:focus,
.card-split-hover:focus {
    outline: 3px solid #0167ba;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(1, 103, 186, 0.2) !important;
}

.card-over:focus .card-overlay,
.card-split-hover:focus .card-overlay {
    background-color: rgba(1, 103, 186, 0.85);
}

/* Focus styles for links wrapping cards/images (Careermap, Post16) */
a:has(.card):focus,
a:has(img.rounded):focus {
    outline: 3px solid #0167ba;
    outline-offset: 3px;
    border-radius: 0.375rem;
}

a:has(.card):focus .card,
a:has(img.rounded):focus img {
    box-shadow: 0 0 0 6px rgba(1, 103, 186, 0.2);
}

/* Focus styles for video lightbox and circular buttons */
.btn-circle-ripple:focus,
a[data-glightbox]:focus {
    outline: 3px solid #0167ba;
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(1, 103, 186, 0.3) !important;
}

/* Focus styles for regular buttons */
.btn:focus,
.btn-primary:focus {
    outline: 3px solid #0167ba;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(1, 103, 186, 0.2) !important;
}

/* Focus styles for general links */
a:focus:not(.nav-link):not(.btn):not(.stretched-link):not(.card-over):not(.card-split-hover):not([data-glightbox]) {
    outline: 2px solid #0167ba;
    outline-offset: 2px;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: #eb1364;
}

/* Enhanced focus for links in white/light backgrounds */
.text-white a:focus,
.bg-gradient-primary a:focus {
    outline-color: white;
    outline-width: 3px;
    outline-offset: 3px;
    text-decoration-color: white;
}

/* Focus visible only when using keyboard (not mouse clicks) */
@supports selector(:focus-visible) {
    .card:has(.stretched-link:focus-visible) {
        outline: 3px solid #0167ba;
        outline-offset: 3px;
        box-shadow: 0 0 0 6px rgba(1, 103, 186, 0.2) !important;
    }

    .card:has(.stretched-link:focus:not(:focus-visible)) {
        outline: none;
        box-shadow: none !important;
    }

    .card-over:focus-visible,
    .card-split-hover:focus-visible {
        outline: 3px solid #0167ba;
        outline-offset: 3px;
        box-shadow: 0 0 0 6px rgba(1, 103, 186, 0.2) !important;
    }

    .card-over:focus:not(:focus-visible),
    .card-split-hover:focus:not(:focus-visible) {
        outline: none;
        box-shadow: none !important;
    }

    .card-over:focus:not(:focus-visible) .card-overlay,
    .card-split-hover:focus:not(:focus-visible) .card-overlay {
        background-color: initial;
    }

    a:has(.card):focus-visible,
    a:has(img.rounded):focus-visible {
        outline: 3px solid #0167ba;
        outline-offset: 3px;
    }

    a:has(.card):focus:not(:focus-visible),
    a:has(img.rounded):focus:not(:focus-visible) {
        outline: none;
    }

    a:has(.card):focus-visible .card,
    a:has(img.rounded):focus-visible img {
        box-shadow: 0 0 0 6px rgba(1, 103, 186, 0.2);
    }

    a:has(.card):focus:not(:focus-visible) .card,
    a:has(img.rounded):focus:not(:focus-visible) img {
        box-shadow: none;
    }

    .btn:focus-visible,
    .btn-primary:focus-visible,
    .btn-circle-ripple:focus-visible,
    a[data-glightbox]:focus-visible {
        outline: 3px solid #0167ba;
        outline-offset: 3px;
        box-shadow: 0 0 0 6px rgba(1, 103, 186, 0.2) !important;
    }

    .btn:focus:not(:focus-visible),
    .btn-primary:focus:not(:focus-visible),
    .btn-circle-ripple:focus:not(:focus-visible),
    a[data-glightbox]:focus:not(:focus-visible) {
        outline: none;
        box-shadow: none !important;
    }

    a:focus-visible:not(.nav-link):not(.btn):not(.stretched-link):not(.card-over):not(.card-split-hover):not([data-glightbox]) {
        outline: 2px solid #0167ba;
        outline-offset: 2px;
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-decoration-color: #eb1364;
    }

    a:focus:not(:focus-visible):not(.nav-link):not(.btn):not(.stretched-link):not(.card-over):not(.card-split-hover):not([data-glightbox]) {
        outline: none;
        text-decoration: none;
    }

    .text-white a:focus-visible,
    .bg-gradient-primary a:focus-visible {
        outline-color: white;
        outline-width: 3px;
        outline-offset: 3px;
        text-decoration-color: white;
    }
}

/* Visually hidden class for screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Footer heading visual styles - maintain original appearance */
footer h2.h3 {
    font-size: 2.5rem !important;
    font-weight: 300 !important;
}

footer h3.h4 {
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
}
.toTop {
    position: fixed;
    bottom: 0;
    right: 0;
    margin-right: 1rem;
    margin-bottom: 1rem;
    display: flex;
    width: 3rem;
    height: 3rem;
    border-radius: 100%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: none;
    transition: 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    z-index: 1030;
}

    .toTop svg {
        width: 3rem;
        height: 3rem;
        position: absolute;
        left: 0;
        top: 0;
        stroke: #6354ff;
    }

    .toTop > i {
        opacity: 0;
        visibility: hidden;
    }

    .toTop.show {
        background-color: var(--bs-tertiary-bg);
        color: var(--bs-body-color);
        pointer-events: all;
    }

        .toTop.show > i {
            visibility: visible;
            opacity: 1;
            transform: none;
        }

        .toTop.show svg {
            stroke: var(--bs-body-color);
        }