:root {
    --bs-primary: #364485 !important;
    --bs-primary-rgb: 54, 68, 133 !important;
}

/* Forcibly apply Jost font to all buttons */
.btn-primary,
.btn-outline-primary,
.uk-button,
.uk-button-jai,
button {
    font-family: "Jost", sans-serif !important;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-snap-type: y mandatory !important;
    ;
}

/* Enforce button colours */
.btn-primary,
.btn-outline-primary {
    background-color: #364485 !important;
    border-color: #364485 !important;
    color: #bababa !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #2d3a74 !important;
    border-color: #2d3a74 !important;
    color: #ffffff !important;
}

/* Landing page: semi-transparent blur */
.custom-navbar-landing {
    background-color: rgba(32, 42, 90, 0.3) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subpages: solid background */
.custom-navbar-subpage {
    background-color: rgb(32, 42, 90) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Target all icons inside the mobile toggle */
.uk-navbar-toggle>[uk-icon] {
    fill: white !important;
    /* force white color */
    filter: drop-shadow(0 0 2px white) drop-shadow(0 0 2px white);
    /* subtle glow */
}

.uk-section-primary {
    background: #2d3a74;
}

.uk-card-jai {
    background: #2d3a74 !important; /* card background */
    color: #ffffff !important;       /* default text color */
    transition: none !important;     /* prevent UIKit hover animations */
}

/* Force all text inside to white */
.uk-card-jai * {
    color: #ffffff !important;
    background: transparent !important; /* don't override card background */
}

/* Remove hover effects */
.uk-card-jai:hover,
.uk-card-jai:focus,
.uk-card-jai:active {
    background: #2d3a74 !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

.uk-button-jai {
    background: #2d3a74 !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect: brighten color, lift button */
.uk-button-jai:hover {
    background: #3b4b91 !important;
    transform: translateY(-2px);
    animation: glowPulse 1.6s infinite ease-in-out;
}

/* Keyframes for radiating glow */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 6px rgba(59, 75, 145, 0.6),
                    0 0 12px rgba(59, 75, 145, 0.4),
                    0 0 20px rgba(59, 75, 145, 0.2);
    }
    50% {
        box-shadow: 0 0 12px rgba(59, 75, 145, 0.8),
                    0 0 24px rgba(59, 75, 145, 0.5),
                    0 0 36px rgba(59, 75, 145, 0.3);
    }
    100% {
        box-shadow: 0 0 6px rgba(59, 75, 145, 0.6),
                    0 0 12px rgba(59, 75, 145, 0.4),
                    0 0 20px rgba(59, 75, 145, 0.2);
    }
}

/* Focus effect: glow border for accessibility */
.uk-button-jai:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 58, 116, 0.4);
}

/* Active (click) effect: press down */
.uk-button-jai:active {
    background: #242f60 !important;
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.uk-text-primary {
    color: #2d3a74 !important;
}

.uk-logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
    display: block;
}

.uk-animation-kenburns-pingpong {
    animation: kenburns-pingpong 20s ease-in-out infinite alternate;
}

.uk-text-glow {
    text-shadow:
        0 0 3px rgba(0, 0, 0, 1),
        0 0 6px rgba(0, 0, 0, 0.9),
        0 0 9px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(0, 0, 0, 0.7);
}

/* Make navbar links white */
.custom-navbar .uk-navbar-nav>li>a {
    color: #ffffff !important;
}

/* Offcanvas menu text color */
#burgermenu,
#burgermenu .uk-nav,
#burgermenu .uk-nav a {
    color: white !important;
}

.custom-navbar .uk-navbar-nav>li>a:hover,
.custom-navbar .uk-navbar-nav>li>a:focus {
    color: #e0e0e0 !important;
    /* optional: lighter on hover/focus */
}



/* Make all links use accent unless overridden */
.jai-link {
    color: #364485 !important;
    text-decoration: none;
}

.jai-link:hover {
    color: #2d3a74 !important;
    text-decoration: underline;
}

/* Apply DM Serif Text to all headings */
h1,
h2,
h3,
h4,
h5,
h6,
label {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

/* Apply Lunasima to paragraphs, lists, and tables */
p,
ul,
ol,
li,
table,
th,
td,
thead,
tbody,
tfoot,
input,
caption {
    font-family: "Jost", sans-serif;
    font-optical-sizing: auto;
    font-weight: 360;
    font-style: normal;
}

.staff-photo {
    width: 15vw;
    /* scales with viewport width */
    max-width: 120px;
    /* prevents being too big on large screens */
    min-width: 60px;
    /* prevents being too tiny on phones */
    aspect-ratio: 1 / 1;
    /* keeps it square */
    object-fit: cover;
    /* fills the square without distortion */
}

@keyframes kenburns-pingpong {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.2) translate(-5%, -5%);
    }
}

@media (max-width: 959px) {
    .no-bg-mobile {
        background-image: none !important;
        background-color: #f5f5f5 !important;
    }
}