html, body {
  margin: 0;
  padding: 0;
  background: #f8f8f8;
  color: #222;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  font-size: 16px; /* reduced from 18px */
  line-height: 1.5;
  text-align: left; /* global left alignment */
}

a {
  text-decoration: none !important;
  color: #54595f;
}
a:hover, a:focus {
  text-decoration: none !important;
    color: #54595f;
}

/* ----- Topbar Styles ----- */
.topbar {
  background: #14325a; /* Slightly darker than navbar for contrast */
  color: #fff;
  height: 38px;
  line-height: 38px;
  font-size: 13px;
  letter-spacing: 0.03em;
  width: 100%;
  position: fixed;
  top: 0; left: 0;
  z-index: 1040; /* Above navbar */
  box-shadow: 0 1px 6px rgba(0,0,0,0.03);
}
.topbar .container {

  justify-content: space-between;
  align-items: left;
  height: 38px;
}
.topbar .topbar-right {
  align-items: right;

}
.topbar a,
.topbar a:visited {
  color: #fff !important;
  text-decoration: none;
}
.topbar a:hover,
.topbar a:focus {
  color: Red !important;
  text-decoration: underline;
}

/* ================================
   Core navbar layout
   ================================ */
.navbar-fixed-custom {
  position: fixed !important;
  top: 38px; /* below topbar */
  left: 0;
  width: 100%;
  z-index: 1030;
  border-radius: 0;
}

.navbar,
.navbar-nav > li > a,
.navbar-brand,
.navbar-toggle,
.navbar-collapse,
.navbar-default,
.navbar-nav,
.navbar-form,
.navbar-btn,
.navbar-nav > .open > a,
.navbar-nav > .open > a:focus,
.navbar-nav > .open > a:hover,
.navbar-default .navbar-toggle,
.navbar-default .navbar-toggle:focus,
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-default .navbar-nav > .open > a:hover,
.dropdown-menu {
  border-radius: 0 !important;
  text-align: left !important;
}

.navbar-header { align-items: flex-start; height: 70px; }
.navbar-brand { padding-top: 0 !important; padding-bottom: 0 !important; height: 55px; display: flex; align-items: flex-start; }
.navbar-brand img { max-height: 55px; margin-top: 5px; }

.navbar.navbar-default {
  background: #1b497c;
  border: none;
  margin-bottom: 0;
  height: 70px;
  padding-bottom: 0;
}
.navbar.navbar-default .navbar-brand,
.navbar.navbar-default .navbar-nav > li > a,
.navbar.navbar-default .navbar-nav > li > button,
.navbar .btn-link.navbar-btn {
  color: #fff !important;
  background: transparent;
  font-size: 14px;
}
.navbar.navbar-default .navbar-nav > li > a:focus,
.navbar.navbar-default .navbar-nav > li > a:hover,
.navbar.navbar-default .navbar-nav > li > button:focus,
.navbar.navbar-default .navbar-nav > li > button:hover {
  color: red !important;
  background: rgba(255,255,255,0.10);
  outline: 2px solid #fff;
}

