/* Development Channels — Explore Categories cards */

.categories-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.categories-section__header {
  max-width: 640px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.categories-section__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e63946;
  margin-bottom: 0.65rem;
}

.categories-section__title {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 0.65rem;
}

.categories-section__subtitle {
  font-size: 0.98rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 0;
}

.category-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e8edf5;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 18px 40px rgba(26, 47, 107, 0.14);
  color: inherit;
  text-decoration: none;
}

.category-card__media {
  position: relative;
  overflow: hidden;
}

.category-card__media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.category-card:hover .category-card__media img {
  transform: scale(1.06);
}

.category-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(10, 22, 40, 0.55) 100%
  );
  pointer-events: none;
}

.category-card__index {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(10, 22, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.category-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.15rem 1.25rem;
  text-align: left;
}

.category-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.category-card__text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 1rem;
  flex: 1;
}

.category-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a2f6b;
  transition: gap 0.25s ease, color 0.25s ease;
}

.category-card:hover .category-card__cta {
  color: #e63946;
  gap: 0.55rem;
}

.category-card__cta svg {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .categories-section {
    padding: 2.75rem 0;
  }

  .category-card__media img {
    height: 170px;
  }
}
