:root {
    --primary-color: #1C5EAD;
    --secondary-color: #153d6e;
    --accent-red: #c8102e;
    --box: #FCFCFC;
    --light: #fff;
    --dark: #12151a;
    --track: #e8eef5;
    --ink-muted: #4a5563;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --page-max: 1120px;
    --page-gutter: clamp(1.25rem, 4vw, 2rem);
}

body::-webkit-scrollbar {
	width: 0.7em;
}

body::-webkit-scrollbar-track {
    background-color: #dfeeff;
}

body::-webkit-scrollbar-thumb {
	background-color: var(--secondary-color);
    border-radius: 20px;
}

.dropdown-menu {
    z-index: 99;
    background: #fff;
    box-shadow: 0 16px 40px rgba(21, 61, 110, 0.14);
    transition: 0.3s;
    border-radius: 10px;
    border: 1px solid rgba(28, 94, 173, 0.1);
    padding: 0.5rem;
}

.dropdown-menu a {
    padding: 10px 16px;
    font-size: 14px;
    text-transform: none;
    font-weight: 500;
    border-radius: 6px;
}

.dropdown-menu a, .dropdown-menu a:focus {
    display: flex;
    align-items: center;
    font-size: 15px;
    white-space: nowrap;
    transition: 0.3s;
}

.dropdown-menu a:focus {
    background-color: #1C5EAD !important;
    color: #fff;
}


/* MAIN */

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: var(--font-body);
}

body {
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(28, 94, 173, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(200, 16, 46, 0.06), transparent 50%),
        linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
    color: var(--dark);
    min-height: 100vh;
}

p {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 400;
    margin-bottom: 0px;
}

h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    margin-bottom: 0px;
}

h1 {
    font-size: 2.5rem;
    line-height: 2.5rem;
    font-weight: 700;
    margin-bottom: 0px;
}

.text-blue {
    color: var(--secondary-color);
}

.a-blue {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    font-size: 12px;
    margin-top: 15px;
}

.a-blue:hover {
    text-decoration: none;
    color: var(--primary-color);
}

.a-blue-large {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.a-blue-large:hover {
    text-decoration: none;
    color: var(--primary-color);
}

.noAStyle {
    text-decoration: none;
    color: var(--dark);
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--light);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
    background-color: var(--primary-color);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(21, 61, 110, 0.25);
}

