:root {
  --mfd-turquoise: #00aab6;
  --mfd-turquoise-dark: #007d86;
  --mfd-ink: #171717;
  --mfd-text: #333333;
  --mfd-soft: #f7f9fa;
  --mfd-border: #e2e2e2;
}

html, body { min-height: 100%; }
body {
  color: var(--mfd-text);
  background: #fff;
  font-family: 'Poppins', Arial, sans-serif !important;
}

a { color: var(--mfd-turquoise-dark); }
a:hover, a:focus { color: #005d64; }

.bd-navbar, #navbar-main {
  background: #fff !important;
  border-bottom: 1px solid var(--mfd-border);
  box-shadow: none !important;
}
.navbar { padding-top: .7rem; padding-bottom: .7rem; }
.navbar-brand { color: var(--mfd-ink) !important; }
.navbar-brand .mfd-brand,
.mfd-archive-brand { display: inline-flex; align-items: center; gap: .85rem; }
.navbar-brand .mfd-brand img,
.mfd-archive-brand img { width: 118px; height: auto; }
.mfd-brand-context {
  color: var(--mfd-ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.navbar .nav-link {
  color: var(--mfd-ink) !important;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.navbar .nav-link:hover, .navbar .nav-link:focus {
  color: var(--mfd-turquoise-dark) !important;
}

.container-xxl[role='main'] { padding-top: 2rem; padding-bottom: 4rem; }
.page-header, h1, h2, h3 { color: var(--mfd-ink); font-weight: 700; }

.mfd-hero {
  margin: -2rem calc(50% - 50vw) 3rem;
  padding: clamp(3rem, 7vw, 5.5rem) max(4vw, calc((100vw - 1120px) / 2));
  color: #fff;
  background: var(--mfd-turquoise);
}
.mfd-hero .mfd-kicker { color: #073f43; }
.mfd-hero h1 {
  max-width: 800px;
  margin: .6rem 0 1rem;
  color: var(--mfd-ink);
  font-size: clamp(2.35rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
}
.mfd-hero p { max-width: 760px; margin: 0; color: #083f43; font-size: 1.08rem; font-weight: 500; }
.mfd-kicker { color: var(--mfd-turquoise-dark); font-size: .76rem; font-weight: 800; letter-spacing: .09em; }

.mfd-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.mfd-toolbar > span { margin-right: .35rem; font-size: .85rem; font-weight: 700; }
.mfd-list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 1.4rem; }
.mfd-list-card, .card, .well, .mfd-empty {
  border: 1px solid var(--mfd-border) !important;
  border-radius: 4px !important;
  background: #fff;
  box-shadow: none !important;
}
.mfd-list-card { display: flex; min-height: 245px; padding: 1.75rem; flex-direction: column; }
.mfd-list-card h2 { margin: .65rem 0 .25rem; font-size: 1.45rem; }
.mfd-list-card h2 a { color: var(--mfd-ink); text-decoration: none; }
.mfd-list-card p { line-height: 1.65; }
.mfd-list-address { color: #657075; font-size: .8rem; overflow-wrap: anywhere; }
.mfd-arrow-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.mfd-empty { padding: 2rem; background: var(--mfd-soft); }

.btn-primary, .btn-success {
  border-color: var(--mfd-turquoise-dark) !important;
  background: var(--mfd-turquoise-dark) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-success:hover { border-color: #005d64 !important; background: #005d64 !important; }
.btn-outline-secondary.active { border-color: var(--mfd-turquoise-dark) !important; background: var(--mfd-turquoise-dark) !important; color: #fff !important; }
.form-control:focus, .form-select:focus { border-color: var(--mfd-turquoise-dark); box-shadow: 0 0 0 .2rem rgba(0,125,134,.18); }

.table { --bs-table-striped-bg: var(--mfd-soft); }
.table thead { border-bottom: 2px solid var(--mfd-turquoise); }

.mfd-footer, footer.footer {
  margin-top: auto;
  border-top: 5px solid var(--mfd-turquoise);
  background: var(--mfd-ink) !important;
  color: #fff !important;
}
.mfd-footer-grid { display: flex; justify-content: space-between; gap: 1.5rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.mfd-footer-grid div { display: flex; flex-direction: column; }
.mfd-footer-grid span { color: #c9d0d2; font-size: .82rem; }
.mfd-footer-grid nav { display: flex; align-items: center; gap: 1.2rem; }
.mfd-footer a, footer.footer a { color: #fff !important; }
footer.footer .text-muted { color: #fff !important; }

@media (max-width: 767px) {
  .navbar-brand .mfd-brand img, .mfd-archive-brand img { width: 92px; }
  .mfd-brand-context { display: none; }
  .mfd-footer-grid, .mfd-footer-grid nav { align-items: flex-start; flex-direction: column; }
  .mfd-hero { padding-left: 1.25rem; padding-right: 1.25rem; }
}
