body {
  font-family: Georgia, "Times New Roman", serif;
  background: #f3f4f6;
  color: #17324d;
}

a {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.app-shell {
  background:
    linear-gradient(90deg, #123454 0, #123454 21rem, #f3f4f6 21rem, #f3f4f6 100%);
}

.app-content {
  padding-left: 1.7rem !important;
  padding-right: 2.4rem !important;
  padding-top: 2.25rem !important;
  box-sizing: border-box;
}

.app-sidebar::-webkit-scrollbar {
  width: 8px;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(140, 224, 255, 0.25);
  border-radius: 999px;
}

.sidebar-brand-link {
  color: #f5fbff !important;
  padding: 0 !important;
  line-height: 1.05;
  font-family: "Segoe UI", Arial, sans-serif;
}

.sidebar-brand-link:hover {
  color: #8ce0ff !important;
}

.sidebar-accordion .accordion-item {
  background: transparent;
  border: 1px solid rgba(189, 229, 255, 0.12);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.sidebar-accordion .accordion-button {
  background: rgba(255, 255, 255, 0.06);
  color: #f5fbff;
  font-weight: 600;
  box-shadow: none !important;
  font-size: 0.97rem;
  padding: 0.85rem 1rem;
  font-family: "Segoe UI", Arial, sans-serif;
}

.sidebar-accordion .accordion-button:not(.collapsed) {
  background: rgba(140, 224, 255, 0.12);
  color: #ffffff;
}

.sidebar-accordion .accordion-button::after {
  filter: brightness(0) invert(1);
}

.sidebar-accordion .accordion-body {
  background: rgba(7, 23, 38, 0.12);
  padding: 0.45rem;
}

.sidebar-subnav-link {
  display: block;
  color: rgba(245, 251, 255, 0.84) !important;
  border-radius: 10px;
  padding: 0.55rem 0.8rem !important;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  line-height: 1.35;
  font-family: "Segoe UI", Arial, sans-serif;
}

.sidebar-subnav-link:hover,
.sidebar-subnav-link.active {
  background: rgba(140, 224, 255, 0.14) !important;
  color: #ffffff !important;
}

.homepage-hero-title {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 3.15vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #13314f;
  margin-bottom: 1.2rem;
  max-width: 21ch;
}

.hero-eyebrow,
.section-eyebrow,
.homepage-card-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: "Segoe UI", Arial, sans-serif;
}

.hero-eyebrow,
.section-eyebrow {
  color: #147b8f;
  margin-bottom: 0.75rem;
}

.homepage-card-eyebrow {
  color: #1788ac;
  margin-bottom: 0.55rem;
}

.homepage-hero-copy,
.homepage-card-copy,
.step-copy,
.kpi-copy,
.homepage-shell p {
  color: #3d566e;
}

.homepage-hero-copy {
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.hero-button-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-primary-button,
.homepage-card-button {
  background: #1c5d82;
  border: 1px solid #1c5d82;
  color: #fff !important;
  border-radius: 8px;
  padding: 0.72rem 1.1rem;
  font-weight: 600;
  box-shadow: none;
  font-family: "Segoe UI", Arial, sans-serif;
}

.hero-primary-button:hover,
.homepage-card-button:hover {
  background: #174c69;
  border-color: #174c69;
  transform: none;
  color: #fff !important;
}

.hero-secondary-button,
.hero-secondary-button.btn,
.hero-secondary-button.btn-primary {
  border-radius: 8px;
  padding: 0.72rem 1.1rem;
  font-weight: 600;
  background: #eef6fb !important;
  border: 1px solid #afcddd !important;
  color: #14344d !important;
  font-family: "Segoe UI", Arial, sans-serif;
  box-shadow: none;
}

.hero-secondary-button:hover,
.hero-secondary-button.btn:hover,
.hero-secondary-button.btn-primary:hover {
  background: #e0eef7 !important;
  border-color: #9cbfd2 !important;
  color: #14344d !important;
  transform: none;
}

.kpi-value {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: #143b59;
  margin-bottom: 0.35rem;
}

.kpi-label,
.kpi-heading {
  color: #1d4f70;
  font-weight: 600;
  font-family: "Segoe UI", Arial, sans-serif;
}

.kpi-copy {
  margin: 0.45rem 0 0;
  line-height: 1.7;
}

.homepage-nav-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.homepage-nav-card:hover {
  transform: none;
  box-shadow: 0 8px 22px rgba(17, 52, 72, 0.05) !important;
  border-color: rgba(16, 53, 79, 0.12) !important;
}

.homepage-card-media {
  height: 190px;
  padding: 0.9rem 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.homepage-card-title,
.section-title,
.step-title {
  color: #17324d;
  font-family: "Segoe UI", Arial, sans-serif;
}

.homepage-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.homepage-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  padding-top: 1rem;
}

.homepage-card-row .col-lg-3,
.homepage-card-row .col-md-6 {
  display: flex;
}

.homepage-card-row .homepage-nav-card {
  width: 100%;
}

.homepage-card-copy {
  line-height: 1.75;
  margin-bottom: 1rem;
}

.homepage-card-button {
  margin-top: auto;
  align-self: flex-start;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.step-index {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: rgba(29, 145, 192, 0.08);
  color: #177aa2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.step-copy {
  line-height: 1.8;
  margin: 0;
}

.app-content h4 {
  color: #106c5b !important;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.app-content .btn-primary {
  background: #1c5d82;
  border: 1px solid #1c5d82;
  border-radius: 8px;
  font-weight: 600;
  font-family: "Segoe UI", Arial, sans-serif;
}

.app-content .btn-primary:hover {
  background: #174c69;
  border-color: #174c69;
  transform: none;
}

.app-content .form-select,
.app-content .Select-control,
.app-content .form-control {
  border-radius: 14px;
}

.app-content table {
  background: #ffffff;
}

@media (max-width: 1200px) {
  .homepage-hero-title {
    max-width: none;
  }
}

@media (max-width: 992px) {
  .app-shell {
    background: #f3f4f6;
  }

  .app-sidebar {
    position: relative !important;
    width: auto !important;
    height: auto;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .app-content,
  .homepage-shell {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    padding-top: 1.2rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: auto !important;
  }
}

@media (max-width: 768px) {
  .homepage-hero-title {
    font-size: 2.2rem;
  }

  .hero-button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .homepage-card-copy {
    min-height: auto;
  }

  .homepage-shell p[style*="column-count"] {
    column-count: 1 !important;
  }
}
