/* =========================================
   GLOBAL STYLES (ACCESSIBILITY OPTIMIZED)
   ========================================= */
body {
  /* CHANGED: Switched to Helvetica stack */
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  color: #000000 !important;
  /* WCAG FIX: Base font size 16px for readability */
  font-size: 16px !important; 
  line-height: 1.6 !important;
}

/* Links & Paragraphs */
a { 
    /* WCAG FIX: Darkened blue slightly to pass AA contrast on white backgrounds */
    color: #2563eb !important; 
    text-decoration: none !important; 
}
p { 
    color: #686868 !important; 
    /* WCAG FIX: Ensure paragraph text is large enough */
    font-size: 16px !important; 
}

/* =========================================
   HEADER SECTION
   ========================================= */
.header {
  flex-shrink: 0 !important;
  background: #0E1A24 !important; /* Dark Navy */
}

/* Force White Text in Header */
.header, .header a, .header p, .header span, 
.header div, .header .fa, 
.header h1, .header h2, .header h3 {
    color: #ffffff !important;
    /* VISIBILITY FIX: Make white text slightly bolder on dark backgrounds */
    font-weight: 500 !important; 
    -webkit-font-smoothing: antialiased !important;
}

/* Contact Info & Icons */
.header .contact p a { padding: 0 10px !important; }
.header .contact .fa { margin-right: 8px !important; font-size: 18px !important; position: relative !important; top: 1px !important; }

/* Logo Filter */
.header img {
    filter: none !important;
}

