/* Custom styles for hero slider text boxes */
.text-box h2 {
    color: #143275 !important;
    font-weight: 700 !important;
}

.text-box p {
    color: #333 !important;
}

/* Accessibility Controls Styles */
.accessibility-controls {
    position: relative;
}

.accessibility-controls a {
    cursor: pointer;
}

#accessibility-panel {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 220px;
    margin-top: 10px;
}

#accessibility-panel.active {
    display: block;
}

#accessibility-panel h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #143275;
}

#accessibility-panel button {
    padding: 8px 12px;
    border: 1px solid #143275;
    background: white;
    color: #143275;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

#accessibility-panel button:hover {
    background: #143275;
    color: white;
}

/* Font size adjustments */
body.font-size-small {
    font-size: 14px;
}

body.font-size-normal {
    font-size: 16px;
}

body.font-size-large {
    font-size: 18px;
}

body.font-size-xlarge {
    font-size: 20px;
}

/* High contrast mode */
body.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast a {
    color: #ffff00 !important;
}

body.high-contrast .text-box h2,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4 {
    color: #fff !important;
}