/*
 * Two theme-managed editorial cards directly below the homepage Hero.
 * Uses the existing #НОКТИ palette and button system; no new brand color.
 * Styles are scoped so inner pages and Services/Courses modules are untouched.
 */
.htn-home-feature-cards {
  position: relative;
  width: 100%;
  padding: clamp(1.25rem, 2.8vw, 2.4rem) 0;
  background: var(--bs-body-bg, #fff);
}

.htn-home-feature-cards .container {
  max-width: 1320px;
}

.htn-home-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  min-width: 0;
  overflow: hidden;
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #e5e5e5);
  border-radius: var(--htn-card-radius, .75rem);
  box-shadow: 0 2px 13px rgba(0, 0, 0, .045);
}

.htn-home-feature-card__media {
  min-width: 0;
  min-height: 15.5rem;
  position: relative;
  overflow: hidden;
  background: var(--bs-light, #f8f9fa);
}

.htn-home-feature-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 15.5rem;
  object-fit: cover;
  object-position: center;
}

.htn-home-feature-card__placeholder {
  height: 100%;
  min-height: 15.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary, #315539);
}

.htn-home-feature-card__placeholder svg {
  display: block;
  width: 3.75rem;
  height: 3.75rem;
}

.htn-home-feature-card__body {
  min-width: 0;
  padding: clamp(1.15rem, 2.4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.htn-home-feature-card__title {
  color: var(--bs-body-color, #212529);
  margin: 0 0 .75rem;
  font-size: clamp(1.25rem, 1.75vw, 1.7rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.htn-home-feature-card__description {
  color: var(--bs-secondary-color, #555);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  overflow-wrap: anywhere;
}

.htn-home-feature-card__button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.15rem;
  text-align: center;
  white-space: normal;
}

.htn-home-feature-card__button:focus-visible {
  outline: 3px solid var(--bs-primary, currentColor);
  outline-offset: 3px;
}

@media (min-width: 576px) and (max-width: 1199.98px) {
  .htn-home-feature-card__body {
    padding: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .htn-home-feature-cards {
    padding: 1rem 0;
  }

  .htn-home-feature-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .htn-home-feature-card__media,
  .htn-home-feature-card__media img,
  .htn-home-feature-card__placeholder {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .htn-home-feature-card__body {
    padding: 1.1rem 1.25rem 1.4rem;
  }

  .htn-home-feature-card__title {
    font-size: 1.35rem;
  }

  .htn-home-feature-card__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .htn-home-feature-card,
  .htn-home-feature-card__media img {
    transition: none;
  }
}
