:root {
    --primary-color: #125687;
    --accent-color: #F2AE00;
    --neutral-gray: #575b5e;
    --text-color: #333;
    --bg-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    color: var(--neutral-gray);
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.btn-secondary:hover {
    opacity: 0.9;
}

.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
}

.navbar.sticky-top {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1020 !important;
}

.navbar a {
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
}

.nav-item {
    display: block !important;
}

footer {
    background-color: var(--neutral-gray);
    color: white;
    padding: 10px;
    margin-top: auto;
    text-align: center;
    position: sticky;
    bottom: 0;
    z-index: 1000;
}

main {
    flex: 1;
}

/* Offcanvas Sections Menu Styling */
.offcanvas {
    width: 280px !important;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-left-color: var(--primary-color);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-left-color: var(--accent-color);
    color: white;
}

.list-group-item.active i {
    color: var(--accent-color);
}

.list-group-item i {
    width: 20px;
    text-align: center;
}

/* Hamburger menu button */
.btn-link {
    text-decoration: none;
    padding: 0;
    border: none;
}

.btn-link:hover {
    opacity: 0.8;
}

/* Language selector styling - WCAG 2.1 compliant */
#languageSelect {
    min-width: 120px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    background-color: white;
    font-weight: 500;
}

#languageSelect:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(242, 174, 0, 0.25);
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

#languageSelect option {
    color: var(--text-color);
    background-color: white;
}

/* WCAG 2.1 Compliance - Focus Visible Styles (2.4.7) */
/* All interactive elements must have visible focus indicators */

/* Skip navigation link */
.skip-navigation {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 9999;
    border-radius: 0 0 4px 0;
}

.skip-navigation:focus {
    top: 0;
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* General focus styles for all interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Navigation links focus */
.navbar a:focus,
.nav-link:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Button focus */
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-link:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Offcanvas menu items focus */
.list-group-item:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: -3px;
    background-color: #f8f9fa;
}

/* Close button focus */
.btn-close:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(242, 174, 0, 0.25);
}

/* Navbar toggler focus */
.navbar-toggler:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(242, 174, 0, 0.25);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    a:focus,
    button:focus,
    input:focus,
    select:focus {
        outline-width: 4px;
    }
}

/* Reduced motion support (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Active nav link */
.nav-link.active {
    color: var(--accent-color) !important;
    font-weight: bold;
}

/* Hero section - WCAG 2.1 AA compliant (4.5:1 contrast ratio) */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    /* Ensure text has sufficient contrast with darker gradient overlay */
    background-image: linear-gradient(135deg, rgba(18, 86, 135, 0.95), rgba(242, 174, 0, 0.85)), 
                      linear-gradient(135deg, var(--primary-color), var(--accent-color));
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: white !important; /* Override default h1 color */
}

.hero-section .lead {
    font-size: 1.25rem;
    color: white;
}