.navbar.navbar-default .navbar-toggle { border-color: #fff; }
.navbar.navbar-default .navbar-toggle .icon-bar { background-color: #fff; }

.container { max-width: 1200px; }

/* --- BODY OFFSET (push main content below both bars) --- */
body { padding-top: 98px; } /* 38 + 60 = 98 */

/* Toggle button cleanup */
.navbar-toggle {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 20px 10px;
}
.navbar-toggle:focus,
.navbar-toggle:active {
  outline: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* ================================
   Mega dropdown (desktop / tablet)
   ================================ */
.mega-dropdown-menu {
  position: fixed !important;
  left: 0;
  top: 108px; /* 38 topbar + 60 navbar */
  width: 100vw;
  min-width: 100vw;
  background: #fff;
  border: none;
  border-bottom: 2px solid #1b497c;
  box-shadow: 0 8px 36px rgba(0,0,0,0.08);
  padding: 32px 0;
  margin: 0;
  z-index: 1200;
  overflow: visible;
  max-height: none;
}
.mega-dropdown-menu .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}
.mega-dropdown-menu a {
  font-size: 15px;
  color: #1b497c;
  padding: 8px 0;
  text-decoration: none;
  border-radius: 0;
  background: transparent;
  transition: color 0.12s;
  box-sizing: border-box;
}
.mega-dropdown-menu a:hover,
.mega-dropdown-menu a:focus {
  color: #d40000;
  outline: none;
  text-decoration: underline;
}

/* ===============================
   XS (phones): dropdown = full-screen overlay
   =============================== */
@media (max-width: 767px) {
  /* Bars and body offset (unchanged) */
  .topbar { height: 30px; line-height: 30px; }
  .navbar-fixed-custom { top: 30px; }
  body { padding-top: 80px; } /* 30 topbar + ~50 navbar on XS */

  /* Collapsed navbar background and scroll for the top level */
  .navbar-default .navbar-collapse,
  .navbar-collapse.in {
    background: #0f3156 !important;
    /* Let top level items scroll a little if you have many top-level links */
    max-height: calc(100vh - 90px) !important; /* 30 + 60 */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Top-level links in collapsed nav */
  .navbar-default .navbar-nav > li > a {
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 12px 15px !important;
  }
  .navbar-default .navbar-nav > li > a:hover,
  .navbar-default .navbar-nav > li > a:focus {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    text-decoration: none !important;
  }

  /* === Full-screen overlay for OPEN dropdowns (standard + mega) === */
  .navbar-collapse.in .navbar-nav > li.open > .dropdown-menu,
  .navbar-collapse.in .navbar-nav > li.open > .mega-dropdown-menu {
    position: fixed !important;
    top: 90px !important;     /* 30 topbar + 60 navbar */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-height: calc(100vh - 90px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    background: #0f3156 !important; /* match collapsed bg */
    border: 0 !important;
    box-shadow: 0 8px 36px rgba(0,0,0,0.08);
    z-index: 1200;
    padding: 8px 0 16px !important;
    margin: 0 !important;
  }

  /* Links inside the full-screen dropdown */
  .navbar-collapse.in .navbar-nav > li.open > .dropdown-menu > li > a,
  .navbar-collapse.in .navbar-nav > li.open > .mega-dropdown-menu a {
    display: block !important;
    color: #fff !important;
    padding: 12px 18px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-decoration: none !important;
  }
  .navbar-collapse.in .navbar-nav > li.open > .dropdown-menu > li:last-child > a {
    border-bottom: 0;
  }
  .navbar-collapse.in .navbar-nav > li.open > .dropdown-menu > li > a:hover,
  .navbar-collapse.in .navbar-nav > li.open > .dropdown-menu > li > a:focus,
  .navbar-collapse.in .navbar-nav > li.open > .mega-dropdown-menu a:hover,
  .navbar-collapse.in .navbar-nav > li.open > .mega-dropdown-menu a:focus {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    text-decoration: none !important;
  }

  /* Neutralize desktop mega styles on XS (they're handled above) */
  .mega-dropdown-menu .container {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
/* ===== XS submenu header (sticky inside the overlay) ===== */
@media (max-width: 767px) {
  .mobile-dropdown-header {
    position: sticky;         /* stays at top of the scrolling overlay */
    top: 0;
    background: #0f3156;      /* match your mobile dropdown bg */
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    z-index: 2;               /* above menu items */
  }
  .mobile-dropdown-header .back-btn {
    appearance: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    padding: 6px 0;
  }
  .mobile-dropdown-header .back-btn:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
  }
  .mobile-dropdown-header .title {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}



/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  z-index: 100;
  text-align: left;
}
.skip-link:focus {
  left: 8px; top: 8px;
  width: auto; height: auto;
  padding: 0.5em 1em;
  background: #337ab7;
  color: #fff;
  border-radius: 4px;
  text-align: left;
}

/* Main Page Header */

.mainheader-header {
  width: 100%;
  /* Only force min-height on large screens */
}

.mainheader-bg {
  background: url('/img/lb-bg1.png') center center fixed no-repeat;
  background-size: cover;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 60px;
  /* min-height only on large screens */
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
}


.mainheader-partnerbg {
  background: url('/img/partners.png') center center fixed no-repeat;
  background-size: cover;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 60px;
  /* min-height only on large screens */
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
}


.mainheader-content {
  background: #fcfcfc;
  opacity: 0.86;
  border: 1px solid #efefef;
  border-radius: 5px;
  padding: 60px 22px 20px 22px;
  margin-top: 0;
  box-shadow: 0 6px 36px 0 rgba(0,0,0,0.05);
  /* Responsive width managed by Bootstrap columns */
}

.mainheader-content h1 {
  color: #000;
  font-size: 18pt;
  line-height: 1.2;
  margin-bottom: 10px;
}

.mainheader-content h2 {
  color: #007fb6;
  font-size: 30pt;
  margin-top: 0;
  margin-bottom: 15px;
}

.mainheader-content p {
  font-size: 14pt;
  color: #111;
  margin-bottom: 25px;
}

.contact-link {
  color: #007fb6;
  font-size: 13pt;
  font-weight: bold;
  text-decoration: underline;
  margin-top: 12px;
  display: inline-block;
}

@media (max-width: 991px) {
  .mainheader-bg {
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 20px;
    align-items: flex-start;
  }
  .mainheader-content {
    padding: 18px 8px 18px 8px;
    margin-top: 0;
  }
  .mainheader-content h2 {
    font-size: 18pt;
  }
}


  /* Responsive Hero Home Page Slider */
.hero-bg-fader {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .hero-bg-fader { height: 100vh;min-height: 300px; }
}

.hero-bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.2s ease;
    margin-bottom: 0;
}

.hero-bg-image.active {
  opacity: 1;
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 43%; left: 0; width: 100%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 10;
  color: #fff;
 
  padding: 0px 20px 0px 20px;
  border-radius: 0;
}
.hero-content h1 { font-size: 2.4em; font-weight: bold; margin-bottom: 14px;text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.98); }
.hero-content p { font-size: 1.2em; margin-bottom: 22px; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.98); }

@media (max-width: 767px) {
  .hero-bg-fader { height: 100vh; }
  .hero-content h1 { font-size: 1.25em; }
  .hero-content p { font-size: 1em; }
  .hero-content { padding: 18px 10px 12px 10px; top: 30%; left: 0; width: 100%; }
}

@media (max-width: 992px) {
  .container { padding: 0 0.5em; }
}

/* Footer */
.footer {
  background: #222;
  color: #fff;
  padding: 2.5em 0 1.5em 0;
  font-size: 0.85em; /* reduced */
  margin-top: 0;
  text-align: left;
}
.footer a { color: #fff;  }
.footer a:hover, .footer a:focus { color: Red;text-decoration: underline; }
.footer .footer-heading {
  font-size: 0.83em; /* reduced */
  margin-bottom: .8em;
  color: #ffd700;
  letter-spacing: .03em;
  text-align: left;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em 0;
  text-align: left;
}
.footer-list li { margin-bottom: .5em; }
.footer-contact {
  font-style: normal;
  line-height: 1.5;
  text-align: left;
}
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 1.2em;
  padding-top: .7em;
  font-size: 0.8em; /* reduced */
  color: #ccc;
  text-align: left;
}
@media (max-width: 767px) {
  .footer .row {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    clear: both;
  }
  .footer .row > [class*="col-"] {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
    clear: both;
  }
}


/* Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); border: 0; background: #222;
  text-align: left;
}

/* Sidebar Image Links & Card (DRY) */
.sidebar-img-link, .sidebar-image-link img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-radius: 0;
  background: #fff;
  text-align: left;
}
.sidebar-image-link { width: 100%; margin-bottom: 18px; }
.sidebar-image-link:last-child { margin-bottom: 0; }

/* Contact Card */
.contact-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 15px;
  margin-bottom: 30px;
  text-align: left;
}
.contact-card .broker-photo {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 15px;
}
.contact-card h2, .contact-card h3 {
  color: #337ab7;
  margin: 0.2em 0 0.4em 0;
  font-size: 12pt; /* reduced */
  text-align: left;
}
.contact-card .btn { margin-top: 1em; }

