.footer_logo_position {
  display: flex;
  justify-content: center;
  border-right: 2px solid #353535;
  align-items: center;
  flex-direction: column;
}

.ftr_logo {
  max-width: 135px;
  height: auto;
}

.footer_bg {
  background-color: #b5c9e3 !important;
  margin-top: 3rem;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  clear: both;
  display: block;
  width: 100vw;
  float: none;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.footer_bg .container {
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

.footer_bg .row {
  margin-left: 0;
  margin-right: 0;
  align-items: center;
}

.footer_bg .col-md-3,
.footer_bg .col-md-4,
.footer_bg .col-md-5 {
  margin-bottom: 1rem;
}

.address_layout {
  padding-left: 35px;
  color: #fff;
  display: flex;
  align-items: center;
}

.footer_map_link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #0b2e59;
  font-weight: 700;
  text-decoration: underline;
}

.footer_nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer_nav ul {
  display: flex;
  flex-wrap: wrap;
  float: left;
}

.footer_nav ul li {
  float: left;
  font-size: 0.85em;
  line-height: 1.262em;
  width: 47%;
  margin-top: 0.5em;
  margin-right: 0.75em;
  border-left: 6px solid #353535;
  border-bottom: 1px dashed #353535;
}

    .narrow_field > input {
        height: 75%;
    }

    .loader-container {
        display: none;
    }

    .loader {
        width: 0;
        height: 5px;
        background: repeating-linear-gradient(45deg, #000, #b90000);
        position: fixed;
        top: 0;
        left: 0;
        animation: loading 0.75s linear infinite;
    }

    @keyframes loading {
        0% {
            width: 0;
        }

        100% {
            width: 100%;
        }
    }

    .user_comment .row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .user_comment .col-5,
    .user_comment .col-2 {
        padding: 5px;
    }

body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.force-desktop {
  min-width: 1200px;
  overflow-x: auto;
}

body.force-desktop .container,
body.force-desktop .container-fluid {
  max-width: 1200px;
  width: 1200px;
}

body.force-desktop .footer_bg .container {
  max-width: 1200px;
  width: 1200px;
}

table,
iframe,
img,
video,
embed,
object,
canvas {
  max-width: 100%;
  height: auto;
}

.view-mode-switch {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.view-mode-switch .btn {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.view-mode-switch .btn.active {
  background-color: #0b3d91;
  color: #fff;
  border-color: #0b3d91;
}

@media only screen and (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .view-mode-switch {
    display: flex;
  }

  .custom_banner_bg .flex-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .custom_banner_bg .flex-row > div {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .custom_banner_bg h1 {
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
  }

  .custom_banner_bg h5 {
    font-size: 0.95rem;
  }

  .custom_banner_bg #social,
  .custom_banner_bg #search {
    text-align: center !important;
  }

  .search_input .input-group {
    flex-wrap: nowrap;
  }

  .search_input .btn,
  .btn,
  button,
  .nav-link,
  .menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu {
    display: none;
    width: 100%;
    padding: 0.5rem 0;
    margin: 0;
  }

  .menu.open {
    display: block;
  }

  #menu-trigger {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    color: #fcfffd;
    background: linear-gradient(#077c2cad, #077c2cad);
    border: 1px solid rgba(255,255,255,0.3);
  }

  .menu li {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    border: 0;
  }

  .menu li.dropdown > ul,
  .menu li.dropdown > .dropdown-menu {
    position: static;
    display: none;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    background: rgba(255,255,255,0.08);
    padding: 0.25rem 0 0.25rem 0.75rem;
  }

  .menu li.dropdown.show > ul,
  .menu li.dropdown.show > .dropdown-menu {
    display: block;
  }

  .menu a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    line-height: 1.35;
    white-space: normal;
  }

  .menu li.dropdown > a::after {
    display: none;
  }

  .carousel {
    width: 100%;
  }

  .carousel img {
    width: 100%;
    height: auto;
  }

  .acme-news-ticker {
    height: auto;
    min-height: 48px;
    margin-top: 0.75rem;
  }

  .acme-news-ticker-label {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    padding: 0.5rem 0.75rem;
  }

  .acme-news-ticker-box {
    padding: 0.5rem 0.75rem;
    height: auto;
  }

  .acme-news-ticker-box ul li a {
    white-space: normal;
    display: block;
    line-height: 1.45;
  }

  .sidebar_area,
  .submitBox,
  .contact-panel {
    padding: 1rem;
  }

  .node-list ul li a,
  .sidebar li a {
    display: block;
    word-break: break-word;
    line-height: 1.45;
  }

  .address_layout {
    display: flex;
    justify-content: center;
    text-align: center;
    padding-left: 0;
  }

  .footer_nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 0;
  }

  .footer_nav ul li {
    float: none;
    padding-left: 5px;
    font-size: 0.85em;
    line-height: 1.262em;
    width: 100%;
    margin-top: 0.5em;
    margin-right: 0;
    border-left: 6px solid #353535;
    border-bottom: 1px dashed #353535;
  }

  .user_comment .col-5,
  .user_comment .col-2 {
      flex: 0 0 100%;
      max-width: 100%;
  }

  .user_comment .row {
      flex-direction: column;
  }

  .user_comment input,
  .user_comment button {
      width: 100%;
      height: auto;
      font-size: 16px;
  }

  .user_comment button {
      margin-top: 10px;
  }

  /* Additional responsive improvements */
  .footer_logo_position {
    border-right: none;
    border-bottom: 2px solid #353535;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer_bg .row {
    flex-direction: column;
  }

  .footer_bg .col-12 {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .footer_bg .col-12:last-child {
    margin-bottom: 0;
  }

  .address_layout {
    padding-left: 0;
    border-right: none;
    border-bottom: 2px solid #353535;
    padding-bottom: 1.5rem;
  }

  .footer_nav {
    padding-left: 0;
  }

  .footer_nav ul {
    flex-direction: column;
    width: 100%;
    padding-left: 0;
  }

  .footer_nav ul li {
    float: none;
    width: 100%;
    margin: 0.5rem 0;
    border-left: none;
    border-bottom: 1px dashed #353535;
    text-align: center;
  }

  .footer_nav ul li:last-child {
    border-bottom: none;
  }

  .footer_2_link {
    justify-content: center;
    width: 100%;
  }

  .ftr_logo {
    max-width: 100px;
    margin: 0 auto;
  }
  
  /* Fix footer text colors for mobile */
  .footer_bg a {
    color: #ffffff !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  }
  
  .footer_bg a:hover {
    color: #e0e0e0 !important;
  }
  
  .footer_bg a:active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .address_layout b,
  .address_layout strong {
    color: #ffffff !important;
  }
  
  .address_layout a {
    color: #ffffff !important;
  }
  
  /* Fix header buttons for mobile */
  .btn-danger {
    color: #ffffff !important;
  }
  
  .btn-danger:hover,
  .btn-danger:active,
  .btn-danger:focus {
    color: #ffffff !important;
  }
  
  .btn-light {
    color: #000000 !important;
  }
  
  .btn-light:hover,
  .btn-light:active,
  .btn-light:focus {
    color: #000000 !important;
  }
}

/* Specific fix for mobile devices 350-749px width */
@media only screen and (min-width: 350px) and (max-width: 749px) {
  .btn-danger {
    color: #ffffff !important;
    background-color: #dc3545 !important;
  }
  
  .btn-danger:hover,
  .btn-danger:active,
  .btn-danger:focus {
    color: #ffffff !important;
    background-color: #c82333 !important;
  }
  
  .btn-light {
    color: #000000 !important;
    background-color: #f8f9fa !important;
  }
  
  .btn-light:hover,
  .btn-light:active,
  .btn-light:focus {
    color: #000000 !important;
    background-color: #e2e6ea !important;
  }
  
  /* Fix footer links for this specific range */
  .footer_bg a {
    color: #ffffff !important;
  }
  
  .footer_bg a:active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .address_layout b,
  .address_layout strong {
    color: #ffffff !important;
  }
  
  .address_layout a {
    color: #ffffff !important;
  }

  .fixedHdr {
    position: relative;
  }

  .fx_hdr_wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .fx_hdr_wrap .fright {
    width: 100%;
    margin-top: 0.5rem;
  }

  .fx_hdr_wrap .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Tablet responsive improvements */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .custom_banner_bg h1 {
    font-size: 1.75rem;
  }

  .custom_banner_bg h5 {
    font-size: 1.1rem;
  }

  .footer_bg .row {
    flex-direction: row;
  }

  .footer_logo_position {
    border-right: 2px solid #353535;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .address_layout {
    padding-left: 20px;
    border-right: 2px solid #353535;
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer_nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer_nav ul li {
    width: 48%;
    border-left: 6px solid #353535;
    border-bottom: 1px dashed #353535;
    text-align: left;
  }

  .footer_2_link {
    justify-content: flex-start;
  }

  .user_comment .col-5 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  .user_comment .col-2 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
}

/* Large desktop improvements */
@media only screen and (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  .footer_bg .container {
    max-width: 1200px;
  }
}

/* Desktop footer improvements */
@media only screen and (min-width: 992px) {
  .footer_bg .row {
    flex-direction: row;
  }

  .footer_logo_position {
    border-right: 2px solid #353535;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
    text-align: left;
  }

  .footer_logo_position img {
    margin: 0;
  }

  .address_layout {
    padding-left: 35px;
    border-right: 2px solid #353535;
    border-bottom: none;
    text-align: left;
  }

  .footer_nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer_nav ul li {
    width: 47%;
    border-left: 6px solid #353535;
    border-bottom: 1px dashed #353535;
    text-align: left;
  }

  .footer_2_link {
    justify-content: flex-start;
  }
}

@media only screen and (min-width: 768px) {
  .view-mode-switch {
    display: none;
  }

  .custom_banner_bg .flex-row {
    display: flex;
    align-items: center;
  }

  .custom_banner_bg #search,
  .custom_banner_bg #social {
    text-align: right !important;
  }

  .acme-news-ticker {
    height: 30px;
  }

  .acme-news-ticker-label {
    position: static;
    display: inline-block;
    width: auto;
    height: 100%;
  }

  .footer_bg .row {
    flex-direction: row;
  }
}

@media only screen and (min-width: 992px) {
  #menu-wrap .menu {
    display: block !important;
  }

  #menu-trigger {
    display: none !important;
  }

  .menu li.dropdown:hover > ul,
  .menu li.dropdown:hover > .dropdown-menu,
  .menu li.dropdown:focus-within > ul,
  .menu li.dropdown:focus-within > .dropdown-menu,
  .menu li.dropdown.show > ul,
  .menu li.dropdown.show > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
