/* Hire Dedicated Developers directory page. Loaded after pages.css (theme tokens, resets and section spacing).
   Own components (hd-*), not used on any other page. Theme colours only: no gradients, no shadows. */

.hd-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--abx-navy);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.hd-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  font-weight: 700;
}

.hd-lead {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.7;
}

.hd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.hd-head > div {
  max-width: 640px;
}

/* Hero: text on the left, a grid of technology badges on the right */
.hd-hero {
  padding: 48px 0 var(--abx-pad);
  background: var(--abx-bg);
}

.hd-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hd-hero h1 {
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.12;
  font-weight: 800;
}

.hd-hero h1 span {
  color: var(--abx-blue);
}

.hd-hero__text {
  max-width: 560px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.7;
}

.hd-hero .abx-btns {
  margin-top: 30px;
}

.hd-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 440px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.hd-badges a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--abx-line);
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--abx-navy);
  transition: border-color 0.2s;
}

.hd-badges a:hover {
  border-color: var(--abx-blue);
}

.hd-badges img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.hd-badges li.hd-badges__count a {
  background: var(--abx-navy);
  border-color: var(--abx-navy);
  color: #ffffff;
}

.hd-badges__count strong {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--abx-blue);
}

.hd-badges__count span {
  font-size: 12.5px;
  text-align: center;
}

/* Filter buttons */
.hd-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: var(--abx-bg);
}

.hd-filter button {
  padding: 9px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--abx-navy);
  cursor: pointer;
}

.hd-filter button[aria-pressed="true"] {
  background: var(--abx-navy);
  color: #ffffff;
}

.hd-filter button:focus-visible {
  outline: 3px solid var(--abx-blue);
  outline-offset: 2px;
}

/* Developer cards */
.hd-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hd-cards li[hidden] {
  display: none;
}

.hd-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 22px;
  border: 1px solid var(--abx-line);
  background: #ffffff;
  color: var(--abx-navy);
  overflow: hidden;
  transition: border-color 0.2s;
}

.hd-card:hover {
  border-color: var(--abx-blue);
  color: var(--abx-navy);
}

.hd-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 0;
}

.hd-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--abx-bg);
}

.hd-card__logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.hd-card__name {
  font-family: "Sora", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.hd-card__type {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--abx-blue-light);
  font-size: 12px;
  font-weight: 700;
  color: var(--abx-blue);
}

.hd-card__text {
  display: block;
  padding: 16px 24px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--abx-text);
}

.hd-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
  padding: 0 24px;
  list-style: none;
}

.hd-card__skills span {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--abx-line);
  font-size: 13px;
  font-weight: 600;
}

.hd-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 18px 24px;
  border-top: 1px solid var(--abx-line);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--abx-blue);
}

.hd-card:hover .hd-card__foot i {
  transform: translateX(4px);
}

.hd-card__foot i {
  transition: transform 0.2s;
}

/* Hiring terms: one strip, three segments */
.hd-terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--abx-line);
}

.hd-terms li {
  padding: 30px 28px;
  background: #ffffff;
}

.hd-terms li + li {
  border-left: 1px solid var(--abx-line);
}

.hd-terms li:nth-child(1) {
  background: var(--abx-navy);
  color: rgba(255, 255, 255, 0.78);
}

.hd-terms__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--abx-navy);
}

.hd-terms li:nth-child(1) .hd-terms__name {
  color: #ffffff;
}

.hd-terms__name i {
  color: var(--abx-blue);
}

.hd-terms dl {
  margin: 18px 0 0;
}

.hd-terms dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--abx-line);
  font-size: 15px;
}

.hd-terms li:nth-child(1) dl div {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.hd-terms dt {
  font-weight: 500;
}

.hd-terms dd {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  color: var(--abx-navy);
}

.hd-terms li:nth-child(1) dd {
  color: #ffffff;
}

/* Hiring steps on a rail */
.hd-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hd-rail::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--abx-blue-light);
}

.hd-rail li {
  position: relative;
}

.hd-rail__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--abx-blue);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.hd-rail h3 {
  margin-top: 18px;
  font-size: 18px;
}

.hd-rail p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
}

/* Benefits: list beside a navy summary */
.hd-why {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.hd-why__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hd-why__list li {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--abx-line);
}

.hd-why__list i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 20px;
  color: var(--abx-blue);
}

.hd-why__list strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 16px;
  color: var(--abx-navy);
}

.hd-why__list span {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.55;
}

/* FAQ: accordion with a blue left edge */
.hd-faq {
  max-width: 860px;
  margin: 0 auto;
}

.hd-faq details {
  padding: 4px 0;
  border-bottom: 1px solid var(--abx-line);
}

.hd-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 18px 18px;
  border-left: 4px solid transparent;
  cursor: pointer;
  list-style: none;
  font-family: "Sora", sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--abx-navy);
}

.hd-faq details[open] summary {
  border-left-color: var(--abx-blue);
}

.hd-faq summary::-webkit-details-marker {
  display: none;
}

.hd-faq summary::after {
  content: "\f078";
  flex-shrink: 0;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 13px;
  color: var(--abx-blue);
}

.hd-faq details[open] summary::after {
  content: "\f077";
}

.hd-faq summary:focus-visible {
  outline: 3px solid var(--abx-blue);
  outline-offset: 2px;
}

.hd-faq details p {
  padding: 0 0 20px 22px;
  font-size: 15.5px;
  line-height: 1.7;
}

/* Closing banner: centred, light, with a navy rule on top */
.hd-close {
  padding: 48px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--abx-line);
  border-top: 8px solid var(--abx-navy);
  text-align: center;
}

.hd-close h2 {
  font-size: clamp(24px, 2.8vw, 34px);
}

.hd-close p {
  max-width: 560px;
  margin: 10px auto 0;
  font-size: 16.5px;
}

.hd-close .abx-btns {
  justify-content: center;
  margin-top: 26px;
}

@media (max-width: 1199.98px) {
  .hd-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .hd-hero__grid,
  .hd-why {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hd-badges {
    margin: 0 auto;
  }

  .hd-terms {
    grid-template-columns: 1fr;
  }

  .hd-terms li + li {
    border-left: 0;
    border-top: 1px solid var(--abx-line);
  }

  .hd-rail {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }

  .hd-rail::before {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hd-cards,
  .hd-why__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .hd-hero {
    padding-top: 36px;
  }

  .hd-hero__text {
    font-size: 17px;
  }

  .hd-badges {
    gap: 10px;
  }

  .hd-badges a {
    border-radius: 18px;
    font-size: 12px;
  }

  .hd-badges img {
    width: 34px;
    height: 34px;
  }

  .hd-badges__count strong {
    font-size: 26px;
  }

  .hd-rail {
    grid-template-columns: 1fr;
  }

  .hd-terms li {
    padding: 24px 22px;
  }

  .hd-close {
    padding: 32px 22px;
  }
}