/* Lead Form Styles (single set) */
.lead-form select[multiple] { min-height: 70px; }
.lead-form .form-group { margin-bottom: 1.2em; }
.lead-form-typeahead, .lead-form-typeahead .form-control, .lead-form-typeahead select, .lead-form-typeahead input, .lead-form-typeahead button {
  border-radius: 0 !important;
  box-shadow: none !important;
}
.lead-form-typeahead {
  width: 100%;
  margin-bottom: 25px;
  background: #fff;
  color: #002347;
  border-radius: 6px !important;
  border: 1px solid #efefef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  padding: 22px 18px 16px 18px;
  text-align: left;
}
.lead-form-typeahead h2 {
  font-size: 0.9em; /* smaller font */
  font-weight: 700;
  margin-bottom: 14px;
  text-align: left;
  color: #111;
}
.lead-form-typeahead label {
  font-weight: 500;
  margin-bottom: 1px;
  font-size: 11px;
  text-align: left;
}
.lead-form-typeahead .form-group { margin-bottom: 11px; }
.lead-form-typeahead .btn {
  min-width: 54px;
  font-size: 11px;
  padding: 2px 8px;
  height: 26px;
  text-align: center;
}
.lead-form-typeahead .row { margin-left: -2px; margin-right: -2px; }
.lead-form-typeahead [class^="col-"] { padding-left: 2px; padding-right: 2px; }
@media (max-width: 767px) {
  .lead-form-typeahead .row > [class^="col-"] {
    width: 100%; float: none; margin-bottom: 8px;
  }
}

