.levels {
  background-color: var(--color-dark-blue);
  padding: 5rem 2rem;
}

.levels__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* top part */
.levels__top {
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 2rem;
  align-items: start;
}

.levels__top-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.levels__top-right {
  padding-top: 3.75rem;
}

/* Subtitle */
.levels__subtitle {
  font-family: var(--font-subtitle);
  font-weight: 400;
  font-size: clamp(2.8rem, 4vw, 3.2rem);
  color: #ffffff;
  line-height: 1.1;
}
.levels__subtitle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* title row n the arrow img*/
.levels__title-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.levels__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  color: #ffffff;
}

.levels__zigzag {
  width: 36px;
  height: auto;
  flex-shrink: 0;
  margin-top: 0.25rem;
  transform: rotate(45deg);
}

/* Description text*/
.levels__desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.4;
  color: #ffffff;
}

/*  grid  */
.levels__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
}

/* Card */
.levels__card {
  flex: 1;
  max-width: 300px;
  background-color: #ffffff;
  border-radius: 1.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
}

/* Even cards pushed down for ladder effect */
.levels__card--down {
  align-self: flex-end;
  margin-top: 3rem;
}

/* Image */
.levels__card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0.6rem 0.6rem 0;
  border-radius: 1.25rem 1.25rem 0 0;
}

.levels__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1.25rem 1.25rem 0 0;
}

/* Card body */
.levels__card-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.levels__card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.levels__card-icon {
  width: 25px;
  height: 25px;
  color: var(--color-light-blue);
  stroke-width: 2;
  flex-shrink: 0;
}

.levels__card-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.10rem);
  color: var(--color-light-blue);
}

.levels__card-desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  line-height: 1.4;
  color: var(--color-grey);
}

/* action buttons */
.levels__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.levels__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark-blue);
  background-color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.levels__cta-btn:hover {
  opacity: 0.85;
}

.levels__cta-btn--text {
  padding: 0 1.25rem;
}

.levels__cta-btn--icon {
  width: 50px;
  border-radius: 999px;
}

.levels__cta-btn--icon i {
  width: 18px;
  height: 18px;
}

/*  Responsive  */
@media (max-width: 900px) {
  .levels__top {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .levels__top-right {
    padding-top: 0;
  }

  .levels__grid {
    flex-wrap: wrap;
  }

  .levels__card,
  .levels__card--down {
    flex: 0 0 calc(50% - 0.625rem);
    max-width: calc(50% - 0.625rem);
    align-self: unset;
    margin-top: 0;
  }
}

@media (max-width: 540px) {
  .levels__card,
  .levels__card--down {
    flex: 0 0 100%;
    max-width: 100%;
  }
}