.yc-content-section {
  padding: 48px 0;
}

.yc-content-section__header {
  margin-bottom: 24px;
}

.yc-content-section__title {
  margin: 0 0 4px;
  color: var(--yc-text-primary, #17332d);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.yc-content-section__subtitle {
  margin: 0;
  color: var(--yc-text-muted, #737873);
  font-size: 14px;
  line-height: 1.4;
}

/* A fixed 4-column grid, not flex-wrap: with flex-basis 280px + flex-grow,
   a tile left alone on the last row (e.g. exactly 4 tiles that don't all
   fit per row at a given width) stretched via flex-grow to fill the whole
   row by itself instead of staying tile-width. Grid columns stay a fixed
   fraction of the row regardless of how many tiles land in it. */
.yc-content-section__tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.yc-content-section__tile,
.yc-content-section__tile:hover,
.yc-content-section__tile:visited {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 220px;
  padding: 20px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  /* Same lift-on-hover as .yc-category-grid__card above it on the page. */
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.yc-content-section__tile:hover {
  box-shadow: 0 8px 20px rgba(23, 51, 45, 0.2);
  transform: translateY(-2px);
}

.yc-content-section__tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 51, 45, 0.8) 0%, rgba(23, 51, 45, 0.1) 55%, rgba(23, 51, 45, 0) 100%);
}

.yc-content-section__tile-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100% - 60px);
}

.yc-content-section__tile-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.yc-content-section__tile-subtitle {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.9;
}

.yc-content-section__tile-arrow {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--yc-green-primary, #103d30);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  transition: background-color 0.15s ease;
}

.yc-content-section__tile:hover .yc-content-section__tile-arrow {
  background: var(--yc-green-accent, #278642);
}

@media (max-width: 991px) {
  .yc-content-section__tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .yc-content-section {
    padding: 32px 0;
  }

  .yc-content-section__tiles {
    grid-template-columns: 1fr;
  }

  .yc-content-section__tile {
    min-height: 180px;
  }
}
