/* Feature Grid Block — exact AEM whyChooseDishTv CSS */

/* Section */
.section.feature-grid-container {
  background: #fff;
  padding: 0;
}

.wcdt-section {
  background-color: #fff;
  width: 100%;
  padding: 72px 0;
}

.wcdt-container,
.section.feature-grid-container .default-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  box-sizing: border-box;
}

/* Headings */
.wcdt-heading-wrap { margin-bottom: 56px; }

.wcdt-heading {
  font-size: 32px;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0 0 6px;
  line-height: 1.3;
  font-family: Roboto, sans-serif;
}

.wcdt-highlight { color: #e84b1c; }

.wcdt-subheading {
  font-size: 30px;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
  font-family: Roboto, sans-serif;
}

/* Grid — flex-wrap, centered, 4 per row desktop.
   max-width matches AEM's .wcdt-item cap exactly: 100px item + 48px gap,
   4 fit (100*4 + 48*3 = 544px), 5th pushes past 600px and wraps. */
.wcdt-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 48px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 600px;
}

/* Each feature item */
.wcdt-item { list-style: none; }

/* Icon wrap — column layout (icon above label) */
.wcdt-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 80px;
  border-radius: 20px;
}

.wcdt-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

/* Label */
.wcdt-label {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
  text-align: center;
  padding-top: 10px;
  font-family: Roboto, sans-serif;
  max-width: 100px;
}

/* Tablet */
@media (max-width: 1023px) {
  .wcdt-section { padding: 56px 0; }
  .wcdt-heading { font-size: 28px; }
  .wcdt-subheading { font-size: 26px; }
  .wcdt-grid { gap: 40px 32px; }
}

/* Mobile — 2 columns */
@media (max-width: 767px) {
  .wcdt-section { padding: 40px 0; }
  .wcdt-container { padding: 0 16px; }
  .wcdt-heading-wrap { margin-bottom: 36px; }
  .wcdt-heading { font-size: 22px; }
  .wcdt-subheading { font-size: 20px; }
  .wcdt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 24px;
    max-width: 100%;
  }

  /* Odd item count — the trailing lone item spans both columns so its
     centered .wcdt-icon-wrap (below) lands in the middle of the row
     instead of stuck in the first column. */
  .wcdt-grid .wcdt-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .wcdt-icon-wrap { width: 100px; margin: 0 auto; }
  .wcdt-icon { width: 48px; height: 48px; border-radius: 16px; }
  .wcdt-label { font-size: 14px; }
}
