.yl-cards {
  background-color: #fff;
}

.yl-cards__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.yl-cards__header {
  text-align: center;
  margin-bottom: 40px;
}

.yl-cards__title {
  font-family:
    CircularXX TT,
    sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: 10px;
}

.yl-cards__subtitle {
  font-family:
    CircularXX TT,
    sans-serif;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.1;
  color: #6b7280;
}

.yl-card {
  border-radius: 20px;
  overflow: hidden;
}

.yl-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 24px;
  border-radius: 100px;
  font-family:
    CircularXX TT,
    sans-serif;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  margin-bottom: 16px;
}

.yl-card__tag-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.yl-card__heading {
  font-family:
    CircularXX TT,
    sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-color);
  margin-bottom: 12px;
}

.yl-card__desc {
  font-family:
    CircularXX TT,
    sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  color: #00091f;
}

.yl-card--featured,
.yl-card--small {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: default;
}

.yl-card--featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.yl-card--small:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: #c8d8e8;
}

.yl-card--featured {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 20px;
  padding: 24px;
}

.yl-card--featured .yl-card__body {
  flex: 1 1 55%;
  padding: 16px 24px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.yl-card--featured .yl-card__heading {
  font-size: 48px;
  line-height: 1.1;
}

.yl-card--featured .yl-card__image-wrap {
  flex: 0 0 42%;
  overflow: hidden;
  border-radius: 14px;
  align-self: center;
}

.yl-card--featured .yl-card__image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.yl-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.yl-card--small {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.yl-card--small .yl-card__body {
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.yl-card--small .yl-card__heading {
  font-size: 32px;
  margin-bottom: 8px;
}

.yl-card--small .yl-card__image-wrap {
  overflow: hidden;
  border-radius: 14px;
  margin: 0 16px 16px;
  flex: 1;
}

.yl-card--small .yl-card__image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

/* Tablet */
@media (max-width: 1024px) {
  .yl-card--featured .yl-card__body {
    padding: 16px 16px 16px 8px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .yl-cards__container {
    padding: 56px 16px;
  }

  .yl-cards__title {
    font-size: 40px;
  }

  .yl-card--featured {
    flex-direction: column;
  }

  .yl-card--featured .yl-card__body {
    padding: 28px 4px 20px;
    flex: unset;
    width: 100%;
  }

  .yl-card--featured .yl-card__image-wrap {
    flex: unset;
    width: 100%;
    border-radius: 14px;
  }
  .yl-cards__subtitle {
    font-size: 20px;
  }

  .yl-card--featured .yl-card__image {
    min-height: 220px;
    border-radius: 14px;
  }

  .yl-cards__grid {
    grid-template-columns: 1fr;
  }

  .yl-card--small .yl-card__image {
    min-height: 200px;
  }

  .yl-card--small .yl-card__image {
    min-height: 200px;
  }
}