/* Typeahead suggestion list */
.typeahead-list {
  position: absolute;
  z-index: 10;
  background: #fff;
  border: 1px solid #bbb;
  border-top: none;
  max-height: 120px;
  overflow-y: auto;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: none;
  color: #002347;
  text-align: left;
}
.typeahead-list li {
  padding: 3px 9px;
  cursor: pointer;
  font-size: 11px;
  list-style: none;
  text-align: left;
}
.typeahead-list li:hover, .typeahead-list li.active { background: #e5f2fb; }

/* Pagination styling */
.pagination > li > a, .pagination > li > span {
  color: #005ea6;
  background: #fafafa;
  border: 1px solid #ddd;
  text-align: left;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:focus,
.pagination > .active > span:focus,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
  background-color: #005ea6;
  color: #fff;
  border-color: #005ea6;
  text-align: left;
}
.pagination > li > a:focus, .pagination > li > a:hover {
  background-color: #eee;
  color: #005ea6;
  text-align: left;
}
@media (max-width: 991px) {
  .pagination > li > a, .pagination > li > span {
    padding: 6px 10px;
    font-size: 12px;
    text-align: left;
  }
}
@media (max-width: 767px) {
  .results-per-page-form label, .results-per-page-form select.form-control {
    display: block;
    width: 100%;
    margin-bottom: 0.5em;
    text-align: left;
  }
  .results-per-page-form select.form-control {
    max-width: 100%;
  }
  aside.col-xs-12 {
    margin-top: 2em;
  }
}

/* RSS Article */
.rss-entry {
  border-bottom: 1px solid #ddd;
  margin-bottom: 2em;
  padding-bottom: 1em;
  text-align: left;
}
.rss-entry h2 a {
  color: #005ea6;
  text-decoration: none;
  text-align: left;
}
.rss-entry h2 a:hover, .rss-entry h2 a:focus {
  text-decoration: underline;
  outline: none;
  text-align: left;
}
.rss-meta {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 0.5em;
  text-align: left;
}
.rss-content {
  font-size: 0.9em;
  color: #222;
  margin-bottom: 1em;
  text-align: left;
}
.rss-media img, .rss-media audio {
  max-width: 100%;
  margin-top: 0.5em;
}

/* Team Section */
.team-section {
  background: #f6f8fa;
  padding: 34px 20px 40px 20px;
  text-align: left;
}
.team-header {
  text-align: left;
  margin-bottom: 38px;
}
.team-header h1 {
  font-size: 1.9em;
  color: #002347;
  font-weight: 700;
  margin-bottom: 7px;
}
.team-header p {
  color: #333;
  font-size: 0.9em;
}
.team-card {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 6px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 22px 18px 18px 18px;
  color: #002347;
  text-align: left;
  transition: box-shadow 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.team-card:focus, .team-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  outline: none;
}
.team-photo {
  flex-shrink: 0;
  width: 160px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  background: #eee;
}
.team-info { flex: 1; }
.team-name {
  font-size: 1em;
  font-weight: 700;
  color: #002347;
  margin: 0 0 3px 0;
}
.team-title {
  font-size: 0.85em;
  font-weight: 500;
  color: #377eb7;
  margin-bottom: 9px;
}
.team-summary {
  font-size: 0.85em;
  color: #222;
  margin-bottom: 14px;
  min-height: 60px;
}
.team-links a {
  color: #0b55aa;
  margin-right: 13px;
  font-size: 0.85em;
  text-decoration: none;
}
.team-links a:hover,
.team-links a:focus {
  color: #002347;
  text-decoration: underline;
}
@media (max-width: 767px) {
  .team-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 18px;
  }
  .team-photo {
    margin-bottom: 16px;
    width: 120px;
  }
  .team-info {
    flex: none;
    width: 100%;
  }
}

