.membership-levels-section {
  padding: 0 var(--container-padding);
  margin-bottom: var(--spacing-2xl);
}

.levels-header {
  width: 977.283px;
  margin: 49.781px auto 47.251px;
  text-align: center;
}

.membership-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  width: 1160.126px;
  margin: 0 auto var(--spacing-2xl);
}

.membership-level-card {
  border: 1px solid var(--color-gray-border);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-lg);
  background: var(--color-white);
}

.level-card-header {
  position: relative;
  width: 304.884px;
  height: 190px;
  background: var(--color-gray-dark);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm);
}

.level-name {
  color: var(--color-white);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-3xl);
  flex: 1;
  padding-left: var(--spacing-sm);
}

.level-icon-section {
  width: 61.86px;
  height: 190px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--spacing-lg);
}

.blue-lion {
  background: var(--color-primary);
}

.silver-lion {
  background: var(--color-gray-bg);
}

.gold-lion {
  background: var(--color-gold);
}

.level-icon {
  width: 37.634px;
  height: 35.349px;
}

.level-title {
  margin-top: 20px;
  color: var(--color-black);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-lg);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.level-benefits {
  text-align: center;
}

.level-rate {
  color: var(--color-black);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-md);
  margin-bottom: var(--spacing-sm);
}

.level-benefit {
  color: var(--color-black);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-sm);
}

.background-image-section {
  position: relative;
  width: var(--container-content-width);
  height: 558px;
  margin: 60.591px auto 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.background-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image covers the container */
    object-position: center; /* Centers the image */
}
.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1440px) {
  .membership-levels-section {
    padding: 0 var(--spacing-md);
  }

  .levels-header,
  .membership-levels-grid,
  .background-image-section {
    width: 100%;
  }

  .levels-header {
    max-width: 977.283px;
  }

  .membership-levels-grid {
    max-width: 1160.126px;
  }
}

@media (max-width: 1024px) {
  .membership-levels-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 400px;
  }

  .level-card-header {
    width: 100%;
    max-width: 304.884px;
    margin: 0 auto var(--spacing-lg);
  }

  .background-image-section {
    height: 235px;
  }
}

@media (max-width: 768px) {
  .level-card-header {
    height: 150px;
    flex-direction: column;
    text-align: center;
  }

  .level-name {
    font-size: var(--font-size-xl);
    padding: 0;
  }

  .level-icon-section {
    width: 100%;
    height: 60px;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    padding-bottom: var(--spacing-sm);
  }

  .background-image-section {
    height: 235px;
  }
}
