.service-directory {
  background: #edf3f7;
  border-block-end: 1px solid var(--line);
}
.directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.directory-heading h2 + p { margin-top: 7px; }
.directory-ministry,
.location-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #0d6266;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.directory-ministry { flex-shrink: 0; }
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.directory-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  height: 100%;
  min-height: 144px;
  padding: 21px 18px;
  border: 1px solid #d4e0e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px #16365307;
}
.directory-card.featured {
  background: linear-gradient(145deg, #fff 42%, #f4faf9);
  border-block-start: 3px solid #158c91;
}
.directory-grid > li:nth-child(2) .directory-card { border-block-start-color: #c78c2c; }
.directory-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  background: #eaf5f3;
  color: #0e6970;
}
.directory-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.directory-text { display: grid; gap: 2px; }
.directory-category { color: #536d7c; font-size: 11px; }
.directory-card strong { color: var(--navy); font-size: 19px; line-height: 1.45; }
.directory-description { margin-top: 4px; color: #455d6e; font-size: 13px; line-height: 1.75; }
.directory-arrow { font-size: 15px; color: #0d6266; }
.directory-card:hover { border-inline-color: #438c8c; border-block-end-color: #438c8c; box-shadow: 0 10px 28px #16365312; }
.directory-note { margin-top: 17px; color: #435e6e; font-size: 13px; }
.location-layout {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  border: 1px solid #d4e0e6;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px #16365309;
}
.location-details { padding: clamp(23px, 4vw, 49px); }
.location-details h3 { font-size: clamp(20px, 2.1vw, 27px); line-height: 1.55; }
.location-details address { color: #455d6e; font-style: normal; margin-top: 12px; }
.location-codes { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0 22px; }
.location-codes > div { border: 1px solid #d8e5ea; background: #f4f8fa; padding: 7px 13px; border-radius: 8px; }
.location-codes dt { color: #435e6e; font-size: 11px; }
.location-codes dd { margin: 0; color: var(--navy); font-weight: 600; letter-spacing: .035em; }
.location-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 17px; }
.location-primary { background: #106b70; color: #fff; padding: 11px 16px; min-height: 46px; gap: 12px; }
a.location-primary:hover { background: #124f55; }
.location-visual { min-height: 312px; position: relative; isolation: isolate; background: #122d44; color: #fff; }
.location-visual > svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.location-visual-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 26px;
  display: grid;
  gap: 3px;
  background: linear-gradient(transparent, #102b42 73%);
}
.location-visual-caption span { color: #b8dbda; font-size: 12px; }
.location-visual-caption strong { font-size: 19px; }
.location-visual-caption small { color: #cadbe5; font-size: 11px; }
.ministry-support {
  margin-top: 15px;
  border: 1px solid #d4e0e6;
  border-radius: 12px;
  padding: 15px 20px;
  background: #eaf2f4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
.ministry-support p { font-size: 13px; }
.support-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.support-links a { display: inline-flex; align-items: center; min-height: 44px; color: #0d6266; font-weight: 600; gap: 7px; }
.support-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1000px) {
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .directory-heading { display: grid; gap: 5px; }
  .location-layout { grid-template-columns: 1fr; }
  .location-visual { min-height: 240px; }
  .location-visual-caption { padding: 18px; }
}
@media (max-width: 520px) {
  .directory-grid { grid-template-columns: 1fr; gap: 10px; }
  .directory-card { min-height: 108px; padding: 15px; }
  .location-codes { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .directory-card { transition: none; }
}

.footer-top p a{text-decoration:underline;text-underline-offset:3px}

.directory-ministry img{display:block;width:64px;height:44px;object-fit:contain;flex:none}