/* General reset and container spacing */
main#main-content {
  margin: 2em 0;
  text-align: left;
}
  /* Sidebar Image Links */
  .sidebar-img-link {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 0;
    background: #fff;
  }
  .sidebar-image-link {
    margin-bottom: 18px;
  }
  .sidebar-image-link:last-child {
    margin-bottom: 0;
  }

  /* Contact Hero Section */
  .contact-hero {
    background-color: #f6f8fa;
    padding: 40px 15px 30px;
    border-bottom: 1px solid #ececec;
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: left;
  }
  .contact-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #002347;
    margin-bottom: 0.5em;
  }
  .contact-hero p {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 1em;
    line-height: 1.4;
  }

  /* Office Cards */
  .office-list {
    max-width: 1200px;
    margin: 0 auto 40px;
  }
  .office-card {
    background: #fff;
    border: 1px solid #efefef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .office-card h2 {
    font-weight: 700;
    font-size: 1.2rem;
    color: #002347;
    margin-bottom: 0.3em;
  }
  .office-city {
    color: #377eb7;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1rem;
  }
  .office-address,
  .office-contact {
    font-size: 1rem;
    color: #222;
    margin-bottom: 8px;
  }
  .office-contact a {
    color: #005ea6;
    text-decoration: none;
  }
  .office-contact a:hover,
  .office-contact a:focus {
    text-decoration: underline;
    color: #002347;
  }
  .office-map-link {
    margin-top: auto;
    font-weight: 600;
  }
  .office-map-link a {
    color: #005ea6;
    text-decoration: none;
  }
  .office-map-link a:hover,
  .office-map-link a:focus {
    text-decoration: underline;
    color: #002347;
  }

  @media (min-width: 992px) {
    .office-list {
      display: flex;
      justify-content: space-between;
    }
    .office-card {
      flex: 1 1 32%;
      margin-left: 10px;
      margin-right: 10px;
    }
  }

  /* Contact Form */
  .contact-form-wrapper {
    background: #fff;
    padding: 30px 25px 25px;
    border-radius: 6px;
    border: 1px solid #efefef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 40px;
  }
  .contact-form-wrapper h2 {
    font-size: 1.8rem;
    color: #002347;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: left;
  }
  .form-group label {
    font-weight: 600;
    color: #002347;
  }
  .form-control {
    border-radius: 0;
    box-shadow: none;
  }
  .form-control:focus {
    border-color: #29abe2;
    box-shadow: 0 0 6px #9cdaf6;
    outline: none;
  }
  .form-actions {
    text-align: right;
    margin-top: 20px;
  }
  .btn-primary {
    min-width: 140px;
    font-weight: 600;
    border-radius: 0;
  }
  .btn-success {
    min-width: 140px;
    font-weight: 600;
    border-radius: 0;
  }
  /* Layout for main + sidebar */
  .main-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
  }
  .content-area {
    flex: 1 1 65%;
    padding-right: 15px;
    padding-left: 15px;
    min-width: 280px;
  }
  aside.partner-links-sidebar {
    flex: 0 0 30%;
    max-width: 300px;
    padding-right: 15px;
    padding-left: 15px;
    margin-top: 0;
  }

  /* Stack on smaller devices */
  @media (max-width: 991px) {
    .main-row {
      display: block;
    }
    .content-area,
    aside.partner-links-sidebar {
      max-width: 100%;
      flex-basis: 100%;
      padding: 0 15px;
    }
    aside.partner-links-sidebar {
      margin-top: 2em;
    }
  }
  
  




#accessibility-content.acc-font-small {
  font-size: 13px !important;
  line-height: 1.3 !important;
}
#accessibility-content.acc-font-normal {
  font-size: 16px !important;
  line-height: 1.5 !important;
}
#accessibility-content.acc-font-large {
  font-size: 20px !important;
  line-height: 1.8 !important;
}
#accessibility-content,
#accessibility-content.acc-font-default {
  /* This ensures that the site's default is always 16px/1.5, but only if not overridden elsewhere */
  font-size: 16px;
  line-height: 1.5;
}
/* Inherit for children */
#accessibility-content.acc-font-small *,
#accessibility-content.acc-font-normal *,
#accessibility-content.acc-font-large * {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Small font */
#accessibility-content.acc-font-small .btn,
#accessibility-content.acc-font-small button,
#accessibility-content.acc-font-small input[type="button"],
#accessibility-content.acc-font-small input[type="submit"] {
  font-size: 0.9em;
  padding: 4px 10px;
  height: 2em;
}

/* Normal font (your default) */
#accessibility-content.acc-font-normal .btn,
#accessibility-content.acc-font-normal button,
#accessibility-content.acc-font-normal input[type="button"],
#accessibility-content.acc-font-normal input[type="submit"] {
  font-size: 1em;
  padding: 8px 16px;
  height: 2.5em;
}

/* Large font */
#accessibility-content.acc-font-large .btn,
#accessibility-content.acc-font-large button,
#accessibility-content.acc-font-large input[type="button"],
#accessibility-content.acc-font-large input[type="submit"] {
  font-size: 1.2em;
  padding: 12px 20px;
  height: 3em;
}

.vcenter {
  display: flex;
  align-items: center;
  justify-content: center; /* remove if you want it left-aligned */
  height: 100%;
}


.row.equal-height-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.row.equal-height-cards > [class*='col-'] {
  display: flex;
  flex-direction: column;
}


.space-card {
  background: #fff;
  color: #54595F;
  border-radius: 6px;
  border: 1px solid #efefef;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 25px;
  margin-bottom: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* optional: adjust as needed */
}
.space-photo-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.space-photo {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.space-photo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.8em;
  font-weight: bold;
  text-shadow: 0 4px 18px rgba(0,0,0,0.25);
  background: rgba(27,73,124,0.63);  /* dark blue semi-transparent */
  padding: 10px 24px;
  border-radius: 4px;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}
.space-card h1,.space-card h2, .space-card h3 {
  color: #337ab7;
  margin: 0.2em 0 0.4em 0;
  font-size: 15pt;
  text-align: left;
}

.space-card h1 {
	  font-size: 25pt;
}
.space-card-actions {
  margin-top: auto;
  padding-bottom: 20px; /* <-- space below button */
  padding-top: 20px;
  width: 100%;
}
.space-card .btn {
  margin-bottom: 0;
}



