/* One device choice on the homepage, leading directly to each repair catalogue. */
.home-device-section { padding-block: 64px 80px; scroll-margin-top: 90px; }
.home-device-section .section-heading { margin-bottom: 24px; }
.home-device-section .section-heading p { max-width: 58ch; }
.home-device-section .category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.home-device-section .category-card,
.home-device-section .category-card:nth-child(5) {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid #c7d8e3;
  border-radius: 16px;
  box-shadow: none;
}
.home-device-section .category-card:hover {
  border-color: #258bc9;
  box-shadow: 0 10px 24px #1c4d6814;
}
.home-device-section .category-card:focus-visible {
  outline: 3px solid #258bc9;
  outline-offset: 3px;
}
.home-device-section .category-photo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 184px;
  padding: 14px;
  background: #fff;
}
.home-device-section .category-photo img {
  width: 100%;
  height: 100%;
  max-width: 180px;
  object-fit: contain;
}
.home-device-section .category-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
}
.home-device-section .category-card h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.home-device-section .category-card p { margin: 0; color: #456071; font-size: 13px; line-height: 1.4; }
.home-device-section .category-card .text-link {
  margin-top: auto;
  padding-top: 12px;
  color: #136b9d;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 950px) {
  .home-device-section .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home-device-section { padding-block: 36px 52px; }
  .home-device-section .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-device-section .category-photo { height: 136px; padding: 12px; }
  .home-device-section .category-card-copy { padding: 12px; }
  .home-device-section .category-card h3 { font-size: 18px; }
  .home-device-section .category-card p { font-size: 12px; }
  .home-device-section .category-card:nth-child(5) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 45% 1fr;
    align-items: center;
  }
  .home-device-section .category-card:nth-child(5) .category-photo { height: 132px; }
}
