/**
 * Phase 35 — homepage purchase-benefits system.
 * All rules are intentionally scoped to Page 18's `.home-benefits` section.
 */

.home-benefits {
  position: relative;
  min-height: 0 !important;
  padding: 28px 48px 34px !important;
  overflow: hidden;
  border-top: 1px solid rgba(166, 119, 54, 0.1);
  background: #fffaf3 !important;
}

.home-benefits .home-benefits__inner,
.home-benefits .home-benefits__inner > .e-con-inner {
  width: 100%;
  max-width: 1329px;
  min-height: 0 !important;
  margin-inline: auto;
  padding: 0 !important;
}

.home-benefits .home-benefits__inner > .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.home-benefits .elementor-widget-icon-box {
  width: auto !important;
  min-width: 0;
  min-height: 126px;
  margin: 0 !important;
  padding: 17px 14px 15px;
  border: 1px solid rgba(152, 23, 36, 0.1);
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 5px 15px rgba(72, 43, 27, 0.035);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
  --flex-grow: 0 !important;
  --flex-shrink: 1 !important;
}

.home-benefits .elementor-widget-icon-box > .elementor-widget-container,
.home-benefits .elementor-widget-icon-box .elementor-icon-box-wrapper {
  width: 100%;
  height: 100%;
}

.home-benefits .elementor-widget-icon-box .elementor-icon-box-wrapper {
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center;
  gap: 11px !important;
  text-align: center;
}

.home-benefits .elementor-icon-box-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  margin: 0 !important;
  border: 1px solid rgba(152, 23, 36, 0.08);
  border-radius: 14px;
  background: #fff5ef;
}

.home-benefits .elementor-icon {
  display: grid !important;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #b40f1d !important;
  font-size: 46px !important;
}

.home-benefits .elementor-icon svg {
  display: block;
  width: 46px !important;
  height: 46px !important;
}

.home-benefits .elementor-icon-box-content {
  width: 100%;
  min-width: 0;
}

.home-benefits .elementor-icon-box-title,
.home-benefits .elementor-icon-box-title a {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 !important;
  color: #382d27 !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-benefits .elementor-icon-box-description {
  display: none !important;
}

.home-benefits .elementor-widget-icon-box a:focus-visible {
  outline: 2px solid #c69a48;
  outline-offset: 3px;
}

@media (hover: hover) {
  .home-benefits .elementor-widget-icon-box:hover {
    border-color: rgba(152, 23, 36, 0.2);
    background: #fffaf5;
    transform: translateY(-1px);
  }

  .home-benefits .elementor-widget-icon-box:hover .elementor-icon-box-icon {
    background: #fff0e8;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .home-benefits {
    padding: 26px 24px 30px !important;
  }

  .home-benefits .home-benefits__inner > .e-con-inner {
    gap: 14px;
  }

  .home-benefits .elementor-widget-icon-box {
    min-height: 122px;
    padding-inline: 10px;
  }

  .home-benefits .elementor-icon-box-title,
  .home-benefits .elementor-icon-box-title a {
    font-size: 14.5px !important;
  }
}

@media (max-width: 768px) {
  .home-benefits {
    padding: 26px 20px 30px !important;
  }

  .home-benefits .home-benefits__inner > .e-con-inner {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .home-benefits .elementor-widget-icon-box {
    min-height: 114px;
    grid-column: span 2;
    padding: 14px 10px 13px;
  }

  .home-benefits .elementor-widget-icon-box:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .home-benefits .elementor-widget-icon-box:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .home-benefits .elementor-icon-box-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 13px;
  }

  .home-benefits .elementor-icon,
  .home-benefits .elementor-icon svg {
    width: 42px !important;
    height: 42px !important;
    font-size: 42px !important;
  }

  .home-benefits .elementor-icon-box-title,
  .home-benefits .elementor-icon-box-title a {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 599px) {
  .home-benefits {
    padding: 22px 16px 26px !important;
  }

  .home-benefits .home-benefits__inner > .e-con-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-benefits .elementor-widget-icon-box,
  .home-benefits .elementor-widget-icon-box:nth-child(4) {
    min-height: 98px;
    grid-column: auto;
    padding: 11px 9px 10px;
  }

  .home-benefits .elementor-widget-icon-box:nth-child(5) {
    width: calc(50% - 5px) !important;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .home-benefits .elementor-widget-icon-box .elementor-icon-box-wrapper {
    gap: 7px !important;
  }

  .home-benefits .elementor-icon-box-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 12px;
  }

  .home-benefits .elementor-icon,
  .home-benefits .elementor-icon svg {
    width: 38px !important;
    height: 38px !important;
    font-size: 38px !important;
  }

  .home-benefits .elementor-icon-box-title,
  .home-benefits .elementor-icon-box-title a {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-benefits .elementor-widget-icon-box {
    transition: none;
  }
}