.news-feed-box {
  margin: 30px 0;
  box-shadow: 0 2px 18px rgba(27,73,124,0.07);
  border-radius: 7px;
}
.news-feed-box .panel-heading {
  background: #1b497c !important;
  color: #fff;
  border-radius: 7px 7px 0 0;
}
.news-feed-box .panel-title {
  font-weight: 700;
  font-size: 17px;
}
.news-feed-item {
  background: #fff;
  border: 1px solid #eaeaea;
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
}
.news-feed-item:hover, .news-feed-item:focus, .news-feed-item.hover-lift:hover {
  box-shadow: 0 8px 32px rgba(27,73,124,0.14), 0 2px 8px rgba(0,0,0,0.09);
  transform: translateY(-2px) scale(1.01);
  z-index: 2;
  background: #f6fafd;
}
.news-feed-item a { color: #1b497c; text-decoration: none; }
.news-feed-item a:hover, .news-feed-item a:focus { text-decoration: underline; color: #d40000; }



.hover-lift {
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
  /* (optional) visually emphasize pointer */
  cursor: pointer;
}
.hover-lift:hover, .hover-lift:focus {
  box-shadow: 0 8px 32px rgba(27,73,124,0.18), 0 2px 8px rgba(0,0,0,0.10);
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
}

/* === Polished About Sidebar (BS 3.3.4 friendly) === */
.about-sidebar {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  border: 1px solid #e9eef5;
  overflow: hidden;
}

.about-title {
  margin: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #1b497c;
  background: linear-gradient(180deg, #f7faff 0%, #f2f6fc 100%);
  border-bottom: 1px solid #e6edf7;
}

.about-menu {
  margin: 0;
  padding: 6px;
}

.about-menu li + li {
  margin-top: 6px;
}

.about-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.35;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid transparent;
  transition: all .18s ease;
  color: #234e87; /* base link */
}

.about-menu a .chev {
  font-style: normal;
  opacity: .55;
  transition: transform .18s ease, opacity .18s ease;
}

/* Hover: subtle lift + blue tint */
.about-menu a:hover,
.about-menu a:focus {
  background: #f0f6ff;
  border-color: #d9e7ff;
  color: #153e73;
  text-decoration: none;
  outline: 0;
}
.about-menu a:hover .chev,
.about-menu a:focus .chev {
  transform: translateX(2px);
  opacity: .9;
}

/* Active/current page: bold left accent + filled tag feel */
.about-menu a[aria-current="page"],
.about-menu a.active {
  background: #eaf2ff;
  border-color: #c9dcff;
  color: #0f2f57;
  font-weight: 700;
  position: relative;
}
.about-menu a[aria-current="page"]::before,
.about-menu a.active::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: #1b497c;
}

/* High-visibility keyboard focus ring */
.about-menu a:focus {
  box-shadow: 0 0 0 2px rgba(27,73,124,.15), inset 0 0 0 2px #bfd4ff;
}

/* Compact on phones */
@media (max-width: 480px) {
  .about-menu a { padding: 10px 10px; }
  .about-title { font-size: 14px; }
}

/* Optional: make sidebar sticky within tall content columns */
@media (min-width: 992px) {
  .about-sidebar.sticky {
    position: sticky;
    top: 20px;
  }
}


    .pro-card-photo {
height: 275px; width: auto; object-fit: cover; border-radius: 0%;
    border: 1px solid #eee; background:#fff;
  }
  .pro-card-meta { margin: 6px 0 8px; }
  .pro-card-excerpt { color:#555; }
  .pro-card-actions .btn { border-radius: 0; }
  @media (max-width: 767px) {
    .pro-card-photo { width: 80px; height: 80px; }
  }
  
  
  
  .spacehome-card {
  background: rgba(255,255,255,0.80);
  color: #54595F;
  border-radius: 6px;
  border: 1px solid #efefef;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 15px;
  margin-bottom: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px; /* optional: adjust as needed */
}
.spacehome-photo-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.spacehome-photo {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.spacehome-photo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.8em;
  font-weight: bold;
  text-shadow: 0 4px 18px rgba(0,0,0,0.25);
  background: rgba(27,73,124,0.63);  /* dark blue semi-transparent */
  padding: 10px 24px;
  border-radius: 4px;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}
.spacehome-card h2, .spacehome-card h3 {
  color: #337ab7;
  margin: 0.2em 0 0.4em 0;
  font-size: 15pt;
  text-align: left;
}
.spacehome-card-actions {
  margin-top: auto;
  padding-bottom: 20px; /* <-- space below button */
  padding-top: 20px;
  width: 100%;
}
.spacehome-card .btn {
  margin-bottom: 0;
}
  @media (max-width: 767px) {
.spacehome-photo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 15pt;
  font-weight: bold;
  text-shadow: 0 4px 18px rgba(0,0,0,0.25);
  background: rgba(27,73,124,0.63);  /* dark blue semi-transparent */
  padding: 10px 24px;
  border-radius: 4px;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}
  }

  /* ===== Encon Overlay Card (updated CTAs) ===== */
  .encon-hero-card {
    position: relative;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    background:
      linear-gradient(rgba(0,35,71,0.70), rgba(0,35,71,0.70)),
      url('/img/encon-commercial-office.jpg') center center / cover no-repeat;
    color: #fff;
  }
  .encon-hero-card .encon-hero-inner { padding: 26px 22px; }
  .encon-hero-card h2 { margin: 0 0 10px 0; font-weight: 700; letter-spacing: .2px; }
  .encon-hero-card p { margin: 10px 0; line-height: 1.55; }

  .encon-hero-card .encon-cta {
    margin-top: 16px;
    display: flex; flex-wrap: wrap; gap: 10px;
  }
  .encon-hero-card .btn-encon,
  .encon-hero-card .btn-encon-alt {
    display: inline-block;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 16px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
  }
  /* Primary button */
  .encon-hero-card .btn-encon {
    background: #1b497c;           /* brand blue */
    border: 1px solid #163a62;
    color: #fff;
  }
  .encon-hero-card .btn-encon:hover,
  .encon-hero-card .btn-encon:focus {
    transform: translateY(-1px);
    background:#2260a6;
    border-color:#1b497c;
    color:#fff;
  }
  /* Secondary (outlined) button */
  .encon-hero-card .btn-encon-alt {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(230,241,255,.65);
    color: #e6f1ff;
  }
  .encon-hero-card .btn-encon-alt:hover,
  .encon-hero-card .btn-encon-alt:focus {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.16);
    border-color: #ffffff;
    color:#ffffff;
  }

  .hover-lift.encon-hero-card { transition: transform .18s ease, box-shadow .18s ease; }
  .hover-lift.encon-hero-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.25); }

  @media (min-width: 992px){ .encon-hero-card .encon-hero-inner { padding: 34px 30px; } }
  
  
