/* Custom Palette and Typography */
body {
    background-color: #F5FFFD;
    font-family: Arial, sans-serif;
    color: #333;
}

.hero-section {
    background-color: #663399;
    color: #F5FFFD;
}

.sidebar-bg {
    background-color: #F5FFFD;
    border-right: 1px solid #E6CCFF;
}

.mission-box {
    background-color: #F5EBFF;
    border-radius: 8px;
}

h2, .w3-text-purple {
    color: #663399 !important;
    font-weight: bold;
}

/* Custom List Styling */
.custom-bullets li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-weight: 500;
}

.custom-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background: url('images/heartbullet.gif') no-repeat center center;
    background-size: contain;
}

/* Accessibility Focus States */
a:focus {
    outline: 3px solid #FF0000;
    outline-offset: 2px;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Community Resources Styling */
.border-purple {
    border-color: #663399 !important;
}

.resource-link {
    color: #663399;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
    display: inline-block;
}

.resource-link:hover, .resource-link:focus {
    color: #4d2673;
    text-decoration: underline;
    outline: 2px solid #663399;
    outline-offset: 3px;
}

/* Add a subtle bottom border to grid rows for easier reading */
.resources-content .row > div {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E6CCFF;
}

/* Remove bottom border from the very last items in a category */
.resources-content .row > div:nth-last-child(-n+2) {
    border-bottom: none;
    padding-bottom: 0;
}

/* Document/Form List Styling */
.form-list .list-group-item {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.document-link {
    color: #663399;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
    display: inline-block;
}

.document-link:hover, .document-link:focus {
    color: #4d2673;
    text-decoration: underline;
    outline: 2px solid #663399;
    outline-offset: 3px;
    border-radius: 2px;
}

/* =========================================================
   High-Contrast ADA Links
   ========================================================= */

/* 1. Standard Content Links (Light Backgrounds) */
main a, 
.sidebar-bg a, 
.document-link, 
.resource-link, 
.contact-link {
    color: #311155 !important; /* Deepened purple passes WCAG 4.5:1 on light gray/purple backgrounds */
    text-decoration: underline !important; /* Mandatory for color-blind users to distinguish links */
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

main a:hover, 
main a:focus, 
.sidebar-bg a:hover, 
.sidebar-bg a:focus,
.document-link:hover, 
.resource-link:hover {
    color: #000000 !important; /* Darken to black on interaction */
    background-color: #E6CCFF; /* Add a subtle highlight box */
    text-decoration: none !important;
    outline: 3px solid #311155; /* Distinct focus ring for keyboard tabbing */
    outline-offset: 2px;
    border-radius: 2px;
}

/* 2. Footer Links (Dark Purple Background) */
.footer-wrapper a, 
.hero-section a {
    color: #FFFFFF !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.footer-wrapper a:hover, 
.footer-wrapper a:focus,
.hero-section a:hover,
.hero-section a:focus {
    color: #FFD700 !important; /* Bright yellow creates a massive contrast jump against dark purple */
    text-decoration: none !important;
    outline: 3px dashed #FFD700;
    outline-offset: 4px;
}

/* Ensure the Bootstrap Accordion buttons also maintain high contrast */
.custom-accordion .accordion-button {
    color: #311155;
    font-weight: bold;
}
.custom-accordion .accordion-button:not(.collapsed) {
    color: #000000;
    background-color: #E6CCFF;
}

.btn.btn-primary {
    color: #311155 !important;
    background-color: #F5EBFF;
    border: 2px solid #663399;
    transition: all 0.2s ease-in-out;
}