.explore-by {
  margin: 4.5rem 0;
}

.explore-by__intro {
  max-width: 46rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.explore-by__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--theme-color);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.explore-by__title {
  margin: 0;
  color: var(--text-color-dark);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.16;
}

.explore-by__lede {
  margin: 0.875rem 0 0;
  color: var(--text-color-main);
  font-size: 1rem;
  line-height: 1.65;
}

.explore-by__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.explore-by__group {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-16);
  background: var(--card-background-color);
  box-shadow: var(--shadow);
}

.explore-by__group::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  content: "";
}

.explore-by__group--topics {
  grid-column: 1 / -1;
}

.explore-by__group-title {
  margin: 0;
  color: var(--text-color-dark);
  font-size: 1.18rem;
  line-height: 1.3;
}

.explore-by__group-description {
  margin: 0.5rem 0 1.1rem;
  color: var(--text-color-main);
  font-size: 0.925rem;
  line-height: 1.55;
}

.explore-by__links {
  display: grid;
  gap: 0.625rem;
}

.explore-by__links--topics {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.explore-by__link {
  display: flex;
  min-height: 4.8rem;
  flex-direction: column;
  justify-content: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-8);
  background: var(--tag-background-color);
  color: var(--text-color-dark);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.explore-by__link:hover,
.explore-by__link:focus-visible {
  border-color: var(--theme-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  color: var(--text-color-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

.explore-by__link:focus-visible {
  outline: 3px solid var(--theme-color);
  outline-offset: 2px;
}

.explore-by__link-title {
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.3;
}

.explore-by__link-copy {
  margin-top: 0.25rem;
  color: var(--text-color-main);
  font-size: 0.8rem;
  line-height: 1.4;
}

.explore-by__links--topics .explore-by__link {
  position: relative;
  min-height: 3.5rem;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.explore-by__arrow {
  color: var(--theme-color);
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.explore-by__link:hover .explore-by__arrow,
.explore-by__link:focus-visible .explore-by__arrow {
  transform: translateX(0.2rem);
}

@media (max-width: 767px) {
  .explore-by {
    margin: 3.25rem 0;
  }

  .explore-by__groups {
    grid-template-columns: 1fr;
  }

  .explore-by__group--topics {
    grid-column: auto;
  }

  .explore-by__group {
    padding: 1.25rem;
  }
}

@media (max-width: 440px) {
  .explore-by__links--topics {
    grid-template-columns: 1fr;
  }

  .explore-by__link {
    min-height: 4.25rem;
  }
}
