:root {
  --uec-dark: #0f172a;
  --uec-primary: #002366;
  --bs-primary: #002366;
  --bs-primary-rgb: 0, 35, 102;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.container,
.container-xl {
  width: 100%;
  max-width: 100%;
}

.row {
  min-width: 0;
}

.card,
.card-body,
.navbar,
.navbar-brand,
.navbar-collapse,
.dropdown-menu {
  min-width: 0;
}

a {
  outline: none;
  overflow-wrap: anywhere;
}

button,
.btn {
  max-width: 100%;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.text-primary {
  color: var(--uec-primary) !important;
}

.bg-primary {
  background-color: var(--uec-primary) !important;
  color: #fff !important;
}

.btn-primary {
  --bs-btn-bg: var(--uec-primary);
  --bs-btn-border-color: var(--uec-primary);
  --bs-btn-hover-bg: #001a4d;
  --bs-btn-hover-border-color: #001a4d;
  --bs-btn-active-bg: #001233;
  --bs-btn-active-border-color: #001233;
  --bs-btn-disabled-bg: #5c6f96;
  --bs-btn-disabled-border-color: #5c6f96;
  color: #fff;
}

.btn-outline-primary {
  --bs-btn-color: var(--uec-primary);
  --bs-btn-border-color: var(--uec-primary);
  --bs-btn-hover-bg: var(--uec-primary);
  --bs-btn-hover-border-color: var(--uec-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #001a4d;
  --bs-btn-active-border-color: #001a4d;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: var(--uec-primary);
  --bs-btn-disabled-border-color: var(--uec-primary);
}

.nav-pills .nav-link {
  width: 100%;
  color: var(--uec-primary);
}

@media (min-width: 576px) {
  .nav-pills .nav-link {
    width: auto;
  }
}

.nav-pills .nav-link.active {
  background-color: var(--uec-primary);
  color: #fff;
}

.progress-bar {
  background-color: var(--uec-primary);
}

.navbar-brand {
  max-width: 100%;
  flex-wrap: wrap;
  row-gap: 0.15rem;
}

.navbar-brand img {
  height: 2.35rem;
  width: auto;
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

@media (min-width: 576px) {
  .brand-text {
    font-size: 1.05rem;
  }
}

.navbar .btn {
  white-space: normal;
}

@media (max-width: 991.98px) {
  .navbar-collapse .btn {
    width: 100%;
  }

  .navbar-collapse .nav-item {
    width: 100%;
  }
}

.carousel,
.carousel-inner,
.carousel-item {
  width: 100%;
  max-width: 100%;
}

.carousel-item {
  position: relative;
}

.carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.55),
    rgba(15, 23, 42, 0.10)
  );
  pointer-events: none;
}

.carousel-item img {
  width: 100%;
  height: min(68vh, 620px);
  object-fit: cover;
}

.carousel-caption {
  z-index: 1;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .carousel-item img {
    height: min(45vh, 360px);
  }

  .carousel-caption {
    position: static;
    margin: 0.75rem 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 0.9rem;
    padding: 0.8rem 1rem;
  }
}

.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(0, 35, 102, 0.12);
  color: var(--uec-primary);
  font-size: 1.5rem;
}

.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.12);
}

.section-shell {
  padding-block: 3rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  .section-shell {
    padding-block: 4.25rem;
  }
}

.footer-dark {
  background: var(--uec-dark);
}

.footer-dark a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-dark a:hover {
  color: #fff;
  text-decoration: underline;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: none;
  z-index: 1050;
}

.back-to-top.show {
  display: inline-flex;
}

.choice-timer-progress {
  height: 0.55rem;
}

.form-control,
.form-select,
.input-group .btn {
  min-height: 2.75rem;
}

.breadcrumb {
  flex-wrap: wrap;
  row-gap: 0.25rem;
}

.breadcrumb a {
  text-decoration: none;
}

.modal-dialog {
  max-width: 100%;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
  }

  .modal-lg,
  .modal-xl {
    max-width: 800px;
  }
}