/* Bootstrap 3 compatibility layer for Bootstrap 5 */
:root {
  --bs-border-radius: 4px;
  --bs-border-radius-sm: 3px;
  --bs-border-radius-lg: 6px;
}

.container,
.container-fluid {
  --bs-gutter-x: 30px;
  padding-right: 15px;
  padding-left: 15px;
}

.row {
  --bs-gutter-x: 30px;
}

@media (min-width: 768px) {
  .container {
    max-width: 750px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

.pull-right {
  float: right !important;
}

.pull-left {
  float: left !important;
}

.center-block {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.hide {
  display: none !important;
}

.show {
  display: block !important;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.img-rounded {
  border-radius: var(--bs-border-radius);
}

.img-circle {
  border-radius: 50%;
}

.thumbnail {
  display: block;
  padding: 4px;
  margin-bottom: 20px;
  line-height: 1.42857143;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border 0.2s ease-in-out;
}

.thumbnail > img,
.thumbnail a > img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

.btn {
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  border-radius: 4px;
}

.btn-default {
  --bs-btn-color: #333;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #ccc;
  --bs-btn-hover-color: #333;
  --bs-btn-hover-bg: #e6e6e6;
  --bs-btn-hover-border-color: #adadad;
  --bs-btn-active-color: #333;
  --bs-btn-active-bg: #e6e6e6;
  --bs-btn-active-border-color: #adadad;
  --bs-btn-disabled-color: #333;
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: #ccc;
}

.btn-xs,
.btn-group-xs > .btn {
  --bs-btn-padding-y: 0.125rem;
  --bs-btn-padding-x: 0.5rem;
  --bs-btn-font-size: 0.75rem;
  --bs-btn-border-radius: 0.2rem;
}

.form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

select.form-control,
textarea.form-control {
  height: auto;
}

.form-control:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.breadcrumb {
  display: block;
  padding: 8px 15px;
  margin-bottom: 20px;
  list-style: none;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.breadcrumb > li {
  display: inline-block;
}

.breadcrumb > li + li::before {
  padding: 0 5px;
  color: #ccc;
  content: "/\00a0";
}

.breadcrumbs .container::before,
.breadcrumbs .container::after,
#page-title .container::before,
#page-title .container::after {
  display: table;
  content: " ";
}

.breadcrumbs .container::after,
#page-title .container::after {
  clear: both;
}

.dropdown-menu {
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  font-size: 14px;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.dropdown-menu > li > a {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: 400;
  line-height: 1.42857143;
  color: #333;
  white-space: nowrap;
  text-decoration: none;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
  color: #262626;
  background-color: #f5f5f5;
}

.nav > li > a {
  position: relative;
  display: block;
  padding: 10px 15px;
}

/* =============================================
   aside / sidebar nav-list: BS3 used block display;
   BS5 makes .nav flex-row — restore vertical stacking
   and original link padding for aside nav-list
   ============================================= */
aside .nav-list,
.nav.nav-list {
  display: block;
  flex-direction: column;
}

aside .nav-list > li,
.nav.nav-list > li {
  float: none;
  display: block;
}

aside .nav-list > li > a,
.nav.nav-list > li > a {
  padding: 10px 15px 10px 0;
}

/* =============================================
   radi sidebar-nav-v1 (list-group variant):
   BS5 list-group is flex-column (OK), but
   list-group-item padding overrides theme;
   restore full-width block link display
   ============================================= */
.sidebar-nav-v1.list-group {
  display: block;
  padding-left: 0;
}

.sidebar-nav-v1 .list-group-item {
  padding: 0;
  border-radius: 0;
}

.sidebar-nav-v1 .list-group-item + .list-group-item {
  margin-top: -1px;
}

.sidebar-nav-v1 .list-group-item > a {
  display: block;
}

.nav-tabs {
  border-bottom: 1px solid #ddd;
}

.nav-tabs > li {
  float: left;
  margin-bottom: -1px;
}

.nav-tabs > li > a {
  margin-right: 2px;
  line-height: 1.42857143;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
}

.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus {
  border-color: #eee #eee #ddd;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus,
.nav-tabs > li > a.active,
.nav-tabs > li > a.active:hover,
.nav-tabs > li > a.active:focus {
  color: #555;
  cursor: default;
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
}

.nav-pills > li {
  float: left;
}

.nav-pills > li + li {
  margin-left: 2px;
}

.nav-pills > li > a {
  border-radius: 4px;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus,
.nav-pills > li > a.active,
.nav-pills > li > a.active:hover,
.nav-pills > li > a.active:focus {
  color: #fff;
  background-color: #337ab7;
}

.tab-content > .tab-pane {
  display: none;
}

.tab-content > .active,
.tab-content > .tab-pane.active,
.tab-content > .tab-pane.show {
  display: block;
}

.label {
  display: inline-block;
  padding: 0.2em 0.6em 0.3em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.label-default {
  background-color: #777;
}

.label-primary {
  background-color: var(--bs-primary);
}

.label-success {
  background-color: var(--bs-success);
}

.label-info {
  background-color: var(--bs-info);
}

.label-warning {
  background-color: var(--bs-warning);
  color: #212529;
}

.label-danger {
  background-color: var(--bs-danger);
}

.well {
  min-height: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 0.25rem;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.well-sm {
  padding: 0.5625rem;
  border-radius: 0.2rem;
}

.well-lg {
  padding: 1.5rem;
  border-radius: 0.3rem;
}

.panel {
  margin-bottom: 1.25rem;
  background-color: var(--bs-body-bg);
  border: 1px solid transparent;
  border-radius: 0.25rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel-default {
  border-color: #ddd;
}

.panel-group {
  margin-bottom: 1.25rem;
}

.panel-group .panel + .panel {
  margin-top: 0.3125rem;
}

.panel-heading {
  padding: 0.625rem 0.9375rem;
  border-bottom: 1px solid transparent;
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

.panel-default > .panel-heading {
  color: #333;
  background-color: #f5f5f5;
  border-color: #ddd;
}

.panel-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1rem;
  color: inherit;
}

.panel-body {
  padding: 0.9375rem;
}

.panel-collapse > .panel-body {
  border-top: 1px solid #ddd;
}

.panel-title > a,
.accordion-toggle {
  display: block;
  color: inherit;
  text-decoration: none;
}

.panel-title > a:hover,
.panel-title > a:focus,
.accordion-toggle:hover,
.accordion-toggle:focus {
  text-decoration: none;
}

.panel-footer {
  padding: 0.625rem 0.9375rem;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  border-bottom-right-radius: calc(0.25rem - 1px);
  border-bottom-left-radius: calc(0.25rem - 1px);
}

.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color);
  text-align: center;
  white-space: nowrap;
  background-color: var(--bs-tertiary-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
}

.input-group-btn {
  position: relative;
  display: flex;
  align-items: stretch;
}

.input-group-btn > .btn {
  position: relative;
  z-index: 2;
}

.input-group-btn > .btn + .btn,
.input-group-btn > .btn + .btn-group,
.input-group-btn > .btn-group + .btn,
.input-group-btn > .btn-group + .btn-group {
  margin-left: -1px;
}

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.125rem;
  vertical-align: middle;
  border-top: 0.3em dashed;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
}

.fade.in {
  opacity: 1;
}

.collapse.in {
  display: block;
}

.tab-pane.active,
.tab-pane.in {
  display: block;
}

.tab-pane.active,
.tab-pane.in,
.tab-pane.show {
  opacity: 1;
}

.open > .dropdown-menu {
  display: block;
}

.open > .dropdown-toggle {
  outline: 0;
}

.carousel-inner > .item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

.carousel-inner > .active,
.carousel-inner > .next,
.carousel-inner > .prev {
  display: block;
}

.carousel-indicators li {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 1.875rem;
  height: 0.1875rem;
  padding: 0;
  margin-right: 0.1875rem;
  margin-left: 0.1875rem;
  text-indent: -999px;
  cursor: pointer;
  background-color: currentColor;
  background-clip: padding-box;
  border: 0;
  border-top: 0.625rem solid transparent;
  border-bottom: 0.625rem solid transparent;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.carousel-indicators .active {
  opacity: 1;
}

.navbar-toggle {
  position: relative;
  float: right;
  padding: 0.5625rem 0.625rem;
  margin-top: 0.5rem;
  margin-right: 0.9375rem;
  margin-bottom: 0.5rem;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
  background-color: #ddd;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 1.375rem;
  height: 0.125rem;
  border-radius: 1px;
  background-color: currentColor;
}

.navbar-toggle .icon-bar + .icon-bar {
  margin-top: 0.25rem;
}

.modal-content {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
}

.modal-header {
  min-height: 16.42857143px;
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.modal-body {
  position: relative;
  padding: 15px;
}

.modal-footer {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}

.close {
  float: right;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.2;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  opacity: 0.5;
}

.col-xs-1,
.col-xs-2,
.col-xs-3,
.col-xs-4,
.col-xs-5,
.col-xs-6,
.col-xs-7,
.col-xs-8,
.col-xs-9,
.col-xs-10,
.col-xs-11,
.col-xs-12 {
  position: relative;
  min-height: 1px;
  flex: 0 0 auto;
}

/* col-xs-* width/offset only at xs viewport — must NOT override col-sm/col-md at larger screens */
@media (max-width: 575.98px) {
  .col-xs-12 {
    width: 100%;
  }

  .col-xs-11 {
    width: 91.66666667%;
  }

  .col-xs-10 {
    width: 83.33333333%;
  }

  .col-xs-9 {
    width: 75%;
  }

  .col-xs-8 {
    width: 66.66666667%;
  }

  .col-xs-7 {
    width: 58.33333333%;
  }

  .col-xs-6 {
    width: 50%;
  }

  .col-xs-5 {
    width: 41.66666667%;
  }

  .col-xs-4 {
    width: 33.33333333%;
  }

  .col-xs-3 {
    width: 25%;
  }

  .col-xs-2 {
    width: 16.66666667%;
  }

  .col-xs-1 {
    width: 8.33333333%;
  }

  .col-xs-offset-12 {
    margin-left: 100%;
  }

  .col-xs-offset-11 {
    margin-left: 91.66666667%;
  }

  .col-xs-offset-10 {
    margin-left: 83.33333333%;
  }

  .col-xs-offset-9 {
    margin-left: 75%;
  }

  .col-xs-offset-8 {
    margin-left: 66.66666667%;
  }

  .col-xs-offset-7 {
    margin-left: 58.33333333%;
  }

  .col-xs-offset-6 {
    margin-left: 50%;
  }

  .col-xs-offset-5 {
    margin-left: 41.66666667%;
  }

  .col-xs-offset-4 {
    margin-left: 33.33333333%;
  }

  .col-xs-offset-3 {
    margin-left: 25%;
  }

  .col-xs-offset-2 {
    margin-left: 16.66666667%;
  }

  .col-xs-offset-1 {
    margin-left: 8.33333333%;
  }

  .col-xs-offset-0 {
    margin-left: 0;
  }
}

@media (min-width: 992px) {
  .col-md-push-1 {
    left: 8.33333333%;
  }

  .col-md-push-2 {
    left: 16.66666667%;
  }

  .col-md-push-3 {
    left: 25%;
  }

  .col-md-push-4 {
    left: 33.33333333%;
  }

  .col-md-push-5 {
    left: 41.66666667%;
  }

  .col-md-push-6 {
    left: 50%;
  }

  .col-md-push-7 {
    left: 58.33333333%;
  }

  .col-md-pull-1 {
    right: 8.33333333%;
  }

  .col-md-pull-2 {
    right: 16.66666667%;
  }

  .col-md-pull-3 {
    right: 25%;
  }

  .col-md-pull-4 {
    right: 33.33333333%;
  }

  .col-md-pull-5 {
    right: 41.66666667%;
  }

  .col-md-pull-6 {
    right: 50%;
  }

  .col-md-pull-7 {
    right: 58.33333333%;
  }
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: top;
  border-top: 1px solid #ddd;
}

.table > thead > tr > th {
  vertical-align: bottom;
  border-bottom: 2px solid #ddd;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #f9f9f9;
  box-shadow: none;
}

.visible-xs,
.visible-sm,
.visible-md,
.visible-lg,
.visible-xs-block,
.visible-sm-block,
.visible-md-block,
.visible-lg-block,
.visible-xs-inline,
.visible-sm-inline,
.visible-md-inline,
.visible-lg-inline,
.visible-xs-inline-block,
.visible-sm-inline-block,
.visible-md-inline-block,
.visible-lg-inline-block {
  display: none !important;
}

@media (max-width: 767.98px) {
  .visible-xs {
    display: block !important;
  }

  .visible-xs-block {
    display: block !important;
  }

  .visible-xs-inline {
    display: inline !important;
  }

  .visible-xs-inline-block {
    display: inline-block !important;
  }

  .hidden-xs {
    display: none !important;
  }

  .navbar-collapse {
    padding-right: 0.9375rem;
    padding-left: 0.9375rem;
  }

  .navbar-collapse.collapse:not(.show) {
    display: none !important;
  }

  .navbar-nav .dropdown-menu {
    position: static;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .visible-sm {
    display: block !important;
  }

  .visible-sm-block {
    display: block !important;
  }

  .visible-sm-inline {
    display: inline !important;
  }

  .visible-sm-inline-block {
    display: inline-block !important;
  }

  .hidden-sm {
    display: none !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .visible-md {
    display: block !important;
  }

  .visible-md-block {
    display: block !important;
  }

  .visible-md-inline {
    display: inline !important;
  }

  .visible-md-inline-block {
    display: inline-block !important;
  }

  .hidden-md {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .visible-lg {
    display: block !important;
  }

  .visible-lg-block {
    display: block !important;
  }

  .visible-lg-inline {
    display: inline !important;
  }

  .visible-lg-inline-block {
    display: inline-block !important;
  }

  .hidden-lg {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }

  .navbar-collapse.collapse {
    display: block !important;
    height: auto !important;
    padding-bottom: 0;
    overflow: visible !important;
    flex-basis: auto;
  }

  .navbar-collapse.collapse.show,
  .navbar-collapse.collapse.in {
    display: block !important;
  }

  .navbar-nav {
    flex-direction: row;
  }

  .navbar-nav .dropdown-menu {
    position: absolute;
  }
}

/* =============================================
   BS3 → BS5 text alignment aliases
   (text-left/right removed in BS5)
   ============================================= */
.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

/* =============================================
   hr: BS5 sets opacity:0.25 — restore full visibility
   ============================================= */
hr {
  opacity: 1;
}

/* =============================================
   col-md-offset-* (removed in BS5, used in 404 page)
   ============================================= */
@media (min-width: 992px) {
  .col-md-offset-0  { margin-left: 0; }
  .col-md-offset-1  { margin-left: 8.33333333%; }
  .col-md-offset-2  { margin-left: 16.66666667%; }
  .col-md-offset-3  { margin-left: 25%; }
  .col-md-offset-4  { margin-left: 33.33333333%; }
  .col-md-offset-5  { margin-left: 41.66666667%; }
  .col-md-offset-6  { margin-left: 50%; }
  .col-md-offset-7  { margin-left: 58.33333333%; }
  .col-md-offset-8  { margin-left: 66.66666667%; }
  .col-md-offset-9  { margin-left: 75%; }
  .col-md-offset-10 { margin-left: 83.33333333%; }
  .col-md-offset-11 { margin-left: 91.66666667%; }
  .col-md-offset-12 { margin-left: 100%; }
}

@media (min-width: 768px) {
  .col-sm-offset-0  { margin-left: 0; }
  .col-sm-offset-1  { margin-left: 8.33333333%; }
  .col-sm-offset-2  { margin-left: 16.66666667%; }
  .col-sm-offset-3  { margin-left: 25%; }
  .col-sm-offset-4  { margin-left: 33.33333333%; }
  .col-sm-offset-5  { margin-left: 41.66666667%; }
  .col-sm-offset-6  { margin-left: 50%; }
}

/* =============================================
   col-xs-* need position:relative for push/pull
   ============================================= */
[class*="col-xs-"] {
  position: relative;
}

/* =============================================
   Dropdown divider (li.divider in BS3)
   BS5 removed the auto-styling; BS3 used:
     .dropdown-menu .divider { height:1px; margin:9px 0; }
   ============================================= */
.dropdown-menu > li.divider,
.dropdown-menu .divider {
  height: 1px;
  overflow: hidden;
  margin: 9px 0;
  background-color: #e5e5e5;
}

/* =============================================
   nav-header (BS3 dropdown group title)
   ============================================= */
.dropdown-menu .nav-header {
  display: block;
  padding: 3px 20px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.42857143;
  color: #777;
  white-space: nowrap;
  text-transform: uppercase;
}

/* =============================================
   Ensure .row uses same gap as BS3 gutters
   ============================================= */
.row {
  --bs-gutter-x: 30px;
  margin-right: -15px;
  margin-left: -15px;
}

/* =============================================
   BS3 small/abbr/address tweaks
   ============================================= */
small,
.small {
  font-size: 85%;
}

/* =============================================
   Fix: aside placeholder divs (Bootstrap 5 flexbox)
   In BS3 float-based grid, #contact-aside/#recruit-aside/
   #service-aside had no col class but inner div.col-md-3
   floated out and accidentally worked. In BS5 flexbox
   they must be proper flex children with 25% width at md+.
   ============================================= */
#contact-aside,
#recruit-aside,
#service-aside {
  flex: 0 0 auto;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  #contact-aside,
  #recruit-aside,
  #service-aside {
    width: 25%;
  }
}

/* The injected div.col-md-3 is now nested inside the
   placeholder which already provides the column width;
   reset it to 100% to avoid double-column shrinkage. */
#contact-aside > .col-md-3,
#recruit-aside > .col-md-3,
#service-aside > .col-md-3 {
  width: 100% !important;
  max-width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  flex: none !important;
}