.button-danger {
    display: inline-block;
    padding: 8px 20px;
    background-color: #9F372C;
    color: var(--light);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.button-danger:hover {
    background-color: #b94636;
    color: var(--light);
}


.button-light {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--light);
    color: var(--dark);
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.button-light:hover {
    background-color: var(--primary-color);
    color: var(--light);
    transform: translateY(-2px);
}

.page-padding {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

.text-box {
    padding: 2rem 2rem;
    background-color: var(--box);
    border-radius: 25px;
    width: 100%;
    min-height: 400px;
}

.image-box {
    background-color: var(--box);
    border-radius: 25px;
    width: 100%;
    min-height: 400px;
    object-fit: cover;
    height: 100%;
}

.image-box img {
    width: 100%;
    border-radius: 25px;
    object-fit: cover;
    height: 100%;
}

.icon {
    height: 115px;
    margin-bottom: 20px;
}

/* FORMS */

.form-control {
    color: var(--dark);
    background-color: #eeeeee;
    border: 0px;
    height: 3em;
    border-radius: 20px;
    transition: all 0.2s ease-in-out;
    outline: none !important;
    box-shadow: none;
}

.form-control:focus {
    color: var(--dark);
    background-color: #c2c2c2;
    outline: none !important;
    box-shadow: none;
}

.form-check-input {
    background-color: #dfdfdf;
    width: 1em;
    height: 1em;
    border: 0px;
    border-radius: 20px;
    outline: none !important;
    box-shadow: none;
    outline: 0;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    outline: none !important;
    box-shadow: none;
    outline: 0;
}

/* LOADER */

.loader {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(28, 94, 173, 0.45), transparent 70%),
        radial-gradient(ellipse 90% 70% at 80% 100%, rgba(200, 16, 46, 0.28), transparent 55%),
        linear-gradient(165deg, #0a1220 0%, #12243d 48%, #0d1828 100%);
}

.loader-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.loader-wheel {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    animation: loaderWheelSpin 0.85s linear infinite;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.loader-wheel svg {
    display: block;
    width: 100%;
    height: 100%;
}

.loader-wheel-rim {
    fill: none;
    stroke: #e8eef5;
    stroke-width: 5;
}

.loader-wheel-rim-inner {
    fill: none;
    stroke: rgba(28, 94, 173, 0.85);
    stroke-width: 2.5;
}

.loader-wheel-spokes {
    stroke: rgba(255, 255, 255, 0.78);
    stroke-width: 1.6;
    stroke-linecap: round;
}

.loader-wheel-hub {
    fill: var(--accent-red);
    stroke: #fff;
    stroke-width: 2;
}

.loader-wheel-hub-core {
    fill: #fff;
}

@keyframes loaderWheelSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .loader-wheel {
        animation: none;
    }
}

/* HEADER */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.85rem 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    padding: 0.85rem 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    border-bottom-color: rgba(28, 94, 173, 0.1);
    box-shadow: 0 8px 24px rgba(21, 61, 110, 0.07);
}

.site-nav {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    --bs-navbar-padding-y: 0;
    --bs-navbar-padding-x: 0;
}

.site-nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    box-sizing: border-box;
    min-height: 58px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand-logos {
    position: relative;
    display: block;
    width: 64px;
    height: 58px;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-scrolled .brand-logos {
    width: 138px;
    height: 58px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.2rem 2rem;
    background-color: var(--light);
}

.header-img {
    height: auto;
    max-height: 60px;
    width: auto;
}

.header-img--light,
.header-img--combo {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: auto;
    object-fit: contain;
    pointer-events: none;
}

.header-img--light {
    height: 48px;
    opacity: 1;
    transform: translate(0, -50%);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
    z-index: 2;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
        opacity 0.28s ease 0.08s,
        filter 0.3s ease;
}

.header-img--combo {
    height: 52px;
    opacity: 0;
    transform: translate(0, -50%);
    z-index: 1;
    transition: opacity 0.22s ease 0s;
}

.site-header.is-scrolled .header-img--light {
    transform: translate(58px, -50%);
    opacity: 0;
    filter: drop-shadow(0 0 0 transparent);
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0s,
        opacity 0.22s ease 0.05s,
        filter 0.25s ease;
}

.site-header.is-scrolled .header-img--combo {
    opacity: 1;
    transition: opacity 0.3s ease 0.1s;
}

.navbar {
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-nav .navbar-collapse {
    flex-grow: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 0.85rem;
}

.site-nav-links {
    flex-grow: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.15rem;
    min-height: auto;
    box-shadow: none;
    border-radius: 0;
    background-color: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.site-nav-links .nav-link {
    position: relative;
    color: #fff;
    padding: 0.55rem 0.85rem;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav-links .nav-link:hover,
.site-nav-links .nav-link:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

.site-nav-links .nav-link.is-active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

.site-nav-links .nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.2rem;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.site-header.is-scrolled .site-nav-links .nav-link {
    color: var(--secondary-color);
}

.site-header.is-scrolled .site-nav-links .nav-link:hover,
.site-header.is-scrolled .site-nav-links .nav-link:focus {
    color: var(--primary-color);
    background-color: rgba(28, 94, 173, 0.08);
}

.site-header.is-scrolled .site-nav-links .nav-link.is-active {
    color: var(--primary-color);
    background-color: rgba(28, 94, 173, 0.08);
}

.site-header.is-scrolled .site-nav-links .nav-link.is-active::after {
    background: var(--primary-color);
}

.site-nav-links .dropdown-item.is-active {
    background-color: rgba(28, 94, 173, 0.12);
    color: var(--primary-color);
    font-weight: 700;
}

.site-nav-actions .button-mob.is-active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.site-header.is-scrolled .site-nav-actions .button-mob.is-active {
    box-shadow: inset 0 0 0 2px rgba(21, 61, 110, 0.35);
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.site-nav-actions .home-cta {
    min-height: 2.55rem;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
}

.site-header.is-scrolled .site-nav-actions .home-cta-live {
    background: rgba(28, 94, 173, 0.08);
    color: var(--secondary-color) !important;
    border-color: rgba(28, 94, 173, 0.28);
    backdrop-filter: none;
}

.site-header.is-scrolled .site-nav-actions .home-cta-live:hover {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.site-header.is-scrolled .site-nav-actions .home-cta-live-logo {
    background: rgba(28, 94, 173, 0.12);
}

.button-mob {
    background-color: var(--primary-color);
    color: white !important;
    font-weight: 700;
    min-height: 2.55rem;
    padding: 0.55rem 1.1rem;
    border-radius: 4px;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.button-mob:hover {
    background-color: var(--secondary-color);
    color: #fff !important;
    transform: translateY(-1px);
}

.score-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.score-section {
    display: flex;
    align-items: center;
    background: var(--track);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-weight: bold;
    min-height: auto;
    transition: background 0.3s ease;
}

.score-section:hover {
    background: #d5e0ec;
}

.score-logo {
    width: 28px;
    height: 28px;
    border-radius: 50px;
    object-fit: cover;
}

.navbar-toggler {
    border: 0px !important;
    outline: none !important;
    font-size: 30px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 #ffffff00 !important;
}

.navbar-toggler .bi {
    color: #fff !important;
    font-size: 1.85rem;
    transition: color 0.2s ease;
}

.navbar-toggler .bi:hover {
    color: rgba(255, 255, 255, 0.75) !important;
}

.site-header.is-scrolled .navbar-toggler .bi {
    color: var(--secondary-color) !important;
}

.site-header.is-scrolled .navbar-toggler .bi:hover {
    color: var(--primary-color) !important;
}

.admin .nav-link {
    color: var(--dark);
    transition: all 0.2s ease-in-out;
    border-radius: 20px;
}

.admin .nav-link:hover {
    color: var(--light);
    transition: all 0.2s ease-in-out;
    background-color: #c9c9c9 !important;
    border-radius: 20px;
}

.admin .nav-link:focus {
    color: var(--light);
    transition: all 0.2s ease-in-out;
    background-color: #c9c9c9 !important;
    border-radius: 20px;
}

.admin .nav-link.active {
    color: var(--light);
    transition: all 0.2s ease-in-out;
    background-color: #139DCF !important;
    border-radius: 20px;
}

/* FOOTER */

.site-footer {
    margin: 0;
    width: 100%;
}

.site-footer-main {
    background: #fff;
    border-top: 1px solid rgba(28, 94, 173, 0.12);
    padding: 2.5rem 0;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    box-sizing: border-box;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.65rem;
    text-decoration: none;
}

.site-footer-brand .footer-logo {
    height: 72px;
    width: auto;
    display: block;
}

.site-footer-track {
    display: block;
    color: var(--ink-muted);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
}

.site-footer-meta p {
    color: var(--ink-muted);
    margin-bottom: 0.75rem;
}

.site-footer-social {
    display: flex;
    gap: 0.65rem;
}

.site-footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--track);
    color: var(--secondary-color);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-footer-social a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.site-footer-cta p {
    margin-bottom: 0.85rem;
    color: var(--ink-muted);
}

.copyright {
    background-color: var(--secondary-color);
    color: var(--light);
    padding: 0.95rem 0;
}

.copyright-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.copyright p {
    font-size: 0.8rem;
    margin: 0;
}

.credit-line {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.euan-credit-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    background: #fff;
    color: #111 !important;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.euan-credit-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #111 !important;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem;
    border-radius: 25px 25px 0px 0px;
    background-color: #FCFCFC;
}

.footer-logo {
    height: 72px;
    width: auto;
}

.footer h2 {
    font-weight: 800;
    margin-bottom: 0px;
}

.contact-box {
    padding: 2rem 2rem;
    background-color: #f3f3f3;
    border-radius: 25px;
    width: 100%;
    margin-bottom: 15px;
    min-height: 200px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-box:hover {
    background-color: #e4e4e4;
}

.contact-text .bi {
    font-size: 30px;
    color: var(--primary-color);
}

.contact-text h5 {
    margin-top: 10px;
    font-weight: 600;
    margin-bottom: 0px;
}