.username { color: #ffffff !important; }

/* =========================================
   MAIN NAVIGATION
   ========================================= */
.main-nav {
    background-color: #0E1A24 !important; /* Dark Navy */
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 30px !important;
    flex-shrink: 0 !important;
}

.main-nav .container { color: #ffffff !important; }

/* --- Top Level Links --- */
.nav.navbar-nav.weblinks { margin: 0 !important; }

.nav-item.weblink > a {
    color: #ffffff !important;
    font-weight: 500 !important;
    transition: background-color 0.3s !important;
    border-radius: 10px !important; /* Rounded Pill Look */
    /* VISIBILITY FIX: Extra padding for touch targets */
    padding: 12px 15px !important; 
}

/* Hover/Focus/Active */
.nav-item.weblink > a:hover,
.nav-item.weblink > a:focus,
.nav-item.weblink.open > a {
    background-color: #162532 !important; /* Navy */
    color: #ffffff !important;
}

/* Vertical Divider */
.divider-vertical {
    height: 50px !important;
    margin: 0 9px !important;
    border-right: 1px solid #162532 !important;
    border-left: 1px solid #0E1A24 !important;
    width: 1px !important;
    display: inline-block !important;
}

/* --- Mobile Toggle --- */
.navbar-header { background: transparent !important; }
.navbar-collapse { margin-top: 5px !important; }

.navbar-toggle {
    border-color: #162532 !important;
    background-color: transparent !important;
}
.navbar-toggle .icon-bar { background-color: #ffffff !important; }

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: #162532 !important;
    border-radius: 10px !important;
}

/* =========================================
   DROPDOWNS
   ========================================= */
.dropdown-menu {
    background-color: #0E1A24 !important; /* Dark Navy */
    border: 1px solid #162532 !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3) !important;
    /* padding: 5px !important;
    border-radius: 10px !important; */
}

.menu-top .open > .dropdown-menu li:hover {
    background-color: #4A050E !important
}

/* Dropdown Items */
.dropdown-menu > li > a {
    color: #ffffff !important;
    padding: 12px 20px !important; /* Increased padding */
    border-bottom: 1px solid #0E1A24 !important;
    background-color: #780916 !important; /* Burgundy */
    /* margin: 5px !important;
    border-radius: 10px !important; */
    font-weight: 500 !important;
}

/* Dropdown Hover */
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: #4A050E !important; /* Dark Burgundy */
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Caret (Arrow) */
.caret {
    color: #780916 !important;
    border-top-color: #780916 !important;
    opacity: 1 !important;
}
.nav-item.weblink > a:hover .caret {
    color: #ffffff !important;
    border-top-color: #ffffff !important;
}

/* Mobile Fixes */
@media (max-width: 767px) {
    .dropdown-menu { border: none !important; }
}

/* =========================================
   CONTENT & COMPONENTS
   ========================================= */
/* CTA Buttons */
.btn-theme {
    background: #780916 !important;
}

a.btn-cta, .btn-cta {
  background: #780916 !important; /* Burgundy */
  color: #ffffff !important;
  padding: 12px 24px !important; /* Larger hit area */
  font-size: 18px !important;
  line-height: 1.33 !important;
  border-radius: 0 !important; 
  border: 1px solid #780916 !important; 
  transition: background-color 0.3s !important;
  font-weight: 600 !important; /* Better contrast */
}

.date-label .month {
    background: #666 !important; /* Burgundy */
}

.home-page h1.section-heading .line {
    border-top: 2px solid #666 !important;
}

.flex-caption .main {
    color: white !important;
}


#content > div > div > div > section.promo.box.box-dark > div.col-md-9 > p > span > span {
    color: white;
}

.fa-quote-left {
    color: #666 !important;
}

/* CTA Hover */
a.btn-cta:hover, .btn-cta:hover {
    background: #4A050E !important; /* Dark Burgundy */
    border-color: #4A050E !important;
    text-decoration: none !important;
}

/* Boxes */
.box.box-dark { background: #444444 !important; color: #ffffff !important; } 

/* Flexslider/News */
.flexslider .slides .flex-caption .main {
  display: inline-block !important;
  background: #780916 !important; 
  margin-bottom: 5px !important;
  padding: 10px 15px !important;
  font-size: 18px !important;
  text-transform: uppercase !important;
}

.home-page .news h2.title a { color: #780916 !important; font-weight: bold !important; }

/* Read More Button */
.read-more {
  transition: all 0.4s ease-in-out !important;
  font-size: 14px !important; /* Increased from 13px */
  display: block !important;
  color: #ffffff !important;
  background-color: #780916 !important; 
  padding: 8px 15px !important; /* Increased padding */
  width: fit-content !important;
  font-weight: 500 !important;
}
.read-more:hover {
    background-color: #4A050E !important; 
    text-decoration: none !important;
}

/* Carousel Controls */
.home-page .carousel-controls a.next .fa,
.home-page .carousel-controls a .fa {
  background: #780916 !important; 
  color: #ffffff !important;
  display: inline-block !important;
  width: 30px !important; /* Increased size for accessibility */
  height: 30px !important;
  line-height: 30px !important;
  text-align: center !important;
  font-size: 15px !important;
  transition: all 0.4s ease-in-out !important;
}
.home-page .carousel-controls a:hover .fa {
    background: #4A050E !important; 
}

/* =========================================
   FOOTER STYLES (ACCESSIBILITY OPTIMIZED)
   ========================================= */
footer {
  height: auto !important;
  background: #0E1A24 !important; /* Dark Navy */
  color: #ffffff !important;
  margin-top: 40px !important;
  flex-grow: 0 !important;
}
.footer.well { background-color: #0E1A24 !important; }

/* 1. FOOTER LAYOUT */
.footer {
    background-color: #0E1A24 !important; 
    color: #ffffff !important;
    padding-top: 40px !important;
    font-size: 15px !important; /* Increased footer text size */
    margin-top: 40px !important; 
}

.footer .footer-content {
    padding-bottom: 20px !important;
}

/* Headings */
.footer h2, 
.footer h3 {
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-size: 18px !important; /* Increased size */
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #780916 !important; 
    display: inline-block !important;
}

/* General Paragraph text */
.footer p {
    color: #dddddd !important; /* Lightened grey for better contrast against Navy */
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* 2. LINKS & LISTS */
.footer ul {
    padding-left: 0 !important;
}

.footer .list-unstyled li {
    margin-bottom: 8px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #162532 !important; 
}

.footer .list-unstyled li a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: block !important; 
    padding: 5px 10px 5px 0 !important; /* Add touch padding */
    background: transparent !important;
    border-radius: 5px !important;
}

/* HOVER FIX FOR ACCESSIBILITY:
   Burgundy text on Navy background is invisible (1.5:1 ratio).
   Fix: Keep text WHITE, change BACKGROUND to Burgundy.
*/
.footer .list-unstyled li a:hover {
    background-color: #780916 !important; /* Background becomes Burgundy */
    color: #ffffff !important; /* Text stays White for contrast */
    padding-left: 10px !important; 
    text-decoration: none !important;
}

/* 3. CONTACT COLUMN */
.footer .contact .adr {
    margin-bottom: 15px !important;
}

.footer .contact .tel a, 
.footer .contact .email a {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: underline !important; /* Underline helps identify links */
}

.footer .contact a:hover {
    color: #dddddd !important; 
    background-color: #780916 !important; /* Same highlight style as links */
}

/* Address Block Spacing */
.footer .contact span {
    display: block !important;
    margin-bottom: 5px !important;
}

/* 4. BOTTOM BAR */
.footer .bottom-bar {
    background-color: #0E1A24 !important; 
    padding: 20px 0 !important;
    border-top: 1px solid #162532 !important;
    margin-top: 20px !important;
}

.footer .copyright {
    color: #bbbbbb !important; /* Lightened for contrast */
    font-size: 14px !important;
    padding-top: 10px !important;
}

.footer .copyright a {
    color: #ffffff !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}

/* --- Social Icons --- */
.footer .social {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: right !important; 
}

.footer .social li {
    display: inline-block !important;
    margin-left: 8px !important;
}

.footer .social li a {
    display: block !important;
    width: 40px !important; /* Increased size for touch targets */
    height: 40px !important;
    line-height: 40px !important; 
    text-align: center !important;
    background: #162532 !important; 
    color: #ffffff !important;
    border-radius: 50% !important; 
    transition: all 0.3s ease-in-out !important;
    padding: 0 !important; /* Override the other link padding */
}

.footer .social li a .fa {
    color: #ffffff !important;
    font-size: 18px !important; /* Larger icon */
    line-height: 40px !important;
}

/* Social Icon Hover */
.footer .social li a:hover {
    background: #780916 !important; 
    transform: translateY(-3px) !important; 
}

/* Mobile Fix for Social Icons */
@media (max-width: 767px) {
    .footer .social {
        text-align: left !important;
        margin-top: 15px !important;
    }
    .footer .copyright {
        text-align: left !important;
        margin-bottom: 10px !important;
    }
}

/* Style Changes to Profile */
.form-control {
    overflow: auto !important;
}