.affiliates-section{
  background: linear-gradient(rgba(0,35,71,0.70), rgba(0,35,71,0.70));
 
  border:1px solid #e6eaf2;
padding-left: 20px;
padding-right: 20px;
padding-top: 20px;
padding-bottom: 20px;
  margin-top:30px;
}
.affiliates-heading{
  margin:0 0 14px;
  font-weight:700;
  font-size:16px;
  color:#fff;
  letter-spacing:.2px;
}
.affiliates-col{ margin-bottom:18px; }
.affiliate-card{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:60px;
  padding:10px 16px;            /* <- small inner breathing room */
  background:#fff;
  border:1px solid #e6eaf2;
  border-radius:8px;
  text-decoration:none;
  filter:grayscale(100%) contrast(1.05);
  opacity:.9;
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease, opacity .15s ease;
}
.affiliate-card:hover,
.affiliate-card:focus{
  filter:none; opacity:1;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}
.affiliate-card img{ max-height:46px; width:auto; height:auto; }

.row.equal-height-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding: 20px;
}
.row.equal-height-cards > [class*='col-'] {
  display: flex;
  flex-direction: column;
}


.space1-card {
  background: #fff;
  color: #54595F;
  border-radius: 6px;
  border: 1px solid #efefef;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 15px;
  margin-bottom: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* optional: adjust as needed */
}
.space1-photo-wrapper {
  position: relative;
  width: 100%;
 
}

.space1-photo {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.space1-photo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.8em;
  font-weight: bold;
  text-shadow: 0 4px 18px rgba(0,0,0,0.25);
  background: rgba(27,73,124,0.63);  /* dark blue semi-transparent */
  padding: 10px 10px;
  border-radius: 4px;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}
.space1-card span, .space1-card h3 {
  color: #fff;
  margin: 0.2em 0 0.4em 0;
  font-size: 13pt;
  text-align: left;
}
.space1-card-actions {
  margin-top: auto;
  padding-bottom: 20px; 
  padding-top: 20px;
  width: 100%;
}
.space1-card .btn {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  html, body {
    /* allow scroll but hide the bar */
    overflow-y: auto;
    overflow-x: hidden;          /* also nix sideways scroll */
    -ms-overflow-style: none;    /* IE/Edge legacy */
    scrollbar-width: none;       /* Firefox */
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;               /* Chrome/Safari/Edge (WebKit/Blink) */
  }
}


