
.td-hub-content {
  --teal: #2EBFB1;
  --teal-dark: #25a99c;
  --teal-light: #4fd1c5;
  --coral: #FC5A34;
  --coral-hover: #DE4F2E;
  --coral-text: #C04428;
  --coral-text-hover: #A23A20;
  --yellow: #FFCC00;
  --white: #fff;
  --light-gray: #f5f5f5;
  --mid-gray: #dddddd;
  --dark-gray: #555;
  --black: #333;
  --teal-tint: #E9F9F7;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--black);
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.td-hub-content h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 1.75rem);
  font-weight: 700;
  margin: 52px 0 12px;
  color: var(--black);
  border-bottom: 3px solid var(--teal);
  padding-bottom: 8px;
}

.td-hub-intro {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(1rem, 1vw + 0.5rem, 1.0625rem);
}

.td-hub-content a:focus-visible {
  outline: 3px solid rgba(46, 191, 177, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.td-hub-hero {
  position: relative;
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(46, 191, 177, 0.12);
  padding: 22px 24px;
  margin: 4px 0 28px;
}

.td-hub-hero-label {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: clamp(1.05rem, 1vw + 0.6rem, 1.2rem);
  color: var(--black);
}

.td-hub-searchbar {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.td-hub-input-wrap {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.td-hub-input-wrap > svg {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  fill: var(--dark-gray);
  pointer-events: none;
  z-index: 1;
}

.td-hub-content .td-hub-input {
  width: 100%;
  box-sizing: border-box;
  height: 56px;
  margin: 0;
  padding: 0 16px 0 46px;
  border: 2px solid var(--mid-gray);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--black);
  background: var(--white);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.td-hub-content .td-hub-input::placeholder { color: var(--dark-gray); }

.td-hub-content .td-hub-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 191, 177, 0.25);
}

.td-hub-content .td-hub-search-btn {
  flex: 0 0 auto;
  height: 56px;
  margin: 0;
  padding: 0 36px;
  background: var(--coral);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.1875rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease;
}

.td-hub-content .td-hub-search-btn:hover { background: var(--coral-hover); }

.td-hub-content .td-hub-search-btn:focus-visible {
  outline: 3px solid rgba(252, 90, 52, 0.45);
  outline-offset: 2px;
}

/* ==========================================================================
   LOCATION GRID
   ========================================================================== */
.td-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}

.td-hub-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-gray);
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--coral-text);
  font-weight: 500;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, color .2s ease;
}

.td-hub-loc::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232EBFB1'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.td-hub-loc:hover {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--coral-text-hover);
}

.td-hub-count {
  color: var(--dark-gray);
  font-weight: 400;
}

.td-hub-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 20px;
  margin: 16px 0 8px;
}

.td-hub-spec-card {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow .25s ease, transform .25s ease;
}

.td-hub-spec-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
}

.td-hub-spec-card--wide { grid-column: span 2; }

.td-hub-spec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--light-gray);
}

.td-hub-spec-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.td-hub-spec-icon svg {
  width: 23px;
  height: 23px;
  fill: var(--teal);
}

.td-hub-spec-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
}

.td-hub-content .td-hub-spec-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.td-hub-spec-card--wide ul {
  columns: 2;
  column-gap: 14px;
}

.td-hub-spec-card--wide li { break-inside: avoid; }

.td-hub-spec-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--coral-text);
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.td-hub-spec-link::after {
  content: "\203A";
  color: var(--mid-gray);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform .15s ease, color .15s ease;
}

.td-hub-spec-link:hover {
  background: var(--light-gray);
  color: var(--coral-text-hover);
  text-decoration: none;
}

.td-hub-spec-link:hover::after {
  color: var(--coral);
  transform: translateX(4px);
}

.td-hub-content a.td-hub-btn {
  display: inline-block;
  background: transparent;
  color: var(--coral);
  border: 2px solid var(--coral);
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.td-hub-content a.td-hub-btn:hover {
  background: var(--coral);
  color: var(--white);
  text-decoration: none;
}

.td-hub-content a.td-hub-btn:focus-visible {
  outline: 3px solid rgba(252, 90, 52, 0.45);
  outline-offset: 2px;
}

.td-hub-seeall { margin: 20px 0 0; }

.td-hub-tests {
  background: var(--teal-tint);
  border-radius: 12px;
  padding: 8px 28px 28px;
  margin: 52px 0 16px;
}

.td-hub-content .td-hub-tests h2 {
  border-bottom: none;
  margin: 24px 0 12px;
}

.td-hub-test-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
}

.td-hub-test {
  background: var(--white);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 8px 18px;
  text-decoration: none;
  color: var(--coral-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.td-hub-test:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 900px) {
  .td-hub-cols { grid-template-columns: repeat(2, 1fr); }
  .td-hub-spec-card--wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  .td-hub-content { padding: 0 16px; }
  .td-hub-searchbar { flex-direction: column; }
  .td-hub-content .td-hub-search-btn { width: 100%; }
  .td-hub-cols { grid-template-columns: 1fr; }
  .td-hub-spec-card--wide { grid-column: span 1; }
  .td-hub-spec-card--wide ul { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .td-hub-loc,
  .td-hub-spec-card,
  .td-hub-spec-link::after { transition: none; }
  .td-hub-loc:hover,
  .td-hub-spec-card:hover { transform: none; }
}
