:root {
    --primary-color: #ce312d;
    --bg-black: #000000;
    --bg-dark: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --text-light-gray: #f0f0f0;
    --font-primary: 'Open Sans', Arial, sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-size: 16px;
    font-weight: 400;
}

/* Skip links for keyboard navigation */
.skip-links {
    position: absolute;
    top: -200px;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.skip-links a {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 4px 0;
}

.skip-links a:focus {
    position: static;
    width: auto;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }

/* Enhanced focus indicators for accessibility */
a:focus, button:focus, .nav-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-report:focus {
    outline: 3px solid var(--text-white);
    outline-offset: 2px;
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-black);
    box-shadow: 0 2px 5px rgba(206, 49, 45, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--text-white) !important;
    font-weight: bold;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.btn-link-nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    display: inline;
}

.nav-link {
    color: var(--text-white) !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light-gray) !important;
    background-color: rgba(206, 49, 45, 0.2);
}

/* Header Section */
.header-section {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)),
                url('../images/header-background.jpg') center center;
    background-size: cover;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(206, 49, 45, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(206, 49, 45, 0.15) 0%, transparent 50%);
    animation: emergencyPulse 2s ease-in-out infinite;
}

@keyframes emergencyPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.header-logo img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.header-logo .page-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.hero-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1rem;
    color: #000000;
    margin-bottom: 15px;
}

.highlight-box h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0;
}

.btn-report {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-report:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-image-box {
    text-align: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-image-box img {
    max-width: 100%;
    height: auto;
}

/* Q&A Section */
.qa-section {
    background-color: var(--primary-color);
    padding: 20px 0 40px 0;
    position: relative;
}

.light-image {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
    margin-top: -80px;
}

.light-image img {
    max-width: 120px;
    filter: brightness(1.2) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.qa-container {
    max-width: 800px;
    margin: 0 auto;
}

.qa-box {
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.qa-label {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-right: 15px;
    display: inline-block;
}

.qa-text {
    font-size: 1.05rem;
    color: var(--text-white);
    line-height: 1.6;
    display: inline;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-image-wrapper {
    position: relative;
    text-align: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.about-image-wrapper img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.about-content h2 {
    color: var(--primary-color) !important;
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.about-content p {
    font-size: 1rem;
    color: #000000 !important;
    margin-bottom: 30px;
}

/* Partners Section */
.partners-section {
    background-color: #cccccc;
    padding: 60px 0;
}

.partners-section h2 {
    color: #000000;
    font-size: 2rem;
    margin-bottom: 30px;
}

.partner-logo img {
    max-width: 150px;
}

.partner-info {
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.8;
}

.partner-info a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Report Section */
.report-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.report-section h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
}

.state-card {
    background: #ffffff;
    border: 1px solid rgba(206, 49, 45, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.state-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(206, 49, 45, 0.3);
}

.state-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.state-card .position {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.state-card .contact-info {
    font-size: 0.9rem;
    color: #000000;
}

.state-card .contact-label {
    color: var(--primary-color);
    font-weight: bold;
}

.state-card a {
    color: #000000;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--bg-black);
    color: var(--text-white);
    padding: 40px 0 20px;
    border-top: 3px solid var(--primary-color);
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-nav-list li {
    display: inline;
}

.footer-nav-list li:not(:last-child)::after {
    content: " / ";
    color: var(--text-gray);
    margin-left: 10px;
    pointer-events: none;
}

footer a {
    /* Updated contrast color for better accessibility - Changed from primary red */
    color: var(--text-light-gray);
    text-decoration: underline;
}

footer a:hover,
footer a:focus {
    color: var(--text-white);
}

.btn-link {
    background: none;
    border: none;
    /* Updated contrast color for better accessibility - Changed from primary red */
    color: var(--text-light-gray);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

.btn-link:hover,
.btn-link:focus {
    color: var(--text-white);
}

.copyright {
    border-top: 1px solid rgba(206, 49, 45, 0.3);
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    color: var(--text-gray);
}

/* Page Navigation */
.page-nav {
    display: none;
}

.page-nav.active {
    display: block;
}

/* Navbar toggler */
.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28206, 49, 45, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(206, 49, 45, 0.25);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg-black);
        padding: 15px;
        margin-top: 15px;
        border-radius: 5px;
        border: 1px solid var(--primary-color);
    }
    
    .navbar-nav {
        gap: 10px;
    }
    
    .nav-link {
        padding: 10px 15px !important;
        border-radius: 3px;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(206, 49, 45, 0.1);
    }
}

@media (max-width: 768px) {
    .header-logo .page-title {
        font-size: 2rem;
    }
    
    .header-logo img {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .highlight-box h3 {
        font-size: 1.2rem;
    }
    
    .btn-report {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .hero-image-box {
        min-height: 300px;
        margin-bottom: 30px;
    }
    
    .about-image-wrapper {
        min-height: 300px;
        margin-bottom: 30px;
    }
    
    .state-card {
        margin-bottom: 15px;
    }
    
    .qa-label {
        font-size: 24px;
    }
    
    .qa-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .header-logo .page-title {
        font-size: 1.5rem;
    }
    
    .header-logo img {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .light-image img {
        max-width: 80px;
    }
    
    .light-image {
        margin-top: -60px;
    }
    
    .partner-logo img {
        max-width: 120px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .skip-links a {
        font-size: 14px;
        padding: 6px 12px;
    }
}