:focus { outline: 2px solid #000 !important; outline-offset: 2px; }


  .skip-link {
    position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
  }
  .skip-link:focus {
    position: fixed; left: 16px; top: 16px; width: auto; height: auto;
    padding: 10px 14px; background: #fff; color: #000; z-index: 10000;
    border: 2px solid #000; border-radius: 4px;
  }
  .sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  
    .skip-fixed{
    position: fixed;
    right: 20px;
    bottom: 145px;              /* sit above chat/accessibility cluster */
 z-index: 100;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 6px;
    padding: 10px 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
  }
  .skip-fixed:focus { outline: 3px solid #005fcc; outline-offset: 2px; }

  /* Adjust for smaller screens (chat buttons often ride higher) */
  @media (max-width: 767px){
    .skip-fixed{ bottom: 160px; right: 12px; }
  }
  
  
/* ============================
   High Contrast (Black & White)
   Activate with: <body class="hc-bw">
   ============================ */

/* Base canvas + text */
body.hc-bw { background:#fff !important; color:#000 !important; }
body.hc-bw * { color:#000 !important; text-shadow:none !important; box-shadow:none !important; }

/* Links */
body.hc-bw a,
body.hc-bw a:visited { color:#000 !important; text-decoration:underline !important; }
body.hc-bw a:hover,
body.hc-bw a:focus { text-decoration:underline !important; }

/* Focus ring */
body.hc-bw :focus { outline:3px solid #000 !important; outline-offset:2px !important; }

/* ===== Top bar + Navbar: WHITE ===== */
body.hc-bw .topbar { background:#fff !important; color:#000 !important; box-shadow:none !important; border-bottom:2px solid #000 !important; }
body.hc-bw .topbar a { color:#000 !important; text-decoration:underline !important; }
body.hc-bw .navbar.navbar-default,
body.hc-bw .navbar,
body.hc-bw .navbar-fixed-custom { background:#fff !important; border:none !important; }
body.hc-bw .navbar .navbar-brand,
body.hc-bw .navbar .navbar-nav > li > a,
body.hc-bw .navbar .btn-link.navbar-btn { color:#000 !important; text-decoration:none !important; }
body.hc-bw .navbar .navbar-nav > li > a:hover,
body.hc-bw .navbar .navbar-nav > li > a:focus,
body.hc-bw .navbar .navbar-brand:hover,
body.hc-bw .navbar .navbar-brand:focus { color:#000 !important; text-decoration:underline !important; background:transparent !important; }
body.hc-bw .navbar-toggle { border-color:#000 !important; }
body.hc-bw .navbar-toggle .icon-bar { background:#000 !important; }

/* ===== Footer: WHITE ===== */
body.hc-bw .footer { background:#fff !important; color:#000 !important; border-top:2px solid #000 !important; }
body.hc-bw .footer a { color:#000 !important; text-decoration:underline !important; }
body.hc-bw .footer .footer-heading { color:#000 !important; }

/* ===== Buttons: black bg / white text ===== */
body.hc-bw .btn,
body.hc-bw .btn-primary,
body.hc-bw .btn-success { background:#000 !important; color:#fff !important; border:2px solid #000 !important; }
body.hc-bw .btn:hover,
body.hc-bw .btn:focus,
body.hc-bw .btn-primary:hover,
body.hc-bw .btn-primary:focus,
body.hc-bw .btn-success:hover,
body.hc-bw .btn-success:focus { background:#222 !important; color:#fff !important; }
body.hc-bw .btn-link { background:transparent !important; color:#000 !important; border:none !important; text-decoration:underline !important; }

/* ===== Images to Black & White (preserve all imagery) ===== */
body.hc-bw img,
body.hc-bw picture img,
body.hc-bw .space-photo,
body.hc-bw .spacehome-photo,
body.hc-bw .pro-card-photo,
body.hc-bw .affiliate-card img { filter:grayscale(100%) !important; }

/* Background-image holders -> grayscale */
body.hc-bw .hero-bg-image,
body.hc-bw .mainheader-bg,
body.hc-bw .mainheader-partnerbg,
body.hc-bw .encon-hero-card,
body.hc-bw .news-feed-item,
body.hc-bw .affiliates-section { filter:grayscale(100%) !important; }

/* Content blocks / forms / cards */
body.hc-bw .space-card,
body.hc-bw .spacehome-card,
body.hc-bw .space1-card,
body.hc-bw .contact-card,
body.hc-bw .lead-form-typeahead,
body.hc-bw .contact-form-wrapper,
body.hc-bw .about-sidebar,
body.hc-bw .panel,
body.hc-bw .well,
body.hc-bw .table,
body.hc-bw .list-group-item,
body.hc-bw .form-control { background:#fff !important; color:#000 !important; border:2px solid #000 !important; }

/* Ensure overlay text stays readable atop grayscaled backgrounds */
body.hc-bw .hero-content,
body.hc-bw .encon-hero-card .encon-hero-inner,
body.hc-bw .spacehome-photo-overlay,
body.hc-bw .space1-photo-overlay { background:rgba(255,255,255,0.96) !important; color:#000 !important; }

/* Skip link chip remains visible */
body.hc-bw .skip-fixed { background:#fff !important; color:#000 !important; border:2px solid #000 !important; }
