/**
 * Feature List — frontend. Matches design-reference section-helps.
 */

body:not(.block-editor-page) .wp-block-kundan-feature-list.kb-feature-list {
  background: var(--white);
}

body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

body:not(.block-editor-page) .wp-block-kundan-feature-list.kb-feature-list h2 {
  max-width: 680px;
  margin-bottom: 60px;
}

body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__intro {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 52px;
}

body:not(.block-editor-page) .wp-block-group.kb-feature-list__grid > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}

body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__card:last-child:nth-child(3n+1),
body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__grid .wp-block-group:last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
  max-width: 380px;
}

body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__card,
body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__grid .wp-block-group:not(.kb-feature-list__grid) {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s, border-color 0.2s;
  margin-top: 0px;
  margin-bottom: 0px;
}

body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__card:hover,
body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__grid .wp-block-group:not(.kb-feature-list__grid):hover {
  box-shadow: 0 8px 32px rgba(15,23,42,0.09);
  border-color: #cbd5e1;
}

body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__card .kb-feature-list__card-icon,
body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__card .wp-block-image.kb-feature-list__card-icon,
body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__grid .wp-block-group .kb-feature-list__card-icon,
body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__grid .wp-block-group .wp-block-image.kb-feature-list__card-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 16px 0;
  padding: 0;
  background: #dbeafe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__card .kb-feature-list__card-icon img,
body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__card .wp-block-image.kb-feature-list__card-icon img,
body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__grid .wp-block-group .kb-feature-list__card-icon img,
body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__grid .wp-block-group .wp-block-image.kb-feature-list__card-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__card h3,
body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__grid .wp-block-group h3 {
  margin-bottom: 10px;
  color: var(--navy);
}

body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__card p:not(.kb-feature-list__num),
body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__grid .wp-block-group p:not(.kb-feature-list__num) {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__grid > div {
    grid-template-columns: repeat(2, 1fr);
  }
  body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__card:last-child:nth-child(3n+1),
  body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__grid .wp-block-group:last-child:nth-child(3n+1) {
    grid-column: auto;
    max-width: none;
  }
}

@media (max-width: 600px) {
  body:not(.block-editor-page) .wp-block-kundan-feature-list .kb-feature-list__grid > div {
    grid-template-columns: 1fr;
  }
}
