/*
 * KSW Surface Rental Expanded v2
 * Scoped to the new template so existing site pages are not affected.
 */

.surface-rental-expanded__inventory-heading h2,
.surface-rental-expanded__content h2,
.surface-rental-expanded__content h3,
.surface-category-card__title,
.surface-category-card__products-label {
  color: #013c94;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.surface-rental-expanded__inventory-heading h2 {
  font-size: 2rem;
  margin-bottom: 0;
}

.surface-rental-expanded__inventory-heading h2::after {
  content: "";
  display: block;
  width: 70px;
  border-bottom: 3px solid #013c94;
  margin: 0.75rem auto 0;
}

/* Category cards */
.surface-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin: 0 auto 4.5rem;
}

.surface-category-card {
  display: grid;
  grid-template-columns: minmax(180px, 38%) 1fr;
  min-height: 100%;
  background: #fff;
  border-top: 5px solid #013c94;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.surface-category-card__image-link {
  display: block;
  background: #f8f9fa;
}

.surface-category-card__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 310px;
  padding: 1.5rem;
}

.surface-category-card__image-wrap img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: 220px;
  object-fit: contain;
}

.surface-category-card__body {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.surface-category-card__title {
  font-size: 1.55rem;
  line-height: 1.1;
  margin: 0 0 0.85rem;
}

.surface-category-card__title a {
  color: inherit;
  text-decoration: none;
}

.surface-category-card__intro {
  font-size: 0.96rem;
  line-height: 1.55;
}

.surface-category-card__intro p:last-child {
  margin-bottom: 0;
}

.surface-category-card__cta {
  margin: 1rem 0 1.25rem;
}

.surface-category-card__cta a {
  color: #013c94;
  font-weight: 700;
  text-decoration: none;
}

.surface-category-card__cta a:hover,
.surface-category-card__title a:hover,
.surface-category-card__products a:hover {
  text-decoration: underline;
}

.surface-category-card__products {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e1e5ea;
}

.surface-category-card__products-label {
  font-size: 0.9rem;
  margin: 0 0 0.55rem;
}

.surface-category-card__products ul {
  margin: 0;
  padding-left: 1.15rem;
}

.surface-category-card__products li {
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.surface-category-card__products li:last-child {
  margin-bottom: 0;
}

.surface-category-card__products a {
  color: #013c94;
  font-weight: 600;
  text-decoration: none;
}

/* Below-products editorial content */
.surface-rental-expanded__content {
  max-width: 1100px;
  margin: 2rem auto 4.5rem;
}

.surface-rental-expanded__content > h2,
.surface-rental-expanded__content .wp-block-heading:is(h2) {
  font-size: 2rem;
  margin-top: 4rem;
  margin-bottom: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
}

.surface-rental-expanded__content > h2:first-child,
.surface-rental-expanded__content .wp-block-heading:is(h2):first-child {
  margin-top: 1rem;
}

.surface-rental-expanded__content h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.surface-rental-expanded__content p,
.surface-rental-expanded__content li {
  line-height: 1.7;
}

.surface-rental-expanded__content ul {
  margin-bottom: 1.75rem;
}

.surface-rental-expanded__content .wp-block-columns {
  gap: 2rem;
}

.surface-rental-expanded__cta {
  padding-top: 1rem;
}

@media (max-width: 1199.98px) {
  .surface-category-card {
    grid-template-columns: 1fr;
  }

  .surface-category-card__image-wrap {
    min-height: 230px;
  }
}

@media (max-width: 767.98px) {
  .surface-category-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .surface-category-card__image-wrap {
    min-height: 210px;
  }

  .surface-category-card__image-wrap img {
    height: 180px;
  }

  .surface-rental-expanded__content {
    margin-bottom: 3rem;
  }

  .surface-rental-expanded__content > h2,
  .surface-rental-expanded__content .wp-block-heading:is(h2) {
    font-size: 1.7rem;
    margin-top: 3rem;
  }
}
