/* Full-width wrapper for optional fade background */
.for-who-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.for-who-wrapper__fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 17.5rem; /* 280px */
  background: linear-gradient(180deg, #edf7fc 0%, rgba(237, 247, 252, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* For Who Block - Matching Figma Design */
.for-who {
  position: relative;
  max-width: 1248px;
  margin: 0 auto;
  background: #1b4759; /* Dark blue background */
  overflow: hidden;
  z-index: 1;
}

/* When wrapper exists, ensure proper positioning */
.for-who-wrapper .for-who {
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

/* Main content container */
.for-who__content {
  position: relative;
  z-index: 2;
  max-width: 1248px;
  margin: 0 auto;
  padding: 96px 40px;
}

/* Header section */
.for-who__header {
  text-align: center;
  margin-bottom: 48px;
}

/* Title - DM Sans Bold, 48px */
.for-who__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 48px; /* Exact line height matching font size */
  color: #edf7fc; /* Light blue text */
  margin-bottom: 8px;
  letter-spacing: -2.88px;
}

/* Description - DM Sans Regular, 19px */
.for-who__description {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 26px; /* Tighter line height */
  color: #ffffff; /* White text */
  max-width: 768px;
  margin: 0 auto;
}

/* Items container - 3 column grid */
.for-who__items {
  max-width: 1168px;
  margin: 0 auto;
  padding: 32px;
  border: 2px solid rgba(237, 247, 252, 0.4);
  border-radius: 16px;
}

/* Style the WYSIWYG list */
.for-who__items ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px; /* Reduced gap between items */
  list-style: none;
  margin: 0;
  padding: 0;
}

.for-who__items li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0; /* Reduced padding */
  position: relative;
}

/* Add checkmark icon to each list item */
.for-who__items li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3 6L7 2' stroke='%23A1D2E5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 8px 8px;
}

/* Item text - DM Sans Regular, 16px */
.for-who__items li {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #ffffff; /* White text */
  white-space: nowrap;
}

/* Style links within the list */
.for-who__items a {
  color: #a1d2e5; /* Medium blue for links */
  text-decoration: underline;
  text-underline-position: from-font;
}

.for-who__items a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Corner rounding options */
.for-who--top-rounded {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.for-who--bottom-rounded {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .for-who__content {
    padding: 64px 32px;
  }

  .for-who__title {
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1.1;
  }

  .for-who__items ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px; /* Reduced gap */
  }

  .for-who__items {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .for-who__content {
    padding: 48px 24px;
  }

  .for-who__title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .for-who__description {
    font-size: 16px;
    line-height: 24px;
  }

  .for-who__items ul {
    grid-template-columns: 1fr;
    gap: 4px; /* Reduced gap */
  }

  .for-who__items {
    padding: 20px;
  }

  .for-who__items li {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .for-who__content {
    padding: 32px 16px;
  }

  .for-who__items {
    padding: 16px;
  }

  .for-who__items ul {
    gap: 3px; /* Reduced gap */
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .for-who {
    background: #000000;
    border: 2px solid #ffffff;
  }

  .for-who__title,
  .for-who__description,
  .for-who__item-text {
    color: #ffffff;
  }

  .for-who__items {
    border-color: #ffffff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .for-who__fade {
    display: none;
  }
}
